This is a simple example of namespace networking.
- Create 4 different namespaces and assign an ip address to each side of the veth pair
#!/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 |
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 \ |
[main] | |
storeconfigs = true | |
storeconfigs_backend = puppetdb | |
reports = store,puppetdb | |
pluginsync = true |
#!/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 |
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: |