Skip to content
Snippets Groups Projects
Commit 9c096717 authored by Andreas Hamacher's avatar Andreas Hamacher
Browse files

working on checker

parent a78a7430
No related branches found
No related tags found
No related merge requests found
...@@ -308,8 +308,8 @@ ansible_check: ...@@ -308,8 +308,8 @@ ansible_check:
- ansible --key-file ./gc_key.pem -i files/inventory.$STACKNAME -m fetch -a "src=/opt/nhc-1.4.2/etc/nhc/nhc.conf dest=files/nhc.conf flat=yes" ComputeNodes[0] - ansible --key-file ./gc_key.pem -i files/inventory.$STACKNAME -m fetch -a "src=/opt/nhc-1.4.2/etc/nhc/nhc.conf dest=files/nhc.conf flat=yes" ComputeNodes[0]
- ansible --key-file ./gc_key.pem -i files/inventory.$STACKNAME -m fetch -a "src=/opt/slurm-latest/etc/slurm.conf dest=files/slurm.conf flat=yes" ComputeNodes[0] - ansible --key-file ./gc_key.pem -i files/inventory.$STACKNAME -m fetch -a "src=/opt/slurm-latest/etc/slurm.conf dest=files/slurm.conf flat=yes" ComputeNodes[0]
- ANSIBLE_STDOUT_CALLBACK=json ansible-playbook -i files/inventory.$STACKNAME --key-file ./gc_key.pem --check computenodes.yml --limit ComputeNodes --skip-tags=SiteSpecific --tags=HotChange | tee compute_ansible_check.log - ANSIBLE_STDOUT_CALLBACK=json ansible-playbook -i files/inventory.$STACKNAME --key-file ./gc_key.pem --check computenodes.yml --limit ComputeNodes --skip-tags=SiteSpecific --tags=HotChange | tee compute_ansible_check.log
- python3 ../../scripts/check_summary.py outputChangedNodeList > computeHotChanged.yml - python3 ../../scripts/check_summary.py outputChangedNodeList | tee computeHotChanged.yml
- ANSIBLE_STDOUT_CALLBACK=json ansible-playbook -i files/inventory.$STACKNAME --key-file ./gc_key.pem --check computenodes.yml --limit ComputeNodes --skip-tags=SiteSpecific --tags=ColdChange > compute_ansible_check.log - ANSIBLE_STDOUT_CALLBACK=json ansible-playbook -i files/inventory.$STACKNAME --key-file ./gc_key.pem --check computenodes.yml --limit ComputeNodes --skip-tags=SiteSpecific --tags=ColdChange > compute_ansible_check.log
- python3 ../../scripts/check_summary.py outputChangedNodeList > computeColdChanged.yml - python3 ../../scripts/check_summary.py outputChangedNodeList | tee computeColdChanged.yml
- export targetIP=`./files/inventory.$STACKNAME | python ../../scripts/extractIPfromInventory.py CICD_HPCasCode_autoupdate-mgmtU0` - export targetIP=`./files/inventory.$STACKNAME | python ../../scripts/extractIPfromInventory.py CICD_HPCasCode_autoupdate-mgmtU0`
- scp -i ../../gc_key.pem *Changed.yml ubuntu@targetIP:/local_home/ubuntu - scp -i ../../gc_key.pem *Changed.yml ubuntu@targetIP:/local_home/ubuntu
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