Skip to content

Instantly share code, notes, and snippets.

@claflico
Created March 16, 2015 21:30
Show Gist options
  • Save claflico/5747a609a020fa2dbd20 to your computer and use it in GitHub Desktop.
Save claflico/5747a609a020fa2dbd20 to your computer and use it in GitHub Desktop.
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