user_data.j2 445 B

12345678910111213141516171819202122232425
  1. #cloud-config
  2. {% if type == 'node' %}
  3. mounts:
  4. - [ xvdb ]
  5. - [ ephemeral0 ]
  6. write_files:
  7. - content: |
  8. DEVS=/dev/xvdb
  9. VG=docker_vg
  10. path: /etc/sysconfig/docker-storage-setup
  11. owner: root:root
  12. permissions: '0644'
  13. {% endif %}
  14. {% if deployment_type == 'online' %}
  15. devices: ['/var'] # Workaround for https://bugs.launchpad.net/bugs/1455436
  16. disable_root: 0
  17. growpart:
  18. mode: auto
  19. devices: ['/var']
  20. runcmd:
  21. - xfs_growfs /var
  22. {% endif %}