Skip to content

Instantly share code, notes, and snippets.

View archmangler's full-sized avatar
🌴
On vacation

Traiano Welcome archmangler

🌴
On vacation
View GitHub Profile
@archmangler
archmangler / terraform-output-json-parsing
Last active October 27, 2022 04:16
Parsing Terraform JSON output
Terraform: Using JSON with JQ to filter and extract output values
=================================================================
- Sometimes we need clean, elegant extraction of values from the terraform output to pass data to a next stage pipeline.
- JSON and JQ make this reliable, simple and fun!
```
gmonkey@tfvm:~/Ship/5ncn$ terraform output -json cluster_slave_private_addresses| jq .value
[
"192.168.101.6",
@archmangler
archmangler / jenkins-slave-dockerfile
Created December 5, 2018 18:26
jenkins-slave-dockerfile-for-ocp-kubernetes
FROM openshift/origin
MAINTAINER SRE Team <sre@local>
ENV HOME=/home/jenkins
USER root
# Install headless Java
RUN yum install -y centos-release-scl-rh && \
x86_EXTRA_RPMS=$(if [ "$(uname -m)" == "x86_64" ]; then echo -n java-1.8.0-openjdk-headless.i686 ; fi) && \
@archmangler
archmangler / jenkins-ubuntu-installation
Created December 9, 2018 14:27
Four ways to install Jenkins
Quick Notes on installation Options for Ubuntu
==============================================
1. Directly on Ubuntu
(Note: This one is entangled with the Oracle licensing nonsense. Lately they've threatened to stop free downloads of Java, so Caveat Emptor)
```
@archmangler
archmangler / implementing-azure-cloud-design-patterns.txt
Last active December 30, 2018 11:12
book summary of azure cloud design patterns
Book Summary notes: Implementing Azure Cloud Design Patterns
============================================================
- Commentary
- Summary
- Errata notes
Chapter 1:
==========
@archmangler
archmangler / HashiCorpVaultImplementationOptions
Last active December 30, 2018 13:57
hashicorp vault implementation and customisation options
Review of possible options for deploying Hashicorp Vault
========================================================
1. VM based
2. Containerised
3. AWS
4. Azure
5. DC/OS
6. Kubernetes
(The following call is repeated over > 15 mins)
```
2019-01-24T18:33:18.472Z [DEBUG] plugin.terraform-provider-azurerm_v1.21.0_x4: 2019/01/24 18:33:18 [TRACE] Waiting 30s before next try
module.securitycenter.azurerm_security_center_workspace.sc: Still modifying... (ID: redacted3, 14m40s elapsed)
module.securitycenter.azurerm_security_center_workspace.sc: Still modifying... (ID: redacted3, 14m50s elapsed)
module.securitycenter.azurerm_security_center_workspace.sc: Still modifying... (ID: redacted3, 15m0s elapsed)
2019-01-24T18:33:48.472Z [DEBUG] plugin.terraform-provider-azurerm_v1.21.0_x4: 2019/01/24 18:33:48 [DEBUG] AzureRM Request:
2019-01-24T18:33:48.472Z [DEBUG] plugin.terraform-provider-azurerm_v1.21.0_x4: GET /subscriptions/redacted/providers/Microsoft.Security/workspaceSettings/default?api-version=2017-08-01-preview HTTP/1.1
2019-01-24T18:33:48.472Z [DEBUG] plugin.terraform-provider-azurerm_v1.21.0_x4: Host: management.azure.com
@archmangler
archmangler / change-control-checklist.md
Last active May 12, 2019 10:41
Change Control Execution Check List

Checklist before making changes on important systems

Most of the catastrophes on I.T systems occur because of human error. Put succinctly "If it aint broke don't fix it". Here is a list of questions you can process every change you want to make on a given system through before you make that change. It was gathered from years of painful experience and, if followed will keep you on the right side of a performance review if your job is to keep critical, complex systems running (especially ones you've inherited and are not yet completely familiar with). The faster you get at accurately answering these questions in response to every requirement for a systems change, the better.

  • do you understand the configuration itself?
@archmangler
archmangler / prometheus-object.yaml
Created November 17, 2019 04:24
Prometheus object yaml dump
apiVersion: v1
items:
- apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2019-11-15T07:55:25Z"
generateName: kube-state-metrics-549767c89b-
labels:
app: kube-state-metrics
pod-template-hash: 549767c89b

Propositions:

  • Some topics of learning require foundational pre-requisites in other subjects and are inaccessible without first learning in these areas.

Stack #1

  • L3: [Linux Kernel Development]
  • L2: [C Programming][x86-assembly][Operating Systems Design]