Guest User

Untitled

a guest
Oct 2nd, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. # Testing version - not yet part of library
  2. bundle agent template_std_flipclass(file, prefix, fileserver, mode, owner, group, class) {
  3.  
  4. files:
  5.  
  6. "$(file).template"
  7. copy_from => copy_std("$(prefix)$(file).template",
  8. "$(fileserver)", "false", "timestamp"),
  9. perms => mode_owner_group("$(mode)", "$(owner)", "$(group)"),
  10. action => actionsettings_fix_inform("inform");
  11.  
  12. "$(file)"
  13. perms => mode_owner_group("$(mode)", "$(owner)", "$(group)"),
  14. create => "true",
  15. edit_line => expand_variables("$(file).template"),
  16. # Using the full-featured body here because we need to empty the file
  17. # client-side first.
  18. classes => if_repaired("$(class)"),
  19. edit_defaults => editsettings("timestamp", "true", "50K"),
  20. action => actionsettings_fix_inform("inform");
  21.  
  22. }
Add Comment
Please, Sign In to add comment