This documentation makes the assumption that your shell is located in the directory where you cloned obm-deploy repository.
Also, whatever installation method you use, your virtualhost must be activated.
Prerequisites [▲](#top-page "back to top") =============
OBM-Deploy uses SSH to connect to remote hosts using root account.
This is a prerequisite but we will try to allow non-root accounts in the future.
So, ensure that you can connect to your remote hosts as root before trying to run OBM-Deploy.
Another constraint is that OBM-Deploy needs to be able to resolve host names.
So, you need to add all your remote hosts with their IP addresses in your /etc/hosts file or add them in your DNS server.
OBM-Deploy needs, if you want to do a fully unattended deployment, that your SSH public key has been added to /root/.ssh/authorized_keys.
It is also possible to authenticate using a password but you need to do two things :
-
Add this option in ansible.cfg :
ask_pass = True
-
Add this configuration in /home/your_username/.ssh/config file :
Host your_remote_host PubkeyAuthentication no
Sudo usage has been disabled in obm-deploy for the moment.
We will probably reintroduce it in the future.
OBM-Deploy usage [▲](#top-page "back to top") ================
If you have an already running CentOS remote host or a VM on your desktop, you can directly use the obmfull-example inventory provided by OBM-Deploy.
The only thing you need to do is to replace obm.example.com with your hostname in the obmfull-example file.
Then, you can make your first automated deployment :
$ ansible-playbook -i obmfull-example obm.yml
The latest stable OBM version (currently 3.0) will be installed.