Skip to content

Instantly share code, notes, and snippets.

@sigma
Last active June 6, 2017 05:49
Show Gist options
  • Save sigma/0e723a04dfc2c5b11319 to your computer and use it in GitHub Desktop.
Save sigma/0e723a04dfc2c5b11319 to your computer and use it in GitHub Desktop.
custom #ansible roles
localhost ansible_connection=local
coreos181 ansible_ssh_host=172.16.78.181
coreos182 ansible_ssh_host=172.16.78.182
coreos183 ansible_ssh_host=172.16.78.183
[core]
coreos181
coreos182
coreos183
[core:vars]
ansible_python_interpreter="PATH=/home/core/bin:$PATH python"
- name: bootstrap coreos hosts
hosts: core
gather_facts: False
roles:
- role: "sigma.coreos-bootstrap"
- name: ca
hosts: localhost
roles:
- role: "sigma.etcd-ca"
etcd_ca_crt_group: "core"
etcd_ca_depot: "/tmp/etcd-ca-depot"
- name: bootstrap etcd cluster
hosts: core
roles:
- role: "sigma.etcd-cluster"
etcd_ca_host: "localhost"
etcd_ca_depot: "/tmp/etcd-ca-depot"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment