Advertisement
Guest User

Untitled

a guest
Jun 28th, 2013
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.03 KB | None | 0 0
  1.  State: - postgres_user
  2.     Name:      yf_dev_master
  3.     Function:  present
  4.         Result:    False
  5.         Comment:   An exception occured in this state: Traceback (most recent call last):
  6.   File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1199, in call
  7.     ret = self.states[cdata['full']](*cdata['args'])
  8.   File "/usr/lib/python2.7/dist-packages/salt/states/postgres_user.py", line 59, in present
  9.     if __salt__['postgres.user_exists'](name, runas=runas):
  10.   File "/usr/lib/python2.7/dist-packages/salt/modules/postgres.py", line 314, in user_exists
  11.     runas=runas)
  12.   File "/usr/lib/python2.7/dist-packages/salt/modules/postgres.py", line 256, in user_list
  13.     runas=None).split('.')
  14. AttributeError: 'NoneType' object has no attribute 'split'
  15. ----
  16. example-postgres-user:
  17.   postgres_user.present:
  18.     - name: {{ pillar['postgresql']['user'] }}
  19.     - createdb: {{ pillar['postgresql']['createdb'] }}
  20.     - password: {{ pillar['postgresql']['password'] }}
  21.     - runas: postgres
  22.     - require:
  23.       - service: postgresql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement