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

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

PyTorch Basics Part 2

Setting Up a Hitbox Attack System in Unity2D (1): Animated BoxCollider2D and “Attack” Script

Flexbox Zombies

Levelling the Playing Field: Myplanet, CNIB, & HackerYou Partner to Create Accessible…

How to Upload Images to Cloud Storage for Firebase with Swift

Organising your Codebase with Namespaces!

Adroid Todo App, GoTODO! Part 1: Creating an API RESTful with Docker, Go and PostgreSQL

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

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

More from Medium

Ansible variables : choosing the right location

DevOps ?!

On-Demand SCIM provisioning of Azure AD to AWS SSO using Microsoft Graph

CI/CD setup in just 5 mins with basic yaml configuration