mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-04-05 09:07:49 +00:00
38 lines
953 B
YAML
38 lines
953 B
YAML
---
|
|
ignition_version: 1
|
|
systemd:
|
|
units:
|
|
- name: metadata.service
|
|
enable: true
|
|
contents: |
|
|
[Unit]
|
|
Description=Bare Metal Metadata Agent
|
|
[Service]
|
|
Type=oneshot
|
|
Environment=OUTPUT=/run/metadata/bootcfg
|
|
ExecStart=/usr/bin/mkdir --parent /run/metadata
|
|
ExecStart=/usr/bin/bash -c 'curl --url "http://bootcfg.foo:8080/metadata?{{.query}}" --retry 10 --output ${OUTPUT}'
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
networkd:
|
|
units:
|
|
- name: 00-{{.networkd_name}}.network
|
|
contents: |
|
|
[Match]
|
|
Name={{.networkd_name}}
|
|
[Network]
|
|
Gateway={{.networkd_gateway}}
|
|
DNS={{.networkd_dns}}
|
|
DNS=8.8.8.8
|
|
Address={{.networkd_address}}
|
|
|
|
{{ if .ssh_authorized_keys }}
|
|
passwd:
|
|
users:
|
|
- name: core
|
|
ssh_authorized_keys:
|
|
{{ range $element := .ssh_authorized_keys }}
|
|
- {{$element}}
|
|
{{end}}
|
|
{{end}}
|