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 | |
| # | |
| # vault-ec2-auth.sh | |
| # Authenticates an EC2 instance to Hashicorp Vault | |
| # | |
| # configuration stored in environment variables in /etc/vault/client.conf | |
| # expected configuration (defaults are selected below if none is specified): | |
| # VAULT_ADDR = url of vault server | |
| # VAULT_ROLE = role name to authenticate as |
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
| # Usage curl -#L https://git.io/convoy | sudo bash | |
| CONVOY_VERSION=v0.5.0 | |
| cd /tmp | |
| echo "Downloading convoy ..." | |
| wget -q https://github.com/rancher/convoy/releases/download/$CONVOY_VERSION/convoy.tar.gz -O convoy.tar.gz | |
| echo "Installing convoy ..." |
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 python | |
| from __future__ import print_function | |
| from __future__ import unicode_literals | |
| from prompt_toolkit import prompt | |
| from prompt_toolkit.validation import Validator, ValidationError | |
| from socket import getfqdn | |
| import hvac | |
| import sys | |
| import os |
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 -e | |
| # Setup a Root CA in vault | |
| # Generate and sign an Intermediate cert | |
| # | |
| # Requires: | |
| # * A running vault server already initialzed and unsealed | |
| # * Environment variable VAULT_TOKEN is set | |
| # * vault cli (https://www.vaultproject.io) | |
| # * httpie (https://github.com/jkbrzt/httpie) |
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 -e | |
| # JAVA_HOME can be passed as argument if not set | |
| if [ ! -d $JAVA_HOME ]; then | |
| JAVA_HOME=${1} | |
| fi | |
| KEYSTORE=$JAVA_HOME/jre/lib/security/cacerts | |
| if [ ! -f "$KEYSTORE" ]; then | |
| echo "Keystore not found in '$KEYSTORE'" | |
| exit 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
| # Create the container - we run 'echo' in the container, and reuse the same as we will be running later | |
| docker run -d -v /data --name redis.data dockerfile/redis echo Data-only container for Redis | |
| # the data container doesn't show up - nothing is running | |
| docker ps | |
| # will show 'redis.data', but as stopped | |
| docker ps -a | |
| # start redis, attach to 'redis.data' | |
| docker run -d -p 6379:6379 --volumes-from redis.data --name ca.redis.1 dockerfile/redis |
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
| from:(@progressivege.com OR @onezeero.co.uk OR @damiagroup.com OR @ontheshortlist.co.uk OR @searchability.co.uk OR @ascentpeople.co.uk OR @s-sa.co.uk OR @jobstheword.com OR @tyba.com OR @evosearch.co.uk OR @recann.co.uk OR @rebelrecruitment.co.uk OR @x4group.co.uk OR @yoh.com OR @broadbean.net OR @redskyrecruitment.co.uk OR @xpertise-recruitment.com OR @progressiverecruitment.com OR @linuxrecruit.co.uk OR @unitingambition.com OR @avantirec.com OR @techmodi.net OR @vantageconsulting.co.uk OR @erg-uk.com OR @gsatechsource.com OR @explorerec.com OR @monarchrecruitment.co.uk OR @marinsoftware.com OR @rtrs.co.uk OR @bettercareers.co.uk OR @yolkrecruitment.com OR @jp-jobs.com OR @mobilecontractor.co.uk OR @spring.com OR @senitor.com OR @monarchit.co.uk OR @exploreltd.com OR @lorien.co.uk OR @interactconsulting.co.uk OR @computerpeople.co.uk OR @modis.co.uk OR @evolutionjobs.co.uk OR @lainternational.com OR @project-it.co.uk OR @oscar-associates.com OR @bigredrecruitment.co.uk OR @venturi-group.com OR @jamrecruitmen |
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
| #cloud-config | |
| coreos: | |
| update: | |
| reboot-strategy: etcd-lock | |
| etcd: | |
| discovery: https://discovery.etcd.io/<TOKEN> | |
| addr: $private_ipv4:4001 | |
| peer-addr: $private_ipv4:7001 | |
| key-file: /etc/etcd-ssl/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
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "net/http" | |
| "time" | |
| ) | |
| // SSE writes Server-Sent Events to an HTTP client. |
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 | |
| # | |
| # consul Manage the consul agent | |
| # | |
| # chkconfig: 2345 95 95 | |
| # description: Consul is a tool for service discovery and configuration | |
| # processname: consul | |
| # config: /etc/consul.conf | |
| # pidfile: /var/run/consul.pid |