Explorar o código

azure: format data disk for docker use

Jim Minter %!s(int64=6) %!d(string=hai) anos
pai
achega
77795a6ae8
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  1. 10 0
      playbooks/azure/openshift-cluster/build_node_image.yml

+ 10 - 0
playbooks/azure/openshift-cluster/build_node_image.yml

@@ -62,6 +62,16 @@
       list: installed
     register: yum
 
+  - name: setup data disk
+    lineinfile:
+      path: /etc/waagent.conf
+      regexp: "{{ item.regexp }}"
+      line: "{{ item.line }}"
+    with_items:
+    - { regexp: '^ResourceDisk\.Filesystem=', line: 'ResourceDisk.Filesystem=xfs' }
+    - { regexp: '^ResourceDisk\.MountPoint=', line: 'ResourceDisk.MountPoint=/var/lib/docker' }
+    - { regexp: '^ResourceDisk\.MountOptions=', line: 'ResourceDisk.MountOptions=rw,relatime,seclabel,attr2,inode64,grpquota' }
+
   - name: run waagent deprovision
     shell: sleep 2 && waagent -deprovision+user -force
     async: 1