local docker dir again
This commit is contained in:
@@ -47,6 +47,7 @@ common-installed:
|
|||||||
- nfs-common
|
- nfs-common
|
||||||
- mosquitto-clients
|
- mosquitto-clients
|
||||||
- autofs
|
- autofs
|
||||||
|
- python-apt
|
||||||
|
|
||||||
common-removed:
|
common-removed:
|
||||||
pkg.removed:
|
pkg.removed:
|
||||||
|
|||||||
@@ -11,15 +11,33 @@ mount nfs volume-docker:
|
|||||||
- persist: True
|
- persist: True
|
||||||
- dump: 0
|
- dump: 0
|
||||||
- pass_num: 0
|
- pass_num: 0
|
||||||
|
|
||||||
|
|
||||||
|
#{%- for vol in ['k8s-data-slow', 'k8s-data-fast'] %}
|
||||||
|
{%- for vol in ['k8s-data-fast'] %}
|
||||||
|
|
||||||
mount raw volume-docker:
|
mount nfs volume-{{ vol }}:
|
||||||
mount.mounted:
|
mount.mounted:
|
||||||
- name: /var/lib/docker
|
- name: /net/{{ vol }}
|
||||||
- device: /net/docker/{{ grains['nodename'] }}-docker.raw
|
- device: ebin0{{ rnd }}:/{{ vol }}
|
||||||
- fstype: ext4
|
- fstype: nfs
|
||||||
- opts: _netdev,rw,defaults,noatime,nodiratime,x-systemd.requires-mounts-for=/net/docker
|
- opts: _netdev,rw,defaults,noatime,nodiratime
|
||||||
- mkmnt: True
|
- mkmnt: True
|
||||||
|
- persist: True
|
||||||
- dump: 0
|
- dump: 0
|
||||||
- pass_num: 0
|
- pass_num: 0
|
||||||
- require:
|
{%- endfor %}
|
||||||
- mount: /net/docker
|
|
||||||
|
#{%- if grains['nodename'] in ["pine01", "pine02", "pine03"] %}
|
||||||
|
#mount raw volume-docker:
|
||||||
|
# mount.mounted:
|
||||||
|
# - name: /var/lib/docker
|
||||||
|
# - device: /net/docker/{{ grains['nodename'] }}-docker.raw
|
||||||
|
# - fstype: ext4
|
||||||
|
# - opts: _netdev,rw,defaults,noatime,nodiratime,x-systemd.requires-mounts-for=/net/docker
|
||||||
|
# - mkmnt: True
|
||||||
|
# - dump: 0
|
||||||
|
# - pass_num: 0
|
||||||
|
# - require:
|
||||||
|
# - mount: /net/docker
|
||||||
|
#{%- endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user