#!/usr/bin/env bash

# Use:
# $0 CERTNAME

# Example:
# $0 storage0.internal.staging.swh.network

set -x

CERTNAME=$1
puppet node deactivate $CERTNAME
puppet cert clean $CERTNAME
systemctl restart apache2

#!/usr/bin/env bash

# Use:
# $0 CERTNAME ...

# Example:
# $0 storage0.internal.staging.swh.network db0.internal.staging.swh.network

set -x

puppet node clean $@
puppet cert clean $@
systemctl restart apache2

Improve puppet clean script to clean up exported resources as well
Improve puppet clean script to clean up exported resources as well

And make the script multi input parametric
