Break inventory out into hostvars and groupvars
because variable scoping is hard apparently
This commit is contained in:
		
							
								
								
									
										12
									
								
								groups/servers.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								groups/servers.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
---
 | 
			
		||||
enable_gui: False
 | 
			
		||||
 | 
			
		||||
enable_ssh: True
 | 
			
		||||
 | 
			
		||||
enable_ssh_password_auth: False
 | 
			
		||||
 | 
			
		||||
enable_sudo_password: True
 | 
			
		||||
 | 
			
		||||
enable_networkd: True
 | 
			
		||||
 | 
			
		||||
generate_keys: False
 | 
			
		||||
							
								
								
									
										12
									
								
								groups/vms.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								groups/vms.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
---
 | 
			
		||||
enable_gui: False
 | 
			
		||||
 | 
			
		||||
enable_ssh: True
 | 
			
		||||
 | 
			
		||||
enable_ssh_password_auth: False
 | 
			
		||||
 | 
			
		||||
enable_sudo_password: False
 | 
			
		||||
 | 
			
		||||
enable_networkd: True
 | 
			
		||||
 | 
			
		||||
generate_keys: False
 | 
			
		||||
							
								
								
									
										12
									
								
								groups/workstations.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								groups/workstations.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
---
 | 
			
		||||
enable_gui: True
 | 
			
		||||
 | 
			
		||||
enable_ssh: False
 | 
			
		||||
 | 
			
		||||
enable_ssh_password_auth: False
 | 
			
		||||
 | 
			
		||||
enable_sudo_password: True
 | 
			
		||||
 | 
			
		||||
enable_networkd: False
 | 
			
		||||
 | 
			
		||||
generate_keys: False
 | 
			
		||||
							
								
								
									
										6
									
								
								hosts/apex.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								hosts/apex.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
---
 | 
			
		||||
description: "Reverse Proxy and VPN Server"
 | 
			
		||||
 | 
			
		||||
targets:
 | 
			
		||||
  - admin
 | 
			
		||||
  - vpn
 | 
			
		||||
							
								
								
									
										5
									
								
								hosts/novis.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								hosts/novis.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
---
 | 
			
		||||
description: "Secondary Datastore"
 | 
			
		||||
targets:
 | 
			
		||||
  - admin
 | 
			
		||||
  - datastore
 | 
			
		||||
							
								
								
									
										6
									
								
								hosts/omega.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								hosts/omega.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
---
 | 
			
		||||
description: "And the Last"
 | 
			
		||||
 | 
			
		||||
targets:
 | 
			
		||||
  - admin
 | 
			
		||||
  - workstations
 | 
			
		||||
							
								
								
									
										6
									
								
								hosts/remus.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								hosts/remus.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
---
 | 
			
		||||
description: "Secondary Hypervisor and Primary Datastore"
 | 
			
		||||
 | 
			
		||||
targets:
 | 
			
		||||
  - admin
 | 
			
		||||
  - datastore
 | 
			
		||||
							
								
								
									
										7
									
								
								hosts/romulus.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								hosts/romulus.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
---
 | 
			
		||||
description: "Primary Hypervisor"
 | 
			
		||||
 | 
			
		||||
targets:
 | 
			
		||||
  - admin
 | 
			
		||||
  - datastore
 | 
			
		||||
  - hypervisor
 | 
			
		||||
							
								
								
									
										6
									
								
								hosts/serico-nox.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								hosts/serico-nox.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
---
 | 
			
		||||
description: "Smooth as Silk"
 | 
			
		||||
 | 
			
		||||
targets:
 | 
			
		||||
  - admin
 | 
			
		||||
  - workstations
 | 
			
		||||
							
								
								
									
										6
									
								
								hosts/vigil-nox.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								hosts/vigil-nox.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
---
 | 
			
		||||
description: "Watcher who Watches the Watchmen"
 | 
			
		||||
 | 
			
		||||
targets:
 | 
			
		||||
  - admin
 | 
			
		||||
  - workstations
 | 
			
		||||
							
								
								
									
										5
									
								
								hosts/vm-db-maria.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								hosts/vm-db-maria.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
---
 | 
			
		||||
description: "MariaDB Server Host"
 | 
			
		||||
 | 
			
		||||
targets:
 | 
			
		||||
  - admin
 | 
			
		||||
							
								
								
									
										5
									
								
								hosts/vm-db-prometheus.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								hosts/vm-db-prometheus.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
---
 | 
			
		||||
description: "PrometheusDB Server Host"
 | 
			
		||||
 | 
			
		||||
targets:
 | 
			
		||||
  - admin
 | 
			
		||||
							
								
								
									
										6
									
								
								hosts/vm-host-gitea.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								hosts/vm-host-gitea.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
---
 | 
			
		||||
description: "Gitea Git Server Host"
 | 
			
		||||
 | 
			
		||||
targets:
 | 
			
		||||
  - admin
 | 
			
		||||
  - gitea
 | 
			
		||||
							
								
								
									
										5
									
								
								hosts/vm-host-nginx.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								hosts/vm-host-nginx.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
---
 | 
			
		||||
description: "Nginx Development Server"
 | 
			
		||||
 | 
			
		||||
targets:
 | 
			
		||||
  - admin
 | 
			
		||||
							
								
								
									
										6
									
								
								hosts/vm-host-plex.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								hosts/vm-host-plex.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,6 @@
 | 
			
		||||
