diff --git a/changelogs/fragments/molecule.yml b/changelogs/fragments/molecule.yml new file mode 100644 index 000000000..050dfb902 --- /dev/null +++ b/changelogs/fragments/molecule.yml @@ -0,0 +1,3 @@ +--- +minor_changes: + - "molecule: add tnsname configuration to shared inventory (oravirt#388)" diff --git a/extensions/molecule/shared_config/inventory/group_vars/all/oracle_db.yml b/extensions/molecule/shared_config/inventory/group_vars/all/oracle_db.yml index 6979dec01..7857591da 100644 --- a/extensions/molecule/shared_config/inventory/group_vars/all/oracle_db.yml +++ b/extensions/molecule/shared_config/inventory/group_vars/all/oracle_db.yml @@ -143,3 +143,18 @@ oracle_pdbs: maxsize: 4G content: permanent state: present + +_tnsnames_config_pdb_helper: + - key: "{{ oracle_pdbs[0]['pdb_name'] }}" + value: + connect: + service_name: "{{ oracle_pdbs[0]['pdb_name'] }}" + address: + - host: "{{ ansible_hostname }}" + +oracle_tnsnames_config: "{{ _tnsnames_config_pdb_helper | items2dict }}" + +tnsnames_installed: + - tnsname: "{{ oracle_pdbs[0]['pdb_name'] }}" + home: db19-si-ee + state: present