1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
module BeakerHostGenerator
module Roles
ROLES = {
'a' => 'agent',
'u' => 'ca',
'l' => 'classifier',
'c' => 'dashboard',
'd' => 'database',
'f' => 'frictionless',
'm' => 'master',
}
CM_CONFIG = { 'main' => {
'dns_alt_names' => 'puppet',
'environmentpath' => '/etc/puppetlabs/puppet/environments',
}
}
ROLE_CONFIG = {
'compile_master' => CM_CONFIG,
'pe_compiler' => CM_CONFIG,
}
module_function
def get_role_config(role)
ROLE_CONFIG[role] || {}
end
end
end
|