---
 | 
			
		||||
description: "Plex Media Server Host"
 | 
			
		||||
 | 
			
		||||
targets:
 | 
			
		||||
  - admin
 | 
			
		||||
  - plex
 | 
			
		||||
							
								
								
									
										17
									
								
								omni.ini
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								omni.ini
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
[servers]
 | 
			
		||||
romulus
 | 
			
		||||
remus
 | 
			
		||||
novis
 | 
			
		||||
apex
 | 
			
		||||
 | 
			
		||||
[vms]
 | 
			
		||||
vm-host-nginx
 | 
			
		||||
vm-host-gitea
 | 
			
		||||
vm-host-plex
 | 
			
		||||
vm-db-maria
 | 
			
		||||
vm-db-prometheus
 | 
			
		||||
 | 
			
		||||
[workstations]
 | 
			
		||||
omega
 | 
			
		||||
vigil-nox
 | 
			
		||||
serico-nox
 | 
			
		||||
							
								
								
									
										82
									
								
								omni.yml
									
									
									
									
									
								
							
							
						
						
									
										82
									
								
								omni.yml
									
									
									
									
									
								
							@@ -1,82 +0,0 @@
 | 
			
		||||
---
 | 
			
		||||
servers:
 | 
			
		||||
  vars:
 | 
			
		||||
    enable_gui: False
 | 
			
		||||
    enable_ssh: True
 | 
			
		||||
    enable_ssh_password_auth: False
 | 
			
		||||
    enable_sudo_password: True
 | 
			
		||||
    enable_networkd: True
 | 
			
		||||
    generate_keys: False
 | 
			
		||||
  hosts:
 | 
			
		||||
    romulus.net.enp.one:
 | 
			
		||||
      vars:
 | 
			
		||||
        description: "Primary Hypervisor"
 | 
			
		||||
        networking:
 | 
			
		||||
          em1:
 | 
			
		||||
            address: "10.42.101.20"
 | 
			
		||||
            mac: "d4:ae:52:b1:a7:70"
 | 
			
		||||
          em2:
 | 
			
		||||
            address: "10.42.101.21"
 | 
			
		||||
            mac: "d4:ae:52:b1:a7:71"
 | 
			
		||||
            alias: "vmhost-1"
 | 
			
		||||
    novis.net.enp.one:
 | 
			
		||||
      vars:
 | 
			
		||||
        description: "Secondary Datastore"
 | 
			
		||||
        networking:
 | 
			
		||||
          enp2s0:
 | 
			
		||||
            address: "10.42.101.40"
 | 
			
		||||
            mac: ""
 | 
			
		||||
 | 
			
		||||
vms:
 | 
			
		||||
  vars:
 | 
			
		||||
    enable_gui: False
 | 
			
		||||
    enable_ssh: True
 | 
			
		||||
    enable_ssh_password_auth: False
 | 
			
		||||
    enable_sudo_password: False
 | 
			
		||||
    enable_networkd: True
 | 
			
		||||
    generate_keys: False
 | 
			
		||||
  hosts:
 | 
			
		||||
    vm-host-nginx:
 | 
			
		||||
      vars:
 | 
			
		||||
        description: "Nginx Development Server"
 | 
			
		||||
        networking:
 | 
			
		||||
          eth0: ["10.42.101.150/24"]
 | 
			
		||||
    vm-host-gitea:
 | 
			
		||||
      vars:
 | 
			
		||||
        description: "Gitea Git Server Host"
 | 
			
		||||
        networking:
 | 
			
		||||
          eth0: ["10.42.101.151/24"]
 | 
			
		||||
    vm-host-plex:
 | 
			
		||||
      vars:
 | 
			
		||||
        description: "Plex Media Server Host"
 | 
			
		||||
        networking:
 | 
			
		||||
          eth0: ["10.42.101.152/24"]
 | 
			
		||||
    vm-db-maria:
 | 
			
		||||
      vars:
 | 
			
		||||
        description: "MariaDB Server Host"
 | 
			
		||||
        networking:
 | 
			
		||||
          eth0: ["10.42.101.153/24"]
 | 
			
		||||
    vm-db-prometheus:
 | 
			
		||||
      vars:
 | 
			
		||||
        description: "PrometheusDB Server Host"
 | 
			
		||||
        networking:
 | 
			
		||||
          eth0: ["10.42.101.154/24"]
 | 
			
		||||
 | 
			
		||||
workstations:
 | 
			
		||||
  vars:
 | 
			
		||||
    enable_gui: True
 | 
			
		||||
    enable_ssh: False
 | 
			
		||||
    enable_ssh_password_auth: False
 | 
			
		||||
    enable_sudo_password: True
 | 
			
		||||
    enable_networkd: False
 | 
			
		||||
    generate_keys: False
 | 
			
		||||
  hosts:
 | 
			
		||||
    omega:
 | 
			
		||||
      vars:
 | 
			
		||||
        description: "...and the Omega"
 | 
			
		||||
    serico:
 | 
			
		||||
      vars:
 | 
			
		||||
        description: "Smooth as Silk"
 | 
			
		||||
    vigil:
 | 
			
		||||
      vars:
 | 
			
		||||
        description: "Watcher who Watches the Watchmen"
 | 
			
		||||
		Reference in New Issue
	
	Block a user