81f5841260
Change-Id: I7aa1918c481e842bc7d555f87dda7eb78b003483
27 lines
526 B
Puppet
27 lines
526 B
Puppet
#
|
|
# base glance config.
|
|
#
|
|
# == parameters
|
|
# * package_ensure - ensure state for package.
|
|
#
|
|
class glance(
|
|
$package_ensure = 'present'
|
|
) {
|
|
|
|
include glance::params
|
|
|
|
file { '/etc/glance/':
|
|
ensure => directory,
|
|
owner => 'glance',
|
|
group => 'root',
|
|
mode => '0770',
|
|
}
|
|
|
|
if ( $glance::params::api_package_name == $glance::params::registry_package_name ) {
|
|
package { $glance::params::api_package_name :
|
|
ensure => $package_ensure,
|
|
name => $::glance::params::package_name,
|
|
}
|
|
}
|
|
}
|