Modularize the heck out of our inventories

This commit is contained in:
Salt 2022-03-19 13:05:18 -05:00
parent a176666660
commit 5adcf4536c
13 changed files with 26 additions and 3 deletions

View File

@ -2,7 +2,7 @@
forks = 16 forks = 16
host_key_checking = false host_key_checking = false
interpreter_python = python3 interpreter_python = python3
inventory = inventory inventory = inventories/production
private_key_file = ~/.ssh/desu private_key_file = ~/.ssh/desu
remote_tmp = /tmp remote_tmp = /tmp
roles_path = .roles:roles roles_path = .roles:roles

View File

@ -0,0 +1 @@
../production/group_vars

View File

@ -0,0 +1 @@
../production/host_vars

View File

@ -0,0 +1 @@
../production/group_vars

View File

@ -0,0 +1 @@
../production/host_vars

View File

@ -0,0 +1,21 @@
plugin: netbox.netbox.nb_inventory
token: !vault |
$ANSIBLE_VAULT;1.1;AES256
31656630386363323836663537383930346336393061363461653532323561386632343063353161
6630636535373331633762363738613232636366663430330a356333623466623230616433373036
35386162633961616438383332346165323930333662376665616531613837316333653361313332
3065343761343338340a336266316339616134336332376336326332663435323937343531636238
37323530333463383062396363616263386430356438306133393130626365333932323734383165
3064663435626339393836353837643730333266366436373033
api_endpoint: "https://netbox.desu.ltd"
interfaces: yes
group_by:
- device_roles
- device_types
- manufacturers
- platforms
- tags
query_filters:
- has_primary_ip: "true"
- status: "active"
- tag__n: "no-ansible"

View File

@ -1 +0,0 @@
../inventory/group_vars

View File

@ -1 +0,0 @@
../inventory/host_vars