Skip to content

Instantly share code, notes, and snippets.

View lomar92's full-sized avatar
:electron:
Working on something big

donatello {he/him} lomar92

:electron:
Working on something big
View GitHub Profile
@gitrgoliveira
gitrgoliveira / vault_gh_setup.sh
Created December 6, 2021 14:15
setting up vault for GitHub Action OIDC auth
export VAULT_ADDR="https://xxxx:8200"
export VAULT_NAMESPACE="admin"
export VAULT_TOKEN=xxx
tee vault-action.hcl <<EOF
path "kv/data/ci" {
capabilities = ["read"]
}
@npearce
npearce / raspberry_pi_consul_cluster.md
Last active November 7, 2024 06:28
Build a Raspberry Pi Consul Cluster

Configure Raspberry Pi Networking

It is possible to run 3 consul servers on the same IP address if you shift the various ports to unique numbers to avoid conflict, but you don't have to do that.

Instead, add interface alias's in your /etc/rc.local (just before the exit 0), e.g.:

In my case, wlan0 is a dhcp assigned interface. The following commands add three new alias interfaces, wlan0:1, etc, with their own stat IP Addresses.

ifconfig wlan0:1 inet 10.0.0.41 netmask 255.255.255.0