|
42 | 42 | # }
|
43 | 43 | #
|
44 | 44 | class puppet::agent(
|
45 |
| - $puppet_server = $::puppet::params::puppet_server, |
46 |
| - $puppet_server_port = $::puppet::params::puppet_server_port, |
47 | 45 | $puppet_agent_service = $::puppet::params::puppet_agent_service,
|
48 | 46 | $puppet_agent_package = $::puppet::params::puppet_agent_package,
|
49 | 47 | $version = 'present',
|
50 | 48 | $puppet_run_style = 'service',
|
51 |
| - $puppet_run_interval = 30, |
52 | 49 | $puppet_run_command = '/usr/bin/puppet agent --no-daemonize --onetime --logdest syslog > /dev/null 2>&1',
|
53 | 50 | $user_id = undef,
|
54 | 51 | $group_id = undef,
|
55 |
| - $splay = false, |
56 |
| - $environment = 'production', |
57 |
| - $report = true, |
58 |
| - $pluginsync = true, |
59 |
| - $use_srv_records = false, |
| 52 | + |
| 53 | + #[main] |
| 54 | + $templatedir = undef, |
| 55 | + $syslogfacility = undef, |
| 56 | + $priority = undef, |
| 57 | + |
| 58 | + #[agent] |
60 | 59 | $srv_domain = undef,
|
61 | 60 | $ordering = undef,
|
62 |
| - $templatedir = undef, |
63 | 61 | $trusted_node_data = undef,
|
| 62 | + $environment = 'production', |
| 63 | + $puppet_server = $::puppet::params::puppet_server, |
| 64 | + $use_srv_records = false, |
| 65 | + $puppet_run_interval = 30, |
| 66 | + $splay = false, |
| 67 | + $puppet_server_port = $::puppet::params::puppet_server_port, |
| 68 | + $report = true, |
| 69 | + $pluginsync = true, |
64 | 70 | $listen = false,
|
65 | 71 | $reportserver = '$server',
|
66 | 72 | $digest_algorithm = $::puppet::params::digest_algorithm,
|
67 | 73 | $configtimeout = '2m',
|
68 | 74 | $stringify_facts = undef,
|
| 75 | + $verbose = undef, |
| 76 | + $agent_noop = undef, |
| 77 | + $usecacheonfailure = undef, |
| 78 | + $certname = undef, |
69 | 79 | ) inherits puppet::params {
|
70 | 80 |
|
71 | 81 | if ! defined(User[$::puppet::params::puppet_user]) {
|
|
321 | 331 | value => $stringify_facts,
|
322 | 332 | }
|
323 | 333 | }
|
| 334 | + if $verbose != undef { |
| 335 | + ini_setting {'puppetagentverbose': |
| 336 | + ensure => present, |
| 337 | + setting => 'verbose', |
| 338 | + value => $verbose, |
| 339 | + } |
| 340 | + } |
| 341 | + if $agent_noop != undef { |
| 342 | + ini_setting {'puppetagentnoop': |
| 343 | + ensure => present, |
| 344 | + setting => 'noop', |
| 345 | + value => $agent_noop, |
| 346 | + } |
| 347 | + } |
| 348 | + if $usecacheonfailure != undef { |
| 349 | + ini_setting {'puppetagentusecacheonfailure': |
| 350 | + ensure => present, |
| 351 | + setting => 'usecacheonfailure', |
| 352 | + value => $usecacheonfailure, |
| 353 | + } |
| 354 | + } |
| 355 | + if $syslogfacility != undef { |
| 356 | + ini_setting {'puppetagentsyslogfacility': |
| 357 | + ensure => present, |
| 358 | + setting => 'syslogfacility', |
| 359 | + value => $syslogfacility, |
| 360 | + section => 'main', |
| 361 | + } |
| 362 | + } |
| 363 | + if $certname != undef { |
| 364 | + ini_setting {'puppetagentcertname': |
| 365 | + ensure => present, |
| 366 | + setting => 'certname', |
| 367 | + value => $certname, |
| 368 | + } |
| 369 | + } |
| 370 | + if $priority != undef { |
| 371 | + ini_setting {'puppetagentpriority': |
| 372 | + ensure => present, |
| 373 | + setting => 'priority', |
| 374 | + value => $priority, |
| 375 | + section => 'main', |
| 376 | + } |
| 377 | + } |
324 | 378 | }
|
0 commit comments