This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
set exrc | |
set encoding=UTF-8 | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" ==== plugin manager |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# copy pub keys to the remote hosts | |
for host in ubuntu1 centos1 dnsmasq1; | |
do | |
ssh-copy-id -i $HOME/.ssh/id_rsa.pub ${host} | |
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# -- debug | |
set -xe | |
if ! [ -x "$(command -v puppet)" ]; then | |
# -- write hostname correctly | |
hostname $(curl --silent "http://metadata.google.internal/computeMetadata/v1/instance/attributes/hostname" -H "Metadata-Flavor: Google") | |
# -- delcare configs | |
str=$'[main]\ndns=none' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PROD ORG | |
export TF_VAR_org_id=25xxxxxxxx | |
#-- BILLING INFO -- | |
export TF_VAR_billing_account=01xxxxxxxx65FBF-xxxxx | |
#-- PROJECT_NAME -- | |
export TF_ADMIN=us-gcp-xxxxxxxxxxxstg-1 | |
#-- SERVICE_ACC_NAME -- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/env/bash env | |
set -ex | |
# define our roles to be applied to our folders | |
declare -a folder_roles=( | |
"roles/resourcemanager.folderAdmin" | |
"roles/bigquery.admin" | |
"roles/cloudfunctions.admin" | |
"roles/cloudkms.admin" | |
"roles/cloudsql.admin" |
OlderNewer