浏览代码

Monitoring metadata, mount dont create fs for nfs

tags/2016.12
Ales Komarek 9 年前
父节点
当前提交
d8fee8492b
共有 2 个文件被更改,包括 13 次插入0 次删除
  1. +4
    -0
      linux/storage/mount.sls
  2. +9
    -0
      metadata/service/system/init.yml

+ 4
- 0
linux/storage/mount.sls 查看文件

@@ -5,6 +5,8 @@

{%- if mount.enabled %}

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

mkfs_{{ mount.device}}:
cmd.run:
- name: "mkfs.{{ mount.file_system }} -L {{ name }} {{ mount.device }}"
@@ -12,6 +14,8 @@ mkfs_{{ mount.device}}:
- require_in:
- mount: {{ mount.path }}

{%- endif %}

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

+ 9
- 0
metadata/service/system/init.yml 查看文件

@@ -4,6 +4,15 @@ parameters:
linux:
system:
enabled: true
logging:
heka:
enabled: true
metering:
collectd:
enabled: true
monitoring:
sensu:
enabled: true
user:
root:
enabled: true

正在加载...
取消
保存