commit 62347cdff5be776e259b7f194fb4d8d188a9aada Author: Radar231 Date: Fri Dec 22 13:42:13 2023 -0500 resetting repository diff --git a/README.md b/README.md new file mode 100644 index 0000000..571a5e1 --- /dev/null +++ b/README.md @@ -0,0 +1,27 @@ +# Ansible development environment configuration + +## Introduction + +This is a skeleton for my ansible development environment. + +## Configuration + +The location of playbook directory, this skeleton directory, and the target +dev env directory are contained in variables at the start of the +'mk_dev_env_links' script. + +## Initialize a development environment + +To initialize a new dev env, create a new directory for the environment, and +copy the 'mk_dev_env_links' script into it. From within the dev env directory, +run the 'mk_dev_env_links' script. + +The 'mk_dev_env_links' script will populate the directory with symlinks +pointing to the applicable ansible playbooks, collections and roles +subdirectories, each of which contain requirements.yml files. It will also +symlink any miscellaneous support scripts required for the dev env. + +Once the symlinks have been created you can initialize any roles or galaxy +collections required for the environment by running the 'update_roles.sh' +script. + diff --git a/adhoc_ck-distros.sh b/adhoc_ck-distros.sh new file mode 100755 index 0000000..a8ef50c --- /dev/null +++ b/adhoc_ck-distros.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +ansible all -i inventory/prod.yml -u root -m shell -a "cat /etc/issue" + diff --git a/adhoc_ck-kernels.sh b/adhoc_ck-kernels.sh new file mode 100755 index 0000000..a01fcc6 --- /dev/null +++ b/adhoc_ck-kernels.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +ansible all -i inventory/prod.yml -u root -m shell -a "uname -a" + diff --git a/adhoc_ck-lxd.sh b/adhoc_ck-lxd.sh new file mode 100755 index 0000000..11bf8c4 --- /dev/null +++ b/adhoc_ck-lxd.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +ansible lxd -i inventory/prod.yml -u root -m shell -a "/snap/bin/lxd --version" + diff --git a/adhoc_ck-ups.sh b/adhoc_ck-ups.sh new file mode 100755 index 0000000..829110a --- /dev/null +++ b/adhoc_ck-ups.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +ansible ups -i inventory/prod.yml -u root -m shell -a "upsc myups@localhost" + diff --git a/adhoc_ck-uptimes.sh b/adhoc_ck-uptimes.sh new file mode 100755 index 0000000..ce006dd --- /dev/null +++ b/adhoc_ck-uptimes.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +ansible all -i inventory/prod.yml -u root -m shell -a "uptime" + diff --git a/adhoc_ck-vps-crowdsec.sh b/adhoc_ck-vps-crowdsec.sh new file mode 100755 index 0000000..adbba34 --- /dev/null +++ b/adhoc_ck-vps-crowdsec.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +echo "" +date +%Y%m%d-%H%M%S +echo "" + +echo "firewall" +echo "" +ssh root@firewall.lan -- cscli decisions list +echo "" +ansible remote -i /home/rmorrow/dev/ansidev/inventory/prod.yml -u root -m shell -a "cscli decisions list" + diff --git a/collections/requirements.yml b/collections/requirements.yml new file mode 100644 index 0000000..62963e6 --- /dev/null +++ b/collections/requirements.yml @@ -0,0 +1,7 @@ +--- +collections: + - name: kubernetes.core + - name: kewlfft.aur + - name: community.general + +# EOF diff --git a/inventory/devel.yml b/inventory/devel.yml new file mode 100644 index 0000000..53f30af --- /dev/null +++ b/inventory/devel.yml @@ -0,0 +1,38 @@ +--- +########################################################################### +# +# Inventory for delfax package updates (using updates.yml) +# +########################################################################### + +all: + hosts: + children: + + ############################################# + pve: + hosts: + reddwarf: + starbug: + hollister: + skutter01: + skutter02: + + ############################################# + testing: + hosts: + deb11: + dev-pve1: + talkie: + lxdtst1: + lxdtst2: + lxdtst3: + tnode1: + tnode2: + tnode3: + tnode4: + cl01: + cl02: + cl03: + +# EOF diff --git a/inventory/group_vars/all.yml b/inventory/group_vars/all.yml new file mode 100644 index 0000000..4c0f9c9 --- /dev/null +++ b/inventory/group_vars/all.yml @@ -0,0 +1,8 @@ +$ANSIBLE_VAULT;1.1;AES256 +65396130333564356561313966323832616461316663323861303932343938346236316432306233 +3331343237663730626639353262343162633331653665360a633439616332626432306562303162 +35393162323262383264636438303235363733633364646661326532343963613962656664373337 +3938653663663265340a663330323530656663313138663364343932316364313339356137376463 +38326434626638643538316661313664643136643536643534643933346635376335326365356264 +32303733393931623261316165393435633431303838633434366239363236633364313133376539 +366238326365646236346165343263386265 diff --git a/inventory/host_vars/_template.yml b/inventory/host_vars/_template.yml new file mode 100644 index 0000000..6d0253a --- /dev/null +++ b/inventory/host_vars/_template.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# template +####################################### +# host network configuration +ansible_host: 192.168.20.233 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: bridged +# LXD image selection +image_name: "ubuntu" +image_vers: "22.04" +image_location: "images" +# where to deploy container +remote_name: hollister +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 4 +mem: 8 +root: 100 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + - nil + # - base_pkgs + # - create_user + # - du_backups + # - monitorix + # - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/borg.yml b/inventory/host_vars/borg.yml new file mode 100644 index 0000000..b483015 --- /dev/null +++ b/inventory/host_vars/borg.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# borg +####################################### +# host network configuration +ansible_host: 192.168.20.37 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: bridged +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: reddwarf +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 25 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/cat.yml b/inventory/host_vars/cat.yml new file mode 100644 index 0000000..8caab8e --- /dev/null +++ b/inventory/host_vars/cat.yml @@ -0,0 +1,2 @@ +--- +ansible_host: 192.168.10.101 diff --git a/inventory/host_vars/cftrust.yml b/inventory/host_vars/cftrust.yml new file mode 100644 index 0000000..f5e23b4 --- /dev/null +++ b/inventory/host_vars/cftrust.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# cftrust +####################################### +# host network configuration +ansible_host: 192.168.20.38 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: docker +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: reddwarf +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 25 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/cl01.yml b/inventory/host_vars/cl01.yml new file mode 100644 index 0000000..9d56e12 --- /dev/null +++ b/inventory/host_vars/cl01.yml @@ -0,0 +1,2 @@ +--- +ansible_host: 192.168.20.211 diff --git a/inventory/host_vars/cl02.yml b/inventory/host_vars/cl02.yml new file mode 100644 index 0000000..c270a6e --- /dev/null +++ b/inventory/host_vars/cl02.yml @@ -0,0 +1,2 @@ +--- +ansible_host: 192.168.20.212 diff --git a/inventory/host_vars/cl03.yml b/inventory/host_vars/cl03.yml new file mode 100644 index 0000000..1859a6f --- /dev/null +++ b/inventory/host_vars/cl03.yml @@ -0,0 +1,2 @@ +--- +ansible_host: 192.168.20.213 diff --git a/inventory/host_vars/deb11.yml b/inventory/host_vars/deb11.yml new file mode 100644 index 0000000..3f45af0 --- /dev/null +++ b/inventory/host_vars/deb11.yml @@ -0,0 +1,2 @@ +--- +ansible_host: 192.168.20.93 diff --git a/inventory/host_vars/delans.yml b/inventory/host_vars/delans.yml new file mode 100644 index 0000000..e6c6fc4 --- /dev/null +++ b/inventory/host_vars/delans.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# delans +####################################### +# host network configuration +ansible_host: 192.168.20.91 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: bridged +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: reddwarf +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 25 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/dev-pve1.yml b/inventory/host_vars/dev-pve1.yml new file mode 100644 index 0000000..b1c19ca --- /dev/null +++ b/inventory/host_vars/dev-pve1.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# pve1 +####################################### +# host network configuration +ansible_host: 192.168.20.241 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: VM +# LXD profile to apply +profile: bridged +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: reddwarf +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 4 +mem: 8 +root: 100 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + # - du_backups + - monitorix + # - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/dibley.yml b/inventory/host_vars/dibley.yml new file mode 100644 index 0000000..52f2107 --- /dev/null +++ b/inventory/host_vars/dibley.yml @@ -0,0 +1,3 @@ +--- +ansible_host: 132.145.102.73 +ansible_port: 52310 diff --git a/inventory/host_vars/firewall.yml b/inventory/host_vars/firewall.yml new file mode 100644 index 0000000..f2bcc98 --- /dev/null +++ b/inventory/host_vars/firewall.yml @@ -0,0 +1,2 @@ +--- +ansible_host: 192.168.20.1 diff --git a/inventory/host_vars/frigate.yml b/inventory/host_vars/frigate.yml new file mode 100644 index 0000000..de2aead --- /dev/null +++ b/inventory/host_vars/frigate.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# frigate +####################################### +# host network configuration +ansible_host: 192.168.20.33 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: docker +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: reddwarf +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 8 +mem: 12 +root: 250 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/haproxy.yml b/inventory/host_vars/haproxy.yml new file mode 100644 index 0000000..ec05552 --- /dev/null +++ b/inventory/host_vars/haproxy.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# haproxy +####################################### +# host network configuration +ansible_host: 192.168.20.27 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: docker +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: skutter02 +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 25 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/hollister.yml b/inventory/host_vars/hollister.yml new file mode 100644 index 0000000..dfffaab --- /dev/null +++ b/inventory/host_vars/hollister.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# hollister +####################################### +# host network configuration +ansible_host: 192.168.20.16 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: n/a +# LXD profile to apply +profile: n/a +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: n/a +# where to deploy container +remote_name: n/a +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 4 +mem: 6 +root: 400 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/holly.yml b/inventory/host_vars/holly.yml new file mode 100644 index 0000000..cd77068 --- /dev/null +++ b/inventory/host_vars/holly.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# holly +####################################### +# host network configuration +ansible_host: 192.168.10.105 +ip_gw: 192.168.10.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: n/a +# LXD profile to apply +profile: n/a +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: n/a +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 500 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + # - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/jellyfin.yml b/inventory/host_vars/jellyfin.yml new file mode 100644 index 0000000..bfefc52 --- /dev/null +++ b/inventory/host_vars/jellyfin.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# jellyfin +####################################### +# host network configuration +ansible_host: 192.168.20.31 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: VM +# LXD profile to apply +profile: docker +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: reddwarf +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 4 +mem: 8 +root: 32 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/jmc.yml b/inventory/host_vars/jmc.yml new file mode 100644 index 0000000..d2e7218 --- /dev/null +++ b/inventory/host_vars/jmc.yml @@ -0,0 +1,3 @@ +--- +ansible_host: 132.145.96.27 +ansible_port: 52310 diff --git a/inventory/host_vars/kasm.yml b/inventory/host_vars/kasm.yml new file mode 100644 index 0000000..4e93d04 --- /dev/null +++ b/inventory/host_vars/kasm.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# kasm +####################################### +# host network configuration +ansible_host: 192.168.20.32 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: VM +# LXD profile to apply +profile: docker +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: starbug +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 4 +mem: 8 +root: 100 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/kryten.yml b/inventory/host_vars/kryten.yml new file mode 100644 index 0000000..de60f22 --- /dev/null +++ b/inventory/host_vars/kryten.yml @@ -0,0 +1,2 @@ +--- +ansible_host: 192.168.20.90 diff --git a/inventory/host_vars/lister.yml b/inventory/host_vars/lister.yml new file mode 100644 index 0000000..160a9cd --- /dev/null +++ b/inventory/host_vars/lister.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# lister +####################################### +# host network configuration +ansible_host: 192.168.10.102 +ip_gw: 192.168.10.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: n/a +# LXD profile to apply +profile: n/a +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: n/a +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 4 +mem: 6 +root: 500 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + # - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/lms.yml b/inventory/host_vars/lms.yml new file mode 100644 index 0000000..6452590 --- /dev/null +++ b/inventory/host_vars/lms.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# lms +####################################### +# host network configuration +ansible_host: 192.168.20.26 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: VM +# LXD profile to apply +profile: docker +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: reddwarf +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 32 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/lxdtst1.yml b/inventory/host_vars/lxdtst1.yml new file mode 100644 index 0000000..292bed8 --- /dev/null +++ b/inventory/host_vars/lxdtst1.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# lxdtst1 +####################################### +# host network configuration +ansible_host: 192.168.20.221 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: bridged +# LXD image selection +image_name: "debian" +image_vers: "11" +image_location: "images" +# where to deploy container +remote_name: reddwarf +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 50 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + - nil + # - base_pkgs + # - create_user + # - du_backups + # - monitorix + # - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/lxdtst2.yml b/inventory/host_vars/lxdtst2.yml new file mode 100644 index 0000000..31f8bc3 --- /dev/null +++ b/inventory/host_vars/lxdtst2.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# lxdtst2 +####################################### +# host network configuration +ansible_host: 192.168.20.222 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: bridged +# LXD image selection +image_name: "debian" +image_vers: "11" +image_location: "images" +# where to deploy container +remote_name: reddwarf +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 50 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + - nil + # - base_pkgs + # - create_user + # - du_backups + # - monitorix + # - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/lxdtst3.yml b/inventory/host_vars/lxdtst3.yml new file mode 100644 index 0000000..26cb9e3 --- /dev/null +++ b/inventory/host_vars/lxdtst3.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# lxdtst3 +####################################### +# host network configuration +ansible_host: 192.168.20.223 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: bridged +# LXD image selection +image_name: "debian" +image_vers: "11" +image_location: "images" +# where to deploy container +remote_name: reddwarf +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 50 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + - nil + # - base_pkgs + # - create_user + # - du_backups + # - monitorix + # - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/lxdware.yml b/inventory/host_vars/lxdware.yml new file mode 100644 index 0000000..2ae30e8 --- /dev/null +++ b/inventory/host_vars/lxdware.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# lxdware +####################################### +# host network configuration +ansible_host: 192.168.20.28 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: docker +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: starbug +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 50 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/metrics.yml b/inventory/host_vars/metrics.yml new file mode 100644 index 0000000..ee06795 --- /dev/null +++ b/inventory/host_vars/metrics.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# metrics +####################################### +# host network configuration +ansible_host: 192.168.20.35 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: docker +# LXD image selection +image_name: "debian" +image_vers: "11" +image_location: "images" +# where to deploy container +remote_name: reddwarf +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 25 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/node-1-rpi4.yml b/inventory/host_vars/node-1-rpi4.yml new file mode 100644 index 0000000..8febdf6 --- /dev/null +++ b/inventory/host_vars/node-1-rpi4.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# node-1-rpi4 +####################################### +# host network configuration +ansible_host: 192.168.20.51 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: N/A +# LXD profile to apply +profile: k3s +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: N/A +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 4 +mem: 8 +root: 64 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + # - du_backups + - monitorix + - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/node-2-rpi4.yml b/inventory/host_vars/node-2-rpi4.yml new file mode 100644 index 0000000..b046b91 --- /dev/null +++ b/inventory/host_vars/node-2-rpi4.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# node-2-rpi4 +####################################### +# host network configuration +ansible_host: 192.168.20.52 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: N/A +# LXD profile to apply +profile: k3s +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: N/A +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 4 +mem: 8 +root: 64 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + # - du_backups + - monitorix + - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/node-3-rpi4.yml b/inventory/host_vars/node-3-rpi4.yml new file mode 100644 index 0000000..d3cdfea --- /dev/null +++ b/inventory/host_vars/node-3-rpi4.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# node-3-rpi4 +####################################### +# host network configuration +ansible_host: 192.168.20.53 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: N/A +# LXD profile to apply +profile: k3s +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: N/A +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 4 +mem: 8 +root: 64 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + # - du_backups + - monitorix + - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/node-4-rpi4.yml b/inventory/host_vars/node-4-rpi4.yml new file mode 100644 index 0000000..2a772f3 --- /dev/null +++ b/inventory/host_vars/node-4-rpi4.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# node-4-rpi4 +####################################### +# host network configuration +ansible_host: 192.168.20.54 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: N/A +# LXD profile to apply +profile: k3s +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: N/A +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 4 +mem: 8 +root: 64 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + # - du_backups + - monitorix + - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/node-5-amd64.yml b/inventory/host_vars/node-5-amd64.yml new file mode 100644 index 0000000..b459105 --- /dev/null +++ b/inventory/host_vars/node-5-amd64.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# node-5-amd64 +####################################### +# host network configuration +ansible_host: 192.168.20.55 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: k3s +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: skutter01 +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 4 +mem: 4 +root: 20 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + # - du_backups + - monitorix + - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/node-6-amd64.yml b/inventory/host_vars/node-6-amd64.yml new file mode 100644 index 0000000..5743b9c --- /dev/null +++ b/inventory/host_vars/node-6-amd64.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# node-6-amd64 +####################################### +# host network configuration +ansible_host: 192.168.20.56 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: VM +# LXD profile to apply +profile: k3s +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: skutter02 +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 4 +mem: 4 +root: 20 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + # - du_backups + - monitorix + - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/npm.yml b/inventory/host_vars/npm.yml new file mode 100644 index 0000000..cdecb99 --- /dev/null +++ b/inventory/host_vars/npm.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# npm +####################################### +# host network configuration +ansible_host: 192.168.20.20 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: docker +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: skutter01 +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 25 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/ntopng.yml b/inventory/host_vars/ntopng.yml new file mode 100644 index 0000000..4770401 --- /dev/null +++ b/inventory/host_vars/ntopng.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# ntopng +####################################### +# host network configuration +ansible_host: 192.168.20.24 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: docker +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: hollister +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 25 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/octoprint.yml b/inventory/host_vars/octoprint.yml new file mode 100644 index 0000000..acc3cc3 --- /dev/null +++ b/inventory/host_vars/octoprint.yml @@ -0,0 +1,2 @@ +--- +ansible_host: 192.168.20.104 diff --git a/inventory/host_vars/pihole1.yml b/inventory/host_vars/pihole1.yml new file mode 100644 index 0000000..801227c --- /dev/null +++ b/inventory/host_vars/pihole1.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# pihole1 +####################################### +# host network configuration +ansible_host: 192.168.20.21 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: docker +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: skutter01 +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 25 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/pihole2.yml b/inventory/host_vars/pihole2.yml new file mode 100644 index 0000000..5f20035 --- /dev/null +++ b/inventory/host_vars/pihole2.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# pihole2 +####################################### +# host network configuration +ansible_host: 192.168.20.22 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: docker +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: skutter02 +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 25 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/reddwarf.yml b/inventory/host_vars/reddwarf.yml new file mode 100644 index 0000000..6d202ff --- /dev/null +++ b/inventory/host_vars/reddwarf.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# reddwarf +####################################### +# host network configuration +ansible_host: 192.168.20.10 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: n/a +# LXD profile to apply +profile: n/a +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: n/a +# where to deploy container +remote_name: n/a +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 8 +mem: 16 +root: 500 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/restreamer.yml b/inventory/host_vars/restreamer.yml new file mode 100644 index 0000000..f97512f --- /dev/null +++ b/inventory/host_vars/restreamer.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# restreamer +####################################### +# host network configuration +ansible_host: 192.168.20.36 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: docker +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: starbug +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 50 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/skutter01.yml b/inventory/host_vars/skutter01.yml new file mode 100644 index 0000000..1f2ddd6 --- /dev/null +++ b/inventory/host_vars/skutter01.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# skutter01 +####################################### +# host network configuration +ansible_host: 192.168.20.61 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: n/a +# LXD profile to apply +profile: n/a +# LXD image selection +image_name: "debian" +image_vers: "11" +image_location: n/a +# where to deploy container +remote_name: n/a +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 4 +mem: 8 +root: 200 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/skutter02.yml b/inventory/host_vars/skutter02.yml new file mode 100644 index 0000000..b0bc67b --- /dev/null +++ b/inventory/host_vars/skutter02.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# skutter02 +####################################### +# host network configuration +ansible_host: 192.168.20.62 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: n/a +# LXD profile to apply +profile: n/a +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: n/a +# where to deploy container +remote_name: n/a +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 4 +mem: 8 +root: 200 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + # - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/starbug.yml b/inventory/host_vars/starbug.yml new file mode 100644 index 0000000..fe61c52 --- /dev/null +++ b/inventory/host_vars/starbug.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# starbug +####################################### +# host network configuration +ansible_host: 192.168.20.15 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: n/a +# LXD profile to apply +profile: n/a +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: n/a +# where to deploy container +remote_name: n/a +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 24 +mem: 64 +root: 900 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/talkie.yml b/inventory/host_vars/talkie.yml new file mode 100644 index 0000000..94ef49e --- /dev/null +++ b/inventory/host_vars/talkie.yml @@ -0,0 +1,3 @@ +--- +ansible_host: 140.238.158.181 +ansible_port: 52310 diff --git a/inventory/host_vars/tnode1.yml b/inventory/host_vars/tnode1.yml new file mode 100644 index 0000000..7cb44f7 --- /dev/null +++ b/inventory/host_vars/tnode1.yml @@ -0,0 +1,70 @@ +--- +####################################### +# Host inventory definition +# tnode1 +####################################### +# host network configuration +ansible_host: 192.168.20.231 +ip_cidr: 24 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +domain: lan +####################################### +# Common configuration +# Container or VM +# host_type: Container +host_type: VM +####################################### +# VM/Container LXD configuration +# LXD profile to apply +profile: bridged +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: starbug +####################################### +# VM/Container PVE configuration +vmid: 501 +ct_template: debian-12-standard_12.2-1_amd64.tar.zst +vm_template: deb12-templ +vm_template_ip: 192.168.20.251 +pve_node: starbug +api_user: root@pam +# in group_vars file +# api_password: xxxxxxxxxxx +api_host: starbug +swap: 1024 +storage: virt-stor +bridge: vmbr0 +root_pw: resetthispasswd +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 50 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and +# gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + # - du_backups + # - monitorix + # - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/tnode2.yml b/inventory/host_vars/tnode2.yml new file mode 100644 index 0000000..aa9b89d --- /dev/null +++ b/inventory/host_vars/tnode2.yml @@ -0,0 +1,70 @@ +--- +####################################### +# Host inventory definition +# tnode2 +####################################### +# host network configuration +ansible_host: 192.168.20.232 +ip_cidr: 24 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +domain: lan +####################################### +# Common configuration +# Container or VM +# host_type: Container +host_type: VM +####################################### +# VM/Container LXD configuration +# LXD profile to apply +profile: bridged +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: starbug +####################################### +# VM/Container PVE configuration +vmid: 502 +ct_template: debian-12-standard_12.2-1_amd64.tar.zst +vm_template: deb12-templ +vm_template_ip: 192.168.20.251 +pve_node: starbug +api_user: root@pam +# in group_vars file +# api_password: xxxxxxxxxxx +api_host: starbug +swap: 1024 +storage: local-lvm +bridge: vmbr0 +root_pw: resetthispasswd +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 50 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and +# gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + # - du_backups + # - monitorix + # - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/tnode3.yml b/inventory/host_vars/tnode3.yml new file mode 100644 index 0000000..274dad3 --- /dev/null +++ b/inventory/host_vars/tnode3.yml @@ -0,0 +1,70 @@ +--- +####################################### +# Host inventory definition +# tnode3 +####################################### +# host network configuration +ansible_host: 192.168.20.233 +ip_cidr: 24 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +domain: lan +####################################### +# Common configuration +# Container or VM +# host_type: Container +host_type: VM +####################################### +# VM/Container LXD configuration +# LXD profile to apply +profile: bridged +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: starbug +####################################### +# VM/Container PVE configuration +vmid: 503 +ct_template: debian-12-standard_12.2-1_amd64.tar.zst +vm_template: deb12-templ +vm_template_ip: 192.168.20.251 +pve_node: starbug +api_user: root@pam +# in group_vars file +# api_password: xxxxxxxxxxx +api_host: starbug +swap: 1024 +storage: local-lvm +bridge: vmbr0 +root_pw: resetthispasswd +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 50 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and +# gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + # - du_backups + # - monitorix + # - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/tnode4.yml b/inventory/host_vars/tnode4.yml new file mode 100644 index 0000000..9bc9677 --- /dev/null +++ b/inventory/host_vars/tnode4.yml @@ -0,0 +1,70 @@ +--- +####################################### +# Host inventory definition +# tnode4 +####################################### +# host network configuration +ansible_host: 192.168.20.234 +ip_cidr: 24 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +domain: lan +####################################### +# Common configuration +# Container or VM +# host_type: Container +host_type: VM +####################################### +# VM/Container LXD configuration +# LXD profile to apply +profile: bridged +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: starbug +####################################### +# VM/Container PVE configuration +vmid: 504 +ct_template: debian-12-standard_12.2-1_amd64.tar.zst +vm_template: deb12-templ +vm_template_ip: 192.168.20.251 +pve_node: starbug +api_user: root@pam +# in group_vars file +# api_password: xxxxxxxxxxx +api_host: starbug +swap: 1024 +storage: virt-stor +bridge: vmbr0 +root_pw: resetthispasswd +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 100 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and +# gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + # - du_backups + # - monitorix + # - nagios_agent + # - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/ttrss.yml b/inventory/host_vars/ttrss.yml new file mode 100644 index 0000000..aedd172 --- /dev/null +++ b/inventory/host_vars/ttrss.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# ttrss +####################################### +# host network configuration +ansible_host: 192.168.20.34 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: docker +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: starbug +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 50 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/twiki.yml b/inventory/host_vars/twiki.yml new file mode 100644 index 0000000..622646a --- /dev/null +++ b/inventory/host_vars/twiki.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# twiki +####################################### +# host network configuration +ansible_host: 192.168.20.25 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: docker +# LXD image selection +image_name: "debian" +image_vers: "12" +image_location: "images" +# where to deploy container +remote_name: hollister +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 2 +mem: 4 +root: 25 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/webtop.yml b/inventory/host_vars/webtop.yml new file mode 100644 index 0000000..e21188a --- /dev/null +++ b/inventory/host_vars/webtop.yml @@ -0,0 +1,49 @@ +--- +####################################### +# Host inventory definition +# webtop +####################################### +# host network configuration +ansible_host: 192.168.20.33 +ip_gw: 192.168.20.1 +ip_ns1: 192.168.20.21 +ip_ns2: 192.168.20.22 +####################################### +# VM/Container LXD configuration +# LXD Container or VM +host_type: Container +# LXD profile to apply +profile: docker +# LXD image selection +image_name: "debian" +image_vers: "11" +image_location: "images" +# where to deploy container +remote_name: starbug +####################################### +# Host virtual hardware configuration +# CPU cores, Memory, Root disk size +cpu: 4 +mem: 8 +root: 100 +####################################### +# Ansible roles to apply to host +# - uncomment to select +# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles +# - use "nil" for no ansible configuration management +host_config: + # - nil + - base_pkgs + - create_user + - du_backups + - monitorix + - nagios_agent + - docker + # - k3s +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/prod.yml b/inventory/prod.yml new file mode 100644 index 0000000..4afb079 --- /dev/null +++ b/inventory/prod.yml @@ -0,0 +1,130 @@ +--- +########################################################################### +# +# Inventory for delfax package updates (using updates.yml) +# +########################################################################### + +all: + hosts: + children: + + ########################################################################################## + ############################################# + local: + hosts: + # ws + cat: + holly: + kryten: + lister: + # svrs + hollister: + reddwarf: + skutter01: + skutter02: + starbug: + # k8s + node-1-rpi4: + node-2-rpi4: + node-3-rpi4: + node-4-rpi4: + # vms + kasm: + node-5-amd64: + node-6-amd64: + jellyfin: + lms: + # ctrs + borg: + cftrust: + delans: + frigate: + haproxy: + metrics: + npm: + ntopng: + #octoprint: + pihole1: + pihole2: + twiki: + + ############################################# + remote: + hosts: + jmc: + dibley: + talkie: + + ########################################################################################## + ############################################# + workstations: + hosts: + cat: + holly: + kryten: + lister: + + ############################################# + servers: + hosts: + hollister: + reddwarf: + skutter01: + skutter02: + starbug: + + ############################################# + k8s: + hosts: + node-1-rpi4: + node-2-rpi4: + node-3-rpi4: + node-4-rpi4: + + ############################################# + vms: + hosts: + kasm: + node-5-amd64: + node-6-amd64: + jellyfin: + lms: + + ############################################# + ctrs: + hosts: + borg: + cftrust: + delans: + frigate: + haproxy: + metrics: + npm: + ntopng: + #octoprint: + pihole1: + pihole2: + twiki: + + ########################################################################################## + ############################################# + arch: + hosts: + cat: + + ############################################# + ups: + hosts: + kryten: + starbug: + reddwarf: + + ############################################# + crowdsec: + hosts: + jmc: + talkie: + dibley: + +# EOF diff --git a/mk_dev_env_links b/mk_dev_env_links new file mode 100755 index 0000000..e4773d7 --- /dev/null +++ b/mk_dev_env_links @@ -0,0 +1,39 @@ +#!/bin/bash + +playbookDir="${HOME}/dev/git.radar231.com/playbook_*" +devEnvDir="${HOME}/dev/git.radar231.com/ansible_dev_env" +devDir="${HOME}/dev/ansidev" + +cd ${devDir} + +##################################### +# playbook yaml links +list=$(find ${playbookDir} -name "*.yml") +for i in $list +do + ln -sf $i . +done + +##################################### +# dev env script links +list=$(find ${devEnvDir} -name "*.sh") +for i in $list +do + ln -sf $i . +done + +##################################### +# playbook script links +list=$(find ${playbookDir} -name "*.sh") +for i in $list +do + ln -sf $i . +done + +##################################### +# directory links +ln -sf ${devEnvDir}/collections . +ln -sf ${devEnvDir}/inventory . +ln -sf ${devEnvDir}/roles . + +# EOF diff --git a/roles/requirements.yml b/roles/requirements.yml new file mode 100644 index 0000000..9a6bdba --- /dev/null +++ b/roles/requirements.yml @@ -0,0 +1,215 @@ +--- + +- src: https://git.radar231.com/radar231/role_age + name: age + scm: git + +- src: https://git.radar231.com/radar231/role_ansible + name: ansible + scm: git + +- src: https://git.radar231.com/radar231/role_aur_builder + name: aur_builder + scm: git + +- src: https://git.radar231.com/radar231/role_base_pkgs + name: base_pkgs + scm: git + +- src: https://git.radar231.com/radar231/role_borg_backups + name: borg_backups + scm: git + +- src: https://git.radar231.com/radar231/role_chk_upgrades + name: chk_upgrades + scm: git + +- src: https://git.radar231.com/radar231/role_create_user + name: create_user + scm: git + +- src: https://git.radar231.com/radar231/role_docker + name: docker + scm: git + +- src: https://git.radar231.com/radar231/role_du_backups + name: du_backups + scm: git + +- src: https://git.radar231.com/radar231/role_k3s + name: k3s + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_dashy_deploy + name: dashy_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_ddclient_deploy + name: ddclient_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_delinit_deploy + name: delinit_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_flexget_deploy + name: flexget_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_freshrss_deploy + name: freshrss_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_haproxy_deploy + name: haproxy_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_heimdall_deploy + name: heimdall_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_homer_deploy + name: homer_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_home-assistant_deploy + name: home-assistant_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_journal-wiki_deploy + name: journal-wiki_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_linkding_deploy + name: linkding_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_metallb_deploy + name: metallb_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_mosquitto_deploy + name: mosquitto_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_motioneye_deploy + name: motioneye_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_nagios_deploy + name: nagios_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_navidrome_deploy + name: navidrome_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_nfs-provisioner_deploy + name: nfs-provisioner_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_notes-wiki_deploy + name: notes-wiki_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_pihole_deploy + name: pihole_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_signal-api_deploy + name: signal-api_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_transmission-openvpn_deploy + name: transmission-openvpn_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_uptime-kuma_deploy + name: uptime-kuma_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_vaultwarden_deploy + name: vaultwarden_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_website_deploy + name: website_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_website-wiki_deploy + name: website-wiki_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_k8s_wfh-wiki_deploy + name: wfh-wiki_deploy + scm: git + +- src: https://git.radar231.com/radar231/role_kubectl + name: kubectl + scm: git + +- src: https://git.radar231.com/radar231/role_lxd-deploy + name: lxd-deploy + scm: git + +- src: https://git.radar231.com/radar231/role_microk8s + name: microk8s + scm: git + +- src: https://git.radar231.com/radar231/role_monitorix + name: monitorix + scm: git + +- src: https://git.radar231.com/radar231/role_nagios_agent + name: nagios_agent + scm: git + +- src: https://git.radar231.com/radar231/role_netdata + name: netdata + scm: git + +- src: https://git.radar231.com/radar231/role_pfetch + name: pfetch + scm: git + +- src: https://git.radar231.com/radar231/role_pve-deploy + name: pve-deploy + scm: git + +- src: https://git.radar231.com/radar231/role_reboot + name: reboot + scm: git + +- src: https://git.radar231.com/radar231/role_rem_base_pkgs + name: rem_base_pkgs + scm: git + +- src: https://git.radar231.com/radar231/role_sops + name: sops + scm: git + +- src: https://git.radar231.com/radar231/role_sudoers + name: sudoers + scm: git + +- src: https://git.radar231.com/radar231/role_create_reboot-required + name: create_reboot-required + scm: git + +- src: https://git.radar231.com/radar231/role_update_ansi_auth + name: update_ansi_auth + scm: git + +- src: https://git.radar231.com/radar231/role_update_cache + name: update_cache + scm: git + +- src: https://git.radar231.com/radar231/role_upgrade_pkgs + name: upgrade_pkgs + scm: git + +- src: https://git.radar231.com/radar231/role_vim_setup + name: vim_setup + scm: git + +# EOF diff --git a/update_collections.sh b/update_collections.sh new file mode 100755 index 0000000..dd40082 --- /dev/null +++ b/update_collections.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +ansible-galaxy install -r collections/requirements.yml --force + diff --git a/update_roles.sh b/update_roles.sh new file mode 100755 index 0000000..eadc1b5 --- /dev/null +++ b/update_roles.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +ansible-galaxy install -r roles/requirements.yml --force +