Puppet Class: gocd::agent::config

Defined in:
manifests/agent/config.pp

Overview



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'manifests/agent/config.pp', line 18

class gocd::agent::config {
  if $caller_module_name != $module_name {
    fail("Use of private class ${name} from ${caller_module_name}")
  }

  validate_string($::gocd::agent::jvm_min_memory)
  validate_string($::gocd::agent::jvm_max_memory)

  validate_re($::gocd::agent::jvm_min_memory, '^\d+[KkGgMm]$')
  validate_re($::gocd::agent::jvm_max_memory, '^\d+[KkGgMm]$')

  file { '/etc/default/go-agent':
    ensure  => present,
    content => template("${module_name}/go-agent.default.erb"),
    mode    => '0644',
    owner   => 'go',
    group   => 'go',
  }
}