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
--- | |
ingress: | |
main: | |
enabled: true | |
annotations: | |
cert-manager.io/cluster-issuer: "letsencrypt-prod" | |
kubernetes.io/ingress.class: "traefik" |
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
module "chart" { | |
source = "./modules/helm" | |
count = length(var.charts) | |
name = element(var.charts, count.index) | |
} | |
variable "charts" { | |
type = list(string) | |
default = ["plex", "home-assistant"] |
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
module "chart" { | |
source = "./modules/chart" | |
for_each = local.charts | |
name = each.key | |
repository = lookup(each.value, "repository", "https://billimek.com/billimek-charts/") | |
chart_version = each.value["chart_version"] | |
} | |
locals { |
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
# count | |
output "plex_ip" { | |
value = module.chart[1].ip | |
} | |
# for_each | |
output "plex_ip { | |
value = module.chart["plex"].ip | |
} |
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
module "chart" { | |
source = "./modules/chart" | |
for_each = local.charts | |
name = each.key | |
repository = each.value["repository"] | |
chart_version = each.value["chart_version"] | |
} | |
locals { |
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
docker buildx create --name multi-platform | |
docker buildx use multi-platform | |
docker buildx inspect --bootstrap |
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
--- | |
timestamp: 2020-03-31 12:37:38 UTC | |
kitchen_version: 2.4.0 | |
plugins: | |
driver: | |
Proxy: | |
class: Kitchen::Driver::Proxy | |
version: 2.4.0 | |
api_version: | |
provisioner: |
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
use_ruby() { | |
# enable the chruby command in an environment | |
source /usr/local/opt/chruby/share/chruby/chruby.sh | |
# desired Ruby version as first parameter | |
local ver=$1 | |
# if version not given as parameter and there is a .ruby-version file, get | |
# version from the file | |
if [[ -z $ver ]] && [[ -f .ruby-version ]]; then |
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
#!/bin/env zsh | |
# 🍳 | |
if [[ -f "/opt/chef-workstation/embedded" ]];then | |
if [[ ! -L ~/.rubies/chef-workstation ]];then | |
ln -s /opt/chef-workstation/embedded ~/.rubies/chef-workstation | |
fi | |
fi |
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
#!/bin/bash | |
add_leading_dot() { | |
# Adds a leading . to a file | |
local filename=$1 | |
local with_leading=$(adddot $filename) | |
if [[ -f "$filename" ]];then | |
mv $filename $with_leading | |
git add $with_leading $filename | |
fi |
NewerOlder