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
| # vim: set fileencoding=utf-8 : | |
| # | |
| # How to store and retrieve gzip-compressed objects in AWS S3 | |
| ########################################################################### | |
| # | |
| # Copyright 2015 Vince Veselosky and contributors | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at |
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
| { | |
| "variables": { | |
| "vault_pass": "{{ env `VAULT_PASS` }}", | |
| "aws_access_key": "{{ env `AWS_ACCESS_KEY` }}", | |
| "aws_secret_key": "{{ env `AWS_SECRET_KEY` }}", | |
| "source_ami_id": "{{ env `SOURCE_AMI_ID` }}", | |
| "playbook": "{{ env `PLAYBOOK` }}", | |
| "ami_description": "{{ env `AMI_DESCRIPTION` }}", | |
| "roles_path": "{{ env `ROLES_PATH` }}" | |
| }, |
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 groovy | |
| /** | |
| * CONFIGURATION | |
| */ | |
| def private_token = "secret_token_from_gitlab" | |
| def repository = "group/repository-name" | |
| /* CONFIGURATION END */ | |
| def repository_name = repository.replace("/", "%2F"); |
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/sh | |
| # | |
| # Brew packages | |
| # | |
| brew install git | |
| # brew install node - having npm install issues, so installed manually | |
| brew install wget | |
| brew install homebrew/php/php56 | |
| brew install homebrew/php/composer | |
| # brew install task - didn't install with gnutls, had to make from source |
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 | |
| # Interpret whether the input needs to go to ansible, or ansible-playbook and run appropriately | |
| # First update the git repos for each project | |
| /usr/bin/update-git-repos | |
| export ANSIBLE_FORCE_COLOR=1 | |
| export ANSIBLE_RETRY_FILES_ENABLED=False |
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
| { | |
| "variables": { | |
| "aws_access_key": "", // This helps me connect to AWS | |
| "aws_secret_key": "" | |
| }, | |
| "builders": [{ | |
| "type": "amazon-ebs", | |
| "access_key": "{{user `aws_access_key`}}", | |
| "secret_key": "{{user `aws_secret_key`}}", | |
| "region": "us-east-1", |
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 variables in .bashrc file | |
| # don't forget to change your path correctly! | |
| export GOPATH=$HOME/golang | |
| export GOROOT=/usr/local/opt/go/libexec | |
| export PATH=$PATH:$GOPATH/bin | |
| export PATH=$PATH:$GOROOT/bin |
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
| --- | |
| ### | |
| # Elasticsearch Rolling restart using Ansible | |
| ### | |
| ## | |
| ## Why is this needed? | |
| ## | |
| # | |
| # Even if you use a serial setting to limit the number of nodes processed at one |
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
| # Ansible RDS Multi-AZ Postgres | |
| # | |
| # Assumes existing Security Group, VPC, and RDS Subnet Groups. | |
| # | |
| # To install Ansible on OSX: | |
| # sudo easy_install pip | |
| # sudo pip install paramiko PyYAML jinja2 (might be prompted to install XCode & re-run) | |
| # sudo pip install ansible | |
| # sudo pip install boto | |
| # sudo mkdir /etc/ansible |
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
| --- | |
| - hosts: app | |
| remote_user: vagrant | |
| sudo: yes | |
| vars: | |
| download_url: http://download.oracle.com/otn-pub/java/jdk/8u5-b13/jdk-8u5-linux-x64.tar.gz | |
| download_folder: /opt | |
| java_name: "{{download_folder}}/jdk1.8.0_05" | |
| java_archive: "{{download_folder}}/jdk-8u5-linux-x64.tar.gz" |