Skip to content

mkaag/ansible-coreos-cloudinit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coreos-cloudinit

Ansible Galaxy

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/.

Requirements

Install Ansible on your computer, refer to the official documentation for more details.

Installation

ansible-galaxy install mkaag.coreos-cloudinit

Role Variables

Dependencies

None

Example Playbook

---
- hosts: production
  gather_facts: false
  vars_files:
    - vars/custom.yml
    - group_vars/production.yml
  roles:
    - mkaag.coreos-cloudinit

vars/custom.yml

---
region_name: fra1
username: core
userssh: AAAAB...

group_vars/production.yml

---
pod: "production"
pod_metadata:
  - "pod={{ pod }}"

Example Inventory

[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

License

MIT