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

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

View File

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

View File

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

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
- base_pkgs
- create_user
- incus
# - du_backups
# - monitorix
# - nagios_agent

View File

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