summaryrefslogtreecommitdiffstats
path: root/playbooks/aws/openshift-cluster/templates/user_data.j2
blob: db14bacd1091fb5426a118d736bf2bbb5ec2f389 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#cloud-config
{% if type == 'node' %}
mounts:
- [ xvdb ]
- [ ephemeral0 ]

write_files:
- content: |
    DEVS=/dev/xvdb
    VG=docker_vg
  path: /etc/sysconfig/docker-storage-setup
  owner: root:root
  permissions: '0644'
{% endif %}

{% if deployment_type == 'online' %}
devices: ['/var'] # Workaround for https://bugs.launchpad.net/bugs/1455436

disable_root: 0
growpart:
  mode: auto
  devices: ['/var']
runcmd:
- xfs_growfs /var
{% endif %}