Skip to content

mrlesmithjr/ansible-openstack-networking-service-controller

Repository files navigation

ansible-openstack-networking-service-controller

An Ansible role to install/configure OpenStack Networking Service Controller

Requirements

None

Role Variables

---
# defaults file for ansible-openstack-networking-service-controller

# Defines Neutron DB info
openstack_networking_service_controller_db_info:
  db: 'neutron'
  user: 'neutron'
  pass: 'neutron'
  host: 'localhost'

# HA info
## Define as true if using HA
openstack_networking_service_controller_ha: false
## Define host which should be identified as HA master
openstack_networking_service_controller_ha_master: 'controller01'

# keystone_authtoken
openstack_networking_service_controller_keystone_authtoken:
  auth_type: 'password'
  auth_uri: '{{ openstack_networking_service_controller_keystone_service_endpoint_url }}:5000'
  auth_url: '{{ openstack_networking_service_controller_keystone_service_endpoint_url }}:35357'
  memcached_servers: '{{ openstack_networking_service_controller_memcached_servers }}'
  password: "{{ openstack_networking_service_controller_neutron_user_info['password'] }}"
  project_domain_name: "{{ openstack_networking_service_controller_neutron_user_info['domain_id'] }}"
  project_name: "{{ openstack_networking_service_controller_neutron_user_info['project'] }}"
  user_domain_name: "{{ openstack_networking_service_controller_neutron_user_info['domain_id'] }}"
  username: "{{ openstack_networking_service_controller_neutron_user_info['name'] }}"

# Defines the default Keystone endpoint url
# Do not append the port or api version
openstack_networking_service_controller_keystone_service_endpoint_url: 'http://{{ inventory_hostname }}'

openstack_networking_service_controller_keystone_service_endpoint_region: 'RegionOne'

# Management IP Info
openstack_networking_service_controller_management_interface: 'enp0s8'
openstack_networking_service_controller_management_ip: "{{ hostvars[inventory_hostname]['ansible_'+openstack_compute_service_compute_management_interface]['ipv4']['address'] }}"

# Define memcached servers
openstack_networking_service_controller_memcached_servers:
  - 127.0.0.1

# Define a suitable secret for the metadata proxy.
openstack_networking_service_controller_metadata_secret: []

# Define the metadata host
openstack_networking_service_controller_nova_metadata_ip: '127.0.0.1'

# Neutron info
## Define Neutron user info
openstack_networking_service_controller_neutron_user_info:
  description: 'Neutron user'
  domain_id: 'default'
  enabled: true
  name: 'neutron'
  # Generate with openssl rand -hex 10
  password: '{{ openstack_networking_service_controller_neutron_user_pass }}'
  project: 'service'
  role: 'admin'
  state: 'present'

## Define Neutron user password
openstack_networking_service_controller_neutron_user_pass: []

# Nova info
openstack_networking_service_controller_nova:
  auth_type: 'password'
  auth_url: '{{ openstack_networking_service_controller_keystone_service_endpoint_url }}:35357'
  password: "{{ openstack_networking_service_controller_nova_user_info['password'] }}"
  project_domain_name: "{{ openstack_networking_service_controller_nova_user_info['domain_id'] }}"
  project_name: "{{ openstack_networking_service_controller_nova_user_info['project'] }}"
  user_domain_name: "{{ openstack_networking_service_controller_nova_user_info['domain_id'] }}"
  username: "{{ openstack_networking_service_controller_nova_user_info['name'] }}"

## Define Nova user info
openstack_networking_service_controller_nova_user_info:
  description: 'Nova user'
  domain_id: 'default'
  enabled: true
  name: 'nova'
  # Generate with openssl rand -hex 10
  password: '{{ openstack_networking_service_controller_nova_user_pass }}'
  project: 'service'
  role: 'admin'
  state: 'present'

## Define Nova user password
openstack_networking_service_controller_nova_user_pass: []

# Provider network info
openstack_networking_service_controller_provider_interface: 'enp0s9'

# RabbitMQ Connection Info
openstack_networking_service_controller_rabbit_hosts:
  - 127.0.0.1
openstack_networking_service_controller_rabbit_pass: 'openstack'
openstack_networking_service_controller_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