Puppet Class: puppet::agent::config

Defined in:
manifests/agent/config.pp

Overview



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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# File 'manifests/agent/config.pp', line 1

class puppet::agent::config {
  include puppet
  include puppet::agent
  include puppet::params

  Ini_setting {
    path    => $puppet::params::puppet_conf,
    ensure  => 'present',
  }

  ini_setting { 'server':
    section => 'main',
    setting => 'server',
    value   => $puppet::agent::server,
  }

  ini_setting { 'ca_server':
    section => 'main',
    setting => 'ca_server',
    value   => $puppet::agent::real_ca_server,
  }

  ini_setting { 'report_server':
    section => 'main',
    setting => 'report_server',
    value   => $puppet::agent::real_report_server,
  }

  if $puppet::agent::report_format {
    ini_setting { 'report_format':
      section => 'main',
      setting => 'report_format',
      value   => $puppet::agent::report_format,
    }
  }

  ini_setting { 'pluginsync':
    section => 'main',
    setting => 'pluginsync',
    value   => $puppet::agent::pluginsync,
  }

  ini_setting { 'logdir':
    section => 'main',
    setting => 'logdir',
    value   => $puppet::logdir,
  }

  ini_setting { 'vardir':
    section => 'main',
    setting => 'vardir',
    value   => $puppet::vardir,
  }

  ini_setting { 'ssldir':
    section => 'main',
    setting => 'ssldir',
    value   => $puppet::ssldir,
  }

  ini_setting { 'rundir':
    section => 'main',
    setting => 'rundir',
    value   => $puppet::rundir,
  }

  ini_setting { 'certname':
    section => 'agent',
    setting => 'certname',
    value   => $puppet::agent::certname,
  }

  ini_setting { 'report':
    section => 'agent',
    setting => 'report',
    value   => $puppet::agent::report,
  }

  ini_setting { 'environment':
    section => 'agent',
    setting => 'environment',
    value   => $puppet::agent::environment,
  }

  ini_setting { 'show_diff':
    section => 'agent',
    setting => 'show_diff',
    value   => $puppet::agent::showdiff,
  }

  ini_setting { 'splay':
    section => 'agent',
    setting => 'splay',
    value   => $puppet::agent::splay,
  }

  ini_setting { 'configtimeout':
    section => 'agent',
    setting => 'configtimeout',
    value   => $puppet::agent::configtimeout,
  }

  ini_setting { 'usecacheonfailure':
    section => 'agent',
    setting => 'usecacheonfailure',
    value   => $puppet::agent::usecacheonfailure,
  }
}