Browse Source

Monitoring metadata, mount dont create fs for nfs

tags/2016.12
Ales Komarek 9 years ago
parent
commit
d8fee8492b
2 changed files with 13 additions and 0 deletions
  1. +4
    -0
      linux/storage/mount.sls
  2. +9
    -0
      metadata/service/system/init.yml

+ 4
- 0
linux/storage/mount.sls View File



{%- if mount.enabled %} {%- if mount.enabled %}


{%- if not mount.file_system in ['nfs'] %}

mkfs_{{ mount.device}}: mkfs_{{ mount.device}}:
cmd.run: cmd.run:
- name: "mkfs.{{ mount.file_system }} -L {{ name }} {{ mount.device }}" - name: "mkfs.{{ mount.file_system }} -L {{ name }} {{ mount.device }}"
- require_in: - require_in:
- mount: {{ mount.path }} - mount: {{ mount.path }}


{%- endif %}

{{ mount.path }}: {{ mount.path }}:
mount.mounted: mount.mounted:
- device: {{ mount.device }} - device: {{ mount.device }}

+ 9
- 0
metadata/service/system/init.yml View File

linux: linux:
system: system:
enabled: true enabled: true
logging:
heka:
enabled: true
metering:
collectd:
enabled: true
monitoring:
sensu:
enabled: true
user: user:
root: root:
enabled: true enabled: true

Loading…
Cancel
Save