#!/bin/bash
set -x
# usage:
# wget -O - https://repo.nga911.com/tools/reinit_puppet.sh | bash

sudo rm -rf /etc/puppetlabs/puppet/ssl
sudo rpm -ihv https://repo.nga911.com/centos/8/noarch/puppet/puppet_init-2023.09-2.el8.noarch.rpm
# sudo dnf install -y puppet_init
sudo systemctl start puppet_init
sudo systemctl restart puppet
sudo journalctl -flu puppet
