-
-
Save mkol5222/1e8b14beaca9dd7e319626a1622bb032 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
extension_requests: | |
pp_preshared_key: "${psk}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"network": "${base64encode_file(templates/network.tpl)}", | |
"network.encoding": "base64", | |
"local-hostname": "${hostname}" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: 1 | |
config: | |
- type: physical | |
name: ens192 | |
subnets: | |
- type: static | |
address: ${address} | |
netmask: 255.255.255.0 | |
gateway: ${gateway} | |
dns_nameservers: | |
- 10.0.110.30 | |
- 10.60.10.30 | |
dns_search: | |
- mydomain.fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#cloud-config | |
write_files: | |
- encoding: b64 | |
content: ${base64encode("role=${role}\n")} | |
path: /etc/puppetlabs/facter/facts.d/role.txt | |
- encoding: b64 | |
content: ${base64encode_file(templates/csr_attributes.tpl)} | |
path: /etc/puppetlabs/puppet/csr_attributes.yaml | |
runcmd: | |
- [ '/bin/systemctl', 'start', 'puppet' ] | |
users: | |
- name: test | |
ssh_authorized_keys: | |
- ssh-rsa MAj1oT46xLncyEhlqjoAPqMg... user@otherhost | |
groups: wheel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
guestinfo.metadata = "${base64encode_file(templates/metadata.tpl)}" | |
guestinfo.metadata.encoding = "base64" | |
guestinfo.userdata = "${base64encode_file(templates/userdata.tpl)}" | |
guestinfo.userdata.encoding = "base64" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment