Module: BeakerHostGenerator::Roles

Included in:
Generator
Defined in:
lib/beaker-hostgenerator/roles.rb

Constant Summary collapse

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,
}

Class Method Summary collapse

Class Method Details

.get_role_config(role) ⇒ Object



25
26
27
# File 'lib/beaker-hostgenerator/roles.rb', line 25

def get_role_config(role)
  ROLE_CONFIG[role] || {}
end