1
0
mirror of https://github.com/jordansissel/fpm synced 2024-12-22 00:34:15 +01:00
fpm/spec/acceptance/puppet/manifests/remove.pp
2016-05-23 11:28:51 -07:00

28 lines
620 B
Puppet

node default {
$package_provider = "$operatingsystem-$operatingsystemrelease" ? {
/^(Fedora|RedHat|CentOS)/ => "rpm",
/^(Debian|Ubuntu)/ => "dpkg",
default => undef,
}
$service_provider = "$operatingsystem-$operatingsystemrelease" ? {
/^CentOS-6/ => "upstart",
default => undef,
}
package {
"example-service":
require => Service["example"],
provider => $package_provider,
source => "example-service-1.0-1.noarch.rpm",
ensure => absent;
}
service {
"example":
provider => $service_provider,
enable => false,
ensure => stopped;
}
}