Skip to content

lab-ztp-ipv6

lab-ztp-ipv6 #169

Workflow file for this run

name: lab-ztp-ipv6
on:
workflow_dispatch:
inputs:
RUNNER:
description: 'Runner Name'
required: true
default: 'u08'
CLIENT:
description: 'Client name'
required: true
default: 'local'
INPUTFILE:
description: 'Input file'
required: true
default: plans/kcli_plan_ztp.yml
PARAMFILE:
description: 'paramfile'
required: false
default: paramfiles/lab_ztp_ipv6.yml
EXTRAPARAMS:
description: 'Extra params'
default: ''
PULLSECRET:
description: 'pullsecret'
required: false
default: /root/openshift_pull.json
LAUNCH_STEPS:
description: 'launch_steps'
required: false
default: True
DEPLOY_OPENSHIFT:
description: 'deploy_openshift'
required: false
default: True
VERSION:
description: 'version'
required: false
default: stable
TAG:
description: 'tag'
required: false
default: "4.13"
env:
HOME: /root
PYTHONUNBUFFERED: true
CLIENT: ${{github.event.inputs.CLIENT}}
PLAN: lab
INPUTFILE: ${{github.event.inputs.INPUTFILE}}
PARAMFILE: ${{github.event.inputs.PARAMFILE}}
EXTRAPARAMS: ${{github.event.inputs.EXTRAPARAMS}}
PULLSECRET: ${{github.event.inputs.PULLSECRET}}
LAUNCH_STEPS: ${{github.event.inputs.LAUNCH_STEPS}}
DEPLOY_OPENSHIFT: ${{github.event.inputs.DEPLOY_OPENSHIFT}}
VERSION: ${{github.event.inputs.VERSION}}
TAG: ${{github.event.inputs.TAG}}
jobs:
requirements:
runs-on: ${{github.event.inputs.RUNNER}}
steps:
- uses: actions/checkout@v3
- run: git pull origin ${GITHUB_REF##*/}
- name: Install kcli
run: |
curl https://raw.githubusercontent.com/karmab/kcli/master/install.sh | bash
# kcli create pool -p /var/lib/libvirt/images default
# sudo setfacl -m u:$(id -un):rwx /var/lib/libvirt/images
deploy-plan:
needs: requirements
runs-on: ${{github.event.inputs.RUNNER}}
steps:
- name: Deploy kcli plan
run: |
kcli -C $CLIENT create plan --force -f $INPUTFILE --paramfile $PARAMFILE -P pullsecret=$PULLSECRET -P launch_steps=$LAUNCH_STEPS -P deploy_openshift=$DEPLOY_OPENSHIFT -P version=$VERSION -P tag=$TAG $EXTRAPARAMS $PLAN