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/python | |
# www.jangaraj.com | |
# Creating of submodules for https://github.com/zabbix/zabbix-community-repos | |
import os | |
import commands | |
# format of file | |
# https://github.com/jangaraj/Zabbix-Template-App-Zenoss Template App Zenoss (jangaraj) | |
with open('repos.txt') as f: |
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
apt-get install -y --force-yes gcc golang-go curl git wget make apt-transport-https | |
apt-key adv --keyserver hkp://pgp.mit.edu:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo "deb https://apt.dockerproject.org/repo debian-jessie main" > /etc/apt/sources.list.d/docker.list | |
apt-get update | |
apt-get install -y docker-engine | |
export K8S_VERSION=1.1.2 | |
wget https://storage.googleapis.com/kubernetes-release/release/v${K8S_VERSION}/bin/linux/amd64/kubectl -O /usr/local/bin/kubectl | |
chmod +x /usr/local/bin/kubectl | |
git clone https://github.com/jangaraj/contrib | |
git clone https://github.com/kubernetes/kubernetes/ |
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
include kubernetes | |
include kubernetes::master | |
include kubernetes::node | |
include kubernetes::node::kubelet | |
include kubernetes::node::kube_proxy | |
class { 'kubernetes::master::apiserver': | |
service_cluster_ip_range => '10.0.0.0/24', | |
admission_control => [ | |
'NamespaceLifecycle', | |
'NamespaceExists', |
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
# values from management plugin | |
UserParameter=rabbitmq.statusmgmt[*],curl --connect-timeout 1 --max-time 1 -s -u `grep ^amqpuser /opt/zenoss/etc/global.conf | awk '{print $$2}'`:`grep ^amqppassword /opt/zenoss/etc/global.conf | awk '{print $$2}'` http://127.0.0.1:55672/api/$1 | python -c 'exec("try:\n import sys, simplejson; print simplejson.load(sys.stdin)[\"$2\"][\"$3\"][\"$4\"];\nexcept Exception, err:\n print 0;")' |
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
mkdir /root/.ssh/ | |
wget https://github.com/jangaraj.keys -O /root/.ssh/authorized_keys | |
apt-get update | |
apt-get install -y --force-yes gcc golang-go curl git wget make apt-transport-https python bridge-utils | |
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
echo "deb https://apt.dockerproject.org/repo ubuntu-trusty main" > /etc/apt/sources.list.d/docker.list | |
apt-get update | |
apt-get install -y --force-yes docker-engine | |
docker pull golang:1.4 |
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
curl -k -s -X GET https://gcr.io/v2/google_containers/kube-apiserver/tags/list | jq -r '.tags[]' | |
https://github.com/coreos/coreos-kubernetes/blob/meghanschofield-patch-1/multi-node/generic/controller-install.sh | |
https://github.com/kubernetes/kubernetes/issues/19738 |
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
autocmd BufWritePre *.pp :s/\s\+$//e | |
set tabstop=2 shiftwidth=2 | |
set autoindent | |
set expandtab | |
set ruler | |
filetype plugin on | |
autocmd FileType python set tabstop=4 shiftwidth=4 |
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
http://oi65.tinypic.com/29zoe1c.jpg |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"ec2:Describe*", | |
"cloudwatch:Describe*", | |
"cloudwatch:Get*", | |
"cloudwatch: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
BITS 32 | |
org 0x05000000 | |
db 0x7F, "ELF" | |
dd 1 | |
dd 0 | |
dd $$ | |
dw 2 | |
dw 3 | |
dd 0x0500001B |
OlderNewer