I hereby claim:
- I am dalethestirling on github.
- I am dale_stirling (https://keybase.io/dale_stirling) on keybase.
- I have a public key ASBf6yoguvhr0qq6y7ck0j_h6-_V-RwOFC619oak9zCPnQo
To claim this, I am signing this object:
| - name: Create db users | |
| postgresql_user: | |
| login_host: "{{ hostname }}" | |
| login_user: "{{ db_user }}" | |
| login_password: "{{ db_passwd }}" | |
| db: "{{ db }}" | |
| priv: "{{ db_priv }}" | |
| name: "{{ item }}" | |
| password: "{{ lookup('password', playbook_dir + '/' + db + '-' + item.user + '.passwd') }}" | 
| resource "aws_db_instance" "postgres" { | |
| identifier = "${var.postgres_id}" | |
| name = "${var.postgres_name}" | |
| engine = "${var.postgres_engine}" | |
| engine_version = "${var.postgres_version}" | |
| multi_az = "${var.postgres_multi_az}" | |
| instance_class = "${var.postgres_class}" | |
| db_subnet_group_name = "${var.postgres_subnet_group}" | 
| # Terraform converts boolean values to 1 (true) and 0 (false) | |
| # This passed into the count sets the count to 1 or zero effectivly creating or skipping the resource | |
| variable "create_my_group" { default="true" } | |
| variable "name_my_group" { default="my_group" } | |
| variabble "vpc_my_group" { default="vpcid" } | |
| resource "aws_security_group" "my_group" { | |
| count = "${var.create_my_group}" | |
| name = "${var.name_my_group}" | |
| vpc_id = "${var.vpc_id)" | 
| variable "decision_toggle" { default="false" } | |
| variable "val_a" { default="3" } | |
| variable "val_b" { default="3" } | |
| output "toggle_result_0" { | |
| value = "${ var.decision_toggle ? var.val_a : 0 }" | |
| } | |
| output "toggle_result_1" { | |
| value = "${ var.decision_toggle ? var.val_a : var.val_a+var.val_b }" | 
I hereby claim:
To claim this, I am signing this object:
| variable "var_a" { | |
| type = "map" | |
| default = { | |
| "a" = "one" | |
| "b" = "two" | |
| } | |
| } | |
| variable "var_b" { | |
| type = "map" | 
| [crio.runtime] | |
| conmon_cgroup = "pod" | |
| cgroup_manager = "cgroupfs" | 
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| labels: | |
| app: pihole | |
| name: pihole | |
| namespace: pi-hole | |
| spec: | |
| selector: | |
| matchLabels: | 
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: pihole | |
| labels: | |
| app: pihole | |
| spec: | |
| hostNetwork: true | |
| containers: | |
| - name: pihole | 
| #! /bin/bash | |
| # Basic BASH script to build a python/flask container from scratch using buildah | |
| # Script assumes that it is being run on Centos and tested on Centos 8 stream | |
| # Install software dependencies | |
| sudo yum install -y podman buildah skopeo | |