Shared functions for puppet hardening.