Prerequisites: Kubernetes cluster and local kubectl configuration
- Look for which service account you want to use
$ kubectl -n kube-system get serviceaccount
- Retrieve the token name
#!/usr/bin/env python | |
# File: filter-vms.py | |
# Description: This is an example script that you can author or modify that retrieves | |
# a list of Azure Virtual Machines from the Relay Interface (in the form of parameters) | |
# and filters the VMs that have no tags. It then sets the output variable `resourceIDs` | |
# to the list of Azure Virtual Machines resource IDs that are untagged. | |
# Inputs: | |
# - virtualMachines - list of Azure Virtual Machines | |
# Outputs: |
parameters: | |
id: | |
default: "" | |
name: | |
default: "" | |
state: | |
default: "" | |
service: | |
default: "" | |
timestamp: |
#! /bin/sh | |
echo $(ni get -p {.name}) | |
echo "hello world" |
apiVersion: v1 | |
description: Update a Relay workflow when a GitHub PR is merged | |
parameters: | |
branch: | |
default: master | |
repository: | |
default: "kenazk/testing" | |
triggers: |
#!/usr/bin/env python | |
import boto3 | |
sess = boto3.Session( | |
aws_access_key_id='MYAWSACCESSKEYID', | |
aws_secret_access_key='MYSECRETACCESSKEY', | |
region_name='us-east-1' | |
) | |
# Creating lists for all, used, and unused key pairs |
#!/usr/bin/env python | |
import boto3 | |
sess = boto3.Session( | |
aws_access_key_id="MYAWSACCESSKEYID", | |
aws_secret_access_key="MYSECRETACCESSKEY", | |
region_name="us-east-1", | |
) |
#!/usr/bin/env python | |
import re | |
from nebula_sdk import Interface, Dynamic as D | |
ni = Interface() | |
if __name__ == '__main__': | |
# For each load balancer => Get target groups => Get targets under target group |
endpoint: https://tickets.puppetlabs.com | |
user: kenaz | |
project: DI | |
editor: vim | |
custom-commands: | |
- name: env | |
help: print the JIRA environment variables available to custom commands | |
script: | | |
env | grep JIRA |
endpoint: https://tickets.puppetlabs.com | |
user: kenaz | |
project: DI | |
editor: vim | |
custom-commands: | |
- name: env | |
help: print the JIRA environment variables available to custom commands | |
script: | | |
env | grep JIRA |