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 | |
# | |
# Protocol defined in: | |
# http://developer.github.com/v3/ | |
# | |
import sys, os | |
import requests | |
github_url_root = "https://api.github.com/" | |
username = '<yourgitusername>' |
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 | |
# | |
# Stolen from https://stuckinadoloop.wordpress.com/2011/04/14/script-to-convert-openldap-schema-files-to-ldif-format/ | |
SCHEMAD=/etc/openldap/schema | |
SCHEMAS='dhcp.schema' | |
tmpd=`mktemp -d` | |
pushd ${tmpd} >>/dev/null |
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
Usage: | |
katello-installer [OPTIONS] | |
Options: | |
= Generic: | |
--reset This option will drop the Katello database and clear all subsequent backend data stores.You will lose all data! Unfortunately we | |
can't detect a failure at the moment so you should verify the success | |
manually. e.g. dropping can fail when DB is currently in use. (default: false) | |
--[no-]colors Use color output on STDOUT (default: true) |
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
if $::operatingsystem == 'Fedora' or $::operatingsystemmajrelease > 6 { | |
exec {'open firewall ports': | |
command => '/usr/bin/firewall-cmd --zone public --add-service http --add-service https ; /usr/bin/firewall-cmd --zone public --add-port 5671/tcp --add-port 5672/tcp' | |
} | |
} else { | |
exec {'open firewall ports': | |
command => '/usr/sbin/lokkit --service http --service https --port 5671:tcp --port 5672:tcp' | |
} | |
} |
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
#golang on Fedora 20 as of today has some problems which get in the way of working with Kubernetes. | |
# A number of people have suggested just building go from source but a couple of ugly hacks have gotten me past it for now. | |
# | |
# 1) install a patched go from koji (possibly not needed, see 2) | |
# from maxamillion's paste: | |
# http://fpaste.org/123906/74249921 | |
yum localinstall https://kojipkgs.fedoraproject.org//work/tasks/1170/7251170/golang-1.3-5.fc20.x86_64.rpm https://kojipkgs.fedoraproject.org//work/tasks/1170/7251170/golang-src-1.3-5.fc20.noarch.rpm https://kojipkgs.fedoraproject.org//work/tasks/1170/7251170/golang-vim-1.3-5.fc20.noarch.rpm https://kojipkgs.fedoraproject.org//work/tasks/1170/7251170/golang-pkg-bin-linux-amd64-1.3-5.fc20.x86_64.rpm https://kojipkgs.fedoraproject.org//work/tasks/1170/7251170/golang-pkg-linux-amd64-1.3-5.fc20.noarch.rpm | |
# 2 install dang, I have to try it again to remember to install a part before running hack/build-go.sh |
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 | |
import sys | |
from qpid.messaging import * | |
broker = sys.argv[1] + ":5672" | |
address = "amq.topic" | |
connection = Connection(broker) |
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/sh | |
sudo yum -y install dnf dnf-plugins-core | |
sudo dnf copr enable walters/atomic-next | |
sudo yum install -y etcd 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
FROM fedora:20 | |
MAINTAINER Mark Lamourine <markllama@gmail.com> | |
#COMMENT { "description": "mongodb service container", \ | |
# "usage": "docker run -d -p 27017:27017 --name mongodb mlamouri/mongodb --volume=/mydbdatadir:/var/lib/mongodb" } | |
RUN yum install -y mongodb-server && yum clean all | |
RUN mkdir -p /var/lib/mongodb && \ | |
touch /var/lib/mongodb/.keep && \ |
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
## | |
### Basic Defaults | |
## | |
dbpath = /var/lib/mongodb | |
smallfiles = true | |
nohttpinterface = true | |
noprealloc = true |
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 fedora:20 | |
MAINTAINER Mark Lamourine <markllama@gmail.com> | |
#COMMENT { "description": "Qpid server image", \ | |
# "usage": "docker run -d -p 5672:5672 --name pulp-qpid fedora/qpid" } | |
RUN yum install -y qpid-cpp-server qpid-cpp-server-store python-qpid-qmf python-qpid && \ | |
yum clean all | |
ADD . /.qpidd |