mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 02:16:59 +02:00
wip, add nova-agent-watcher powered by cloudinit
This commit is contained in:
parent
268e6ad51e
commit
fea10c7ad1
@ -9,7 +9,7 @@ CROS_WORKON_REPO="git://github.com"
|
|||||||
if [[ "${PV}" == 9999 ]]; then
|
if [[ "${PV}" == 9999 ]]; then
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
else
|
else
|
||||||
CROS_WORKON_COMMIT="d823f99f7d491b84e4bc91f492bf2aefef6846b5" # tag v0.1.1
|
CROS_WORKON_COMMIT="6a6897831a8ada4cab112001620b08b0e31dfe89" # tag v0.1.1
|
||||||
KEYWORDS="amd64"
|
KEYWORDS="amd64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
nova-agent-watcher-9999.ebuild
|
@ -0,0 +1,35 @@
|
|||||||
|
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=4
|
||||||
|
CROS_WORKON_PROJECT="coreos/nova-agent-watcher"
|
||||||
|
CROS_WORKON_LOCALNAME="nova-agent-watcher"
|
||||||
|
CROS_WORKON_REPO="git://github.com"
|
||||||
|
|
||||||
|
if [[ "${PV}" == 9999 ]]; then
|
||||||
|
KEYWORDS="~amd64"
|
||||||
|
else
|
||||||
|
CROS_WORKON_COMMIT="bff26eea5578ca36115707d46d5bdc865d69a460" # tag v0.1.1
|
||||||
|
KEYWORDS="amd64"
|
||||||
|
fi
|
||||||
|
|
||||||
|
inherit cros-workon systemd
|
||||||
|
|
||||||
|
DESCRIPTION="nova-agent-watcher"
|
||||||
|
HOMEPAGE="https://github.com/coreos/nova-agent-watcher"
|
||||||
|
SRC_URI=""
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND=">=dev-lang/go-1.2"
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
./build || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin ${S}/scripts/gentoo-to-networkd
|
||||||
|
dobin ${S}/bin/nova-agent-watcher
|
||||||
|
}
|
@ -1,4 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
systemctl enable --runtime /usr/share/oem/system/*
|
/usr/bin/systemd-run /usr/share/oem/usr/bin/nova-agent-watcher -watch-dir=/usr/share/oem/nova-agent -scripts-dir=/usr/share/oem/usr/bin/
|
||||||
systemctl start oem.target
|
|
||||||
|
@ -20,6 +20,10 @@ IUSE=""
|
|||||||
EGIT_REPO_URI="https://github.com/coreos/nova-agent-container.git"
|
EGIT_REPO_URI="https://github.com/coreos/nova-agent-container.git"
|
||||||
EGIT_COMMIT="44af5608e9a9e43fe83d05f03049a1f66d564930"
|
EGIT_COMMIT="44af5608e9a9e43fe83d05f03049a1f66d564930"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
coreos-base/nova-agent-watcher
|
||||||
|
"
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
rsync --exclude=".git" -aq ${S}/ ${D}/nova-agent/
|
rsync --exclude=".git" -aq ${S}/ ${D}/nova-agent/
|
||||||
rsync -aq ${FILESDIR}/systemd/ ${D}/system/
|
rsync -aq ${FILESDIR}/systemd/ ${D}/system/
|
||||||
|
Loading…
Reference in New Issue
Block a user