diff options
author | Clayton Coleman <ccoleman@redhat.com> | 2017-08-27 20:35:31 -0400 |
---|---|---|
committer | Clayton Coleman <ccoleman@redhat.com> | 2017-09-14 13:49:55 -0400 |
commit | 2c69867f9678591d9cf4aa762967afb2cf8d631c (patch) | |
tree | 273571ff15354977959ae033a7db6241366558e0 /roles/openshift_gcp_image_prep | |
parent | f8393b7aef78c92437fe78092821a8d0a11c22cc (diff) | |
download | openshift-2c69867f9678591d9cf4aa762967afb2cf8d631c.tar.gz openshift-2c69867f9678591d9cf4aa762967afb2cf8d631c.tar.bz2 openshift-2c69867f9678591d9cf4aa762967afb2cf8d631c.tar.xz openshift-2c69867f9678591d9cf4aa762967afb2cf8d631c.zip |
Port origin-gce roles for cluster setup to copy AWS provisioning
This is a rough cut of the existing origin-gce structure (itself a
refined version of the ref arch). I've removed everything except core
cluster provisioning, image building, and inventory setup. Node groups
are part of the "all at once" provisioning but can be changed.
Diffstat (limited to 'roles/openshift_gcp_image_prep')
-rw-r--r-- | roles/openshift_gcp_image_prep/files/partition.conf | 3 | ||||
-rw-r--r-- | roles/openshift_gcp_image_prep/tasks/main.yaml | 18 |
2 files changed, 21 insertions, 0 deletions
diff --git a/roles/openshift_gcp_image_prep/files/partition.conf b/roles/openshift_gcp_image_prep/files/partition.conf new file mode 100644 index 000000000..b87e5e0b6 --- /dev/null +++ b/roles/openshift_gcp_image_prep/files/partition.conf @@ -0,0 +1,3 @@ +[Service] +ExecStartPost=-/usr/bin/growpart /dev/sda 1 +ExecStartPost=-/sbin/xfs_growfs / diff --git a/roles/openshift_gcp_image_prep/tasks/main.yaml b/roles/openshift_gcp_image_prep/tasks/main.yaml new file mode 100644 index 000000000..fee5ab618 --- /dev/null +++ b/roles/openshift_gcp_image_prep/tasks/main.yaml @@ -0,0 +1,18 @@ +--- +# GCE instances are starting with xfs AND barrier=1, which is only for extfs. +- name: Remove barrier=1 from XFS fstab entries + lineinfile: + path: /etc/fstab + regexp: '^(.+)xfs(.+?),?barrier=1,?(.*?)$' + line: '\1xfs\2 \4' + backrefs: yes + +- name: Ensure the root filesystem has XFS group quota turned on + lineinfile: + path: /boot/grub2/grub.cfg + regexp: '^(.*)linux16 (.*)$' + line: '\1linux16 \2 rootflags=gquota' + backrefs: yes + +- name: Ensure the root partition grows on startup + copy: src=partition.conf dest=/etc/systemd/system/google-instance-setup.service.d/ |