Skip to content

Instantly share code, notes, and snippets.

@beddari
beddari / websso_federation_setup.sh
Created January 22, 2016 14:14
setup websso environment in one shot, works with google
#!/bin/bash
fqdn=sso-demo.test.ibmcloud.com
user=ibmcloud
# Install the OpenID Connect apache module
# not necessary, but will resolve any config errors when installing the module
sudo apt-get install libjansson4 libhiredis0.10 libcurl3 -y
sudo apt-get install -f -y
# TODO: figure out why v1.8.4 and 1.8.5 won't install

Linux Networking Veth Pair Namespace Sausage Factory

Summary

This is a simple example of namespace networking.

  • Create 4 different namespaces and assign an ip address to each side of the veth pair
@beddari
beddari / macvlan.md
Created January 18, 2016 07:56 — forked from nerdalert/macvlan.md
Example MacVlan Bridge mode configuration

Example MacVlan Bridge mode

# add the namespaces
ip netns add ns1
ip netns add ns2

ip link add mv1 link eth0 type macvlan mode bridge
ip link add mv2 link eth0 type macvlan mode bridge
@beddari
beddari / gistify536965.md
Created January 18, 2016 07:55 — forked from nerdalert/gistify536965.md
IPVlan L3 Verbose

Verbose L3 Instructions

(a) Create two network namespaces - ns1 / ns2

Machine #1

ip netns add ns1

Machine #2

@beddari
beddari / HAProxy setup steps
Created October 13, 2015 10:34 — forked from blomquisg/HAProxy setup steps
Setting up HAProxy for OpenStack SSL
1. Install HA Proxy package
#> yum install haproxy
2. Generate the self-signed cert
#> mkdir -p /etc/pki/haproxy
#> umask 077 && openssl genrsa -out /etc/pki/haproxy/haproxy.key 1024
#> umask 022 && openssl req -key /etc/pki/haproxy/haproxy.key \
-out /etc/pki/haproxy/haproxy.crt \
@beddari
beddari / $conf_dir puppet.conf
Created September 24, 2015 06:36 — forked from abhishekkr/$conf_dir puppet.conf
Puppet Module : No Code In Data ~ using PuppetDB in masterless puppet
[main]
storeconfigs = true
storeconfigs_backend = puppetdb
reports = store,puppetdb
pluginsync = true
@beddari
beddari / deploy.sh
Last active August 29, 2015 14:26 — forked from jtopjian/deploy.sh
Terraform OpenStack DevStack Acceptance Tests
#!/bin/bash
sudo apt-get update
sudo apt-get install -y git make mercurial
GOPKG=go1.4.2.linux-amd64.tar.gz
wget https://storage.googleapis.com/golang/$GOPKG
sudo tar -xvf $GOPKG -C /usr/local/
mkdir ~/go
@beddari
beddari / gist:447eb0be285db6820c43
Created June 23, 2015 07:26
debug shell service
Rather than setting a root password, which may
not work correctly in this environment, you can enable the debug shell
on virtual terminal 9:
ln -s /usr/lib/systemd/system/debug-shell.service \
/etc/systemd/system/multi-user.target.wants/debug-shell.service
define bmcremote::host(
$data = {
'name_of_host' => {
'ip' => {},
'user' => {},
'pass' => {},
'settings' => {}
}
}
) {
---
bmcremote_defaults:
type: idrac8
user: not_default
pass: password
bmcremote:
test-server-01:
ip: x.y.z.1
settings: