Ansible role for deploying cloud config (user_data) on CoreOS. This role has been inspired from Tazjin's Blog. You can find more details about the cloud-config on https://coreos.com/docs/cluster-management/setup/cloudinit-cloud-config/.
Install Ansible on your computer, refer to the official documentation for more details.
ansible-galaxy install mkaag.coreos-cloudinit
- coreos_discovery: Cluster discovery URL, see the doc for mor details
- coreos_channel: could either be
stable
,beta
oralpha
, see the doc for more details - coreos_reboot: could either be
best-effort
,etcd-lock
,reboot
oroff
, see the doc for more details - machine_metadata: see the doc for more details
- username: see the doc for more details
- userssh: certificate found in
~/.ssh/id_rsa.pub
(without thessh-rsa
starting block)
None
---
- hosts: production
gather_facts: false
vars_files:
- vars/custom.yml
- group_vars/production.yml
roles:
- mkaag.coreos-cloudinit
---
region_name: fra1
username: core
userssh: AAAAB...
---
pod: "production"
pod_metadata:
- "pod={{ pod }}"
[production:vars]
ansible_connection=ssh
ansible_ssh_user=core
ansible_ssh_port=22
ansible_ssh_private_key_file=~/.ssh/id_rsa
ansible_python_interpreter="PATH=/home/core/bin:$PATH python"
coreos_discovery=https://discovery.etcd.io/1234567890123456789012345678901234567890
coreos_channel=stable
coreos_reboot=etcd-lock
machine_metadata=[]
domain=domain.com
MIT