Browse Source

Add: sink service in designate

Closes-Bug: #1779941

Change-Id: Idf538ad1c8ae8567aec2eac70446676d42fbdf90
Seb-Solon 9 months ago
parent
commit
2e9921b9fa
2 changed files with 15 additions and 2 deletions
  1. 5
    2
      attributes/default.rb
  2. 10
    0
      recipes/sink.rb

+ 5
- 2
attributes/default.rb View File

@@ -55,21 +55,24 @@ when 'rhel'
55 55
   default['openstack']['dns']['platform'] = {
56 56
     'designate_packages' => ['openstack-designate-api', 'openstack-designate-central',
57 57
                              'openstack-designate-mdns', 'openstack-designate-producer',
58
-                             'openstack-designate-worker'],
58
+                             'openstack-designate-worker', 'openstack-designate-sink'],
59 59
     'designate_api_service' => 'designate-api',
60 60
     'designate_central_service' => 'designate-central',
61
+    'designate_sink_service' => 'designate-sink',
61 62
     'package_overrides' => '',
62 63
   }
63 64
 when 'debian'
64 65
   default['openstack']['dns']['platform'] = {
65 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 69
     'designate_dashboard_packages' => ['python-designate-dashboard'],
68 70
     'designate_api_service' => 'designate-api',
69 71
     'designate_central_service' => 'designate-central',
70 72
     'designate_mdns_service' => 'designate-mdns',
71 73
     'designate_producer_service' => 'designate-producer',
72 74
     'designate_worker_service' => 'designate-worker',
75
+    'designate_sink_service' => 'designate-sink',
73 76
     'package_overrides' => "-o Dpkg::Options::='--force-confold' -o Dpkg::Options::='--force-confdef'",
74 77
   }
75 78
 end

+ 10
- 0
recipes/sink.rb View File

@@ -0,0 +1,10 @@
1
+include_recipe 'openstack-dns::common'
2
+
3
+platform_options = node['openstack']['dns']['platform']
4
+
5
+service '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]'
10
+end

Loading…
Cancel
Save