fix the service names

I also fixed the rgw class and used the 'name as default' approach which
removed the need for one additional variable.

Removed the servcie_provider variable from the params class.

Change-Id: I404421da5df78e06241fd32b52f3b850780901fe
This commit is contained in:
Nick
2017-08-29 16:59:31 +02:00
parent a564389aeb
commit 7f21b323d7
3 changed files with 5 additions and 7 deletions

View File

@@ -88,8 +88,8 @@ define ceph::mon (
if $::service_provider == 'upstart' { if $::service_provider == 'upstart' {
$init = 'upstart' $init = 'upstart'
Service { Service {
name => "ceph-mon-${id}", name => 'ceph-mon',
provider => $::ceph::params::service_provider, provider => $::service_provider,
start => "start ceph-mon id=${id}", start => "start ceph-mon id=${id}",
stop => "stop ceph-mon id=${id}", stop => "stop ceph-mon id=${id}",
status => "status ceph-mon id=${id}", status => "status ceph-mon id=${id}",
@@ -226,7 +226,7 @@ test ! -e ${keyring_path}
} elsif $ensure == absent { } elsif $ensure == absent {
service { $mon_service: service { $mon_service:
ensure => stopped ensure => stopped,
} }
-> exec { "remove-mon-${id}": -> exec { "remove-mon-${id}":
command => "/bin/true # comment to satisfy puppet syntax requirements command => "/bin/true # comment to satisfy puppet syntax requirements

View File

@@ -55,7 +55,6 @@ class ceph::params (
$user_radosgw = 'www-data' $user_radosgw = 'www-data'
$pkg_fastcgi = 'libapache2-mod-fastcgi' $pkg_fastcgi = 'libapache2-mod-fastcgi'
$pkg_nsstools = ['libnss3-tools', 'wget'] $pkg_nsstools = ['libnss3-tools', 'wget']
$service_provider = 'debian'
$pkg_policycoreutils = 'policycoreutils' $pkg_policycoreutils = 'policycoreutils'
} }
@@ -64,7 +63,6 @@ class ceph::params (
$user_radosgw = 'apache' $user_radosgw = 'apache'
$pkg_fastcgi = 'mod_fastcgi' $pkg_fastcgi = 'mod_fastcgi'
$pkg_nsstools = ['nss-tools', 'wget'] $pkg_nsstools = ['nss-tools', 'wget']
$service_provider = 'systemd'
$pkg_policycoreutils = 'policycoreutils-python' $pkg_policycoreutils = 'policycoreutils-python'
} }

View File

@@ -178,11 +178,11 @@ define ceph::rgw (
} }
Service { Service {
name => "radosgw-${name}", name => 'radosgw',
start => "start radosgw id=${name}", start => "start radosgw id=${name}",
stop => "stop radosgw id=${name}", stop => "stop radosgw id=${name}",
status => "status radosgw id=${name}", status => "status radosgw id=${name}",
provider => $::ceph::params::service_provider, provider => $::service_provider,
} }
# Everything else that is supported by puppet-ceph should run systemd. # Everything else that is supported by puppet-ceph should run systemd.
} else { } else {