mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 18:06:59 +02:00
feat(oem-vagrant): Automagically run user-data
This commit is contained in:
parent
3676a510b2
commit
317d995aec
20
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/cloud-config.yml
vendored
Normal file
20
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/files/cloud-config.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
#cloud-config
|
||||
coreos:
|
||||
units:
|
||||
- name: coreos-cloudinit-vagrant.path
|
||||
command: start
|
||||
runtime: no
|
||||
content: |
|
||||
[Path]
|
||||
PathExists=/var/lib/coreos-vagrant/user-data
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
- name: coreos-cloudinit-vagrant.service
|
||||
command: stop
|
||||
runtime: no
|
||||
content: |
|
||||
[Service]
|
||||
Type=oneshot
|
||||
EnvironmentFile=/etc/environment
|
||||
ExecStart=/usr/bin/coreos-cloudinit --from-file /var/lib/coreos-vagrant/user-data
|
@ -18,4 +18,5 @@ S="${WORKDIR}"
|
||||
src_install() {
|
||||
insinto "/"
|
||||
doins "${FILESDIR}/authorized_keys"
|
||||
doins "${FILESDIR}/cloud-config.yml"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user