diff --git a/adhoc_get-facts.sh b/adhoc_get-facts.sh new file mode 100755 index 0000000..43336d9 --- /dev/null +++ b/adhoc_get-facts.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +ansible $1 -i inventory/prod.yml -u root -m setup + diff --git a/inventory/host_vars/hollister.yml b/inventory/host_vars/hollister.yml index dfffaab..4ef1436 100644 --- a/inventory/host_vars/hollister.yml +++ b/inventory/host_vars/hollister.yml @@ -4,13 +4,13 @@ # hollister ####################################### # host network configuration -ansible_host: 192.168.20.16 +ansible_host: 192.168.10.106 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 +# LXD Container or VM host_type: n/a # LXD profile to apply profile: n/a @@ -25,7 +25,7 @@ remote_name: n/a # CPU cores, Memory, Root disk size cpu: 4 mem: 6 -root: 400 +root: 500 ####################################### # Ansible roles to apply to host # - uncomment to select @@ -35,9 +35,9 @@ host_config: # - nil - base_pkgs - create_user - - du_backups - - monitorix - - nagios_agent + # - du_backups + # - monitorix + # - nagios_agent # - docker # - k3s ####################################### diff --git a/inventory/host_vars/hudzen.yml b/inventory/host_vars/hudzen.yml new file mode 100644 index 0000000..e88b98b --- /dev/null +++ b/inventory/host_vars/hudzen.yml @@ -0,0 +1,50 @@ +--- +####################################### +# Host inventory definition +# hudzen +####################################### +# host network configuration +ansible_host: 192.168.20.13 +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: 16 +root: 256 +####################################### +# 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 + - incus +####################################### +# 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 index 292bed8..9fd2880 100644 --- a/inventory/host_vars/lxdtst1.yml +++ b/inventory/host_vars/lxdtst1.yml @@ -10,31 +10,31 @@ ip_ns1: 192.168.20.21 ip_ns2: 192.168.20.22 ####################################### # VM/Container LXD configuration -# LXD Container or VM -host_type: Container +# LXD Container or VM +host_type: VM # LXD profile to apply profile: bridged # LXD image selection image_name: "debian" -image_vers: "11" +image_vers: "12" image_location: "images" # where to deploy container -remote_name: reddwarf +remote_name: local ####################################### # Host virtual hardware configuration # CPU cores, Memory, Root disk size cpu: 2 mem: 4 -root: 50 +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 + # - nil + - base_pkgs + - create_user # - du_backups # - monitorix # - nagios_agent diff --git a/inventory/host_vars/lxdtst2.yml b/inventory/host_vars/lxdtst2.yml index 31f8bc3..9f244db 100644 --- a/inventory/host_vars/lxdtst2.yml +++ b/inventory/host_vars/lxdtst2.yml @@ -10,31 +10,31 @@ ip_ns1: 192.168.20.21 ip_ns2: 192.168.20.22 ####################################### # VM/Container LXD configuration -# LXD Container or VM -host_type: Container +# LXD Container or VM +host_type: VM # LXD profile to apply profile: bridged # LXD image selection image_name: "debian" -image_vers: "11" +image_vers: "12" image_location: "images" # where to deploy container -remote_name: reddwarf +remote_name: local ####################################### # Host virtual hardware configuration # CPU cores, Memory, Root disk size cpu: 2 mem: 4 -root: 50 +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 + # - nil + - base_pkgs + - create_user # - du_backups # - monitorix # - nagios_agent diff --git a/inventory/host_vars/lxdtst3.yml b/inventory/host_vars/lxdtst3.yml index 26cb9e3..4ac843e 100644 --- a/inventory/host_vars/lxdtst3.yml +++ b/inventory/host_vars/lxdtst3.yml @@ -10,31 +10,31 @@ ip_ns1: 192.168.20.21 ip_ns2: 192.168.20.22 ####################################### # VM/Container LXD configuration -# LXD Container or VM -host_type: Container +# LXD Container or VM +host_type: VM # LXD profile to apply profile: bridged # LXD image selection image_name: "debian" -image_vers: "11" +image_vers: "12" image_location: "images" # where to deploy container -remote_name: reddwarf +remote_name: local ####################################### # Host virtual hardware configuration # CPU cores, Memory, Root disk size cpu: 2 mem: 4 -root: 50 +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 + # - nil + - base_pkgs + - create_user # - du_backups # - monitorix # - nagios_agent diff --git a/inventory/host_vars/rimmer.yml b/inventory/host_vars/rimmer.yml new file mode 100644 index 0000000..5cef1c3 --- /dev/null +++ b/inventory/host_vars/rimmer.yml @@ -0,0 +1,50 @@ +--- +####################################### +# Host inventory definition +# rimmer +####################################### +# host network configuration +ansible_host: 192.168.20.12 +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: 16 +root: 256 +####################################### +# 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 + - incus +####################################### +# user definition for "create_user" role +user: rmorrow +pw: resetthispasswd +home: /home/rmorrow + +# EOF diff --git a/inventory/host_vars/tnode1.yml b/inventory/host_vars/tnode1.yml index 7cb44f7..429e015 100644 --- a/inventory/host_vars/tnode1.yml +++ b/inventory/host_vars/tnode1.yml @@ -56,6 +56,7 @@ host_config: # - nil - base_pkgs - create_user + - incus # - du_backups # - monitorix # - nagios_agent diff --git a/inventory/prod.yml b/inventory/prod.yml index 4afb079..e5e5db1 100644 --- a/inventory/prod.yml +++ b/inventory/prod.yml @@ -15,12 +15,14 @@ all: hosts: # ws cat: + hollister: holly: kryten: lister: # svrs - hollister: + hudzen: reddwarf: + rimmer: skutter01: skutter02: starbug: @@ -44,7 +46,7 @@ all: metrics: npm: ntopng: - #octoprint: + # octoprint: pihole1: pihole2: twiki: @@ -61,6 +63,7 @@ all: workstations: hosts: cat: + hollister: holly: kryten: lister: @@ -68,8 +71,9 @@ all: ############################################# servers: hosts: - hollister: + hudzen: reddwarf: + rimmer: skutter01: skutter02: starbug: @@ -102,7 +106,7 @@ all: metrics: npm: ntopng: - #octoprint: + # octoprint: pihole1: pihole2: twiki: