Guillaume Coré
2018-02-07 b79d7c4eae69100508d0ef4015e5f04778a8ea5d
ocp-workshop: add optional rootfs_type

For production ocp-workshop we want to change rootfs to use SSD
3 files modified
15 ■■■■■ changed files
ansible/configs/ocp-workshop/env_vars.yml 11 ●●●●● patch | view | raw | blame | history
ansible/configs/ocp-workshop/files/cloud_providers/ec2_cloud_template.j2 1 ●●●● patch | view | raw | blame | history
scripts/examples/ocp-workshop-cns.rc 3 ●●●●● patch | view | raw | blame | history
ansible/configs/ocp-workshop/env_vars.yml
@@ -235,6 +235,12 @@
rootfs_size_bastion: 20
rootfs_size_support: 20
rootfs_type_node: standard
rootfs_type_infranode: standard
rootfs_type_master: standard
rootfs_type_bastion: standard
rootfs_type_support: standard
instances:
  - name: "bastion"
    count: 1
@@ -249,6 +255,7 @@
      - key: "ostype"
        value: "linux"
    rootfs_size: "{{ rootfs_size_bastion }}"
    rootfs_type: "{{ rootfs_type_bastion }}"
  - name: "master"
    count: "{{master_instance_count}}"
@@ -262,6 +269,7 @@
      - key: "ostype"
        value: "linux"
    rootfs_size: "{{ rootfs_size_master }}"
    rootfs_type: "{{ rootfs_type_master }}"
    volumes:
      - device_name: "{{docker_device}}"
        volume_size: 20
@@ -279,6 +287,7 @@
      - key: "ostype"
        value: "linux"
    rootfs_size: "{{ rootfs_size_node }}"
    rootfs_type: "{{ rootfs_type_node }}"
    volumes:
      - device_name: "{{docker_device}}"
        volume_size: 100
@@ -296,6 +305,7 @@
      - key: "ostype"
        value: "linux"
    rootfs_size: "{{ rootfs_size_infranode }}"
    rootfs_type: "{{ rootfs_type_infranode }}"
    volumes:
      - device_name: "{{docker_device}}"
        volume_size: 50
@@ -313,6 +323,7 @@
      - key: "ostype"
        value: "linux"
    rootfs_size: "{{ rootfs_size_support }}"
    rootfs_type: "{{ rootfs_type_support }}"
    volumes:
      - device_name: "{{nfs_pvs}}"
        volume_size: "{{nfs_size}}"
ansible/configs/ocp-workshop/files/cloud_providers/ec2_cloud_template.j2
@@ -269,6 +269,7 @@
        - DeviceName: "/dev/sda1"
          Ebs:
            VolumeSize: {{ instance['rootfs_size'] | default('50') }}
            VolumeType: {{ instance['rootfs_type'] | default('standard') }}
{% for vol in instance['volumes']|default([]) if
  (vol.purpose|d('') == 'glusterfs' and install_glusterfs|bool)
  or (vol.purpose|d('') == 'nfs' and install_nfs|bool)
scripts/examples/ocp-workshop-cns.rc
@@ -17,4 +17,7 @@
-e own_repo_path=http://admin.example.com/repos/ocp/3.7.23
-e repo_version=3.7
-e ocp_report=true
-e rootfs_type_node=gp2
-e rootfs_type_master=gp2
-e rootfs_type_infranode=gp2
)