From a3b842d44314aa2209e1937c816bf6cad47fe975 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Tue, 10 Jan 2017 16:53:13 +0100 Subject: [PATCH 1/3] [GCP] Configure ntp server Signed-off-by: David Gageot --- alpine/packages/chronyd/etc/init.d/chronyd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/alpine/packages/chronyd/etc/init.d/chronyd b/alpine/packages/chronyd/etc/init.d/chronyd index fad9060f1..6dd5de3e3 100755 --- a/alpine/packages/chronyd/etc/init.d/chronyd +++ b/alpine/packages/chronyd/etc/init.d/chronyd @@ -56,6 +56,9 @@ start() { "aws") sed -i -e "s/^server [^ ]\+/server 0.amazon.pool.ntp.org/g" /etc/chrony/chrony.conf ;; + "gcp") + sed -i -e "s/^server [^ ]\+/server metadata.google.internal/g" /etc/chrony/chrony.conf + ;; "azure") # TODO needs an ntp solution ;; From da6c2d945d3ef9b767f455d70823148441e62151 Mon Sep 17 00:00:00 2001 From: David Gageot Date: Tue, 10 Jan 2017 16:54:13 +0100 Subject: [PATCH 2/3] [GCP] Remove useless `stop()` Signed-off-by: David Gageot --- alpine/packages/gcp/etc/init.d/gcp-hostname | 5 ----- 1 file changed, 5 deletions(-) diff --git a/alpine/packages/gcp/etc/init.d/gcp-hostname b/alpine/packages/gcp/etc/init.d/gcp-hostname index c9a6e69e8..39ee79624 100755 --- a/alpine/packages/gcp/etc/init.d/gcp-hostname +++ b/alpine/packages/gcp/etc/init.d/gcp-hostname @@ -27,8 +27,3 @@ start() eend 0 } - -stop() -{ - [ "$(mobyplatform)" != "gcp" ] && exit 0 -} From 214bce6c1dbeecc2477ec52a3503536b92af677f Mon Sep 17 00:00:00 2001 From: David Gageot Date: Tue, 10 Jan 2017 17:10:55 +0100 Subject: [PATCH 3/3] [GCP] Configure diagnostics server Signed-off-by: David Gageot --- alpine/packages/diagnostics/etc/init.d/diagnostics | 3 +++ 1 file changed, 3 insertions(+) diff --git a/alpine/packages/diagnostics/etc/init.d/diagnostics b/alpine/packages/diagnostics/etc/init.d/diagnostics index eee304a61..13f69ed29 100755 --- a/alpine/packages/diagnostics/etc/init.d/diagnostics +++ b/alpine/packages/diagnostics/etc/init.d/diagnostics @@ -18,6 +18,9 @@ start() "azure") DIAGNOSTICS_SERVER_FLAGS="-http" ;; + "gcp") + DIAGNOSTICS_SERVER_FLAGS="-http" + ;; "windows") DIAGNOSTICS_SERVER_FLAGS="-hvsock" ;;