Skip to content

Instantly share code, notes, and snippets.

@EntropyWorks
Last active March 30, 2016 18:42
Show Gist options
  • Select an option

  • Save EntropyWorks/ac681ccfe98d1f928dd87a4c4fd18217 to your computer and use it in GitHub Desktop.

Select an option

Save EntropyWorks/ac681ccfe98d1f928dd87a4c4fd18217 to your computer and use it in GitHub Desktop.
cores_nodes:
- { serial: "2M251101N6", hostname: "sl2500-01-node01" }
- { serial: "2M251101N7", hostname: "sl2500-01-node02" }
- name: Create CoreOS cloud-init files
template: src=templates/coreos.j2 dest=output/{{ item.serial }}
with_items: cores_nodes
#cloud-config
hostname: "hostname"
manage_etc_hosts: "localhost"
ssh_authorized_keys:
{% for key in vars['ssh_keys'] %}
- {{ key }}
{{% endfor %}}
---
# vars file for cloud-init
ssh_keys:
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDmAE7w9wf
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCSIZwRR2B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment