Advertisement
Guest User

Untitled

a guest
Dec 9th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.84 KB | None | 0 0
  1. #### initial pillar file :
  2.  
  3. environment: office
  4. interface: 'nobond'
  5. groups_software: ['admin']
  6.  
  7.  
  8. role:
  9.   - pillartest1
  10.  
  11.  
  12. # if i use
  13.  
  14. include:
  15.  - minions.pillartest
  16.  
  17. # => it works, BUT IF I USE:
  18.  
  19. include:
  20.   - minions.pillartest:
  21.       key: role
  22.  
  23. #=> it doesn't work and i have an error:
  24. 2013-12-09 16:38:09,233 [salt.loader                                 ][CRITICAL] Failed to load grains defined in grain file opts.opts in function <function opts at 0x20f5578>, error:
  25. Traceback (most recent call last):
  26.  File "/usr/lib/python2.6/site-packages/salt/loader.py", line 908, in gen_grains
  27.     ret = fun()
  28.   File "/usr/lib/python2.6/site-packages/salt/grains/opts.py", line 12, in opts
  29.     if __opts__.get('grain_opts', False) or __pillar__.get('grain_opts', False):
  30. AttributeError: 'str' object has no attribute 'get'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement