pre_remove() {
  if [[ -f /run/puppetlabs/agent.pid ]]; then
    systemctl stop puppet
  fi
}
