Skip to content

Instantly share code, notes, and snippets.

@twecker137
twecker137 / rancher-cluster.yml
Created July 14, 2020 09:13
Trying to upgrade rke cluster
cluster_name: pi-rancher
kubernetes_version: v1.17.2-rancher1-2
nodes:
- address: 10.10.1.2
hostname_override: service-rancher-2 # friendly name for Rancher
user: devadmin
role: [ "controlplane", "etcd", "worker" ]
ssh_key_path: /root/.ssh/id_rsa
- address: 10.10.1.3
@twecker137
twecker137 / pipeline.gdsl
Last active December 10, 2018 10:02 — forked from ggarcia24/pipeline.gdsl
GDSL supporting pipeline declarative
//The global script scope
def ctx = context(scope: scriptScope())
//What things can be on the script scope
contributor(ctx) {
method(name: 'pipeline', type: 'Object', params: [body: Closure])
property(name: 'params', type: 'org.jenkinsci.plugins.workflow.cps.ParamsVariable')
property(name: 'env', type: 'org.jenkinsci.plugins.workflow.cps.EnvActionImpl.Binder')
property(name: 'currentBuild', type: 'org.jenkinsci.plugins.workflow.cps.RunWrapperBinder')
property(name: 'scm', type: 'org.jenkinsci.plugins.workflow.multibranch.SCMVar')