Update pools management way
In Mitaka since [1] it is recommended to use pools.yaml
file to manage pools in Designate.
[1] https://github.com/openstack/designate/commit/e612a3974fe6bb411c1a97f0b27186ef7d6c8e0d
Change-Id: I12f0b32fd230c75a52de09e1d49a18e01ab97b03
diff --git a/designate/server/cluster.yml b/designate/server/cluster.yml
index 573ac66..33eb632 100644
--- a/designate/server/cluster.yml
+++ b/designate/server/cluster.yml
@@ -43,17 +43,14 @@
user: openstack
password: ${_param:rabbitmq_openstack_password}
virtual_host: '/openstack'
- pool:
- pool_id: ${_param:designate_pool_id}
- nameservers:
- - uuid: ${_param:designate_node1_uuid}
- host: ${_param:cluster_node01_address}
- port: 53
- - uuid: ${_param:designate_node2_uuid}
- host: ${_param:cluster_node02_address}
- port: 53
- targets:
- uuid: ${_param:designate_target_uuid}
- options: 'port: 53, host: 127.0.0.1'
- masters: 127.0.0.1:5354
- type: ${_param:designate_target_type}
+ pools:
+ default:
+ description: 'default pool'
+ ns_records: ${_param:designate_pool_ns_records}
+ nameservers: ${_param:designate_pool_nameservers}
+ targets:
+ default:
+ type: ${_param:designate_pool_target_type}
+ description: 'default target'
+ masters: ${_param:designate_pool_target_masters}
+ options: ${_param:designate_pool_target_options}