| | |-- tasks | | | `-- main.yml | | |-- templates | | | `-- haproxy.cfg.j2 | | `-- vars | | `-- main.yml | `-- create_instances | |-- tasks | | `-- main.yml | `-- vars | `-- main.yml `-- site.yml

site.yml is the main playbook and create-instances and appservers are the specific roles. Create the folder structure if you're starting from zero.

On the local host you need the OpenStack tools and some python modules installed. The os_server page lists all the requirements. You also need an openstackrc file with credentials in your environment:

$ cat openstackrc export OS_AUTH_URL="https://identity.stack.cloudvps.com/v2.0" export OS_USERNAME="username" export OS_PASSWORD="password" export OS_TENANT_ID="UUID" export OS_TENANT_NAME="UUID"

Source it before running the playbooks:

source openstackrc

Main playbook

The site.yml playbook first runs on locahost and creates the OpenStack instances. It also(With inputs from AFP)

RIO DE JANEIRO: You may be the leader of a country and have the best possible security, but that might not guarantee your safety from paranormal apparitions.Or so it seems to be the case for Brazillian president Michel Temer , who decamped from his official residence at the Alvorada Palace in Brasilia after he and his family felt "bad vibes" emanating from the luxurious building."I felt something strange there. I wasn't able to sleep right from the first night. The energy wasn't good... We even started to wonder: could there be ghosts?" Temer was quoted as saying by Veja News.The modernist Alvorada Palace is a sumptuous residence at the heart of Brazil 's capital city, and is equipped with a huge pool, football field, chapel,