Skip to content

Instantly share code, notes, and snippets.

## cadvisor
#
variable "dh_uid" {
type = string
default = "mydh"
}
#
## pwd needs to be _read -sp_'d into the user's env before the job is run:
## read -sp '> ' NOMAD_VAR_dh_pwd && export NOMAD_VAR_dh_pwd=${NOMAD_VAR_dh_pwd}
#
@ml4
ml4 / hc-vault-recursive-namespace-list.sh
Created July 15, 2022 17:42
Recursive list of Vault Enterprise namespaces
#!/bin/bash
function list_namespace {
entry_point=$(echo ${1} | sed 's/\/$//')
echo "${entry_point}"
## first, check if root ns, and if so collect children slightly differently due to path specification
#
if [[ "${entry_point}" == "root" ]]
then

Keybase proof

I hereby claim:

  • I am ml4 on github.
  • I am ml4 (https://keybase.io/ml4) on keybase.
  • I have a public key whose fingerprint is A4D8 F831 732D B143 F30B 1405 3ED5 A50E 236F 6023

To claim this, I am signing this object: