Skip to content

Instantly share code, notes, and snippets.

View auth-day's full-sized avatar
🙃
yum yum yum

Dmitry B auth-day

🙃
yum yum yum
  • Russia saint petersburg
View GitHub Profile
@auth-day
auth-day / Jenkinsfile
Created November 6, 2018 15:36 — forked from oifland/Jenkinsfile
Loops in Jenkinsfiles
// Related to https://issues.jenkins-ci.org/browse/JENKINS-26481
abcs = ['a', 'b', 'c']
node('master') {
stage('Test 1: loop of echo statements') {
echo_all(abcs)
}
stage('Test 2: loop of sh commands') {
| AWS region code | AWS region name | Number of AZs | AZ names |
------------------|-----------------|:-------------:|-------------------------------------------------|
| us-east-1 | Virginia | 4 | us-east-1a, us-east-1b, us-east-1c, us-east-1e |
| us-west-1 | N. California | 2 | us-west-1a, us-west-1b |
| us-west-2 | Oregon | 3 | us-west-2a, us-west-2b, us-west-2c |
| eu-west-1 | Ireland | 3 | eu-west-1a, eu-west-1b, eu-west-1c |
| eu-central-1 | Frankfurt | 2 | eu-central-1a, eu-central-1b |
| ap-southeast-1 | Singapore | 2 | ap-southeast-1a, ap-southeast-1b |
| ap-southeast-2 | Sydney | 2 | ap-southeast-2a, ap-southeast-2b, ap-southeast-2c |
| ap-northeast-1 | Tokyo | 2 | ap-northeast-1a, ap-nort
@auth-day
auth-day / create_vm_kvm.sh
Last active September 9, 2018 12:05
Create vm in kvm
#!/bin/bash
virt-install -n $1 \
--noautoconsole \
--network=bridge:virbr0 \
--ram 2024 \
--arch=x86_64 \
--vcpus=2 \
--cpu host-model-only \
--check-cpu \
@auth-day
auth-day / ks.cfg
Created September 9, 2018 11:47
Sooooooooo basic kickstart file
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
cdrom
# Use graphical install
graphical
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=vda
#!/bin/bash
yum -y update
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm -y
yum install ansible git -y
vars_prompt:
- name: "user"
prompt: "Enter user"
- name: "pass"
prompt: "Enter pass"
# Install https://www.vaultproject.io/
brew install vault
# Start dev vault server in a separate terminal
vault server -dev
# ==> Vault server configuration:
# ...
# Unseal Key: 7ACQHhLZY5ivzNzhMruX9kSa+VXCah3y87hl3dPSWFk=
# Root Token: 858a6658-682e-345a-e4c4-a6e14e6f7853