summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason DeTiberus <jdetiber@redhat.com>2015-07-09 11:38:26 -0400
committerJason DeTiberus <jdetiber@redhat.com>2015-07-09 14:24:22 -0400
commit76ad5ac0475a6d1d643b833d19aa0240b3ac95a5 (patch)
tree7268d90a0bd0fe80a11dff7a39e92389e37caaee
parentaadcbc4507a489d4a4d0bfa451e9aa69f22b550f (diff)
downloadopenshift-76ad5ac0475a6d1d643b833d19aa0240b3ac95a5.tar.gz
openshift-76ad5ac0475a6d1d643b833d19aa0240b3ac95a5.tar.bz2
openshift-76ad5ac0475a6d1d643b833d19aa0240b3ac95a5.tar.xz
openshift-76ad5ac0475a6d1d643b833d19aa0240b3ac95a5.zip
grow and resize /var partition for online deployment_type
-rw-r--r--playbooks/aws/openshift-cluster/templates/user_data.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/playbooks/aws/openshift-cluster/templates/user_data.j2 b/playbooks/aws/openshift-cluster/templates/user_data.j2
index aea43026f..22cccd977 100644
--- a/playbooks/aws/openshift-cluster/templates/user_data.j2
+++ b/playbooks/aws/openshift-cluster/templates/user_data.j2
@@ -1,4 +1,6 @@
#cloud-config
+devices: ['/var'] # Workaround for https://bugs.launchpad.net/bugs/1455436
+
mounts:
- [ xvdb ]
- [ ephemeral0 ]
@@ -13,4 +15,9 @@ write_files:
{% if deployment_type == 'online' %}
disable_root: 0
+growpart:
+ mode: auto
+ devices: ['/var']
+runcmd:
+- xfs_growfs /var
{% endif %}