This repository has been archived on 2025-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
Files
salt-master/k8s/filesystems.sls
2020-06-18 20:02:49 +02:00

28 lines
586 B
Plaintext

{% set rnd = salt['random.rand_int'](1, 2) %}
{% set vol = 'k8s-data-fast' %}
mount nfs volume-docker:
mount.mounted:
- name: /net/docker
- device: ebin0{{ rnd }}:/docker
- fstype: nfs
- opts: _netdev,rw,defaults,noatime,nodiratime
- mkmnt: True
- persist: True
- dump: 0
- pass_num: 0
mount nfs volume-{{ vol }}:
mount.mounted:
- name: /net/{{ vol }}
- device: ebin0{{ rnd }}:/{{ vol }}
- fstype: nfs
- opts: _netdev,rw,defaults,noatime,nodiratime
- mkmnt: True
- persist: True
- dump: 0
- pass_num: 0