---
release: master
ovb_repo_version: stable/1.0

tmp:
  idnum: "{{ 100000 |random }}"

os_username: admin
os_password: password
os_tenant_name: admin
os_auth_url: 'http://10.0.1.10:5000/v2.0'
os_region_name: 'regionOne'
cloud_name: rdocloud

stack_name: 'baremetal_{{ idnum }}'
rc_file: /home/{{ ansible_user }}/overcloudrc
node_name: 'undercloud'
ssh_extra_args: '-F "{{ local_working_dir }}/ssh.config.ansible"'
undercloud_key: "{{ local_working_dir }}/id_rsa_undercloud"
nodepool_user: 'zuul'
node_groups:
  - 'undercloud'
  - 'tester'
templates_dir: "{{ local_working_dir }}/openstack-virtual-baremetal/templates"
ovb_dir: "{{ local_working_dir }}/openstack-virtual-baremetal"
heat_template: "{{ templates_dir }}/quintupleo.yaml"
environment_list:
  - "{{ templates_dir }}/resource-registry.yaml"
  - "{{ local_working_dir }}/env-{{ idnum }}.yaml"
boot_from_volume: false
baremetal_boot_from_volume_size: 50
undercloud_boot_from_volume_size: 50

latest_guest_image:
  newton: CentOS-7-x86_64-GenericCloud-released-latest
  ocata: CentOS-7-x86_64-GenericCloud-released-latest
  pike: CentOS-7-x86_64-GenericCloud-released-latest
  queens: CentOS-7-x86_64-GenericCloud-released-latest
  master: CentOS-7-x86_64-GenericCloud-released-latest
  rhos-11: rhel-7.4-server-x86_64-latest
  rhos-12: rhel-7.4-server-x86_64-latest
  rhos-13: rhel-7.4-server-x86_64-latest

port_security: true

baremetal_ports_template:
  multiple-nics: baremetal-ports-all.yaml
  multi-nic: baremetal-ports-all.yaml
  public-bond: baremetal-ports-public-bond.yaml

baremetal_port_security_template:
  none: baremetal-ports-default-port-security.yaml
  multiple-nics: baremetal-ports-all-port-security.yaml
  multi-nic: baremetal-ports-all-port-security.yaml
  public-bond: baremetal-ports-public-bond-port-security.yaml

existing_key_location: '~/.ssh/id_rsa'
remove_image_from_host_cloud: false

bmc_flavor: m1.medium
bmc_image: 'bmc-base'
bmc_prefix: 'bmc-{{ idnum }}'

baremetal_flavor: m1.large
baremetal_image: 'ipxe-boot'
baremetal_prefix: 'baremetal-{{ idnum }}'

key_name: 'key-{{ idnum }}'
private_net: 'private-{{ idnum }}'
node_count: 2
public_net: 'public-{{ idnum }}'
provision_net: 'provision-{{ idnum }}'
provision_net_cidr: 192.0.2.0/24

# QuintupleO-specific params ignored by virtual-baremetal.yaml
undercloud_name: 'undercloud-{{ idnum }}'
undercloud_image: 'undercloud-{{ idnum }}.qcow2'
undercloud_flavor: m1.xlarge
external_net: '10.2.1.0/22'

network_isolation_type: multiple-nics

registered_releases:
  - newton
  - ocata
  - pike
  - master
  - rhos-11
  - rhos-12
  - rhos-13

baremetal_driver: >-
  {% if release not in ['newton', 'ocata', 'pike'] -%}
  "ipmi"
  {%- else -%}
  "pxe_ipmitool"
  {%- endif -%}

# OVB environment clean up
cleanup_stacks_keypairs: false
cleanup_stacks_keypairs_script: cleanup-stacks-keypairs.sh.j2
cleanup_stacks_keypairs_log: "{{ local_working_dir }}/cleanup_stacks_keypairs.log"
