Skip to content

Instantly share code, notes, and snippets.

@peerapach
Created January 2, 2019 10:46
Show Gist options
  • Save peerapach/b03e3a630961d818c4ec4063c40cd700 to your computer and use it in GitHub Desktop.
Save peerapach/b03e3a630961d818c4ec4063c40cd700 to your computer and use it in GitHub Desktop.
{
"all": {
"hosts": ["example-k8s-node-3", "example-k8s-node-1", "example-k8s-node-2", "example-k8s-master-1"]
},
"os_metadata_kubespray_groups=kube-node,k8s-cluster,": {
"hosts": ["example-k8s-node-3", "example-k8s-node-1", "example-k8s-node-2"]
},
"_meta": {
"hostvars": {
"example-k8s-node-3": {
"host_domain": "novalocal",
"role": "none",
"access_ip_v6": "",
"access_ip_v4": "139.5.147.245",
"public_ipv4": "139.5.147.245",
"ip": "10.148.0.14",
"use_host_domain": true,
"consul_dc": "compute",
"flavor": {
"name": "eco1.C",
"id": "002ad6c0-58ec-4ccd-969d-1e4d2ab09dbd"
},
"ansible_ssh_port": 22,
"id": "10a29428-3600-421c-ad83-02517921710e",
"security_groups": ["example-k8s-worker", "default", "example-bastion", "example-k8s"],
"publicly_routable": true,
"access_ip": "139.5.147.245",
"network": [{
"uuid": "bf359187-8a28-4f62-ab75-9e0298d2aba6",
"fixed_ip_v4": "10.148.0.14",
"fixed_ip_v6": "",
"floating_ip": "",
"mac": "fa:16:3e:e7:36:77",
"access_network": "false",
"port": "",
"name": "default"
}],
"region": "asia-southeast",
"ansible_python_interpreter": "python",
"ansible_ssh_host": "139.5.147.245",
"ansible_ssh_user": "nc-user",
"key_pair": "kubernetes-example",
"provider": "openstack",
"private_ipv4": "10.148.0.14",
"consul_is_server": false,
"image": {
"name": "ubuntu-1604-xenial-v20181019",
"id": "a03025dd-1ba9-41d4-9db8-9e507d5dcdbb"
},
"metadata": {
"ssh_user": "nc-user",
"%": "3",
"kubespray_groups": "kube-node,k8s-cluster,",
"depends_on": "209d7332-c3e0-4d65-a0d7-2c125a570be8"
}
},
"example-k8s-node-2": {
"host_domain": "novalocal",
"role": "none",
"access_ip_v6": "",
"access_ip_v4": "139.5.145.208",
"public_ipv4": "139.5.145.208",
"ip": "10.148.0.22",
"use_host_domain": true,
"consul_dc": "compute",
"flavor": {
"name": "eco1.C",
"id": "002ad6c0-58ec-4ccd-969d-1e4d2ab09dbd"
},
"ansible_ssh_port": 22,
"id": "5e504a6c-3a47-4437-8117-5b66b61e1d19",
"security_groups": ["example-k8s-worker", "default", "example-bastion", "example-k8s"],
"publicly_routable": true,
"access_ip": "139.5.145.208",
"network": [{
"uuid": "bf359187-8a28-4f62-ab75-9e0298d2aba6",
"fixed_ip_v4": "10.148.0.22",
"fixed_ip_v6": "",
"floating_ip": "",
"mac": "fa:16:3e:10:7a:5a",
"access_network": "false",
"port": "",
"name": "default"
}],
"region": "asia-southeast",
"ansible_python_interpreter": "python",
"ansible_ssh_host": "139.5.145.208",
"ansible_ssh_user": "nc-user",
"key_pair": "kubernetes-example",
"provider": "openstack",
"private_ipv4": "10.148.0.22",
"consul_is_server": false,
"image": {
"name": "ubuntu-1604-xenial-v20181019",
"id": "a03025dd-1ba9-41d4-9db8-9e507d5dcdbb"
},
"metadata": {
"ssh_user": "nc-user",
"%": "3",
"kubespray_groups": "kube-node,k8s-cluster,",
"depends_on": "209d7332-c3e0-4d65-a0d7-2c125a570be8"
}
},
"example-k8s-node-1": {
"host_domain": "novalocal",
"role": "none",
"access_ip_v6": "",
"access_ip_v4": "139.5.145.221",
"public_ipv4": "139.5.145.221",
"ip": "10.148.0.5",
"use_host_domain": true,
"consul_dc": "compute",
"flavor": {
"name": "eco1.C",
"id": "002ad6c0-58ec-4ccd-969d-1e4d2ab09dbd"
},
"ansible_ssh_port": 22,
"id": "b4251618-d8b4-4280-a1d7-28f52058c7b7",
"security_groups": ["example-k8s-worker", "default", "example-bastion", "example-k8s"],
"publicly_routable": true,
"access_ip": "139.5.145.221",
"network": [{
"uuid": "bf359187-8a28-4f62-ab75-9e0298d2aba6",
"fixed_ip_v4": "10.148.0.5",
"fixed_ip_v6": "",
"floating_ip": "",
"mac": "fa:16:3e:2f:13:c4",
"access_network": "false",
"port": "",
"name": "default"
}],
"region": "asia-southeast",
"ansible_python_interpreter": "python",
"ansible_ssh_host": "139.5.145.221",
"ansible_ssh_user": "nc-user",
"key_pair": "kubernetes-example",
"provider": "openstack",
"private_ipv4": "10.148.0.5",
"consul_is_server": false,
"image": {
"name": "ubuntu-1604-xenial-v20181019",
"id": "a03025dd-1ba9-41d4-9db8-9e507d5dcdbb"
},
"metadata": {
"ssh_user": "nc-user",
"%": "3",
"kubespray_groups": "kube-node,k8s-cluster,",
"depends_on": "209d7332-c3e0-4d65-a0d7-2c125a570be8"
}
},
"example-bastion-1": {
"host_domain": "novalocal",
"role": "none",
"access_ip_v6": "",
"access_ip_v4": "139.5.145.118",
"public_ipv4": "139.5.145.118",
"ip": "10.148.0.8",
"use_host_domain": true,
"consul_dc": "compute",
"flavor": {
"name": "eco1.C",
"id": "002ad6c0-58ec-4ccd-969d-1e4d2ab09dbd"
},
"ansible_ssh_port": 22,
"id": "d289f851-86aa-4fe8-a921-ba34e901cb2d",
"security_groups": ["default", "example-bastion", "example-k8s"],
"publicly_routable": true,
"access_ip": "139.5.145.118",
"network": [{
"uuid": "bf359187-8a28-4f62-ab75-9e0298d2aba6",
"fixed_ip_v4": "10.148.0.8",
"fixed_ip_v6": "",
"floating_ip": "",
"mac": "fa:16:3e:ad:e2:da",
"access_network": "false",
"port": "",
"name": "default"
}],
"region": "asia-southeast",
"ansible_python_interpreter": "python",
"ansible_ssh_host": "139.5.145.118",
"ansible_ssh_user": "nc-user",
"key_pair": "kubernetes-example",
"provider": "openstack",
"private_ipv4": "10.148.0.8",
"consul_is_server": false,
"image": {
"name": "ubuntu-1604-xenial-v20181019",
"id": "a03025dd-1ba9-41d4-9db8-9e507d5dcdbb"
},
"metadata": {
"ssh_user": "nc-user",
"%": "3",
"kubespray_groups": "bastion",
"depends_on": "209d7332-c3e0-4d65-a0d7-2c125a570be8"
}
},
"example-k8s-master-1": {
"host_domain": "novalocal",
"role": "none",
"access_ip_v6": "",
"access_ip_v4": "139.5.145.226",
"public_ipv4": "139.5.145.226",
"ip": "10.148.0.21",
"use_host_domain": true,
"consul_dc": "compute",
"flavor": {
"name": "eco1.C",
"id": "002ad6c0-58ec-4ccd-969d-1e4d2ab09dbd"
},
"ansible_ssh_port": 22,
"id": "2487105a-d3c3-4b04-8b7a-4533a2603ae2",
"security_groups": ["example-k8s-master", "default", "example-bastion", "example-k8s"],
"publicly_routable": true,
"access_ip": "139.5.145.226",
"network": [{
"uuid": "bf359187-8a28-4f62-ab75-9e0298d2aba6",
"fixed_ip_v4": "10.148.0.21",
"fixed_ip_v6": "",
"floating_ip": "",
"mac": "fa:16:3e:44:ef:a4",
"access_network": "false",
"port": "",
"name": "default"
}],
"region": "asia-southeast",
"ansible_python_interpreter": "python",
"ansible_ssh_host": "139.5.145.226",
"ansible_ssh_user": "nc-user",
"key_pair": "kubernetes-example",
"provider": "openstack",
"private_ipv4": "10.148.0.21",
"consul_is_server": false,
"image": {
"name": "ubuntu-1604-xenial-v20181019",
"id": "a03025dd-1ba9-41d4-9db8-9e507d5dcdbb"
},
"metadata": {
"ssh_user": "nc-user",
"%": "3",
"kubespray_groups": "etcd,kube-master,,k8s-cluster,vault",
"depends_on": "209d7332-c3e0-4d65-a0d7-2c125a570be8"
}
}
}
},
"os_region=asia-southeast": {
"hosts": ["example-k8s-node-3", "example-k8s-node-1", "example-k8s-node-2", "example-bastion-1", "example-k8s-master-1"]
},
"kube-master": {
"hosts": ["example-k8s-master-1"]
},
"os_metadata_kubespray_groups=bastion": {
"hosts": ["example-bastion-1"]
},
"publicly_routable": {
"hosts": ["example-k8s-node-3", "example-k8s-node-1", "example-k8s-node-2", "example-bastion-1", "example-k8s-master-1"]
},
"k8s-cluster": {
"hosts": ["example-k8s-node-3", "example-k8s-node-1", "example-k8s-node-2", "example-k8s-master-1"]
},
"os_metadata_%=3": {
"hosts": ["example-k8s-node-3", "example-k8s-node-1", "example-k8s-node-2", "example-bastion-1", "example-k8s-master-1"]
},
"os_image=ubuntu-1604-xenial-v20181019": {
"hosts": ["example-k8s-node-3", "example-k8s-node-1", "example-k8s-node-2", "example-bastion-1", "example-k8s-master-1"]
},
"os_metadata_kubespray_groups=etcd,kube-master,,k8s-cluster,vault": {
"hosts": ["example-k8s-master-1"]
},
"bastion": {
"hosts": ["example-bastion-1"]
},
"os_metadata_ssh_user=nc-user": {
"hosts": ["example-k8s-node-3", "example-k8s-node-1", "example-k8s-node-2", "example-bastion-1", "example-k8s-master-1"]
},
"vault": {
"hosts": ["example-k8s-master-1"]
},
"etcd": {
"hosts": ["example-k8s-master-1"]
},
"os_metadata_depends_on=209d7332-c3e0-4d65-a0d7-2c125a570be8": {
"hosts": ["example-k8s-node-3", "example-k8s-node-1", "example-k8s-node-2", "example-bastion-1", "example-k8s-master-1"]
},
"dc=compute": {
"hosts": ["example-k8s-node-3", "example-k8s-node-1", "example-k8s-node-2", "example-bastion-1", "example-k8s-master-1"]
},
"role=none": {
"hosts": ["example-k8s-node-3", "example-k8s-node-1", "example-k8s-node-2", "example-bastion-1", "example-k8s-master-1"]
},
"os_flavor=eco1.C": {
"hosts": ["example-k8s-node-3", "example-k8s-node-1", "example-k8s-node-2", "example-bastion-1", "example-k8s-master-1"]
},
"kube-node": {
"hosts": ["example-k8s-node-3", "example-k8s-node-1", "example-k8s-node-2"]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment