From 6ae51808234b9a55c08043356a139aa2aab7ec90 Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Sun, 28 Jan 2024 05:33:07 +0000 Subject: [PATCH] Latest --- .../files/gdrive3-tokens.json | 18 ++++++++++++++++++ .../secrets/GOOGLE_DRIVE_CLIENT_ID | 8 ++++++++ .../secrets/GOOGLE_DRIVE_CLIENT_SECRET | 7 +++++++ home/dot_config/gdrive3/account.json.tmpl | 3 +++ home/dot_config/gdrive3/default/secret.json | 4 ++++ home/dot_config/gdrive3/default/tokens.json | 3 +++ software.yml | 4 +++- 7 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 home/.chezmoitemplates/files/gdrive3-tokens.json create mode 100644 home/.chezmoitemplates/secrets/GOOGLE_DRIVE_CLIENT_ID create mode 100644 home/.chezmoitemplates/secrets/GOOGLE_DRIVE_CLIENT_SECRET create mode 100644 home/dot_config/gdrive3/account.json.tmpl create mode 100644 home/dot_config/gdrive3/default/secret.json create mode 100644 home/dot_config/gdrive3/default/tokens.json diff --git a/home/.chezmoitemplates/files/gdrive3-tokens.json b/home/.chezmoitemplates/files/gdrive3-tokens.json new file mode 100644 index 00000000..56787393 --- /dev/null +++ b/home/.chezmoitemplates/files/gdrive3-tokens.json @@ -0,0 +1,18 @@ +-----BEGIN AGE ENCRYPTED FILE----- +YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBTMjl1NlZMT3B2STI4blBl +Wmx2aTFsNUNvL3NRa3FSZ2xIemIxOGJlNkNRCk82VllnelRCUFZwUHBYRHYxNTlO +a1RPSEZWcDVRTkJRaGtmTTI3Q2ZQc0UKLS0tIC94N0Q5TDNqcnozM2EyVUxTSnVR +NVRLNVV1UkRmV0s5ZEdubityTS9NeFkKI+OKX5cGV5UobMTgkd9i/SAKeW1NESZN +PYc4iTY1PzfraCM4U2J3JuAnG+Ercjj5wHL4mDDNB8eTKr7R0VL/UI+HLWjnLdYQ +TAlgj+6/SkJIgNvIj7A+qh6fG4/YZt88es0qet0E/8rhyuPUxEBwHlvYH7HNM87j +KF5EzZ14VKs6MPOZy0YBpBH3nIS7JmupHSNBOtThB5hzDReaVhqFv8p/3YFQ4Lfg +iVTakp0gEq606DXarBKT3V5ZhRRb9fVqel87K2OemBolnc15VMe9fygROXA6YSKI +7iptP9qa/caejO7QAYdiWWUpYMbqy9nl23nygFQgmwL32cAUvkoVi2uJz2NuIGiV ++WTfQmRUYdVYwy+DA0gG7PkKEGIqYdWQYbkZ0dfpxEB+HSG//KtYSqgn8rICymTj +pvQVNySQIYUdJdPWSPsdSb0nthb35kUddC2jOILxgh4dNY/8hs7SdB67Upm5cNQL +63WKLTjLsWb1WBPImFTW22Qr4ArEQGe1RLOcufix/hT2a7feMcAc5VyHy6TNlvdz +dOkKv8YhBzSDSf9+WIg1abcvyC0VmGITsiXrwrieH+RFyB4Nyp75Efy5ff6BiRvn +ss6OSAYEbS+e0LfCS43KFgKH+EWVGhnUVvhN+pw+sARBJXGbMXGFxNt0F9A04wgV +2pJSyw1sytnSxyJyRUA1e6PkILbcPxwf+wq0uHR3lYYlFAo8/VlFJpnvYU/1TotR +gIMUWitxbALm1DKc/bTfDP3Tj+eBrQ== +-----END AGE ENCRYPTED FILE----- \ No newline at end of file diff --git a/home/.chezmoitemplates/secrets/GOOGLE_DRIVE_CLIENT_ID b/home/.chezmoitemplates/secrets/GOOGLE_DRIVE_CLIENT_ID new file mode 100644 index 00000000..c062539b --- /dev/null +++ b/home/.chezmoitemplates/secrets/GOOGLE_DRIVE_CLIENT_ID @@ -0,0 +1,8 @@ +-----BEGIN AGE ENCRYPTED FILE----- +YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBCQXk0Y2lUbisyNFQzbVFU +WGlGTEFveG4zZDgycWdxaXFrUkpBWVdpb0VrCjRtemhYa1g0Ry9PYmM5ZG9XQlZp +UU9STkF6Ty9XSThXcXZoUnZXcElWaTAKLS0tIFg2eGhkaVlPOHUwL29aNERLRngy +N3AvaXlQTzRwT3FSdkVGdDloS3VGOFkK0+z6GUa9J/fj7ZiEYvtuxWheDi02LSES +TJWmPeLYlCiigtjtKayV0Wm9OziRNFkGo1YZQnNGyJ716zV5G++LpRPCmaFrYc9s +MbX6GphQJDoQBgWFkraA0+j6s5eVPh/f6FZ5u+K/UxU= +-----END AGE ENCRYPTED FILE----- \ No newline at end of file diff --git a/home/.chezmoitemplates/secrets/GOOGLE_DRIVE_CLIENT_SECRET b/home/.chezmoitemplates/secrets/GOOGLE_DRIVE_CLIENT_SECRET new file mode 100644 index 00000000..d81676b5 --- /dev/null +++ b/home/.chezmoitemplates/secrets/GOOGLE_DRIVE_CLIENT_SECRET @@ -0,0 +1,7 @@ +-----BEGIN AGE ENCRYPTED FILE----- +YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSAyS0dyVFlmVDQ2d3U4dEVZ +S3VCd1p4Z01WSTZ0OGplUHpFN3JCV0RzMUZnClRKYmozQ01IaEw3UFIvUjYvSTFI +RlQ4SktQNnJGZ1pXbmhwL0tlODdUbEEKLS0tIEdIaXhBcXJBZzNqci9mNkgyT1kz +bnNreFlGMGNoaWNjSmR5UGlsY3YxbFkK72gWNTwEcntkveaWipUx269xL549VYyz +yYaDvOuUKucEsecieedwgpQXHoT1rYa1APFlIdLFB0wawqM0g3aSaqTBMA== +-----END AGE ENCRYPTED FILE----- \ No newline at end of file diff --git a/home/dot_config/gdrive3/account.json.tmpl b/home/dot_config/gdrive3/account.json.tmpl new file mode 100644 index 00000000..d21327b0 --- /dev/null +++ b/home/dot_config/gdrive3/account.json.tmpl @@ -0,0 +1,3 @@ +{ + "current": "default" +} \ No newline at end of file diff --git a/home/dot_config/gdrive3/default/secret.json b/home/dot_config/gdrive3/default/secret.json new file mode 100644 index 00000000..4e9fb2c8 --- /dev/null +++ b/home/dot_config/gdrive3/default/secret.json @@ -0,0 +1,4 @@ +{ + "client_id": "{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "GOOGLE_DRIVE_CLIENT_ID")) }}{{- includeTemplate "secrets/GOOGLE_DRIVE_CLIENT_ID" | decrypt | trim -}}{{ else }}{{- env "GOOGLE_DRIVE_CLIENT_ID" -}}{{ end }}", + "client_secret": "{{ if (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "secrets" "GOOGLE_DRIVE_CLIENT_SECRET")) }}{{- includeTemplate "secrets/GOOGLE_DRIVE_CLIENT_SECRET" | decrypt | trim -}}{{ else }}{{- env "GOOGLE_DRIVE_CLIENT_SECRET" -}}{{ end }}" + } \ No newline at end of file diff --git a/home/dot_config/gdrive3/default/tokens.json b/home/dot_config/gdrive3/default/tokens.json new file mode 100644 index 00000000..8b528513 --- /dev/null +++ b/home/dot_config/gdrive3/default/tokens.json @@ -0,0 +1,3 @@ +{{- if and (stat (joinPath .host.home ".config" "age" "chezmoi.txt")) (stat (joinPath .chezmoi.sourceDir ".chezmoitemplates" "files" "gdrive3-tokens.json")) -}} +{{ includeTemplate "files/gdrive3-tokens.json" | decrypt -}} +{{ end -}} diff --git a/software.yml b/software.yml index 7a2492b0..b2f867cd 100644 --- a/software.yml +++ b/software.yml @@ -12050,7 +12050,9 @@ softwarePackages: _name: tfenv _post: | #!/usr/bin/env bash - tfenv use latest + if command -v tfenv > /dev/null; then + tfenv use latest + fi ansible:darwin: professormanhattan.tfenv ansible:linux: professormanhattan.tfenv brew: tfenv