Skip to content

Instantly share code, notes, and snippets.

Avatar

Christian Zunker czunker

View GitHub Profile
@czunker
czunker / calico-node-log
Created Aug 19, 2020
Log of calico-node during kops k8s update 1.17.9 -> 1.18.8
View calico-node-log
2020-08-19 07:55:05.082 [INFO][9] startup/startup.go 299: Early log level set to info
2020-08-19 07:55:05.082 [INFO][9] startup/startup.go 315: Using NODENAME environment for node name
2020-08-19 07:55:05.082 [INFO][9] startup/startup.go 327: Determined node name: ip-172-31-133-138.eu-central-1.compute.internal
2020-08-19 07:55:05.084 [INFO][9] startup/startup.go 359: Checking datastore connection
2020-08-19 07:55:05.093 [INFO][9] startup/startup.go 383: Datastore connection verified
2020-08-19 07:55:05.093 [INFO][9] startup/startup.go 104: Datastore is ready
2020-08-19 07:55:05.105 [INFO][9] startup/startup.go 425: Initialize BGP data
2020-08-19 07:55:05.105 [INFO][9] startup/startup.go 664: Using autodetected IPv4 address on interface ens5: 172.31.133.138/24
2020-08-19 07:55:05.105 [INFO][9] startup/startup.go 495: Node IPv4 changed, will check for conflicts
2020-08-19 07:55:05.108 [INFO][9] startup/startup.go 727: No AS number configured on node resource, using global value
@czunker
czunker / README.md
Last active Aug 29, 2015 — forked from steinim/human_log.py
This is special variant of the human_log.py, to just get output when something changed.
View README.md
@czunker
czunker / gist:32d07ced04928d89d527
Last active Oct 19, 2015
Call Puppet Agent inside Ansible playbook
View gist:32d07ced04928d89d527
- name: Start puppet agent
sudo: yes
shell: /usr/bin/puppet agent --verbose --test
register: puppet_agent_result
changed_when: puppet_agent_result.rc|int == 2
failed_when: puppet_agent_result.rc|int != 2 and puppet_agent_result.rc|int != 0
@czunker
czunker / gist:d6ae14c1c324e6c26cb8
Created Aug 15, 2014
Create Ansible dynamic inventory from Puppet CA
View gist:d6ae14c1c324e6c26cb8
#!/bin/bash
/usr/bin/puppet cert list --all > /dev/null 2>&1
if [ $? -ne 0 ]
then
echo "Puppet error"
exit 1
fi
HOSTS="{\n\t\"all\":\n\t\t[\n"