Skip to content

Instantly share code, notes, and snippets.

View devops-rob's full-sized avatar
🏠
Working from home

DevOps Rob devops-rob

🏠
Working from home
View GitHub Profile
#!/bin/bash
function packagereqchecker {
declare -a packages=("wget" "setroubleshoot-server" "selinux-policy-devel" "unzip")
for app in "${packages[@]}";
do
echo $app
if yum list installed $app 2>&1 > /dev/null;
then
#!/bin/bash
declare -a packages=("wget" "setroubleshoot-server" "selinux-policy-devel" "unzip" "openssl" "openssl-devel")
function packagereqchecker {
for app in "${packages[@]}";
do
echo $app
if yum list installed $app 2>&1 > /dev/null;
then

Keybase proof

I hereby claim:

  • I am devops-rob on github.

  • I am devopsrob (https://keybase.io/devopsrob) on keybase.

  • I have a public key ASBbGv8RQlAmaJ8xIoDtjNtcxKgdCvQuozoR11XAU5jZ_Qo

@devops-rob
devops-rob / Cconsul_acl_token_privisoner.sh
Created October 24, 2019 14:31
This script creates a botstrap acl token, then creates a policy for both agent tokens and vault client tokens, then finaly the tokns respectively
#!/bin/bash
export CONSUL_HTTP_ADDR=https://10.201.44.11:8501
export CONSUL_CACERT=/etc/consul.d/tls/consul-agent-ca.pem
export CONSUL_CLIENT_CERT=/etc/consul.d/tls/dc1-cli-consul-0.pem
export CONSUL_CLIENT_KEY=/etc/consul.d/tls/dc1-cli-consul-0-key.pem
AGENT_POLICY_NAME="agent-acl-policy"
CLIENT_POLICY_TOKEN="vault-acl-policy"
{
"variables": {
"image_version": "1.0.0",
"consul_version": "1.2.3",
"cost_centre": "OII",
"vm_size": "Standard_D2_v3"
},
"builders": [
{
"type": "azure-arm",
@devops-rob
devops-rob / azurerm_role_assignment_error.txt
Created August 20, 2020 15:54
Error debug output from terraform plan. Subscription IDs have been anonymised
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
data.azurerm_subscription.current: Refreshing state...
data.azurerm_role_definition.contributor: Refreshing state...
azurerm_resource_group.main: Refreshing state... [id=/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/packer-resources]
azurerm_resource_group.demo-packer-rg: Refreshing state... [id=/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/demo-packer-rg]
azurerm_virtual_network.main: Refreshing state... [id=/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/packer-resources/providers/Microsoft.Network/virtualNetworks/packer-network]
azurerm_public_ip.packer: Refreshing state... [id=/subscriptions/00000000-0000-0000-0000-0000000000/resourceGroups/packer-resources/providers/Microsoft.Network/publicIPAddresses/packer]