main.yml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ---
  2. stack_state: 'present'
  3. ssh_ingress_cidr: 0.0.0.0/0
  4. node_ingress_cidr: 0.0.0.0/0
  5. master_ingress_cidr: 0.0.0.0/0
  6. lb_ingress_cidr: 0.0.0.0/0
  7. bastion_ingress_cidr: 0.0.0.0/0
  8. openstack_num_etcd: 0
  9. openstack_num_masters: 1
  10. openstack_num_nodes: 1
  11. openstack_num_dns: 0
  12. openstack_num_infra: 1
  13. openstack_dns_nameservers: []
  14. openstack_nodes_to_remove: []
  15. openshift_cluster_node_labels:
  16. app:
  17. region: primary
  18. infra:
  19. region: infra
  20. install_debug_packages: false
  21. required_packages:
  22. - docker
  23. - NetworkManager
  24. - wget
  25. - git
  26. - net-tools
  27. - bind-utils
  28. - bridge-utils
  29. debug_packages:
  30. - bash-completion
  31. - vim-enhanced
  32. # container-storage-setup
  33. docker_dev: "/dev/sdb"
  34. docker_vg: "docker-vol"
  35. docker_data_size: "95%VG"
  36. docker_dm_basesize: "3G"
  37. container_root_lv_name: "dockerlv"
  38. container_root_lv_mount_path: "/var/lib/docker"
  39. # populate-dns
  40. dns_records_rm: []
  41. dns_records_add: []
  42. external_nsupdate_keys: {}
  43. full_dns_domain: "{{ (env_id|trim == '') | ternary(public_dns_domain, env_id + '.' + public_dns_domain) }}"
  44. openshift_app_domain: "apps"
  45. # heat vars
  46. stack_name: "{{ env_id }}.{{ public_dns_domain }}"
  47. openstack_subnet_prefix: "192.168.99"
  48. openstack_master_hostname: master
  49. openstack_infra_hostname: infra-node
  50. openstack_node_hostname: app-node
  51. openstack_lb_hostname: lb
  52. openstack_etcd_hostname: etcd
  53. openstack_dns_hostname: dns
  54. openstack_keypair_name: openshift
  55. openstack_lb_flavor: "{{ openstack_default_flavor }}"
  56. openstack_etcd_flavor: "{{ openstack_default_flavor }}"
  57. openstack_master_flavor: "{{ openstack_default_flavor }}"
  58. openstack_node_flavor: "{{ openstack_default_flavor }}"
  59. openstack_infra_flavor: "{{ openstack_default_flavor }}"
  60. openstack_dns_flavor: "{{ openstack_default_flavor }}"
  61. openstack_master_image: "{{ openstack_default_image_name }}"
  62. openstack_infra_image: "{{ openstack_default_image_name }}"
  63. openstack_node_image: "{{ openstack_default_image_name }}"
  64. openstack_lb_image: "{{ openstack_default_image_name }}"
  65. openstack_etcd_image: "{{ openstack_default_image_name }}"
  66. openstack_dns_image: "{{ openstack_default_image_name }}"
  67. openstack_provider_network_name: False
  68. openstack_external_network_name: False
  69. openstack_private_network: >-
  70. {% if openstack_provider_network_name | default(None) -%}
  71. {{ openstack_provider_network_name }}
  72. {%- else -%}
  73. {{ openstack_private_network_name | default ('openshift-ansible-' + stack_name + '-net') }}
  74. {%- endif -%}
  75. openstack_master_server_group_policies: []
  76. openstack_infra_server_group_policies: []
  77. openstack_master_volume_size: "{{ docker_volume_size }}"
  78. openstack_infra_volume_size: "{{ docker_volume_size }}"
  79. openstack_node_volume_size: "{{ docker_volume_size }}"
  80. openstack_etcd_volume_size: 2
  81. openstack_dns_volume_size: 1
  82. openstack_lb_volume_size: 5
  83. openstack_use_bastion: false
  84. openshift_ui_ssh_tunnel: false