Advertisement
Guest User

saltstack custom module function

a guest
Jun 10th, 2013
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. def addgroup(user, groupname, path=None):
  2.     '''
  3.    Add a user to a group
  4.    '''
  5.     if __salt__['file.append']('/var/passwd/test.auth "from a function call"'):
  6.         return __salt__['file.append']('/var/passwd/test.auth "from a function call"')
  7.     else:
  8.         return ''
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement