Skip to content

Instantly share code, notes, and snippets.

View packetninja's full-sized avatar

Attilla de Groot packetninja

View GitHub Profile
auto swp1
iface swp1
auto swp1.10
iface swp1.10
bridge-access 10
bridge-learning off
auto swp1.20
iface swp1.20
root@edgecore-3:mgmt-vrf:~# cat /etc/keepalived/keepalived.conf
vrrp_instance VI_1 {
state MASTER
interface br0.100
virtual_router_id 1
priority 150
advert_int 1
virtual_ipaddress {
192.168.40.1
}
@packetninja
packetninja / keybase.md
Created December 19, 2016 08:30
keybase

Keybase proof

I hereby claim:

  • I am packetninja on github.
  • I am attilla (https://keybase.io/attilla) on keybase.
  • I have a public key ASCdtAqTPqUIxxTdkGWyLQGZKXu9PJN9zgvSAvLCXZ9Fbgo

To claim this, I am signing this object:

TASK: [galera_server | Check major galera install version] ********************
<192.168.0.156> ESTABLISH CONNECTION FOR USER: root
<192.168.0.156> REMOTE_MODULE command dpkg -s mariadb-galera-server-10.0
<192.168.0.156> EXEC ssh -C -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r" -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=120 192.168.0.156 /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python'
failed: [infra1_galera_container-91e35083] => {"changed": true, "cmd": ["dpkg", "-s", "mariadb-galera-server-10.0"], "delta": "0:00:00.039713", "end": "2016-09-18 11:25:26.160434", "rc": 1, "start": "2016-09-18 11:25:26.120721", "warnings": []}
stderr: dpkg-query: package 'mariadb-galera-server-10.0' is not installed and no information is available
Use dpkg --info (= dpkg-deb --info) to examine archive files,
an
<172.29.239.86> REMOTE_MODULE keystone login_project_name=admin service_type=metering login_password=VALUE_HIDDEN command=ensure_service insecure=False service_name=ceilometer login_user=admin description='Ceilometer S
ervice' endpoint=http://172.29.236.100:35357/v3
<172.29.239.86> EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r" -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentica
tions=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=120 172.29.239.86 /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python'
Result from run 4 is: {'msg': 'OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/ssh_config line 19: Applying options for *\r\ndebug1: auto-mux: Tryi
ng existing master\r\ndebug2: fd 3 setting O_NONBLOCK\r\ndebug2: mux_client_hello_exchange: master version 4\r\ndebug3: mux_client_f
TASK: [galera_client | Install pip packages] **********************************
<192.168.0.160> ESTABLISH CONNECTION FOR USER: root
<192.168.0.160> REMOTE_MODULE pip name=MySQL-python state=present extra_args=''
<192.168.0.160> EXEC ssh -C -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r" -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=120 192.168.0.160 /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python'
<192.168.0.160> REMOTE_MODULE pip name=MySQL-python state=present extra_args=''
<192.168.0.160> EXEC ssh -C -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r" -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=120 192.16
@packetninja
packetninja / gist:e39db863c52231cb1d51998e1cc58ab3
Created September 4, 2016 13:34
Openstack-ansible infrastructure playbook setuptools
<192.168.0.239> ESTABLISH CONNECTION FOR USER: root
<192.168.0.239> REMOTE_MODULE command python /opt/get-pip.py pip==8.1.2 setuptools==25.2.0 wheel==0.29.0 #USE_SHELL
<192.168.0.239> EXEC ssh -C -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r" -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=120 192.168.0.239 /bin/sh -c 'LANG=en_US.UTF-8 LC_CTYPE=en_US.UTF-8 /usr/bin/python'
<192.168.0.239> REMOTE_MODULE command python /opt/get-pip.py pip==8.1.2 setuptools==25.2.0 wheel==0.29.0 #USE_SHELL
<192.168.0.239> EXEC ssh -C -v -o ControlMaster=auto -o ControlPersist=60s -o ControlPath="/root/.ansible/cp/ansible-ssh-%h-%p-%r" -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o ConnectTimeout=120 192.168.0.239 /
TASK [Install basic packages] **************************************************
changed: [oob-mgmt-server] => (item=[u'isc-dhcp-server', u'dnsmasq', u'nginx', u'python-pip', u'shedskin', u'libyaml-dev', u'sshpass', u'git', u'apt-cacher-ng', u'vim', u'python-dev', u'libffi-dev', u'libssl-dev'])
TASK [Install Ansible] *********************************************************
fatal: [oob-mgmt-server]: FAILED! => {"changed": false, "cmd": "/usr/bin/pip install ansible", "failed": true, "msg": "stdout: Downloading/unpacking ansible\n Running setup.py (path:/tmp/pip-build-wx0bAO/ansible/setup.py) egg_info for package ansible\n \n no previously-included directories found matching 'v2'\n no previously-included directories found matching 'docsite'\n no previously-included directories found matching 'ticket_stubs'\n no previously-included directories found matching 'packaging'\n no previously-included directories found matching 'test'\n no previously-included directories found matching 'hacking'
TASK [Install Ansible] *********************************************************
task path: /Users/attilla/dev/cumulus/vagrant/manual/provisioning/main.yml:67
<127.0.0.1> ESTABLISH SSH CONNECTION FOR USER: vagrant
<127.0.0.1> SSH: EXEC ssh -C -vvv -o ControlMaster=auto -o ControlPersist=60s -o Port=2215 -o 'IdentityFile="/Users/attilla/dev/cumulus/vagrant/manual/.vagrant/machines/oob-mgmt-server2/virtualbox/private_key"' -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=vagrant -o ConnectTimeout=10 -o ControlPath=/Users/attilla/.ansible/cp/ansible-ssh-%h-%p-%r 127.0.0.1 '/bin/sh -c '"'"'( umask 22 && mkdir -p "` echo $HOME/.ansible/tmp/ansible-tmp-1464094258.32-133004829584763 `" && echo "` echo $HOME/.ansible/tmp/ansible-tmp-1464094258.32-133004829584763 `" )'"'"''
<127.0.0.1> PUT /var/folders/vk/kqds2f8j5cz_5nszpz5gbml00000gn/T/tmpf7q9nS TO /home/vagrant/.ansible/tmp/ansible-tmp-1464094258.32-133004829584763/p
{{ header_tmpl }}
{%- set dhcpvars = dhcp -%}
#
# dhcpd.conf
#
authoritative;
allow booting;
allow bootp;
default-lease-time 86400;