Skip to content

Instantly share code, notes, and snippets.

usestring = False
if usestring:
certificate = "-----BEGIN CERTIFICATE-----"
no_of_slices = int(len(node.text) / 64)
for i in range(0, no_of_slices + 1):
certificate += linesep
certificate += node.text[i * 64:(i + 1) * 64]
certificate += "-----END CERTIFICATE-----"
else:
certificate = ["-----BEGIN CERTIFICATE-----"]
TASK [bootstrap-os : Install required python modules] ***************************************************************************************************************************************************************
task path: /Users/USERID/Documents/kubernetes/kargo/kargo-2.1.1/roles/bootstrap-os/tasks/bootstrap-coreos.yml:48
Monday 03 July 2017 09:23:04 -0400 (0:00:01.959) 0:00:35.705 ***********
Using module file /Library/Python/2.7/site-packages/ansible/modules/packaging/language/pip.py
<XXX.XXX.XXX.XXX> ESTABLISH SSH CONNECTION FOR USER: root
Using module file /Library/Python/2.7/site-packages/ansible/modules/packaging/language/pip.py
<XXX.XXX.XXX.XXX> ESTABLISH SSH CONNECTION FOR USER: root
Using module file /Library/Python/2.7/site-packages/ansible/modules/packaging/language/pip.py
<XXX.XXX.XXX.XXX> ESTABLISH SSH CONNECTION FOR USER: root
<XXX.XXX.XXX.XXX> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthen
# ## Configure 'ip' variable to bind kubernetes services on a
# ## different ip than the default iface
node1 ansible_ssh_host=XXX.XXX.XXX.XXX ansible_ssh_user=root
node2 ansible_ssh_host=XXX.XXX.XXX.XXX ansible_ssh_user=root
node3 ansible_ssh_host=XXX.XXX.XXX.XXX ansible_ssh_user=root
# ## configure a bastion host if your nodes are not publicly reachable
# bastion ansible_ssh_host=x.x.x.x
[kube-master]