(#11693) Add package_ensure param to glance class
This commit adds a class parameter to specify what the ensure state of the glance package should be. This parameter has been added to allow a user to specufy rather or not glance should be upgraded.
This commit is contained in:
parent
f8b922582d
commit
2bf87bcc2f
|
@ -1,4 +1,6 @@
|
|||
class glance {
|
||||
class glance(
|
||||
package_ensure = 'present'
|
||||
) {
|
||||
file { '/etc/glance/':
|
||||
ensure => directory,
|
||||
owner => 'glance',
|
||||
|
@ -6,5 +8,5 @@ class glance {
|
|||
mode => 770,
|
||||
require => Package['glance']
|
||||
}
|
||||
package { 'glance': ensure => present }
|
||||
package { 'glance': ensure => $package_ensure }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue