-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
176503b
commit c53aad0
Showing
28 changed files
with
408 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,9 @@ override.tf.json | |
.terraformrc | ||
terraform.rc | ||
|
||
.terragrunt-cache | ||
.terragrunt | ||
|
||
# nix | ||
result | ||
.direnv | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
sops_key=$(cat "$HOME/.ssh/id_ed25519.pub" | ssh-to-age) | ||
|
||
cat <<EOF > ~/.sops.yaml | ||
creation_rules: | ||
- key_groups: | ||
- age: | ||
- "$sops_key" | ||
path_regex: "\\w\\.(yaml|json)$" | ||
keys: | ||
- $sops_key | ||
EOF | ||
|
||
SOPS_AGE_KEY=$(ssh-to-age -private-key < ~/.ssh/id_ed25519) | ||
export SOPS_AGE_KEY | ||
SOPS_AGE_RECIPIENTS=$(ssh-to-age < ~/.ssh/id_ed25519.pub) | ||
|
||
export SOPS_AGE_KEY SOPS_AGE_RECIPIENTS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
lib, | ||
pkgs, | ||
manifests ? [] | ||
} : | ||
{ | ||
script = "mkdir -p /var/lib/rancher/k3s/server/manifests;" + | ||
lib.strings.concatMapStrings (manifest: | ||
with manifest; | ||
let namespaceExpr = if namespace != "" then "-n ${namespace}" else ""; in | ||
'' | ||
cp -fp ${file} /var/lib/rancher/k3s/server/manifests; | ||
${pkgs.k3s}/bin/kubectl wait --for='${condition}' ${toWait} ${namespaceExpr} --timeout=2m; | ||
'' | ||
) manifests; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
locals { | ||
env = read_terragrunt_config("env.hcl") | ||
} | ||
|
||
remote_state { | ||
backend = "local" | ||
config = { | ||
path = "${get_parent_terragrunt_dir()}/.terragrunt/${local.env.locals.env}/terraform.tfstate" | ||
} | ||
|
||
generate = { | ||
path = "backend.tf" | ||
if_exists = "overwrite" | ||
} | ||
} | ||
|
||
inputs = merge( | ||
local.env.locals.secret_vars, | ||
local.env.locals.input_vars | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.