type: string
default: ''
description: List of labels for jenkins swarm agent separated by whitespace
+ location:
+ type: string
+ default: 'EU'
+ description: Backend cluster location (available "EU" and "US")
resources:
wait_condition:
echo "FLAVOR LABELS" > /etc/jenkins-agent/labels
echo "127.0.0.1 $(hostname)" >> /etc/hosts
echo "FLOATING" > /etc/jenkins-agent/description
+ echo "OPENSTACK_ENVIRONMENT" > /etc/jenkins-agent/location
systemctl enable jenkins-swarm-agent
#service jenkins-swarm-agent start
apt update
LABELS: {get_param: jenkins_labels}
wc_notify: { get_attr: [wait_handle, curl_cli] }
FLOATING: { get_attr: [ floating_ip, floating_ip_address ] }
+ OPENSTACK_ENVIRONMENT: {get_param: location}
outputs:
type: string
default: ''
description: List of labels for jenkins swarm agent separated by whitespace
+ location:
+ type: string
+ default: 'EU'
+ description: Backend cluster location (available "EU" and "US")
resources:
wait_condition:
echo "LABELS" > /etc/jenkins-agent/labels
echo "127.0.0.1 $(hostname)" >> /etc/hosts
echo "FLOATING" > /etc/jenkins-agent/description
+ echo "OPENSTACK_ENVIRONMENT" > /etc/jenkins-agent/location
apt update
sed -i 's/^\(GRUB_CMDLINE_LINUX_DEFAULT=\).*$/\1\"console=tty1 console=ttyS0 noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier\"/g' /etc/default/grub.d/50-cloudimg-settings.cfg
LABELS: {get_param: jenkins_labels}
wc_notify: { get_attr: [wait_handle, curl_cli] }
FLOATING: { get_attr: [ floating_ip, floating_ip_address ] }
+ OPENSTACK_ENVIRONMENT: {get_param: location}
outputs:
type: string
default: ''
description: List of labels for jenkins swarm agent separated by whitespace
+ location:
+ type: string
+ default: 'EU'
+ description: Backend cluster location (available "EU" and "US")
resources:
wait_condition:
echo "FLAVOR LABELS" > /etc/jenkins-agent/labels
echo "127.0.0.1 $(hostname)" >> /etc/hosts
echo "FLOATING" > /etc/jenkins-agent/description
+ echo "OPENSTACK_ENVIRONMENT" > /etc/jenkins-agent/location
apt update
sed -i 's/^\(GRUB_CMDLINE_LINUX_DEFAULT=\).*$/\1\"console=tty1 console=ttyS0 noibrs noibpb nopti nospectre_v2 nospectre_v1 l1tf=off nospec_store_bypass_disable no_stf_barrier\"/g' /etc/default/grub.d/50-cloudimg-settings.cfg
LABELS: {get_param: jenkins_labels}
wc_notify: { get_attr: [wait_handle, curl_cli] }
FLOATING: { get_attr: [ floating_ip, floating_ip_address ] }
+ OPENSTACK_ENVIRONMENT: {get_param: location}
outputs:
deactivate
fi
-parameter_string=""
+parameter_string="location=${OPENSTACK_ENVIRONMENT}"
if [[ ! -z "${FLAVOR_NAME}" ]] ; then
parameter_string="flavor=${FLAVOR_NAME};$parameter_string"
fi
if [[ ! -z "${MIRROR_HOST}" ]] ; then
MIRROR_HOST="${MIRROR_HOST}"
else
- MIRROR_HOST="${OPENSTACK_ENVIRONMENT,,}.mirror.fuel-infra.org"
+ location="$(cat /etc/jenkins-agent/location)"
+ MIRROR_HOST="${location,,}.mirror.fuel-infra.org"
fi
###################### Get MIRROR_UBUNTU ###############