|
133 | 133 | ]) |
134 | 134 |
|
135 | 135 | if $remove_pdb { |
136 | | - run_command('puppet resource service puppet ensure=stopped', $convert_legacy_compiler_targets) |
137 | | - run_command('puppet resource service pe-puppetdb ensure=stopped enable=false', $convert_legacy_compiler_targets) |
| 136 | + run_command('/usr/local/bin/puppet resource service puppet ensure=stopped', $convert_legacy_compiler_targets) |
| 137 | + run_command('/usr/local/bin/puppet resource service pe-puppetdb ensure=stopped enable=false', $convert_legacy_compiler_targets) |
138 | 138 | } |
139 | 139 |
|
140 | 140 | run_task('peadm::puppet_runonce', $convert_legacy_compiler_targets) |
|
143 | 143 | run_task('peadm::puppet_runonce', $all_targets) |
144 | 144 |
|
145 | 145 | if $remove_pdb { |
146 | | - run_command('puppet resource package pe-puppetdb ensure=purged', $convert_legacy_compiler_targets) |
147 | | - run_command('puppet resource user pe-puppetdb ensure=absent', $convert_legacy_compiler_targets) |
| 146 | + run_command('/usr/local/bin/puppet resource package pe-puppetdb ensure=purged', $convert_legacy_compiler_targets) |
| 147 | + run_command('/usr/local/bin/puppet resource user pe-puppetdb ensure=absent', $convert_legacy_compiler_targets) |
148 | 148 |
|
149 | 149 | run_command('rm -rf /etc/puppetlabs/puppetdb', $convert_legacy_compiler_targets) |
150 | 150 | run_command('rm -rf /var/log/puppetlabs/puppetdb', $convert_legacy_compiler_targets) |
151 | 151 | run_command('rm -rf /opt/puppetlabs/server/data/puppetdb', $convert_legacy_compiler_targets) |
152 | 152 | } |
153 | 153 |
|
154 | 154 | run_command('systemctl start pe-puppetserver.service', $convert_legacy_compiler_targets) |
155 | | - run_command('puppet resource service puppet ensure=running', $convert_legacy_compiler_targets) |
| 155 | + run_command('/usr/local/bin/puppet resource service puppet ensure=running', $convert_legacy_compiler_targets) |
156 | 156 |
|
157 | 157 | return("Converted host ${convert_legacy_compiler_targets} to legacy compiler.") |
158 | 158 | } |
0 commit comments