fix(oem-gce): use cloud-config instead of run

This commit is contained in:
Brandon Philips 2014-03-18 22:00:09 -07:00
parent e1bf07d74d
commit 66760e1293
3 changed files with 19 additions and 3 deletions

View File

@ -0,0 +1,14 @@
#cloud-config
coreos:
units:
- name: ec2-ssh-key.service
runtime: yes
content: |
[Unit]
Description=Sets SSH key from metadata
[Service]
Type=oneshot
StandardOutput=journal+console
ExecStart=/usr/share/oem/bin/gce-ssh-key

View File

@ -15,10 +15,12 @@ IUSE=""
# no source directory
S="${WORKDIR}"
RDEPEND="dev-lang/python"
src_install() {
exeinto "/"
doexe ${FILESDIR}/run
into "/"
dobin ${FILESDIR}/gce-ssh-key
insinto "/"
doins ${FILESDIR}/oem-release
doins ${FILESDIR}/cloud-config.yml
}