This file contains 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 | |
LOCATION=`S3|http|NFS|ETC|location_of_tar` | |
sudo curl -o /tmp/ca-certs.tar $LOCATION \ | |
&& sudo cd /etc/pki/ca-trust/source/anchors \ | |
&& sudo tar vfx /tmp/ca-certs.tar \ | |
&& sudo /usr/bin/update-ca-trust extract |
This file contains 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
{ | |
"type": "ansible-local", | |
"playbook_file": "ansible/aws-packer.yml", | |
"playbook_dir": "ansible", | |
"staging_directory": "/home/centos/ansible", | |
"inventory_file": "ansible/inventory/aws/hosts" | |
}, |
This file contains 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
#!groovy | |
node { | |
def err = null | |
def environment = "Development" | |
currentBuild.result = "SUCCESS" | |
try { | |
stage ('Checkout') { |
This file contains 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
server { | |
listen 80; | |
server_name localhost; | |
location / { | |
proxy_pass http://apiserver-insecure.kubernetes.l4lb.thisdcos.directory:9000/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/; | |
sub_filter_types text/html; | |
sub_filter_once off; | |
sub_filter '="/' '="/service/kubernetes-dash/'; |
This file contains 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
--- | |
- hosts: hosts | |
vars: | |
tasks: | |
- name: add filebeat yaml config for Non Agents ONLY | |
copy: src=filebeat.yml dest=/etc/filebeat/filebeat.yml owner=root group=root | |
when: "'non-agents' in group_names" | |
- name: add filebeat yaml config for Agents ONLY |
This file contains 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
module "dcos" { | |
source = "dcos-terraform/dcos/aws" | |
cluster_name="my-open-dcos-cluster" | |
ssh_public_key_file="~/.ssh/id_rsa.pub" | |
num_masters = "1" | |
num_private_agents = "2" | |
num_public_agents = "1" |
This file contains 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 | |
sudo apt-get update | |
sudo apt-get install -y gpg | |
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/ | |
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list' | |
sudo apt-get install -y apt-transport-https | |
sudo apt-get update | |
sudo apt-get install -y code |
This file contains 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
# Find Public IP | |
data "http" "whatismyip" { | |
url = "http://whatismyip.akamai.com/" | |
} | |
# Begin Variables | |
variable "aws_ami" { | |
description = "AMI to use" | |
default = "ami-4bf3d731" | |
} |
This file contains 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
# Find Public IP | |
data "http" "whatismyip" { | |
url = "http://whatismyip.akamai.com/" | |
} | |
# Begin Variables | |
variable "aws_ami" { | |
description = "AMI to use" | |
default = "ami-4bf3d731" | |
} |
This file contains 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
{ | |
"dcos-terraform/dcos/aws": { | |
"source": "git::https://github.com/dcos-terraform/terraform-aws-dcos.git?ref=release/v0.2" | |
}, | |
"dcos-terraform/infrastructure/aws": { | |
"source": "git::https://github.com/dcos-terraform/terraform-aws-infrastructure.git?ref=release/v0.2" | |
}, | |
"dcos-terraform/vpc/aws": { | |
"source": "git::https://github.com/dcos-terraform/terraform-aws-vpc.git?ref=release/v0.2" | |
}, |
NewerOlder