vars.yml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. ---
  2. debug_level: 2
  3. deployment_rhel7_ent_base:
  4. # rhel-7.1, requires cloud access subscription
  5. image: "{{ lookup('oo_option', 'ec2_image') | default('ami-10251c7a', True) }}"
  6. image_name: "{{ lookup('oo_option', 'ec2_image_name') | default(None, True) }}"
  7. region: "{{ lookup('oo_option', 'ec2_region') | default('us-east-1', True) }}"
  8. ssh_user: ec2-user
  9. become: yes
  10. keypair: "{{ lookup('oo_option', 'ec2_keypair') | default('libra', True) }}"
  11. type: "{{ lookup('oo_option', 'ec2_instance_type') | default('m4.large', True) }}"
  12. security_groups: "{{ lookup('oo_option', 'ec2_security_groups') | default([ 'public' ], True) }}"
  13. vpc_subnet: "{{ lookup('oo_option', 'ec2_vpc_subnet') | default(omit, True) }}"
  14. assign_public_ip: "{{ lookup('oo_option', 'ec2_assign_public_ip') | default(omit, True) }}"
  15. deployment_vars:
  16. origin:
  17. # centos-7, requires marketplace
  18. image: "{{ lookup('oo_option', 'ec2_image') | default('ami-6d1c2007', True) }}"
  19. image_name: "{{ lookup('oo_option', 'ec2_image_name') | default(None, True) }}"
  20. region: "{{ lookup('oo_option', 'ec2_region') | default('us-east-1', True) }}"
  21. ssh_user: centos
  22. become: yes
  23. keypair: "{{ lookup('oo_option', 'ec2_keypair') | default('libra', True) }}"
  24. type: "{{ lookup('oo_option', 'ec2_instance_type') | default('m4.large', True) }}"
  25. security_groups: "{{ lookup('oo_option', 'ec2_security_groups') | default([ 'public' ], True) }}"
  26. vpc_subnet: "{{ lookup('oo_option', 'ec2_vpc_subnet') | default(omit, True) }}"
  27. assign_public_ip: "{{ lookup('oo_option', 'ec2_assign_public_ip') | default(omit, True) }}"
  28. enterprise: "{{ deployment_rhel7_ent_base }}"
  29. openshift-enterprise: "{{ deployment_rhel7_ent_base }}"
  30. atomic-enterprise: "{{ deployment_rhel7_ent_base }}"
  31. clusterid: mycluster
  32. region: us-east-1
  33. provision:
  34. clusterid: "{{ clusterid }}"
  35. region: "{{ region }}"
  36. build: # build specific variables here
  37. ami_name: "openshift-gi-"
  38. base_image: ami-bdd5d6ab # base image for AMI to build from
  39. yum_repositories: # this is an example repository but it requires sslclient info
  40. - name: openshift-repo
  41. file: openshift-repo
  42. description: OpenShift Builds
  43. baseurl: https://mirror.openshift.com/enterprise/online-int/latest/x86_64/os/
  44. enabled: yes
  45. gpgcheck: no
  46. sslverify: no
  47. sslclientcert: "/var/lib/yum/client-cert.pem"
  48. sslclientkey: "/var/lib/yum/client-key.pem"
  49. gpgkey: "https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-release https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-beta https://mirror.ops.rhcloud.com/libra/keys/RPM-GPG-KEY-redhat-openshifthosted"
  50. # when creating an encrypted AMI please specify use_encryption
  51. use_encryption: False
  52. openshift_ami_tags:
  53. bootstrap: "true"
  54. openshift-created: "true"
  55. clusterid: "{{ clusterid }}"
  56. # Use s3 backed registry storage
  57. openshift_registry_s3: True
  58. # if using custom certificates these are required for the ELB
  59. iam_cert_ca:
  60. name: "{{ clusterid }}_openshift"
  61. cert_path: '/path/to/wildcard.<clusterid>.example.com.crt'
  62. key_path: '/path/to/wildcard.<clusterid>.example.com.key'
  63. chain_path: '/path/to/cert.ca.crt'
  64. instance_users:
  65. - key_name: myuser_key
  66. username: myuser
  67. pub_key: |
  68. ssh-rsa AAAA== myuser@system
  69. node_group_config:
  70. tags:
  71. clusterid: "{{ clusterid }}"
  72. environment: stg
  73. ssh_key_name: myuser_key
  74. # master specific cluster node settings
  75. master:
  76. instance_type: m4.xlarge
  77. ami: ami-cdeec8b6 # if using an encrypted AMI this will be replaced
  78. volumes:
  79. - device_name: /dev/sdb
  80. volume_size: 100
  81. device_type: gp2
  82. delete_on_termination: False
  83. health_check:
  84. period: 60
  85. type: EC2
  86. min_size: 3
  87. max_size: 3
  88. desired_size: 3
  89. tags:
  90. host-type: master
  91. sub-host-type: default
  92. wait_for_instances: True
  93. # compute specific cluster node settings
  94. compute:
  95. instance_type: m4.xlarge
  96. ami: ami-cdeec8b6
  97. volumes:
  98. - device_name: /dev/sdb
  99. volume_size: 100
  100. device_type: gp2
  101. delete_on_termination: True
  102. health_check:
  103. period: 60
  104. type: EC2
  105. min_size: 3
  106. max_size: 100
  107. desired_size: 3
  108. tags:
  109. host-type: node
  110. sub-host-type: compute
  111. # infra specific cluster node settings
  112. infra:
  113. instance_type: m4.xlarge
  114. ami: ami-cdeec8b6
  115. volumes:
  116. - device_name: /dev/sdb
  117. volume_size: 100
  118. device_type: gp2
  119. delete_on_termination: True
  120. health_check:
  121. period: 60
  122. type: EC2
  123. min_size: 2
  124. max_size: 20
  125. desired_size: 2
  126. tags:
  127. host-type: node
  128. sub-host-type: infra
  129. # vpc settings
  130. vpc:
  131. cidr: 172.31.0.0/16
  132. subnets:
  133. us-east-1: # These are us-east-1 region defaults. Ensure this matches your region
  134. - cidr: 172.31.48.0/20
  135. az: "us-east-1c"
  136. - cidr: 172.31.32.0/20
  137. az: "us-east-1e"
  138. - cidr: 172.31.16.0/20
  139. az: "us-east-1a"