license + aesthetics
This commit is contained in:
parent
f8a2b16c75
commit
e065803b47
|
@ -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
|
||||||
|
|
|
@ -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" {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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"}}
|
||||||
|
|
Loading…
Reference in New Issue