license + aesthetics

This commit is contained in:
kitzman 2021-11-14 18:12:52 +02:00
parent f8a2b16c75
commit e065803b47
Signed by: kitzman
GPG Key ID: 83289D84AA7C9A54
14 changed files with 25 additions and 25 deletions

View File

@ -1,4 +1,4 @@
# Copyright (C) 2021 kitzman-terraform Authors kitzman # Copyright (C) 2021 kewl-infrastructure-utils Authors kitzman
# SPDX-License-Identifier: GPL-3.0+ # SPDX-License-Identifier: GPL-3.0+
# Server-related variables # Server-related variables

View File

@ -1,12 +1,12 @@
# Copyright (C) 2021 kitzman-terraform Authors kitzman # Copyright (C) 2021 kewl-infrastructure-utils Authors kitzman
# SPDX-License-Identifier: GPL-3.0+ # SPDX-License-Identifier: GPL-3.0+
resource "null_resource" "provisioned_server" { resource "null_resource" "provisioned_server" {
connection { connection {
host = var.server_host host = var.server_host
port = 22 port = 22
user = "root" user = "root"
agent = true agent = true
} }
provisioner "remote-exec" { provisioner "remote-exec" {

View File

@ -1,4 +1,4 @@
# Copyright (C) 2021 kitzman-terraform Authors kitzman # Copyright (C) 2021 kewl-infrastructure-utils Authors kitzman
# SPDX-License-Identifier: GPL-3.0+ # SPDX-License-Identifier: GPL-3.0+
# Empty for now # Empty for now

View File

@ -1,4 +1,4 @@
# Copyright (C) 2021 kitzman-terraform Authors kitzman # Copyright (C) 2021 kewl-infrastructure-utils Authors kitzman
# SPDX-License-Identifier: GPL-3.0+ # SPDX-License-Identifier: GPL-3.0+
terraform { terraform {

View File

@ -1,4 +1,4 @@
# Copyright (C) 2021 kitzman-terraform Authors kitzman # Copyright (C) 2021 kewl-infrastructure-utils Authors kitzman
# SPDX-License-Identifier: GPL-3.0+ # SPDX-License-Identifier: GPL-3.0+
# Linode-specific inputs # Linode-specific inputs

View File

@ -1,4 +1,4 @@
# Copyright (C) 2021 kitzman-terraform Authors kitzman # Copyright (C) 2021 kewl-infrastructure-utils Authors kitzman
# SPDX-License-Identifier: GPL-3.0+ # SPDX-License-Identifier: GPL-3.0+
resource "linode_instance" "main_instance" { resource "linode_instance" "main_instance" {
@ -52,11 +52,11 @@ resource "linode_firewall" "main_firewall" {
module "bubblewrap" { module "bubblewrap" {
source = "../bubblewrap" source = "../bubblewrap"
server_host = linode_instance.main_instance.ip_address server_host = linode_instance.main_instance.ip_address
} }
module "podman" { module "podman" {
source = "../znc" source = "../znc"
server_host = linode_instance.main_instance.ip_address server_host = linode_instance.main_instance.ip_address
} }

View File

@ -1,4 +1,4 @@
# Copyright (C) 2021 kitzman-terraform Authors kitzman # Copyright (C) 2021 kewl-infrastructure-utils Authors kitzman
# SPDX-License-Identifier: GPL-3.0+ # SPDX-License-Identifier: GPL-3.0+
# Server-related variables # Server-related variables

View File

@ -1,12 +1,12 @@
# Copyright (C) 2021 kitzman-terraform Authors kitzman # Copyright (C) 2021 kewl-infrastructure-utils Authors kitzman
# SPDX-License-Identifier: GPL-3.0+ # SPDX-License-Identifier: GPL-3.0+
resource "null_resource" "provisioned_server" { resource "null_resource" "provisioned_server" {
connection { connection {
host = var.server_host host = var.server_host
port = 22 port = 22
user = "root" user = "root"
agent = true agent = true
} }
provisioner "remote-exec" { provisioner "remote-exec" {
@ -14,7 +14,7 @@ resource "null_resource" "provisioned_server" {
} }
provisioner "file" { provisioner "file" {
source = "../scripts/container_init/container" source = "../scripts/container_init/container"
destination = "/etc/init.d/container" destination = "/etc/init.d/container"
} }
} }

View File

@ -1,4 +1,4 @@
# Copyright (C) 2021 kitzman-terraform Authors kitzman # Copyright (C) 2021 kewl-infrastructure-utils Authors kitzman
# SPDX-License-Identifier: GPL-3.0+ # SPDX-License-Identifier: GPL-3.0+
# Empty for now # Empty for now

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# Copyright (C) 2021 kitzman-terraform Authors kitzman # Copyright (C) 2021 kewl-infrastructure-utils Authors kitzman
# SPDX-License-Identifier: GPL-3.0+ # SPDX-License-Identifier: GPL-3.0+
cd $HOME cd $HOME

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# Copyright (C) 2021 kitzman-terraform Authors kitzman # Copyright (C) 2021 kewl-infrastructure-utils Authors kitzman
# SPDX-License-Identifier: GPL-3.0+ # SPDX-License-Identifier: GPL-3.0+
set -e set -e

View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# Copyright (C) 2021 kitzman-terraform Authors kitzman # Copyright (C) 2021 kewl-infrastructure-utils Authors kitzman
# SPDX-License-Identifier: GPL-3.0+ # SPDX-License-Identifier: GPL-3.0+
set -e set -e

View File

@ -1,6 +1,6 @@
#!/sbin/openrc-run #!/sbin/openrc-run
# Copyright (C) 2021 kitzman-terraform Authors kitzman # Copyright (C) 2021 kewl-infrastructure-utils Authors kitzman
# SPDX-License-Identifier: GPL-3.0+ # SPDX-License-Identifier: GPL-3.0+
# Upper case variables are here for backward compatibility. # Upper case variables are here for backward compatibility.

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Copyright (C) 2021 kitzman-terraform Authors kitzman # Copyright (C) 2021 kewl-infrastructure-utils Authors kitzman
# SPDX-License-Identifier: GPL-3.0+ # SPDX-License-Identifier: GPL-3.0+
: ${command_user:=${command_user:-"znc"}} : ${command_user:=${command_user:-"znc"}}