fix(coreos-base/oem-vagrant): Create directory for vagrant user-data.

This fixes compatibility with the existing Vagrantfile in
coreos-vagrant which expected the plugin code to create this directory.
Also, the units can be runtime since they are always written at boot.
This commit is contained in:
Michael Marineau 2014-04-29 02:10:10 -04:00
parent d7cfb39436
commit def1901f7e

View File

@ -1,9 +1,16 @@
#cloud-config #cloud-config
coreos: coreos:
units: units:
- name: coreos-cloudinit-vagrant-mkdir.service
command: start
runtime: yes
content: |
[Service]
Type=oneshot
ExecStart=/bin/mkdir -p /var/lib/coreos-vagrant
- name: coreos-cloudinit-vagrant-user.path - name: coreos-cloudinit-vagrant-user.path
command: start command: start
runtime: no runtime: yes
content: | content: |
[Path] [Path]
PathExists=/var/lib/coreos-vagrant/vagrantfile-user-data PathExists=/var/lib/coreos-vagrant/vagrantfile-user-data