Skip to content

Instantly share code, notes, and snippets.

View agarat's full-sized avatar

Arnaldo Garat agarat

  • Thoughtworks
  • Santiago, Chile
View GitHub Profile
@agarat
agarat / mig_update.tf
Last active January 30, 2022 06:40
Managed instance group with forced instance update
resource "google_compute_instance_template" "template" {
name_prefix = "my-template-"
machine_type = "n1-standard-1"
region = "us-central1"
scheduling {
automatic_restart = true
on_host_maintenance = "MIGRATE"
}
@agarat
agarat / managed_instance_group.tf
Created October 9, 2019 15:00
Simple managed instance group definition
resource "google_compute_instance_template" "template" {
name_prefix = "my-template-"
machine_type = "n1-standard-1"
region = "us-central1"
scheduling {
automatic_restart = true
on_host_maintenance = "MIGRATE"
}
@agarat
agarat / Jenkinsfile
Created June 6, 2019 15:55
Pass variable via JSON to a different job in CloudBees Core
/* PIPELINE IN MASTER A (pub) */
pipeline {
agent any
stages {
stage('trigger') {
steps {
publishEvent event: jsonEvent('{"eventName":"remote-trigger", "my_param":"my_value"}'), verbose:true
}
}
}