Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Latest commit

 

History

History
95 lines (56 loc) · 2.89 KB

quickstart.mkd

File metadata and controls

95 lines (56 loc) · 2.89 KB

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.

Table of contents


Prerequisites [▲](#top-page "back to top") =============

Root access

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.

Host names resolving

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.

SSH connection without a key pair

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

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") ================

Installing an obm-full (all services on the same host)

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.