Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -bash-4.1# salt -l debug -t 360 vuwunicopatch03.ods.vuw.ac.nz state.sls nfs-banner-prod-client
- [DEBUG ] Reading configuration from /etc/salt/master
- [DEBUG ] Missing configuration file: /root/.saltrc
- [DEBUG ] Configuration file path: /etc/salt/master
- [DEBUG ] Reading configuration from /etc/salt/master
- [DEBUG ] Missing configuration file: /root/.saltrc
- [DEBUG ] LocalClientEvent PUB socket URI: ipc:///var/run/salt/master/master_event_pub.ipc
- [DEBUG ] LocalClientEvent PULL socket URI: ipc:///var/run/salt/master/master_event_pull.ipc
- [DEBUG ] Loaded no_out as virtual quiet
- [DEBUG ] Loaded json_out as virtual json
- [DEBUG ] Loaded yaml_out as virtual yaml
- [DEBUG ] Loaded pprint_out as virtual pprint
- vuwunicopatch03.ods.vuw.ac.nz:
- Data failed to compile:
- ----------
- Rendering SLS nfs-banner-prod-client failed, render error: while parsing a block mapping
- in "<unicode string>", line 11, column 5:
- - dump: 0
- ^
- expected <block end>, but found '-'
- in "<unicode string>", line 12, column 5:
- - pass_num: 0
- ^
- Traceback (most recent call last):
- File "/usr/lib/python2.6/site-packages/salt/state.py", line 2115, in render_state
- sls, rendered_sls=mods
- File "/usr/lib/python2.6/site-packages/salt/template.py", line 84, in compile_template
- ret = render(input_data, saltenv, sls, **render_kwargs)
- File "/usr/lib/python2.6/site-packages/salt/renderers/yaml.py", line 43, in render
- data = load(yaml_data, Loader=get_yaml_loader(argline))
- File "/usr/lib64/python2.6/site-packages/yaml/__init__.py", line 71, in load
- return loader.get_single_data()
- File "/usr/lib64/python2.6/site-packages/yaml/constructor.py", line 37, in get_single_data
- node = self.get_single_node()
- File "/usr/lib64/python2.6/site-packages/yaml/composer.py", line 36, in get_single_node
- document = self.compose_document()
- File "/usr/lib64/python2.6/site-packages/yaml/composer.py", line 55, in compose_document
- node = self.compose_node(None, None)
- File "/usr/lib64/python2.6/site-packages/yaml/composer.py", line 84, in compose_node
- node = self.compose_mapping_node(anchor)
- File "/usr/lib64/python2.6/site-packages/yaml/composer.py", line 133, in compose_mapping_node
- item_value = self.compose_node(node, item_key)
- File "/usr/lib64/python2.6/site-packages/yaml/composer.py", line 82, in compose_node
- node = self.compose_sequence_node(anchor)
- File "/usr/lib64/python2.6/site-packages/yaml/composer.py", line 111, in compose_sequence_node
- node.value.append(self.compose_node(node, index))
- File "/usr/lib64/python2.6/site-packages/yaml/composer.py", line 84, in compose_node
- node = self.compose_mapping_node(anchor)
- File "/usr/lib64/python2.6/site-packages/yaml/composer.py", line 127, in compose_mapping_node
- while not self.check_event(MappingEndEvent):
- File "/usr/lib64/python2.6/site-packages/yaml/parser.py", line 98, in check_event
- self.current_event = self.state()
- File "/usr/lib64/python2.6/site-packages/yaml/parser.py", line 439, in parse_block_mapping_key
- "expected <block end>, but found %r" % token.id, token.start_mark)
- ParserError: while parsing a block mapping
- in "<unicode string>", line 11, column 5:
- - dump: 0
- ^
- expected <block end>, but found '-'
- in "<unicode string>", line 12, column 5:
- - pass_num: 0
- ^
- -bash-4.1# vi nfs-banner-prod-client.sls
- -bash-4.1# more nfs-banner-prod-client.sls
- nfs-tools-client:
- pkg.installed:
- - pkgs:
- - nfs-utils
- /prd_t-drive:
- mount.mounted:
- - device: vuwunicobandt1.ods.vuw.ac.nz:/apps/z/crm/output/t-drive
- - fstype: nfs
- - opts: defaults
- - dump: 0
- - pass_num: 0
- - persist: True
- - mkmnt: True
- -bash-4.1#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement