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
terraform { | |
required_providers { | |
tfe = { | |
source = "hashicorp/tfe" | |
} | |
} | |
} | |
provider "tfe" { | |
alias = "default" |
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
--- | |
cluster_name: rancher | |
ignore_docker_version: true | |
cloud_provider: | |
name: aws | |
nodes: | |
- address: <IP1> | |
user: ubuntu | |
role: [controlplane,etcd,worker] | |
ssh_key_path: ~/.ssh/<key>.pem |
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
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: filebeat-config | |
namespace: kube-system | |
labels: | |
k8s-app: filebeat | |
kubernetes.io/cluster-service: "true" | |
data: |
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
- pipeline.id: beats-intake | |
pipeline.workers: 2 | |
config.string: | | |
input { | |
beats { | |
port => 5044 | |
ssl => true | |
ssl_certificate => "/etc/pki/tls/certs/logstash-forwarder.crt" | |
ssl_key => "/etc/pki/tls/private/logstash-forwarder.key" | |
id => "beats_input" |
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
--- | |
asg_extra_tags: | |
- asg_extra: | |
- system: product1 | |
- billing: Account1 | |
elb_group_rules: | |
- rules: | |
- proto: tcp | |
from_port: 80 |
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 ruby | |
whereami = "/cust/tools/bin/whereami" | |
ecndir = "/cust/tools/etc/envdef/envs" | |
sysinvfilename = "systeminventory.txt" | |
sysinv = File.open(sysinvfilename, "a") | |
dirs = Dir.entries("#{ecndir}") | |
dirs.sort! |
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
#!/bin/bash | |
rsync -vrlptgo /var/staging/hiera/hiera/ /var/lib/hiera/ --chmod=Du+rwx,go=rx,Fu+rw,go=r --del | |
chown -R root:root /var/lib/hiera | |
for environment in `ls /var/staging/environments` | |
do | |
echo "this is environment ${environment}" | |
cd /var/staging/environments/${environment} | |
commit=`git log -1 | grep commit` | |
echo "${commit}" | |
echo `cat /var/staging/${environment}-commit` |