oksanagit / deployAD

0 stars 1 forks source link

What script does and supports

This Ansible utility automates deployment of EPICS base and EPICS modules. It targets deployments of areaDetector. Currently it supports:

Script installs needed packages after autodetection of the Operating System on the target host. Debian and RedHat(CentOS) kinds are suppored.

How to use

To enjoy automation, one needs to have Ansible installed on the master deployment host and have ssh connections to the target hosts. Ansible technology supports "parallel"/simultaneous deployments on multiple targets.

The following command will clone and build all supported modules on hosts tagged as ISS in 'hosts' file with the configuration defined in all.yml. If --limit is not spesified, script will deploy on all hosts spesified in 'hosts' file.

ansible-playbook -i ./hosts -K doDeployment.yml --limit=ISS
-k requires user login
-K requires sudo password

The following command will clone and build all supported modules on hosts tagged as SRX as xspress3 user on the target host. One will be offered to enter ssh and sudo passwords for 'xspress3' user.

ansible-playbook -i ./hosts -Kk doDeployment.yml --limit SRX --user xspress3

How it works

The main module doDeployment.yml calls different roles and makes decision to include/exclude certain module based on configuration settings.