Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions plans/convert_compiler_to_legacy.pp
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@
])

if $remove_pdb {
run_command('puppet resource service puppet ensure=stopped', $convert_legacy_compiler_targets)
run_command('puppet resource service pe-puppetdb ensure=stopped enable=false', $convert_legacy_compiler_targets)
run_command('/usr/local/bin/puppet resource service puppet ensure=stopped', $convert_legacy_compiler_targets)
run_command('/usr/local/bin/puppet resource service pe-puppetdb ensure=stopped enable=false', $convert_legacy_compiler_targets)
}

run_task('peadm::puppet_runonce', $convert_legacy_compiler_targets)
Expand All @@ -143,16 +143,16 @@
run_task('peadm::puppet_runonce', $all_targets)

if $remove_pdb {
run_command('puppet resource package pe-puppetdb ensure=purged', $convert_legacy_compiler_targets)
run_command('puppet resource user pe-puppetdb ensure=absent', $convert_legacy_compiler_targets)
run_command('/usr/local/bin/puppet resource package pe-puppetdb ensure=purged', $convert_legacy_compiler_targets)
run_command('/usr/local/bin/puppet resource user pe-puppetdb ensure=absent', $convert_legacy_compiler_targets)

run_command('rm -rf /etc/puppetlabs/puppetdb', $convert_legacy_compiler_targets)
run_command('rm -rf /var/log/puppetlabs/puppetdb', $convert_legacy_compiler_targets)
run_command('rm -rf /opt/puppetlabs/server/data/puppetdb', $convert_legacy_compiler_targets)
}

run_command('systemctl start pe-puppetserver.service', $convert_legacy_compiler_targets)
run_command('puppet resource service puppet ensure=running', $convert_legacy_compiler_targets)
run_command('/usr/local/bin/puppet resource service puppet ensure=running', $convert_legacy_compiler_targets)

return("Converted host ${convert_legacy_compiler_targets} to legacy compiler.")
}
Loading