Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Testing version - not yet part of library
- bundle agent template_std_flipclass(file, prefix, fileserver, mode, owner, group, class) {
- files:
- "$(file).template"
- copy_from => copy_std("$(prefix)$(file).template",
- "$(fileserver)", "false", "timestamp"),
- perms => mode_owner_group("$(mode)", "$(owner)", "$(group)"),
- action => actionsettings_fix_inform("inform");
- "$(file)"
- perms => mode_owner_group("$(mode)", "$(owner)", "$(group)"),
- create => "true",
- edit_line => expand_variables("$(file).template"),
- # Using the full-featured body here because we need to empty the file
- # client-side first.
- classes => if_repaired("$(class)"),
- edit_defaults => editsettings("timestamp", "true", "50K"),
- action => actionsettings_fix_inform("inform");
- }
Add Comment
Please, Sign In to add comment