Inventory group/host variables: Sort yaml

This was done using yq (
https://mikefarah.gitbook.io/yq/operators/sort-keys )

Doing things this way makes it much easier to see if a variable is set
in a file or if two hosts differ in what variables they set. Hopefully
we can keep things sorted moving forward.

Basically this means just sort a-z anything you add to any host or group
vaiable and it will be in the right place.

Additionally, this enforces 'normal' intent rules for all the variable
files which we should also try and obey. 2 spaces for first level, 3 for
next, etc. When in doubt you can run yq on it.

This should cause NO actual vairable changes, it's all just readability
fixing for humans, ansible parses it exactly the same.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2021-11-16 13:27:57 -08:00
parent f6f29ded92
commit 580cd252c5
769 changed files with 12115 additions and 15787 deletions

View file

@ -1,37 +1,30 @@
---
nm: 255.255.255.0
gw: 10.3.174.254
dns: 10.3.163.33
ks_url: http://10.3.163.35/repo/rhel/ks/kvm-rhel-8-iad2
ks_repo: http://10.3.163.35/repo/rhel/RHEL8-x86_64/
volgroup: /dev/vg_guests
eth0_ip: 10.3.174.54
vmhost: qvmhost-x86-02.iad2.fedoraproject.org
datacenter: iad2
# This is a generic list, monitored by collectd
databases:
- resultsdb
- resultsdb
datacenter: iad2
db_backup_dir: ['/backups']
# This is a more strict list, to be made publicly available
dbs_to_backup:
- postgres
- resultsdb
# These are normally group variables, but in this case db servers are often different
lvm_size: 300000
mem_size: 16384
max_mem_size: "{{ mem_size * 2 }}"
num_cpus: 6
tcp_ports: [ 5432, 443, 3306 ]
sudoers: "{{ private }}/files/sudo/qavirt-sudoers"
- postgres
- resultsdb
dns: 10.3.163.33
effective_cache_size: "6GB"
eth0_ip: 10.3.174.54
gw: 10.3.174.254
host_backup_targets: ['/backups']
# kernel SHMMAX value
kernel_shmmax: 68719476736
db_backup_dir: ['/backups']
ks_repo: http://10.3.163.35/repo/rhel/RHEL8-x86_64/
ks_url: http://10.3.163.35/repo/rhel/ks/kvm-rhel-8-iad2
# These are normally group variables, but in this case db servers are often different
lvm_size: 300000
max_mem_size: "{{ mem_size * 2 }}"
mem_size: 16384
nm: 255.255.255.0
num_cpus: 6
shared_buffers: "2GB"
effective_cache_size: "6GB"
host_backup_targets: ['/backups']
sudoers: "{{ private }}/files/sudo/qavirt-sudoers"
tcp_ports: [5432, 443, 3306]
vmhost: qvmhost-x86-02.iad2.fedoraproject.org
volgroup: /dev/vg_guests