Skip to content

Instantly share code, notes, and snippets.

🙃

Stephen Benjamin stbenjam

🙃
Block or report user

Report or block stbenjam

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View bar.sh
source ./foo.sh
. ./foo.sh
View gist:56d700eccf4ebbc13c99
{% highlight yaml %}
production:
delivery_method: :sendmail
{% endhighlight %}
View gist:18dea58b8d8be024b3a3
#!/bin/bash
usage() {
cat <<EOF
Usage: $0 <puppet server>
EOF
exit 1
}
die() { echo "$@" 1>&2; exit 1; }
View gist:0f11418c5b6089407952
#!/usr/bin/env sh
SALT_PATH=/home/stbenjam/foreman_salt
if [[ -n $1 ]]
then
RAKE_PATH=`bundle show rake`
ruby -I"lib:test:${SALT_PATH}/test:${SALT_PATH}/spec" -I"${RAKE_PATH}/lib" \
"${RAKE_PATH}/lib/rake/rake_test_loader.rb" $@
else
View gist:75cc79a7d2baaed316ee
require 'rest-client'
require 'json'
require 'openssl'
uri = 'https://admin:changeme@katello-dev.bitbin.de/api/v2/hosts'
hostinfo = {}
hostinfo[:environment] = 'Standard_Base'
hostinfo[:hostgroup_id] = 2
hostinfo[:name] = 'testtest2'
View gist:607fbe1aa61d251e5f27
trytond-account-1.8.0-3.el6,trytond-account-be-1.8.0-3.el6,trytond-account-de-skr03-1.8.0-3.el6,trytond-account-invoice-1.8.0-3.el6,trytond-account-invoice-history-1.8.0-3.el6,trytond-account-invoice-line-standalone-1.8.0-3.el6,trytond-account-product-1.8.0-3.el6,trytond-account-statement-1.8.0-3.el6,trytond-analytic-account-1.8.0-3.el6,trytond-analytic-invoice-1.8.0-3.el6,trytond-analytic-purchase-1.8.0-3.el6,trytond-analytic-sale-1.8.0-3.el6,trytond-calendar-1.8.0-3.el6,trytond-calendar-classification-1.8.0-3.el6,trytond-calendar-scheduling-1.8.0-3.el6,trytond-calendar-todo-1.8.0-3.el6,trytond-company-1.8.0-3.el6,trytond-company-work-time-1.8.0-3.el6,trytond-country-1.8.0-3.el6,trytond-currency-1.8.0-3.el6,trytond-dashboard-1.8.0-3.el6,trytond-google-maps-1.8.0-3.el6,trytond-google-translate-1.8.0-3.el6,trytond-ldap-authentication-1.8.0-3.el6,trytond-ldap-connection-1.8.0-3.el6,trytond-party-1.8.0-3.el6,trytond-party-siret-1.8.0-3.el6,trytond-party-vcarddav-1.8.0-3.el6,trytond-product-1.8.0-3.el6,trytond-pr
View gist:67555b983335d50bfa6d
major=$(facter operatingsystemmajrelease)
repos=$(subscription-manager repos | grep 'Repo ID' | grep -v "rhel-" | cut -d: -f2)
for repo in $repos; do
echo $repo | grep -q "$major-server"
retval=$?
if [[ $retval != 0 ]]
then
subscription-manager repos --disable $repo
fi
View gist:0ca7046d16c192e75334
---
:proto: https
:host: katello-dev.bitbin.de
:port: 443
:ssl_ca: "/etc/puppet/ssl_ca.pem"
:ssl_cert: "/etc/puppet/client_cert.pem"
:ssl_key: "/etc/puppet/client_key.pem"
:timeout: 10
:salt: /usr/bin/salt
:upload_grains: true
@stbenjam
stbenjam / gist:800a84cf825daeacc20e
Last active Aug 29, 2015
qdrouterd.conf logging
View gist:800a84cf825daeacc20e
log {
module: DEFAULT
enable: trace+
timestamp: true
output: /var/log/qdrouterd.log
}
View gist:30868e675d0eeae8d337
#!/usr/bin/env python
import json
import os
import sys
import salt.config
import salt.runner
if __name__ == '__main__':
__opts__ = salt.config.master_config(
You can’t perform that action at this time.