876e857b29
Due to a patch in RDO packaging, puppet-glance is broken for RHEL platforms.
This reverts commit 5f15e05704
.
Change-Id: I7ba146714d1b0e8d461c556eff5a9f8c4ad9627f
33 lines
712 B
Puppet
33 lines
712 B
Puppet
# == class: glance
|
|
#
|
|
# base glance config.
|
|
#
|
|
# === parameters:
|
|
#
|
|
# [*package_ensure*]
|
|
# (Optional) Ensure state for package. On Ubuntu this setting
|
|
# is ignored since Ubuntu has separate API and registry packages.
|
|
# Defaults to 'present'
|
|
#
|
|
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,
|
|
tag => ['openstack'],
|
|
}
|
|
}
|
|
}
|