export BIFROST_IRONIC_INSPECTOR_CLIENT_VERSION=${BIFROST_IRONIC_INSPECTOR_CLIENT_VERSION:-"81ae133bd570ea7359b4797ee5699d2d4233b445"}
# HEAD of osa "stable/rocky" as of 04.01.2019
export OPENSTACK_OSA_VERSION=${OPENSTACK_OSA_VERSION:-"2087cd98f28b35f655ca398d25d2a6c71e38328e"}
+export OPENSTACK_OSH_VERSION="rocky"
# HEAD of osh "master" as of 17.07.2019
export OSH_VERSION=${OSH_VERSION:-"dadf9946e076df2b09556f4a18107dc487788cdd"}
# HEAD of osh-infra "master" as of 16.07.2019
# export INSTALLER_TYPE="kubespray"
export INSTALLER_TYPE=${INSTALLER_TYPE:-osa}
+#Wait upstream in openstack-helm (OSH) to support opensuse
+if [ "$XCI_DISTRO" == "opensuse" ] && [ "$INSTALLER_TYPE" == "osh" ]; then
+ export XCI_DISTRO=ubuntu-bionic
+ export OSH_DISTRO=opensuse
+elif [ "$XCI_DISTRO" == "ubuntu" ] && [ "$INSTALLER_TYPE" == "osh" ]; then
+ export OSH_DISTRO=ubuntu
+fi
+
#-------------------------------------------------------------------------------
# Set DEPLOYMENT
#-------------------------------------------------------------------------------
remote_user: root
vars_files:
- "{{ xci_path }}/xci/var/opnfv.yml"
-
roles:
- role: prepare-opnfvhost-osh
- role: prepare-osh
- role: install-osh-mini
when: xci_flavor == 'mini'
+ environment:
+ - CONTAINER_DISTRO_NAME: "{{ container_distro_name }}"
+ - CONTAINER_DISTRO_VERSION: "{{ container_distro_version }}"
+ - OPENSTACK_RELEASE: "{{ openstack_osh_version }}"
- role: install-osh-noha
when: xci_flavor == 'noha'
+---
+- set_fact:
+ container_distro_name: "opensuse"
+ container_distro_version: "15"
+ cacheable: yes
+ when: osh_distro == 'opensuse'
+ tags:
+ - skip_ansible_lint
+
+- set_fact:
+ container_distro_name: "ubuntu"
+ container_distro_version: "xenial"
+ cacheable: yes
+ when: osh_distro == 'ubuntu'
+ tags:
+ - skip_ansible_lint
+
- name: Setup Clients
command: ./tools/deployment/common/setup-client.sh
changed_when: false
+---
required_packages:
- patch
- ipcalc
- jq
- nmap
- bc
-
- noha
distros:
- ubuntu
+ - opensuse
+ - ubuntu-bionic
- scenario: k8-flannel-nofeature
scm: git
args:
executable: /bin/bash
creates: "{{ xci_path }}/.cache/xci.env"
+
+ #TODO: Create an Ansible variable for
+ # kube_service_addresses(10.233.0.0/18)
+ - name: Update iptables
+ command: "iptables -t nat -I POSTROUTING 3 -s 192.168.122.0/24 -d 10.233.0.0/18 -j RETURN"
+ become: true
+ tags:
+ - skip_ansible_lint
+
+ #Provide access to the external network (for tests)
+ - name: Update iptables
+ command: "iptables -t nat -I POSTROUTING 3 -s 192.168.122.0/24 -d 172.24.4.0/24 -j RETURN"
+ become: true
+ tags:
+ - skip_ansible_lint
osh_infra_version: "{{ lookup('env','OSH_INFRA_VERSION') }}"
osh_helm_binary_url: "{{ lookup('env','OSH_HELM_BINARY_URL') }}"
osh_helm_binary_version: "{{ lookup('env','OSH_HELM_BINARY_VERSION') }}"
+openstack_osh_version: "{{ lookup('env','OPENSTACK_OSH_VERSION') }}"
# variables for other components
keepalived_git_url: "{{ lookup('env','KEEPALIVED_GIT_URL') }}"
core_openstack_install: "{{ lookup('env', 'CORE_OPENSTACK_INSTALL') }}"
deploy_scenario: "{{ lookup('env','DEPLOY_SCENARIO') }}"
installer_type: "{{ lookup('env','INSTALLER_TYPE') }}"
+osh_distro: "{{ lookup('env', 'OSH_DISTRO') }}"
# baremetal variables
baremetal: "{{ lookup('env','BAREMETAL') }}"