puppet-ec2api/manifests/init.pp
Marcos Fermin Lobo 3c5d1a3f97 Changing default params for db/* and init.pp
Change-Id: I5fbc0693eed14cab2f1105fa374346ac8d239ede
2016-04-21 14:46:00 +02:00

33 lines
652 B
Puppet

# == Class: ec2api
#
# Full description of class ec2api here.
#
# === Parameters
#
# [*package_ensure*]
# (Optional) Ensure state for package.
# Defaults to 'present'
#
# [*package_manage*]
# (Optional) Activate/deactivate ec2api package installation.
# Defaults to true
#
#
class ec2api (
$package_ensure = 'present',
$package_manage = true,
){
if $package_manage {
package { 'ec2api':
ensure => $package_ensure,
name => $::ec2api::params::package_manage,
}
Package['ec2api'] ->
File <| title == 'ec2-api-config-file' |>
Package['ec2api'] ->
File <| title == 'ec2-api-paste-ini-file' |>
}
}