Ansible - apigee-opdk-playbook-installation-single-region

Trying to run @carlosfrias/apigee-opdk-playbook-installation-single-region playbook on 3 nodes.

The silent config file generated doesn't have PG_MASTER and PG_STANDBY. So do I have to add pgmaster_ip and pgstandby_ip variables in apigee-opdk-setup-default-settings

Solved Solved
0 4 630
1 ACCEPTED SOLUTION

The config file will generate the PG_MASTER and PG_STANDBY if you add them to the inventory file. If you include a dc-1-pgmaster and/or dc-1-pgstandby groups in the inventory file as described here: https://github.com/carlosfrias/apigee-opdk-playbook-setup-ansible/blob/master/inventory.md you will find that the correct setting are generated for you.

View solution in original post

4 REPLIES 4

The config file will generate the PG_MASTER and PG_STANDBY if you add them to the inventory file. If you include a dc-1-pgmaster and/or dc-1-pgstandby groups in the inventory file as described here: https://github.com/carlosfrias/apigee-opdk-playbook-setup-ansible/blob/master/inventory.md you will find that the correct setting are generated for you.

Yes I saw, its greping the ip from [dc-1-pgmaster] in postgres.yml.
But I have [dc-1-pgmaster] and [dc-1-pgstandby] group in the hosts file.

hosts1.txt

The postgres.yml was getting skipped. In apigee-opdk-setup-default-settings/tasks/main.yml I changed the groups with correct group name, now it works fine.