This introduces oslo.messaging variables that define the RPC and Notify transports for the OpenStack services. These parameters replace the rabbitmq values and are used to generate the messaging transport_url for the service. The association of the messaging backend server to the oslo.messaging service will be transparent to the designate service. This patch: * Add oslo.messaging variables for RPC and Notify to defaults * Update transport_url generation (add for notification) * Add oslo.messaging to tests inventory * Update tests * Add releaes note * Update README and example playbook Change-Id: I620a13e1ea3c24c8bd31c02206613d37d769dd30
66 lines
2.4 KiB
YAML
66 lines
2.4 KiB
YAML
---
|
|
# Copyright 2016, Rackspace US, Inc.
|
|
#
|
|
# 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: Playbook for deploying designate
|
|
hosts: designate_all
|
|
user: root
|
|
gather_facts: true
|
|
pre_tasks:
|
|
- include: common/ensure-oslomsg.yml
|
|
rpc_vhost: "{{ designate_oslomsg_rpc_vhost }}"
|
|
rpc_user: "{{ designate_oslomsg_rpc_userid }}"
|
|
rpc_password: "{{ designate_oslomsg_rpc_password }}"
|
|
notify_vhost: "{{ designate_oslomsg_notify_vhost }}"
|
|
notify_user: "{{ designate_oslomsg_notify_userid }}"
|
|
notify_password: "{{ designate_oslomsg_notify_password }}"
|
|
- include: common/create-grant-db.yml
|
|
db_name: "{{ designate_galera_user }}"
|
|
db_password: "{{ designate_galera_password }}"
|
|
- name: Install bind9
|
|
package:
|
|
name: "{{ bind_package_name }}"
|
|
state: present
|
|
- name: Drop bind configuration
|
|
template:
|
|
src: "named.conf.j2"
|
|
dest: "{{ named_config_file }}"
|
|
- name: fix perms for named directory (centos)
|
|
file:
|
|
mode: '0770'
|
|
state: directory
|
|
path: '/var/named/'
|
|
owner: 'root'
|
|
group: 'named'
|
|
when:
|
|
- ansible_pkg_mgr in ['yum', 'dnf']
|
|
- name: Restart bind9
|
|
service:
|
|
name: "{{ bind_service_name }}"
|
|
state: "{{ bind_service_state }}"
|
|
vars:
|
|
named_config_file: "{{ (ansible_pkg_mgr == 'apt') | ternary('/etc/bind/named.conf.options','/etc/named.conf') }}"
|
|
bind_package_name: "{{ (ansible_pkg_mgr == 'apt') | ternary('bind9','bind') }}"
|
|
bind_service_name: "{{ (ansible_pkg_mgr == 'apt') | ternary('bind9','named') }}"
|
|
bind_service_state: "{{ (ansible_pkg_mgr == 'apt') | ternary('restarted','started') }}"
|
|
roles:
|
|
- role: "os_designate"
|
|
post_tasks:
|
|
- name: Restart bind9, for test purposes the designate role drops a common rndc key to both bind and designate
|
|
service:
|
|
name: "{{ bind_service_name }}"
|
|
state: restarted
|
|
vars_files:
|
|
- common/test-vars.yml
|