Created
March 16, 2015 21:30
-
-
Save claflico/5747a609a020fa2dbd20 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class truth::enforcer { | |
$server_roles = hiera('server_roles') | |
$host_cloud = hiera('host_cloud') | |
$package_versions = hiera('package_versions') | |
add_roles { $server_roles: | |
cloud => $host_cloud, | |
package_versions => $package_versions, | |
} | |
} | |
define add_roles($cloud = 'vmware', $package_versions = {}) { | |
case $name { | |
"base": { | |
include crontab | |
include hosts | |
include git | |
include postfix | |
include puppet | |
include puppet::agent | |
include rsyslog | |
include ssh::known_hosts::global | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment