Commands for controlling the Raspberry Pi 2 LEDs.
See rpi-leds for a node module that does this.
- OK (ACT) LED =
led0
- Power (PWR) LED =
led1
Allow access
#!/bin/bash | |
export S3_ACCESS_KEY="REDACTED" | |
export S3_SECRET_KEY="READCTED" | |
export S3_BUCKET="vault-snapshots" | |
export S3_ENDPOINT="https://s3.eu-west-1.wasabisys.com" | |
export S3_REGION="eu-west-1" | |
vault write sys/storage/raft/snapshot-auto/config/daily \ | |
interval="24h" \ |
frontend vault_api_vip | |
bind *:8200 | |
mode tcp | |
default_backend vault_api_pool | |
option tcplog | |
backend vault_api_pool | |
mode tcp | |
balance roundrobin | |
option httpchk HEAD /v1/sys/health |
# List DB Connections (update is technically not needed, but the UI will complain if missing) | |
path "database/config" { | |
capabilities = [ "list", "update" ] | |
} | |
# Manage DB connections | |
path "database/config/*" { | |
capabilities = [ "create", "delete", "read", "update" ] | |
} |
Commands for controlling the Raspberry Pi 2 LEDs.
See rpi-leds for a node module that does this.
led0
led1
Allow access
locals { | |
app_ns = "app1" | |
member_group_ids = [] | |
} | |
resource "vault_namespace" "default" { | |
path = local.app_ns | |
} | |
provider "vault" { |
--- | |
# common values in inventory/group_vars/all.yaml | |
- hosts: vault_do | |
become: true | |
roles: | |
- role: ansible-role-vault | |
vars: | |
vault_ansible_group: 'vault_do' | |
vault_tls_leader_servername: 'vault.local' | |
vault_cluster_name: vault-primary |
# Read system health check | |
path "acme/*" { | |
capabilities = ["create", "read", "update", "delete", "list"] | |
} | |
# Read system health check | |
path "sys/health" { | |
capabilities = ["read", "sudo"] | |
} |
#!/bin/bash | |
MASTER="$(puppet config print server)" | |
CA_DIR="/usr/local/share/ca-certificates" | |
curl -kv "https://$MASTER:8140/puppet-ca/v1/certificate/ca?environment=production&fail_on_404=true"|tee $CA_DIR/$MASTER.crt | |
openssl x509 -in $CA_DIR/$MASTER.crt -noout -subject -startdate -enddate | |
cp $CA_DIR/$MASTER.crt /etc/puppetlabs/puppet/ssl/certs/ca.pem | |
update-ca-certificates |
Sauce: https://linuxhint.com/cleanup-docker/
#!/bin/bash
docker ps -a -f status=exited -q | xargs -r docker rm
docker image prune -f
docker volume ls -f dangling=true -q | xargs -r docker volume rm