Browse Source

azure: format data disk for docker use

Jim Minter 6 years ago
parent
commit
77795a6ae8
1 changed files with 10 additions and 0 deletions
  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