Qiyang,

I’m afraid that the inventories/develop inventory directory is a little 
out-dated and is missing some config variables.

The more up-to-date inventories are the ones in inventories/scigap, which are 
the ones we use in SciGaP for our deployments.

I would recommend that you make copy inventories/scigap/production and then go 
update the following files:
* hosts
* delete the files/ directory
* update variables as needed in group_vars/all/vars.yml. NOTE: some of these 
vars get their values from the vault.yml file. The vault.yml file is encrypted 
so you’ll either need to remove it and just specify the values in vars.yml 
directly or you can create your own vault.yml file with your own password
* you probably only need a single pga_config directory so just use the seagrid 
one as an example. Put these vars into group_vars/pga/vars.yml. Same comment 
regarding vault.yml.

Also the site.yml file is out-dated too. Honestly I don’t use it myself because 
I usually deploy different parts of airavata separately. Like so:

ansible-playbook -i inventories/YOUR_INVENTORY_DIR database.yml

ansible-playbook -i inventories/YOUR_INVENTORY_DIR keycloak.yml

ansible-playbook -i inventories/YOUR_INVENTORY_DIR airavata.yml

ansible-playbook -i inventories/YOUR_INVENTORY_DIR pga.yml


Thanks,

Marcus



On Aug 24, 2017, at 2:32 PM, Hu, Qiyang 
<[email protected]<mailto:[email protected]>> wrote:

Hello Marcus,

I met some problems in running ansible script in master branch. After following 
the readme file, when I ran

ansible-playbook -i inventories/develop site.yml

I got the error:


TASK [database : create databases] *********************************************
fatal: [149.165.156.184]: FAILED! => {"failed": true, "msg": "['{{ app_catalog 
}}', '{{ exp_catalog }}', '{{ replica_catalog }}', '{{ workflow_catalog }}', 
'{{ credential_store }}', '{{ sharing_catalog }}', '{{ profile_service }}']: 
'profile_service' is undefined"}
    to retry, use: --limit @/home/huqy/airavata/dev-tools/ansible/site.retry

When I ran

ansible-playbook -i inventories/scigap/production site.yml

I got the error:


ERROR! Attempted to read 
"/home/huqy/airavata/dev-tools/ansible/inventories/scigap/production/pga_config/NCSAIndustry/vault.yml"
 as YAML: Decryption failed on 
b'/home/huqy/airavata/dev-tools/ansible/inventories/scigap/production/pga_config/NCSAIndustry/vault.yml'
Attempted to read 
"/home/huqy/airavata/dev-tools/ansible/inventories/scigap/production/pga_config/NCSAIndustry/vault.yml"
 as ini file: Decryption failed on 
b'/home/huqy/airavata/dev-tools/ansible/inventories/scigap/production/pga_config/NCSAIndustry/vault.yml'

Anywhere to find further instructions about configurations?

Thanks,
Qiyang


Reply via email to