File: roles.rb

package info (click to toggle)
ruby-beaker-hostgenerator 1.7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,556 kB
  • sloc: ruby: 3,059; makefile: 3
file content (31 lines) | stat: -rw-r--r-- 630 bytes parent folder | download | duplicates (2)
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