From 72e264e2ccda60ba1fc1c2e0549f6ad094faa566 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 3 Jul 2022 03:04:08 +0700 Subject: all: install prebuild ops-agent binary This ops-agent is prebuild package from AUR [1]. [1] https://build.kilabit.info --- README.md | 2 ++ build-arch-gce | 6 +++++- sys/etc/pacman.conf | 4 ++++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0b18597..f84486c 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,8 @@ Arch Linux installation are the following: - An additional Pacman repository is used to install and keep the [Linux Guest Environment](https://aur.archlinux.org/packages/google-compute-engine/) packages up to date. +- Ops-agent package installed from + [AUR at build.kilabit.info](https://build.kilabit.info). ## Prebuilt Images diff --git a/build-arch-gce b/build-arch-gce index e52eef1..1fdeb84 100755 --- a/build-arch-gce +++ b/build-arch-gce @@ -71,7 +71,8 @@ rsync -r /var/lib/pacman/sync/ $mount_dir/var/lib/pacman/sync/ echo '- Installing Arch Linux.' pacstrap -c -C "./sys/etc/pacman.conf" -- "$mount_dir" \ base linux dosfstools e2fsprogs dhclient openssh sudo google-compute-engine \ - vim-minimal tmux mosh rsync unzip + vim-minimal tmux mosh rsync unzip \ + google-cloud-ops-agent-git cp -f ./sys/etc/pacman.conf "$mount_dir/etc/pacman.conf" echo '- Configuring fstab.' @@ -150,6 +151,9 @@ arch-chroot -- "$mount_dir" /bin/bash -s <<-'EOS' Before=systemd-growfs@-.service EOF + echo '-- Enabling google-cloud-ops-agent.service' + systemctl --quiet enable google-cloud-ops-agent.service + echo '-- Enabling other services.' systemctl --quiet enable dhclient@eth0.service diff --git a/sys/etc/pacman.conf b/sys/etc/pacman.conf index 427f73d..e8760a2 100644 --- a/sys/etc/pacman.conf +++ b/sys/etc/pacman.conf @@ -102,3 +102,7 @@ Include = /etc/pacman.d/mirrorlist [gce] Server = https://storage.googleapis.com/arch-linux-gce/repo SigLevel = Optional TrustAll + +[build.kilabit.info] +SigLevel = Optional TrustAll +Server = https://build.kilabit.info/aur -- cgit v1.3