
Unlike the Ansible apt module, the Ansible pip module does not recognise a with_items list and process all the items at once. To optimise the pip install tasks, this patch replaces the use of with_items with a join filter so that the pip install task does an install with all the packages in a list, ensuring that the execution is one action instead of many. Change-Id: I9a372286efe2105568f9ef2d29be62d0f8070303
OpenStack-Ansible Sahara
- tags
-
openstack, sahara, cloud, ansible
- category
-
*nix
This Ansible role installs and configures OpenStack sahara and sahara engine.
- This role will install the following Upstart services:
-
- sahara-api
- sahara-engine
Required Variables
sahara_galera_address
sahara_container_mysql_password
sahara_service_password
sahara_rabbitmq_password
Example Playbook
- name: Install sahara server
hosts: sahara_all
user: root
roles:
- { role: "os_sahara", tags: [ "os-sahara" ] }
vars:
external_lb_vip_address: 172.16.24.1
internal_lb_vip_address: 192.168.0.1
sahara_galera_address: "{{ internal_lb_vip_address }}"
sahara_container_mysql_password: "SuperSecretePassword1"
sahara_service_password: "SuperSecretePassword2"
sahara_rabbitmq_password: "SuperSecretePassword3"
Description