Remove hardcoded designate backend
Add conditionals to deploy bind9 as backend for designate, this way will easy third parties to deploy or develop custom backends. Change-Id: Ie61a3927ecb9366476cf3fbe0a866f8ea843d100
This commit is contained in:
parent
78b8f47bd5
commit
89447107b5
@ -440,6 +440,8 @@ cloudkitty_collector_backend: "ceilometer"
|
|||||||
#######################
|
#######################
|
||||||
# Designate options
|
# Designate options
|
||||||
#######################
|
#######################
|
||||||
|
# Valid options are [ bind9 ]
|
||||||
|
designate_backend: "bind9"
|
||||||
designate_ns_record: "sample.openstack.org"
|
designate_ns_record: "sample.openstack.org"
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
|
@ -61,6 +61,9 @@
|
|||||||
- "{{ node_custom_config }}/designate/designate-backend-bind9/named.conf"
|
- "{{ node_custom_config }}/designate/designate-backend-bind9/named.conf"
|
||||||
- "{{ node_custom_config }}/designate/named.conf"
|
- "{{ node_custom_config }}/designate/named.conf"
|
||||||
- "{{ role_path }}/templates/named.conf.j2"
|
- "{{ role_path }}/templates/named.conf.j2"
|
||||||
|
when:
|
||||||
|
- designate_backend == 'bind9'
|
||||||
|
- inventory_hostname in groups['designate-backend-bind9']
|
||||||
|
|
||||||
- name: Copying over rndc.conf
|
- name: Copying over rndc.conf
|
||||||
template:
|
template:
|
||||||
@ -69,6 +72,10 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- "designate-backend-bind9"
|
- "designate-backend-bind9"
|
||||||
- "designate-worker"
|
- "designate-worker"
|
||||||
|
when:
|
||||||
|
- designate_backend == 'bind9'
|
||||||
|
- inventory_hostname in groups['designate-backend-bind9']
|
||||||
|
or inventory_hostname in groups['designate-worker']
|
||||||
|
|
||||||
- name: Copying over rndc.key
|
- name: Copying over rndc.key
|
||||||
template:
|
template:
|
||||||
@ -77,6 +84,10 @@
|
|||||||
with_items:
|
with_items:
|
||||||
- "designate-backend-bind9"
|
- "designate-backend-bind9"
|
||||||
- "designate-worker"
|
- "designate-worker"
|
||||||
|
when:
|
||||||
|
- designate_backend == 'bind9'
|
||||||
|
- inventory_hostname in groups['designate-backend-bind9']
|
||||||
|
or inventory_hostname in groups['designate-worker']
|
||||||
|
|
||||||
- name: Check if policies shall be overwritten
|
- name: Check if policies shall be overwritten
|
||||||
local_action: stat path="{{ node_custom_config }}/designate/policy.json"
|
local_action: stat path="{{ node_custom_config }}/designate/policy.json"
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
connect_timeout: 1
|
connect_timeout: 1
|
||||||
state: stopped
|
state: stopped
|
||||||
when:
|
when:
|
||||||
|
- designate_backend == 'bind9'
|
||||||
- container_facts['designate_backend_bind9'] is not defined
|
- container_facts['designate_backend_bind9'] is not defined
|
||||||
- inventory_hostname in groups['designate-backend-bind9']
|
- inventory_hostname in groups['designate-backend-bind9']
|
||||||
|
|
||||||
@ -46,5 +47,6 @@
|
|||||||
connect_timeout: 1
|
connect_timeout: 1
|
||||||
state: stopped
|
state: stopped
|
||||||
when:
|
when:
|
||||||
|
- designate_backend == 'bind9'
|
||||||
- container_facts['designate_backend_bind9'] is not defined
|
- container_facts['designate_backend_bind9'] is not defined
|
||||||
- inventory_hostname in groups['designate-backend-bind9']
|
- inventory_hostname in groups['designate-backend-bind9']
|
||||||
|
@ -39,4 +39,6 @@
|
|||||||
action: "pull_image"
|
action: "pull_image"
|
||||||
common_options: "{{ docker_common_options }}"
|
common_options: "{{ docker_common_options }}"
|
||||||
image: "{{ designate_backend_bind9_image_full }}"
|
image: "{{ designate_backend_bind9_image_full }}"
|
||||||
when: inventory_hostname in groups['designate-backend-bind9']
|
when:
|
||||||
|
- designate_backend == 'bind9'
|
||||||
|
- inventory_hostname in groups['designate-backend-bind9']
|
||||||
|
@ -10,7 +10,9 @@
|
|||||||
- "/etc/localtime:/etc/localtime:ro"
|
- "/etc/localtime:/etc/localtime:ro"
|
||||||
- "kolla_logs:/var/log/kolla/"
|
- "kolla_logs:/var/log/kolla/"
|
||||||
- "designate_backend_bind9:/var/lib/named/"
|
- "designate_backend_bind9:/var/lib/named/"
|
||||||
when: inventory_hostname in groups['designate-backend-bind9']
|
when:
|
||||||
|
- designate_backend == 'bind9'
|
||||||
|
- inventory_hostname in groups['designate-backend-bind9']
|
||||||
|
|
||||||
- name: Starting designate-central container
|
- name: Starting designate-central container
|
||||||
kolla_docker:
|
kolla_docker:
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{% if designate_backend == 'bind9' %}
|
||||||
- name: default-bind
|
- name: default-bind
|
||||||
id: {{ designate_pool_id }}
|
id: {{ designate_pool_id }}
|
||||||
description: Default BIND9 Pool
|
description: Default BIND9 Pool
|
||||||
@ -26,3 +27,4 @@
|
|||||||
rndc_port: {{ designate_rndc_port }}
|
rndc_port: {{ designate_rndc_port }}
|
||||||
rndc_key_file: /etc/designate/rndc.key
|
rndc_key_file: /etc/designate/rndc.key
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
@ -253,9 +253,10 @@ kolla_internal_vip_address: "10.10.10.254"
|
|||||||
#######################
|
#######################
|
||||||
# Designate options
|
# Designate options
|
||||||
#######################
|
#######################
|
||||||
|
# Valid options are [ bind9 ]
|
||||||
|
designate_backend: "bind9"
|
||||||
designate_ns_record: "sample.openstack.org"
|
designate_ns_record: "sample.openstack.org"
|
||||||
|
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
# Nova - Compute Options
|
# Nova - Compute Options
|
||||||
#########################
|
#########################
|
||||||
|
Loading…
Reference in New Issue
Block a user