From ed34d44b2b67077d4f6cadea0a3479be1515d466 Mon Sep 17 00:00:00 2001 From: mwiegand Date: Sat, 19 Jun 2021 12:50:27 +0200 Subject: [PATCH] wip --- bundles/gcloud/README.md | 7 +++++-- bundles/gcloud/metadata.py | 1 + nodes/home.server.py | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bundles/gcloud/README.md b/bundles/gcloud/README.md index 2b62e9b..fae07d9 100644 --- a/bundles/gcloud/README.md +++ b/bundles/gcloud/README.md @@ -1,2 +1,5 @@ -# gcloud projects add-iam-policy-binding sublimity-182017 --member 'serviceAccount:backup@sublimity-182017.iam.gserviceaccount.com' --role 'roles/storage.objectViewer' -# gcloud projects add-iam-policy-binding sublimity-182017 --member 'serviceAccount:backup@sublimity-182017.iam.gserviceaccount.com' --role 'roles/storage.objectCreator' +``` +gcloud projects add-iam-policy-binding sublimity-182017 --member 'serviceAccount:backup@sublimity-182017.iam.gserviceaccount.com' --role 'roles/storage.objectViewer' +gcloud projects add-iam-policy-binding sublimity-182017 --member 'serviceAccount:backup@sublimity-182017.iam.gserviceaccount.com' --role 'roles/storage.objectCreator' +gsutil -o "GSUtil:parallel_process_count=3" -o GSUtil:parallel_thread_count=4 -m rsync -r -d -e /var/vmail gs://sublimity-backup/mailserver +``` diff --git a/bundles/gcloud/metadata.py b/bundles/gcloud/metadata.py index 9817faf..3cac568 100644 --- a/bundles/gcloud/metadata.py +++ b/bundles/gcloud/metadata.py @@ -5,6 +5,7 @@ defaults = { 'ca-certificates': {}, 'gnupg': {}, 'google-cloud-sdk': {}, + 'python3-crcmod': {}, }, 'sources': { 'gcloud': 'deb https://packages.cloud.google.com/apt cloud-sdk main', diff --git a/nodes/home.server.py b/nodes/home.server.py index 8a76ff5..745f08e 100644 --- a/nodes/home.server.py +++ b/nodes/home.server.py @@ -7,6 +7,7 @@ 'gitea', 'postgresql', 'wireguard', + 'gcloud', ], 'metadata': { 'network': {