Advertisement
Guest User

Untitled

a guest
Jul 31st, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.72 KB | None | 0 0
  1. -bash-4.1# salt -l debug -t 360 vuwunicopatch03.ods.vuw.ac.nz state.sls nfs-banner-prod-client
  2. [DEBUG ] Reading configuration from /etc/salt/master
  3. [DEBUG ] Missing configuration file: /root/.saltrc
  4. [DEBUG ] Configuration file path: /etc/salt/master
  5. [DEBUG ] Reading configuration from /etc/salt/master
  6. [DEBUG ] Missing configuration file: /root/.saltrc
  7. [DEBUG ] LocalClientEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc
  8. [DEBUG ] LocalClientEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc
  9. [DEBUG ] Loaded no_out as virtual quiet
  10. [DEBUG ] Loaded json_out as virtual json
  11. [DEBUG ] Loaded yaml_out as virtual yaml
  12. [DEBUG ] Loaded pprint_out as virtual pprint
  13. vuwunicopatch03.ods.vuw.ac.nz:
  14. Data failed to compile:
  15. ----------
  16. Rendering SLS nfs-banner-prod-client failed, render error: while parsing a block mapping
  17. in "<unicode string>", line 11, column 5:
  18. - dump: 0
  19. ^
  20. expected <block end>, but found '-'
  21. in "<unicode string>", line 12, column 5:
  22. - pass_num: 0
  23. ^
  24. Traceback (most recent call last):
  25. File "/usr/lib/python2.6/site-packages/salt/state.py", line 2115, in render_state
  26. sls, rendered_sls=mods
  27. File "/usr/lib/python2.6/site-packages/salt/template.py", line 84, in compile_template
  28. ret = render(input_data, saltenv, sls, **render_kwargs)
  29. File "/usr/lib/python2.6/site-packages/salt/renderers/yaml.py", line 43, in render
  30. data = load(yaml_data, Loader=get_yaml_loader(argline))
  31. File "/usr/lib64/python2.6/site-packages/yaml/__init__.py", line 71, in load
  32. return loader.get_single_data()
  33. File "/usr/lib64/python2.6/site-packages/yaml/constructor.py", line 37, in get_single_data
  34. node = self.get_single_node()
  35. File "/usr/lib64/python2.6/site-packages/yaml/composer.py", line 36, in get_single_node
  36. document = self.compose_document()
  37. File "/usr/lib64/python2.6/site-packages/yaml/composer.py", line 55, in compose_document
  38. node = self.compose_node(None, None)
  39. File "/usr/lib64/python2.6/site-packages/yaml/composer.py", line 84, in compose_node
  40. node = self.compose_mapping_node(anchor)
  41. File "/usr/lib64/python2.6/site-packages/yaml/composer.py", line 133, in compose_mapping_node
  42. item_value = self.compose_node(node, item_key)
  43. File "/usr/lib64/python2.6/site-packages/yaml/composer.py", line 82, in compose_node
  44. node = self.compose_sequence_node(anchor)
  45. File "/usr/lib64/python2.6/site-packages/yaml/composer.py", line 111, in compose_sequence_node
  46. node.value.append(self.compose_node(node, index))
  47. File "/usr/lib64/python2.6/site-packages/yaml/composer.py", line 84, in compose_node
  48. node = self.compose_mapping_node(anchor)
  49. File "/usr/lib64/python2.6/site-packages/yaml/composer.py", line 127, in compose_mapping_node
  50. while not self.check_event(MappingEndEvent):
  51. File "/usr/lib64/python2.6/site-packages/yaml/parser.py", line 98, in check_event
  52. self.current_event = self.state()
  53. File "/usr/lib64/python2.6/site-packages/yaml/parser.py", line 439, in parse_block_mapping_key
  54. "expected <block end>, but found %r" % token.id, token.start_mark)
  55. ParserError: while parsing a block mapping
  56. in "<unicode string>", line 11, column 5:
  57. - dump: 0
  58. ^
  59. expected <block end>, but found '-'
  60. in "<unicode string>", line 12, column 5:
  61. - pass_num: 0
  62. ^
  63.  
  64. -bash-4.1# vi nfs-banner-prod-client.sls
  65. -bash-4.1# more nfs-banner-prod-client.sls
  66. nfs-tools-client:
  67. pkg.installed:
  68. - pkgs:
  69. - nfs-utils
  70.  
  71. /prd_t-drive:
  72. mount.mounted:
  73. - device: vuwunicobandt1.ods.vuw.ac.nz:/apps/z/crm/output/t-drive
  74. - fstype: nfs
  75. - opts: defaults
  76. - dump: 0
  77. - pass_num: 0
  78. - persist: True
  79. - mkmnt: True
  80.  
  81. -bash-4.1#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement