Skip to content
Snippets Groups Projects
Commit d2f82691 authored by Chris Hines's avatar Chris Hines
Browse files

debug CI by printf

parent 3b51f6a4
No related branches found
No related tags found
3 merge requests!518modifications to playbooks because 1. we're not using ldap 2. we're mounting...,!517modifications to playbooks because 1. we're not using ldap 2. we're mounting...,!513modifications to playbooks because 1. we're not using ldap 2. we're mounting...
......@@ -118,14 +118,19 @@ ansible_create_cluster_stage:
- ssh-keyscan -H `cat ssh.cfg | grep Proxy | cut -f 2 -d "@"` >> ~/.ssh/known_hosts
- eval `ssh-agent`
- ssh-add ./tmp_key
- ls
- ssh-add -L
- cat ansible.cfg
- cat ssh.cfg
- ansible -i inventory.yml -m ping 'all'
#- ssh `cat ssh.cfg | grep Proxy | cut -f 2 -d "="` -i ./tmp_key -o StrictHostKeyChecking=no exit 0
- export ANSIBLE_HOST_KEY_CHECKING=False
- ansible-playbook -i inventory.yml --key-file ./tmp_key upgrade_and_reboot.yml
- ansible-playbook -i inventory.yml --key-file ./tmp_key master_playbook.yml
- ansible-playbook -i inventory.yml upgrade_and_reboot.yml
- ansible-playbook -i inventory.yml master_playbook.yml
- sleep 15
- echo uglyuglyfix
- ansible -i inventory.yml --key-file tmp_key -b -a "systemctl restart slurmdbd" ManagementNodes
- ansible -i inventory.yml --key-file tmp_key -b -a "systemctl restart slurmctld" ManagementNodes
- ansible -i inventory.yml -b -a "systemctl restart slurmdbd" ManagementNodes
- ansible -i inventory.yml -b -a "systemctl restart slurmctld" ManagementNodes
# - cd plays
# - ansible-playbook -i files/inventory.$STACKNAME --key-file ../../gc_key.pem --skip-tags monitoring computenodes.yml | tee nochange.log
# - echo [ `grep changed= ./nochange.log -c` = `grep changed=0 ./nochange.log -c` ] > bashtest.sh # a crude way to make sure all changed lines are equal to changed=0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment