summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeb-Solon <openid@pyseb.cx>2018-07-05 09:11:59 -0400
committerSeb-Solon <openid@pyseb.cx>2018-07-20 09:15:50 -0400
commit2e9921b9faa77e6f7e57afa94715b49a7a534887 (patch)
treeaae1898c08b3fd98981bca7b7395ef8f268fc6ed
parent4674b7a5324ac21af5df3d7fe0f63a8cbc756585 (diff)
Add: sink service in designate
Notes
Notes (review): Code-Review+2: Samuel Cassiba <s@cassiba.com> Workflow+1: Samuel Cassiba <s@cassiba.com> Verified+2: Zuul Submitted-by: Zuul Submitted-at: Fri, 20 Jul 2018 19:52:28 +0000 Reviewed-on: https://review.openstack.org/580381 Project: openstack/cookbook-openstack-dns Branch: refs/heads/master
-rw-r--r--attributes/default.rb7
-rw-r--r--recipes/sink.rb10
2 files changed, 15 insertions, 2 deletions
diff --git a/attributes/default.rb b/attributes/default.rb
index 1425a9d..ffdf7b4 100644
--- a/attributes/default.rb
+++ b/attributes/default.rb
@@ -55,21 +55,24 @@ when 'rhel'
55 default['openstack']['dns']['platform'] = { 55 default['openstack']['dns']['platform'] = {
56 'designate_packages' => ['openstack-designate-api', 'openstack-designate-central', 56 'designate_packages' => ['openstack-designate-api', 'openstack-designate-central',
57 'openstack-designate-mdns', 'openstack-designate-producer', 57 'openstack-designate-mdns', 'openstack-designate-producer',
58 'openstack-designate-worker'], 58 'openstack-designate-worker', 'openstack-designate-sink'],
59 'designate_api_service' => 'designate-api', 59 'designate_api_service' => 'designate-api',
60 'designate_central_service' => 'designate-central', 60 'designate_central_service' => 'designate-central',
61 'designate_sink_service' => 'designate-sink',
61 'package_overrides' => '', 62 'package_overrides' => '',
62 } 63 }
63when 'debian' 64when 'debian'
64 default['openstack']['dns']['platform'] = { 65 default['openstack']['dns']['platform'] = {
65 'designate_packages' => ['designate-api', 'designate-central', 'designate-mdns', 66 'designate_packages' => ['designate-api', 'designate-central', 'designate-mdns',
66 'designate-producer', 'designate-worker', 'bind9utils'], 67 'designate-producer', 'designate-worker', 'bind9utils',
68 'designate-sink'],
67 'designate_dashboard_packages' => ['python-designate-dashboard'], 69 'designate_dashboard_packages' => ['python-designate-dashboard'],
68 'designate_api_service' => 'designate-api', 70 'designate_api_service' => 'designate-api',
69 'designate_central_service' => 'designate-central', 71 'designate_central_service' => 'designate-central',
70 'designate_mdns_service' => 'designate-mdns', 72 'designate_mdns_service' => 'designate-mdns',
71 'designate_producer_service' => 'designate-producer', 73 'designate_producer_service' => 'designate-producer',
72 'designate_worker_service' => 'designate-worker', 74 'designate_worker_service' => 'designate-worker',
75 'designate_sink_service' => 'designate-sink',
73 'package_overrides' => "-o Dpkg::Options::='--force-confold' -o Dpkg::Options::='--force-confdef'", 76 'package_overrides' => "-o Dpkg::Options::='--force-confold' -o Dpkg::Options::='--force-confdef'",
74 } 77 }
75end 78end
diff --git a/recipes/sink.rb b/recipes/sink.rb
new file mode 100644
index 0000000..7cba167
--- /dev/null
+++ b/recipes/sink.rb
@@ -0,0 +1,10 @@
1include_recipe 'openstack-dns::common'
2
3platform_options = node['openstack']['dns']['platform']
4
5service 'designate_sink' do
6 service_name platform_options['designate_sink_service']
7 supports status: true, restart: true
8 action :enable
9 subscribes :restart, 'template[/etc/designate/designate.conf]'
10end