vars.yml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. ---
  2. clusterid: mycluster
  3. region: us-east-1
  4. provision:
  5. clusterid: "{{ clusterid }}"
  6. region: "{{ region }}"
  7. build: # build specific variables here
  8. ami_name: "openshift-gi-"
  9. base_image: ami-bdd5d6ab # base image for AMI to build from
  10. # when creating an encrypted AMI please specify use_encryption
  11. use_encryption: False
  12. ami_tags:
  13. bootstrap: "true"
  14. openshift-created: "true"
  15. clusterid: "{{ clusterid }}"
  16. # Use s3 backed registry storage
  17. openshift_registry_s3: True
  18. # whether to use custome ami for each node type
  19. use_custom_ami: False
  20. # if using custom certificates these are required for the ELB
  21. iam_cert_ca:
  22. name: "{{ clusterid }}_openshift"
  23. cert_path: '/path/to/wildcard.<clusterid>.example.com.crt'
  24. key_path: '/path/to/wildcard.<clusterid>.example.com.key'
  25. chain_path: '/path/to/cert.ca.crt'
  26. instance_users:
  27. - key_name: myuser_key
  28. username: myuser
  29. pub_key: |
  30. ssh-rsa AAAA== myuser@system
  31. node_group_config:
  32. tags:
  33. clusterid: "{{ clusterid }}"
  34. environment: stg
  35. ssh_key_name: myuser_key
  36. # master specific cluster node settings
  37. master:
  38. instance_type: m4.xlarge
  39. ami: ami-cdeec8b6 # if using an encrypted or custom AMI this will be replaced
  40. volumes:
  41. - device_name: /dev/sdb
  42. volume_size: 100
  43. device_type: gp2
  44. delete_on_termination: False
  45. health_check:
  46. period: 60
  47. type: EC2
  48. min_size: 3
  49. max_size: 3
  50. desired_size: 3
  51. tags:
  52. host-type: master
  53. sub-host-type: default
  54. wait_for_instances: True
  55. # compute specific cluster node settings
  56. compute:
  57. instance_type: m4.xlarge
  58. ami: ami-cdeec8b6 # if using an encrypted or custom AMI this will be replaced
  59. volumes:
  60. - device_name: /dev/sdb
  61. volume_size: 100
  62. device_type: gp2
  63. delete_on_termination: True
  64. health_check:
  65. period: 60
  66. type: EC2
  67. min_size: 3
  68. max_size: 100
  69. desired_size: 3
  70. tags:
  71. host-type: node
  72. sub-host-type: compute
  73. # infra specific cluster node settings
  74. infra:
  75. instance_type: m4.xlarge
  76. ami: ami-cdeec8b6 # if using an encrypted or custom AMI this will be replaced
  77. volumes:
  78. - device_name: /dev/sdb
  79. volume_size: 100
  80. device_type: gp2
  81. delete_on_termination: True
  82. health_check:
  83. period: 60
  84. type: EC2
  85. min_size: 2
  86. max_size: 20
  87. desired_size: 2
  88. tags:
  89. host-type: node
  90. sub-host-type: infra
  91. # vpc settings
  92. vpc:
  93. cidr: 172.31.0.0/16
  94. subnets:
  95. us-east-1: # These are us-east-1 region defaults. Ensure this matches your region
  96. - cidr: 172.31.48.0/20
  97. az: "us-east-1c"
  98. - cidr: 172.31.32.0/20
  99. az: "us-east-1e"
  100. - cidr: 172.31.16.0/20
  101. az: "us-east-1a"