Hybrid and Multi-Cloud Overlay — Part 3— DevOps, Tools and Scripting

Jenkins — multi parallel pipeline
  • CLOUD_LIST — “aws_azure_gcp_ali_oracle_vsphere”
  • TUNNEL_TYPE — GENEVE or VXLAN
  • REMOVE_CONFIG
  • TF_VAR_L2_OVERLAY_NETWORK
  • TF_VAR_L2_OVERLAY_v6NETWORK
  • AWS_SECRETS_FILE
  • AZURE_SECRETS_FILE
  • TF_VAR_GCP_KEY_FILE
  • OCI_SECRETS_FILE
  • ALI_SECRETS_FILE
  • VSPHERE_SECRETS_FILE
lock("ipv6 allocations lock") {
echo "$ipv6_index"
starting_index = ipv6_index
clients.add(ReserveIPv6_address())
}
Jenkins — multi parallel pipeline — skipping stages when hub failed
Jenkins — multi parallel pipeline — dynamically removing the failed stage
Jenkins — multi parallel pipeline — single cloud
Jenkins — multi parallel pipeline — three clouds
   stage('Infrastructure changes') {
when {
branch 'master'
}
failFast true
parallel {
stage('VSphere') {
when {
expression {
env.CLOUD_LIST.contains("vsphere")
}
}
steps {
script {
try {
} catch (exc) {
echo "Caught: " + exc.toString()
unstable("${STAGE_NAME} failed!")
}
}
}
}
}
}
    stage('Containers & VMs config') {
steps {
script {
def containers_vm_config_list = [:]
active_cloud_list.split('_').each {
containers_vm_config_list["${it}"] = {
node ('master') {
stage("${it}") {
try {
} catch (exc) {

}
}
}
}
}
parallel containers_vm_config_list
}
}
}
Part 3— Video blog

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ramesh Rajendran

Ramesh Rajendran

15 Followers

Freelancer with 16 years of experience in Hybrid & multi-cloud, security, networking & Infrastructure. Working with C-level execs. Founder zerolatency.solutions