|
24 | 24 | -> Package['disable-dnf-postgresql-module'] |
25 | 25 | -> Package <| tag == 'postgresql' |> |
26 | 26 | } |
27 | | - |
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['openvox-server'], |
42 | | - notify => Service['puppetserver'], |
43 | | - } |
44 | 27 | } |
45 | 28 |
|
46 | 29 | $sysconfdir = $facts['os']['family'] ? { |
|
63 | 46 | package { $puppetserver_package: |
64 | 47 | ensure => installed, |
65 | 48 | } |
66 | | -# savagely disable dropsonde |
67 | | -~> file { |
68 | | - [ |
69 | | - '/opt/puppetlabs/server/data/puppetserver/dropsonde/bin/dropsonde', |
70 | | - '/opt/puppetlabs/server/apps/puppetserver/cli/apps/dropsonde', |
71 | | - ]: |
72 | | - ensure => absent, |
73 | | -} |
74 | 49 | -> exec { '/opt/puppetlabs/bin/puppetserver ca setup': |
75 | 50 | creates => '/etc/puppetlabs/puppetserver/ca/ca_crt.pem', |
76 | 51 | } |
|
0 commit comments