Browse Source

azure: disable waagent data disk management

Jim Minter 6 years ago
parent
commit
4dd794219b
1 changed files with 2 additions and 4 deletions
  1. 2 4
      playbooks/azure/openshift-cluster/build_node_image.yml

+ 2 - 4
playbooks/azure/openshift-cluster/build_node_image.yml

@@ -69,15 +69,13 @@
       list: installed
     register: yum
 
-  - name: setup data disk
+  - name: disable waagent data disk management
     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' }
+    - { regexp: '^ResourceDisk\.Format=', line: 'ResourceDisk.Format=n' }
 
   - name: run waagent deprovision
     shell: sleep 2 && waagent -deprovision+user -force