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:
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| labels: | |
| app: homeassistant | |
| name: homeassistant | |
| namespace: homeassistant | |
| spec: | |
| selector: | |
| matchLabels: |
| #! /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 | |
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: pihole | |
| labels: | |
| app: pihole | |
| spec: | |
| hostNetwork: true | |
| containers: | |
| - name: pihole |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| labels: | |
| app: pihole | |
| name: pihole | |
| namespace: pi-hole | |
| spec: | |
| selector: | |
| matchLabels: |
| [crio.runtime] | |
| conmon_cgroup = "pod" | |
| cgroup_manager = "cgroupfs" |
| variable "var_a" { | |
| type = "map" | |
| default = { | |
| "a" = "one" | |
| "b" = "two" | |
| } | |
| } | |
| variable "var_b" { | |
| type = "map" |
I hereby claim:
To claim this, I am signing this object:
| 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 }" |
| # 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)" |
| 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}" |