- Install the application sshpass:
sudo apt install sshpass
- Make sure to set in your
~/.ssh/config
file the following options to prevent ssh from using your pubkey:
# ref: https://coderwall.com/p/ez1x2w/send-mail-like-a-boss | |
# install mailx | |
yum -y install mailx | |
# create a directory with a certificate, to send mail using TLS | |
mkdir ~/.certs | |
certutil -N -d ~/.cert | |
# create a user ~/.mailrc, to use custom settings |
import boto3 | |
# Specify the region where the EC2 instances reside | |
region = 'us-east-1' | |
# Specify the tag key and value to filter the EC2 instances | |
tag_key = 'env' | |
tag_value = 'prod' | |
""" | |
This module provides functionality for making HTTP requests. It leverages the `aiohttp` | |
library for asynchronous HTTP requests, and the `backoff` library to implement exponential | |
backoff in case of failed requests. | |
The module defines a child logger for logging purposes and implements two methods, `on_backoff` | |
and `on_giveup`, which log information about the retry attempts and when the retry attempts are | |
given up respectively. | |
The `http_request` function is the primary function of the module, making an HTTP request with the |
terraform { | |
required_version = ">=0.12, <0.13" | |
} |
terraform { | |
backend "s3" { | |
bucket = "elliott-arnold-dev-bucket" | |
region = "us-east-1" | |
key= "tfstate" | |
} | |
} |
BEGIN { | |
imagePullBackOff=0 | |
running=0 | |
errorImagePull=0 | |
} | |
{ |
--- | |
# Most pre-req tooling, etc. is installed using jumphosts.yml playbook | |
variables: | |
ADMIN_EMAIL: [email protected] | |
CLOUD_PROVIDER: Azure # Define Supported Cloud Provider (Azure) | |
GIT_CRYPT_ENABLED: "true" # Must be lowercase (true|false) | |
GIT_SUBMODULE_STRATEGY: recursive | |
ORGANIZATION: example_org | |
PROJECT_NAME: example_project | |
TERRAFORM_VERSION: 0.12.28 |
for dep in $(kubectl get deployment | awk '{print $1}'); do kubectl get deployment $dep -o yaml > $dep.yml; done |
It took me a while, after multiple knocks on all openstack/cloudbees/jenkins IRCs and googling around, all of them proved to be fruitless that I finally figure what the deal about this parameter all about? | |
before posting the exact details, i just have a little rant : WHY IS THIS NOT IN THE DOCS OF JENKINS JOB BUILDER (JJB ) ??? | |
Jenkins job builder docs are pretty concise and dont go into much details, | |
but anyway: | |
================================= | |
what is credentials-id parameter? | |
================================= | |
so you are writing a yaml file for your job 'foo.yaml' and you need to use a git repo, lets say its in github, | |
now github private repos are snowflaky where you need to provide credentials to github in order to clone them. Following is step-by-step howto: |