Browse Source

Fix devstack/fedora/bind9 support

The package name is 'bind', it was bind even in el6.
Also the bind9 was hardoded instead of using the $BIND_SERVICE_NAME.

Change-Id: I4a02800e5b527f0887c02e9541dc34ac04f5b517
Attila Fazekas 3 years ago
parent
commit
cdeaaf29d8
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      devstack/designate_plugins/backend-bind9

+ 3
- 3
devstack/designate_plugins/backend-bind9 View File

@@ -45,7 +45,7 @@ function install_designate_backend {
45 45
     if is_ubuntu; then
46 46
         install_package bind9
47 47
     elif is_fedora; then
48
-        install_package named
48
+        install_package bind
49 49
     fi
50 50
 
51 51
     # The user that designate runs as needs to be member of **$BIND_GROUP** group.
@@ -134,12 +134,12 @@ function init_designate_backend {
134 134
 
135 135
 # start_designate_backend - start any external services
136 136
 function start_designate_backend {
137
-    start_service bind9
137
+    start_service $BIND_SERVICE_NAME
138 138
 }
139 139
 
140 140
 # stop_designate_backend - stop any external services
141 141
 function stop_designate_backend {
142
-    stop_service bind9
142
+    stop_service $BIND_SERVICE_NAME
143 143
 }
144 144
 
145 145
 # cleanup_designate_backend - remove transient data and cache

Loading…
Cancel
Save