pwgen puppet module This is the pwgen module. Build status Usage include pwgen $password = $fqdn ? { # Length 20 'myhost1.example.com' => pwgen(20)', # Default length, 8 default => pwgen(), } Note that on every run the password will change.