3c5d1a3f97
Change-Id: I5fbc0693eed14cab2f1105fa374346ac8d239ede
33 lines
652 B
Puppet
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' |>
|
|
}
|
|
}
|