Skip to content

Instantly share code, notes, and snippets.

Created March 16, 2016 16:28
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/653fa2185953c77c3fd9 to your computer and use it in GitHub Desktop.
{% for mounts, attrs in salt['pillar.get']('local_disk_mounts:' ~ grains['host'] ~ , {}).iteritems() %}
mount.mounted:
- name: {{ attrs['name'] }}
- device: {{ attrs['device'] }}
- fstype: {{ attrs['fstype'] }}
- mkmnt: True
- opts:
- defaults
{% endfor %}
hnode00:
sdb:
- name: /mnt/data1
- device: /dev/sdb1
- fstype: ext4
sdc:
- name: /mnt/data2
- device: /dev/sdc1
- fstype: ext4
hnode01:
sdb:
- name: /mnt/data1
- device: /dev/sdb1
- fstype: ext4
sdc:
- name: /mnt/data2
- device: /dev/sdc1
- fstype: ext4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment