Skip to content

mrlesmithjr/ansible-openstack-compute-service-compute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Role Name

An Ansible role to install/configure OpenStack Compute Service - Compute

Requirements

None

Role Variables

---
# 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'

Dependencies

Ansible Roles

The following Ansible roles are required as part of this role.

The above roles can be installed using ansible-galaxy along with requirements.yml:

ansible-galaxy install -r requirements.yml

Example Playbook

Example Playbook

License

MIT

Author Information

Larry Smith Jr.

Releases

No releases published

Packages

No packages published