Fixed resource ordering for ceph-mgr

Change-Id: I25043337c79f48c0b73d167ac6b7121086b2994e
This commit is contained in:
Mohammed Naser 2017-09-27 09:44:34 -04:00
parent 3b878cdb0f
commit cb20c32c0b
No known key found for this signature in database
GPG Key ID: 481CBC90384AEC42
1 changed files with 7 additions and 3 deletions

View File

@ -56,10 +56,12 @@ define ceph::mgr (
ensure => directory,
owner => 'ceph',
group => 'ceph',
tag => 'ceph-mgr',
} -> file { "/var/lib/ceph/mgr/${cluster}-${name}":
ensure => directory,
owner => 'ceph',
group => 'ceph',
tag => 'ceph-mgr',
}
if $authentication_type == 'cephx' {
@ -82,11 +84,13 @@ define ceph::mgr (
}
}
# NOTE(mnaser): The ceph-mgr service was introduced in Jewel which ships with
# Xenial and newer, so we don't need an upstart compatibility
# layer in this case.
service { "ceph-mgr@${name}":
ensure => $ensure,
enable => $enable,
tag => 'ceph-mgr',
}
Package<| tag == 'ceph' |>
-> File<| tag == 'ceph-mgr' |>
-> Service<| tag == 'ceph-mgr' |>
}