Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- State: - postgres_user
- Name: yf_dev_master
- Function: present
- Result: False
- Comment: An exception occured in this state: Traceback (most recent call last):
- File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1199, in call
- ret = self.states[cdata['full']](*cdata['args'])
- File "/usr/lib/python2.7/dist-packages/salt/states/postgres_user.py", line 59, in present
- if __salt__['postgres.user_exists'](name, runas=runas):
- File "/usr/lib/python2.7/dist-packages/salt/modules/postgres.py", line 314, in user_exists
- runas=runas)
- File "/usr/lib/python2.7/dist-packages/salt/modules/postgres.py", line 256, in user_list
- runas=None).split('.')
- AttributeError: 'NoneType' object has no attribute 'split'
- ----
- example-postgres-user:
- postgres_user.present:
- - name: {{ pillar['postgresql']['user'] }}
- - createdb: {{ pillar['postgresql']['createdb'] }}
- - password: {{ pillar['postgresql']['password'] }}
- - runas: postgres
- - require:
- - service: postgresql
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement