#!/bin/sh
cd /tmp
dnf install -y http://yum.puppet.com/puppet-release-fedora-36.noarch.rpm
dnf install puppet-agent -y
cat > /etc/puppetlabs/puppet/puppet.conf <<-EOF
[main]

[agent]
pluginsync      = true
report          = true
ignoreschedules = true
ca_server       = puppet.default.svc.k8s.digiworks.se
environment     = production
server          = puppet.default.svc.k8s.digiworks.se
EOF
/opt/puppetlabs/bin/puppet agent -t
