|
25 | 25 | -> Package <| tag == 'postgresql' |>
|
26 | 26 | }
|
27 | 27 |
|
28 |
| - if $facts['virtual'] == 'docker' { |
29 |
| - # Work-around EL systemd in docker with cgroupsv1? issue and forked services |
30 |
| - # Without this, the puppet agent will stall for 300 seconds waiting for |
31 |
| - # the service to start... then miserably fail. |
32 |
| - # systemd error message: |
33 |
| - # New main PID 1411 does not belong to service, and PID file is not |
34 |
| - # owned by root. Refusing. |
35 |
| - # PIDFile is not needed, but it cannot be reset by a drop-in, therefor the |
36 |
| - # original unit must be modified |
37 |
| - file_line { 'puppetserver-unit-remove-pidfile': |
38 |
| - path => '/lib/systemd/system/puppetserver.service', |
39 |
| - line => '#PIDFile=/run/puppetlabs/puppetserver.pid', |
40 |
| - match => '^PIDFile.*', |
41 |
| - append_on_no_match => false, |
42 |
| - require => Package['puppetserver'], |
43 |
| - notify => Service['puppetserver'], |
44 |
| - } |
| 28 | + # Work-around EL systemd in docker with cgroupsv1? issue and forked services |
| 29 | + # Without this, the puppet agent will stall for 300 seconds waiting for |
| 30 | + # the service to start... then miserably fail. |
| 31 | + # systemd error message: |
| 32 | + # New main PID 1411 does not belong to service, and PID file is not |
| 33 | + # owned by root. Refusing. |
| 34 | + # PIDFile is not needed, but it cannot be reset by a drop-in, therefor the |
| 35 | + # original unit must be modified |
| 36 | + file_line { 'puppetserver-unit-remove-pidfile': |
| 37 | + path => '/lib/systemd/system/puppetserver.service', |
| 38 | + line => '#PIDFile=/run/puppetlabs/puppetserver.pid', |
| 39 | + match => '^PIDFile.*', |
| 40 | + append_on_no_match => false, |
| 41 | + require => Package['puppetserver'], |
| 42 | + notify => Service['puppetserver'], |
45 | 43 | }
|
46 | 44 | }
|
47 | 45 |
|
|
69 | 67 | context => "/files${sysconfdir}/puppetserver",
|
70 | 68 | changes => [
|
71 | 69 | 'set JAVA_ARGS \'"-Xms512m -Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger"\'',
|
72 |
| - "set START_TIMEOUT '30'", |
73 | 70 | ],
|
74 | 71 | }
|
75 | 72 | -> service { 'puppetserver':
|
|
0 commit comments