mirror of
https://github.com/outbackdingo/matchbox.git
synced 2026-01-27 10:19:35 +00:00
* FileStore should manage resources found in type named directories since this is similar to a traditional table-DB layout and to how an EtcdStore would work
51 lines
1.4 KiB
YAML
51 lines
1.4 KiB
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
|
|
- name: fleet.service
|
|
enable: true
|
|
dropins:
|
|
- name: fleet-metadata.conf
|
|
contents: |
|
|
[Service]
|
|
# FLEET_METADATA
|
|
EnvironmentFile=/run/metadata/bootcfg
|
|
Environment="FLEET_ETCD_SERVERS=http://127.0.0.1:2379"
|
|
- name: etcd2.service
|
|
enable: true
|
|
dropins:
|
|
- name: etcd-metadata.conf
|
|
contents: |
|
|
[Unit]
|
|
Requires=metadata.service
|
|
After=metadata.service
|
|
[Service]
|
|
# ETCD_INITIAL_CLUSTER
|
|
EnvironmentFile=/run/metadata/bootcfg
|
|
ExecStart=
|
|
ExecStart=/usr/bin/etcd2 \
|
|
--proxy on
|
|
--listen-client-urls=http://127.0.0.1:2379
|
|
|
|
{{ if .ssh_authorized_keys }}
|
|
passwd:
|
|
users:
|
|
- name: core
|
|
ssh_authorized_keys:
|
|
{{ range $element := .ssh_authorized_keys }}
|
|
- {{$element}}
|
|
{{end}}
|
|
{{end}}
|