updated host inventory

This commit is contained in:
Radar231 2024-01-12 20:15:07 -05:00
parent b9efb3d202
commit c56b7e41ac
9 changed files with 143 additions and 34 deletions

4
adhoc_get-facts.sh Executable file
View File

@ -0,0 +1,4 @@
#!/bin/bash
ansible $1 -i inventory/prod.yml -u root -m setup

View File

@ -4,13 +4,13 @@
# hollister # hollister
####################################### #######################################
# host network configuration # host network configuration
ansible_host: 192.168.20.16 ansible_host: 192.168.10.106
ip_gw: 192.168.20.1 ip_gw: 192.168.20.1
ip_ns1: 192.168.20.21 ip_ns1: 192.168.20.21
ip_ns2: 192.168.20.22 ip_ns2: 192.168.20.22
####################################### #######################################
# VM/Container LXD configuration # VM/Container LXD configuration
# LXD Container or VM # LXD Container or VM
host_type: n/a host_type: n/a
# LXD profile to apply # LXD profile to apply
profile: n/a profile: n/a
@ -25,7 +25,7 @@ remote_name: n/a
# CPU cores, Memory, Root disk size # CPU cores, Memory, Root disk size
cpu: 4 cpu: 4
mem: 6 mem: 6
root: 400 root: 500
####################################### #######################################
# Ansible roles to apply to host # Ansible roles to apply to host
# - uncomment to select # - uncomment to select
@ -35,9 +35,9 @@ host_config:
# - nil # - nil
- base_pkgs - base_pkgs
- create_user - create_user
- du_backups # - du_backups
- monitorix # - monitorix
- nagios_agent # - nagios_agent
# - docker # - docker
# - k3s # - k3s
####################################### #######################################

View File

@ -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

View File

@ -10,31 +10,31 @@ ip_ns1: 192.168.20.21
ip_ns2: 192.168.20.22 ip_ns2: 192.168.20.22
####################################### #######################################
# VM/Container LXD configuration # VM/Container LXD configuration
# LXD Container or VM # LXD Container or VM
host_type: Container host_type: VM
# LXD profile to apply # LXD profile to apply
profile: bridged profile: bridged
# LXD image selection # LXD image selection
image_name: "debian" image_name: "debian"
image_vers: "11" image_vers: "12"
image_location: "images" image_location: "images"
# where to deploy container # where to deploy container
remote_name: reddwarf remote_name: local
####################################### #######################################
# Host virtual hardware configuration # Host virtual hardware configuration
# CPU cores, Memory, Root disk size # CPU cores, Memory, Root disk size
cpu: 2 cpu: 2
mem: 4 mem: 4
root: 50 root: 100
####################################### #######################################
# Ansible roles to apply to host # Ansible roles to apply to host
# - uncomment to select # - uncomment to select
# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles # - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles
# - use "nil" for no ansible configuration management # - use "nil" for no ansible configuration management
host_config: host_config:
- nil # - nil
# - base_pkgs - base_pkgs
# - create_user - create_user
# - du_backups # - du_backups
# - monitorix # - monitorix
# - nagios_agent # - nagios_agent

View File

@ -10,31 +10,31 @@ ip_ns1: 192.168.20.21
ip_ns2: 192.168.20.22 ip_ns2: 192.168.20.22
####################################### #######################################
# VM/Container LXD configuration # VM/Container LXD configuration
# LXD Container or VM # LXD Container or VM
host_type: Container host_type: VM
# LXD profile to apply # LXD profile to apply
profile: bridged profile: bridged
# LXD image selection # LXD image selection
image_name: "debian" image_name: "debian"
image_vers: "11" image_vers: "12"
image_location: "images" image_location: "images"
# where to deploy container # where to deploy container
remote_name: reddwarf remote_name: local
####################################### #######################################
# Host virtual hardware configuration # Host virtual hardware configuration
# CPU cores, Memory, Root disk size # CPU cores, Memory, Root disk size
cpu: 2 cpu: 2
mem: 4 mem: 4
root: 50 root: 100
####################################### #######################################
# Ansible roles to apply to host # Ansible roles to apply to host
# - uncomment to select # - uncomment to select
# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles # - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles
# - use "nil" for no ansible configuration management # - use "nil" for no ansible configuration management
host_config: host_config:
- nil # - nil
# - base_pkgs - base_pkgs
# - create_user - create_user
# - du_backups # - du_backups
# - monitorix # - monitorix
# - nagios_agent # - nagios_agent

View File

@ -10,31 +10,31 @@ ip_ns1: 192.168.20.21
ip_ns2: 192.168.20.22 ip_ns2: 192.168.20.22
####################################### #######################################
# VM/Container LXD configuration # VM/Container LXD configuration
# LXD Container or VM # LXD Container or VM
host_type: Container host_type: VM
# LXD profile to apply # LXD profile to apply
profile: bridged profile: bridged
# LXD image selection # LXD image selection
image_name: "debian" image_name: "debian"
image_vers: "11" image_vers: "12"
image_location: "images" image_location: "images"
# where to deploy container # where to deploy container
remote_name: reddwarf remote_name: local
####################################### #######################################
# Host virtual hardware configuration # Host virtual hardware configuration
# CPU cores, Memory, Root disk size # CPU cores, Memory, Root disk size
cpu: 2 cpu: 2
mem: 4 mem: 4
root: 50 root: 100
####################################### #######################################
# Ansible roles to apply to host # Ansible roles to apply to host
# - uncomment to select # - uncomment to select
# - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles # - create_user includes create_user, sudoers, vim_setup, bash_mods and gitconfig roles
# - use "nil" for no ansible configuration management # - use "nil" for no ansible configuration management
host_config: host_config:
- nil # - nil
# - base_pkgs - base_pkgs
# - create_user - create_user
# - du_backups # - du_backups
# - monitorix # - monitorix
# - nagios_agent # - nagios_agent

View File

@ -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

View File

@ -56,6 +56,7 @@ host_config:
# - nil # - nil
- base_pkgs - base_pkgs
- create_user - create_user
- incus
# - du_backups # - du_backups
# - monitorix # - monitorix
# - nagios_agent # - nagios_agent

View File

@ -15,12 +15,14 @@ all:
hosts: hosts:
# ws # ws
cat: cat:
hollister:
holly: holly:
kryten: kryten:
lister: lister:
# svrs # svrs
hollister: hudzen:
reddwarf: reddwarf:
rimmer:
skutter01: skutter01:
skutter02: skutter02:
starbug: starbug:
@ -44,7 +46,7 @@ all:
metrics: metrics:
npm: npm:
ntopng: ntopng:
#octoprint: # octoprint:
pihole1: pihole1:
pihole2: pihole2:
twiki: twiki:
@ -61,6 +63,7 @@ all:
workstations: workstations:
hosts: hosts:
cat: cat:
hollister:
holly: holly:
kryten: kryten:
lister: lister:
@ -68,8 +71,9 @@ all:
############################################# #############################################
servers: servers:
hosts: hosts:
hollister: hudzen:
reddwarf: reddwarf:
rimmer:
skutter01: skutter01:
skutter02: skutter02:
starbug: starbug:
@ -102,7 +106,7 @@ all:
metrics: metrics:
npm: npm:
ntopng: ntopng:
#octoprint: # octoprint:
pihole1: pihole1:
pihole2: pihole2:
twiki: twiki: