Displaying 1 result from an estimated 1 matches for "clean_up_accounts".
2013 Apr 19
12
How to pass puppet/hiera veriable to external script ? Do I need to ?
...nments/env1/hieradata/common.yaml
classes:
- accounts
/etc/puppet/environments/env1/modules/accounts/manifests/init.pp
class accounts::users (
$accounts,
$groups,
)
{
create_resources(group, $groups)
create_resources(user, $accounts, { notify =>
Exec[''clean_up_accounts''] })
}
class accounts::cleanup
{
exec { "clean_up_accounts":
command => "/script/to/cleanup",
refreshonly => true,
}
}
class accounts {
include accounts::users, accounts::cleanup
}
Is it possible to run th...