Displaying 2 results from an estimated 2 matches for "generate_host_keys".
2012 Dec 27
3
generate() function help
Hi.
I want to run script which is distributed with my module, but the
problem is I have to then hardcode the path to the script in the
generate function call, for example:
generate("/etc/puppet/environments/${environment}/modules/mymodule/scripts/myscript")
But what If some other site uses other path to their modules, or doesn''t
use environments at all? Is it possible
2013 Jan 14
7
generate function not working within conditional?
Hi,
could this be a bug?
I have this code:
$mypath = get_module_path(''ssh'')
if generate("${mypath}/scripts/generate_host_keys.sh",
"${keys_dir}/${::fqdn}/ssh") {
notify {''something'':}
include ssh::server::keys
}
generate_host_keys.sh script generates ssh host keys for ssh daemons,
and stores them in private section.
Those files are later defined as resources in class ''ssh:...