New package: GCP-Guest-Environment-20170718
This commit is contained in:
parent
eb400a20e7
commit
934a431ae9
5 changed files with 74 additions and 0 deletions
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
# The Google services assert that the init is performing some
|
||||
# sequencing. Since runit provides no such facility, we will block
|
||||
# all other services from launching here until we can talk to the
|
||||
# metadata server.
|
||||
while ! ping -c1 metadata.google.internal >/dev/null ; do
|
||||
sleep 5
|
||||
done
|
||||
|
||||
# This is supposed to do all kinds of setup tasks to get the machine
|
||||
# ready for the next phases of startup
|
||||
google_instance_setup
|
||||
|
||||
# This script does a little more network setup to make sure all
|
||||
# interfaces are up. We don't really need it since dhcpcd will do
|
||||
# this anyway, but its nice to use the provided one.
|
||||
google_network_setup
|
||||
|
||||
# Both of those scripts are one-shots, so we drop privs and just sit
|
||||
# here now to let the other scripts start.
|
||||
exec chpst -u nobody:nogroup pause -b GCP-Guest-Initialization
|
9
srcpkgs/GCP-Guest-Environment/files/GCP-accounts/run
Normal file
9
srcpkgs/GCP-Guest-Environment/files/GCP-accounts/run
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
sv check GCP-Guest-Initialization || exit 1
|
||||
|
||||
while ! ping -c1 metadata.google.internal >/dev/null ; do
|
||||
sleep 5
|
||||
done
|
||||
|
||||
exec google_accounts_daemon
|
9
srcpkgs/GCP-Guest-Environment/files/GCP-clock-skew/run
Normal file
9
srcpkgs/GCP-Guest-Environment/files/GCP-clock-skew/run
Normal file
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
sv check GCP-Guest-Initialization || exit 1
|
||||
|
||||
while ! ping -c1 metadata.google.internal >/dev/null ; do
|
||||
sleep 5
|
||||
done
|
||||
|
||||
exec google_clock_skew_daemon
|
|
@ -0,0 +1,9 @@
|
|||
#!/bin/sh
|
||||
|
||||
sv check GCP-Guest-Initialization || exit 1
|
||||
|
||||
while ! ping -c1 metadata.google.internal >/dev/null ; do
|
||||
sleep 5
|
||||
done
|
||||
|
||||
exec google_ip_forwarding_daemon
|
25
srcpkgs/GCP-Guest-Environment/template
Normal file
25
srcpkgs/GCP-Guest-Environment/template
Normal file
|
@ -0,0 +1,25 @@
|
|||
# Template file for 'GCP-Guest-Environment'
|
||||
pkgname=GCP-Guest-Environment
|
||||
version=20170718
|
||||
revision=1
|
||||
wrksrc=compute-image-packages-$version
|
||||
noarch=yes
|
||||
build_style=python2-module
|
||||
hostmakedepends="python python-setuptools"
|
||||
depends="$hostmakedepends python-boto socklog-void"
|
||||
short_desc="Packages for Google Compute Engine Linux images"
|
||||
# Though I work for Google, this package is not officially recognized
|
||||
# or maintained by Google. I maintain this on a best effort basis
|
||||
# when I have free time. I use my work email for this only because it
|
||||
# makes a little more sense to me than my VoidLinux email.
|
||||
maintainer="Michael Aldridge <themaldridge@google.com>"
|
||||
license="Apache-2"
|
||||
homepage="https://github.com/GoogleCloudPlatform/compute-image-packages"
|
||||
distfiles="https://github.com/GoogleCloudPlatform/compute-image-packages/archive/$version.tar.gz"
|
||||
checksum=c161a4d5a86e40be981bcb3a31aeb3bf9995b96d8302ef800a0251b17f72b254
|
||||
|
||||
post_install() {
|
||||
for _i in Guest-Initialization accounts clock-skew ip-forwarding ; do
|
||||
vsv GCP-$_i;
|
||||
done
|
||||
}
|
Loading…
Reference in a new issue