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 | |
INSTALL_DIR="${1:-/opt/terraform}" | |
URL="https://releases.hashicorp.com/terraform" | |
VER="$(curl -sL $URL | grep -v beta | grep -Po "_(\d*\.?){3}" | sed 's/_//' | sort -V | tail -1)" | |
ZIP="terraform_${VER}_linux_amd64.zip" | |
echo "* Downloading ${URL}/${VER}/terraform_${VER}_linux_amd64.zip" | |
curl -s ${URL}/${VER}/terraform_${VER}_linux_amd64.zip -o ${INSTALL_DIR}/${ZIP} |
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 | |
# | |
# solo-cli - CLI for Solo API. | |
# | |
# It is recommended to link it to your PATH before using. | |
# | |
set -e | |
action=${1:-list} |
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
2016-06-21 05:43:23,131 ERROR [qtp1201822193-173073] [puppet-server] Puppet Permission denied - /etc/puppetlabs/code/environments/production/modules/stdlib/metadata.json | |
org/jruby/RubyIO.java:3785:in `read' | |
org/jruby/RubyIO.java:3968:in `read' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/module.rb:93:in `has_metadata?' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/module.rb:68:in `initialize' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/node/environment.rb:301:in `modules' | |
org/jruby/RubyArray.java:2407:in `collect' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/node/environment.rb:299:in `modules' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/node/environment.rb:256:in `module' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/file_serving/mount/modules.rb:10:in `find' |
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
# System language | |
lang en_US | |
# Language modules to install | |
langsupport en_US | |
# System keyboard | |
keyboard us | |
# System mouse |
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
FROM evarga/jenkins-slave | |
MAINTAINER Konstantin Shcherban version: 0.2 | |
RUN echo 'deb http://apt.dockerproject.org/repo ubuntu-trusty main' > /etc/apt/sources.list.d/docker.list && \ | |
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
RUN apt-get update && apt-get install -y \ | |
nginx \ | |
docker-engine && apt-get clean && rm -rf /var/lib/apt/lists/* | |
RUN usermod -aG docker www-data |
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 | |
set -e -u | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 <packagename-version>" | |
exit 0 | |
fi | |
PACKAGE="$(echo $1 | awk -F'-' '{$(NF--)=""; print}' | sed -e 's/\s/-/g;s/-$//')" | |
VERSION="$(echo $1 | awk -F'-' '{print $NF}')" |
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
net.ipv4.ip_forward = 0 | |
net.ipv4.conf.default.rp_filter = 1 | |
net.ipv4.conf.default.accept_source_route = 0 | |
kernel.sysrq = 0 | |
kernel.core_uses_pid = 1 | |
kernel.core_pattern = /tmp/cores/%e.core | |
net.ipv4.tcp_syncookies = 0 | |
kernel.msgmnb = 65536 | |
kernel.msgmax = 65536 | |
kernel.shmmax = 68719476736 |
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 | |
# unicorn-puppet | |
# chkconfig: - 98 02 | |
lockfile=/var/lock/puppetmaster-unicorn | |
pidfile=/var/run/puppet/puppetmaster_unicorn.pid | |
RETVAL=0 | |
DAEMON=/usr/bin/unicorn | |
DAEMON_OPTS="-D -c /etc/puppet/unicorn.conf" |
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
[phantom] | |
address=10.241.240.58:8080 | |
rps_schedule = line(100,5000,5m) | |
ammofile=/data/ammo/elliptics/pluto.ammo | |
cache_dir=/data/stpd.cache | |
instances=2000 | |
[monitoring] | |
config=none |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import argparse | |
import os | |
import stat | |
import sys | |
def gen_request(req_type, url, data, hostname, tag): | |
full_request='''{0} {1}{2} HTTP/1.1\r |