An Ansible role to install/configure OpenStack Compute Service - Compute
None
---
# defaults file for ansible-openstack-compute-service-compute
# keystone_authtoken
openstack_compute_service_compute_keystone_authtoken:
auth_type: 'password'
auth_uri: '{{ openstack_compute_service_compute_keystone_service_endpoint_url }}:5000'
auth_url: '{{ openstack_compute_service_compute_keystone_service_endpoint_url }}:35357'
memcached_servers: '{{ openstack_compute_service_compute_memcached_servers }}'
password: "{{ openstack_compute_service_compute_nova_user_info['password'] }}"
project_domain_name: "{{ openstack_compute_service_compute_nova_user_info['domain_id'] }}"
project_name: "{{ openstack_compute_service_compute_nova_user_info['project'] }}"
user_domain_name: "{{ openstack_compute_service_compute_nova_user_info['domain_id'] }}"
username: "{{ openstack_compute_service_compute_nova_user_info['name'] }}"
openstack_compute_service_compute_keystone_service_endpoint_region: 'RegionOne'
openstack_compute_service_compute_keystone_service_endpoint_url: 'http://{{ ansible_hostname }}'
# Management IP Info
openstack_compute_service_compute_management_interface: 'enp0s8'
openstack_compute_service_compute_management_ip: "{{ hostvars[inventory_hostname]['ansible_'+openstack_compute_service_compute_management_interface]['ipv4']['address'] }}"
# Define memcached servers
openstack_compute_service_compute_memcached_servers:
- 127.0.0.1
# Neutron info
openstack_compute_service_compute_neutron:
auth_type: 'password'
auth_url: '{{ openstack_compute_service_compute_keystone_service_endpoint_url }}:35357'
password: "{{ openstack_compute_service_compute_neutron_user_info['password'] }}"
project_domain_name: "{{ openstack_compute_service_compute_neutron_user_info['domain_id'] }}"
project_name: "{{ openstack_compute_service_compute_neutron_user_info['project'] }}"
url: '{{ openstack_compute_service_compute_keystone_service_endpoint_url }}:9696'
user_domain_name: "{{ openstack_compute_service_compute_neutron_user_info['domain_id'] }}"
username: "{{ openstack_compute_service_compute_neutron_user_info['name'] }}"
## Define Neutron user info
openstack_compute_service_compute_neutron_user_info:
description: 'Neutron user'
domain_id: 'default'
enabled: true
name: 'neutron'
# Generate with openssl rand -hex 10
password: '{{ openstack_compute_service_compute_neutron_user_pass }}'
project: 'service'
role: 'admin'
state: 'present'
## Define Neutron user password
openstack_compute_service_compute_neutron_user_pass: []
# Nova info
## Nova user info
openstack_compute_service_compute_nova_user_info:
description: 'Nova user'
domain_id: 'default'
enabled: true
name: 'nova'
# Generate with openssl rand -hex 10
password: '{{ openstack_compute_service_compute_nova_user }}'
project: 'service'
role: 'admin'
state: 'present'
## Nova user password
openstack_compute_service_compute_nova_user: []
# Placement info
## Placement service info
openstack_compute_service_compute_placement:
auth_type: 'password'
auth_url: '{{ openstack_compute_service_compute_keystone_service_endpoint_url }}:35357/v3'
password: "{{ openstack_compute_service_compute_placement_user_info['password'] }}"
project_domain_name: "{{ openstack_compute_service_compute_placement_user_info['domain_id'] }}"
project_name: "{{ openstack_compute_service_compute_placement_user_info['project'] }}"
user_domain_name: "{{ openstack_compute_service_compute_placement_user_info['domain_id'] }}"
username: "{{ openstack_compute_service_compute_placement_user_info['name'] }}"
## Placement user info
openstack_compute_service_compute_placement_user_info:
description: 'Placement user'
domain_id: 'default'
enabled: true
name: 'placement'
# Generate with openssl rand -hex 10
password: '{{ openstack_compute_service_compute_placement_user_pass }}'
project: 'service'
role: 'admin'
state: 'present'
## Placement user password
openstack_compute_service_compute_placement_user_pass: []
# RabbitMQ Connection Info
openstack_compute_service_compute_rabbit_hosts:
- 127.0.0.1
openstack_compute_service_compute_rabbit_pass: 'openstack'
openstack_compute_service_compute_rabbit_user: 'openstack'
The following Ansible roles are required as part of this role.
- ansible-chrony
- ansible-config-interfaces
- ansible-etc-hosts
- ansible-openstack-base
- ansible-openstack-openrc
The above roles can be installed using ansible-galaxy
along with requirements.yml:
ansible-galaxy install -r requirements.yml
MIT
Larry Smith Jr.
- @mrlesmithjr
- EverythingShouldBeVirtual
- mrlesmithjr [at] gmail.com