openstack-ansible-os_designate/tasks/designate_db_setup.yml
Tim Simmons b9adeab14f Enable current Designate services
designate-pool-manager and designate-zone-manager are deprecated
in favor of designate-worker and designate-producer. This enables
those services.

This does not functionally change the way Designate works, so the
associated config changes are minimal. This does remove some
cumbersome pool manager cache configuration that is no longer
needed, but wasn't being used anyway. It also simplifies the
Designate architecture by making the separation of duties easier
to grok, and enables simple horizontal scaling by starting more
``designate-worker`` processes.

Change-Id: I7adb2cea21136c18f36e0ed6404989d4e5de8e4d
2017-02-03 20:41:44 +00:00

29 lines
1.0 KiB
YAML

---
# Copyright 2016, Tata Consultancy Services
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Perform a Designate DB sync
command: "{{ designate_bin }}/designate-manage database sync"
become: yes
become_user: "{{ designate_system_user_name }}"
changed_when: false
- name: Perform a Designate DNS pools update
command: "{{ designate_bin }}/designate-manage pool update"
become: yes
become_user: "{{ designate_system_user_name }}"
changed_when: false
when: designate_pools_yaml is defined
notify: Restart designate services