27db155c0e
Currently these nodes are not deployed using kolla-ansible but use the host provisioning and host OS configuration pieces of kayobe. The monasca-deploy project is used to deploy the monitoring services.
30 lines
949 B
YAML
30 lines
949 B
YAML
---
|
|
- name: Ensure IP addresses are allocated
|
|
hosts: seed:overcloud
|
|
gather_facts: no
|
|
pre_tasks:
|
|
- name: Initialise the IP allocations fact
|
|
set_fact:
|
|
ip_allocations: []
|
|
|
|
- name: Update the IP allocations fact with IP allocation requests
|
|
set_fact:
|
|
ip_allocations: >
|
|
{{
|
|
ip_allocations +
|
|
[{
|
|
'net_name': item,
|
|
'cidr': item|net_cidr,
|
|
'allocation_pool_start': item|net_allocation_pool_start,
|
|
'allocation_pool_end': item|net_allocation_pool_end
|
|
}]
|
|
}}
|
|
with_items: "{{ network_interfaces }}"
|
|
when: "{{ item|net_cidr != None }}"
|
|
roles:
|
|
- role: ip-allocation
|
|
ip_allocation_filename: "{{ kayobe_config_path }}/network-allocation.yml"
|
|
ip_allocation_hostname: "{{ inventory_hostname }}"
|
|
# Use serial=1 to avoid races between allocations for different hosts.
|
|
serial: 1
|