Skip to content

Instantly share code, notes, and snippets.

@jarus

jarus/nfs.sls Secret

Created August 14, 2013 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarus/18dfc4521463ed627447 to your computer and use it in GitHub Desktop.
Save jarus/18dfc4521463ed627447 to your computer and use it in GitHub Desktop.
osm_downloads:
mount.mounted:
- name: /mnt/osm
- device: 192.168.1.123:/srv/osm_downloads
- fstype: nfs
- mkmnt: True
- opts:
- ro
- require:
- pkg: nfs
State: - mount
Name: /mnt/osm
Function: mounted
Result: False
Comment: An exception occurred in this state: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/salt/state.py", line 1239, in call
ret = self.states[cdata['full']](*cdata['args'])
File "/usr/lib/python2.7/dist-packages/salt/states/mount.py", line 109, in mounted
if ret['changes']['mount']:
KeyError: 'mount'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment