move groups around

This commit is contained in:
Franzi 2020-11-21 10:55:09 +01:00
parent 5419bf31fb
commit daa90a4668
Signed by: kunsi
GPG key ID: 12E3D2136B818350
16 changed files with 80 additions and 61 deletions

View file

@ -3,32 +3,6 @@ groups['all'] = {
r".*", r".*",
}, },
'subgroups': { 'subgroups': {
# This is only needed because we're overriding stuff in the group. 'linux',
'home',
}, },
'bundles': {
'apt',
'backup-client',
'cron',
'hostname',
'openssh',
'postfix',
'sshmon',
'sudo',
'systemd',
'systemd-networkd',
'users',
},
'metadata': {
'apt': {
'unattended-upgrades': {
'mail': 'hostmaster@kunsmann.eu',
},
},
'backup-client': {
'server': 'franzi-home.kunbox.net:2022',
},
},
'pip_command': 'pip3',
} }

View file

@ -63,9 +63,6 @@ groups['home'] = {
# than our own domains. # than our own domains.
'relayhost': '[mx0.kunbox.net]:2525', 'relayhost': '[mx0.kunbox.net]:2525',
}, },
'backup-client': {
'server': '172.19.138.20:22',
},
}, },
} }

View file

@ -10,3 +10,55 @@ groups['raspberry'] = {
}, },
}, },
} }
groups['linux'] = {
'subgroups': {
'debian',
'raspberry',
},
'bundles': {
'apt',
'backup-client',
'cron',
'hostname',
'openssh',
'postfix',
'sshmon',
'sudo',
'systemd',
'systemd-networkd',
'users',
},
'metadata': {
'apt': {
'unattended-upgrades': {
'mail': 'hostmaster@kunsmann.eu',
},
},
'backup-client': {
'server': 'franzi-home.kunbox.net:2022',
},
},
'pip_command': 'pip3',
}
groups['debian'] = {
'subgroups': {
'debian-buster',
'debian-bullseye',
'debian-sid',
},
'os': 'debian'
}
groups['debian-buster'] = {
'os_version': (10,)
}
groups['debian-bullseye'] = {
'os_version': (11,)
}
groups['debian-sid'] = {
'os_version': (11,)
}

View file

@ -8,6 +8,7 @@ nodes['gce.bind01'] = {
'powerdnsadmin', 'powerdnsadmin',
}, },
'groups': { 'groups': {
'debian-buster',
'dns', 'dns',
'webserver', 'webserver',
}, },
@ -44,6 +45,4 @@ nodes['gce.bind01'] = {
'ram': 1, 'ram': 1,
}, },
}, },
'os': 'debian',
'os_version': (10,),
} }

View file

@ -5,6 +5,7 @@ nodes['gce.dns02'] = {
'hostname': '35.187.109.249', 'hostname': '35.187.109.249',
'bundles': set(), 'bundles': set(),
'groups': { 'groups': {
'debian-buster',
'dns', 'dns',
}, },
'metadata': { 'metadata': {
@ -28,6 +29,4 @@ nodes['gce.dns02'] = {
'ram': 1, 'ram': 1,
}, },
}, },
'os': 'debian',
'os_version': (10,),
} }

View file

@ -5,6 +5,7 @@ nodes['gce.dns03'] = {
'hostname': '35.228.143.71', 'hostname': '35.228.143.71',
'bundles': set(), 'bundles': set(),
'groups': { 'groups': {
'debian-buster',
'dns', 'dns',
}, },
'metadata': { 'metadata': {
@ -28,6 +29,4 @@ nodes['gce.dns03'] = {
'ram': 1, 'ram': 1,
}, },
}, },
'os': 'debian',
'os_version': (10,),
} }

View file

@ -4,7 +4,9 @@ nodes['home.kodi-wohnzimmer'] = {
'kodi', 'kodi',
'nfs-client', 'nfs-client',
}, },
'groups': set(), 'groups': {
'debian-buster',
},
'metadata': { 'metadata': {
'interfaces': { 'interfaces': {
'eth0': { 'eth0': {
@ -20,6 +22,9 @@ nodes['home.kodi-wohnzimmer'] = {
'vdpau-va-driver': {}, 'vdpau-va-driver': {},
}, },
}, },
'backup-client': {
'server': '172.19.138.20:22',
},
'nfs-client': { 'nfs-client': {
'mounts': { 'mounts': {
'nas-storage': { 'nas-storage': {
@ -37,6 +42,4 @@ nodes['home.kodi-wohnzimmer'] = {
'ram': 4, 'ram': 4,
}, },
}, },
'os': 'debian',
'os_version': (10,),
} }

View file

@ -7,7 +7,9 @@ nodes['home.nas'] = {
'vmhost', 'vmhost',
'zfs', 'zfs',
}, },
'groups': set(), 'groups': {
'debian-bullseye',
},
'metadata': { 'metadata': {
'interfaces': { 'interfaces': {
'br0.42': { 'br0.42': {
@ -115,6 +117,4 @@ nodes['home.nas'] = {
'ram': 16, 'ram': 16,
}, },
}, },
'os': 'debian',
'os_version': (11,),
} }

View file

@ -5,6 +5,7 @@ nodes['home.octoprint-vielschichtigkeit'] = {
'octoprint', 'octoprint',
}, },
'groups': { 'groups': {
'debian-buster',
'raspberry', 'raspberry',
}, },
'metadata': { 'metadata': {
@ -17,6 +18,9 @@ nodes['home.octoprint-vielschichtigkeit'] = {
'mac': 'b8:27:eb:8e:0b:1d', 'mac': 'b8:27:eb:8e:0b:1d',
}, },
}, },
'backup-client': {
'server': '172.19.138.20:22',
},
'nginx': { 'nginx': {
'use_ssl_for_all_connections': False, 'use_ssl_for_all_connections': False,
'vhosts': { 'vhosts': {
@ -42,7 +46,4 @@ nodes['home.octoprint-vielschichtigkeit'] = {
'ram': 1, 'ram': 1,
}, },
}, },
# This is a raspberry pi, but raspbian 64bit is plain debian.
'os': 'debian',
'os_version': (10,),
} }

View file

@ -12,7 +12,9 @@ nodes['home.router'] = {
'vnstat', 'vnstat',
'wide-dhcp6c', 'wide-dhcp6c',
}, },
'groups': set(), 'groups': {
'debian-buster',
},
'metadata': { 'metadata': {
'interfaces': { 'interfaces': {
'enp1s0.23': { 'enp1s0.23': {
@ -129,6 +131,4 @@ nodes['home.router'] = {
}, },
}, },
}, },
'os': 'debian',
'os_version': (10,),
} }

View file

@ -5,6 +5,7 @@ nodes['htz-cloud.luther'] = {
'zfs', 'zfs',
}, },
'groups': { 'groups': {
'debian-buster',
'webserver', 'webserver',
}, },
'metadata': { 'metadata': {
@ -79,6 +80,4 @@ nodes['htz-cloud.luther'] = {
'ram': 2, 'ram': 2,
}, },
}, },
'os': 'debian',
'os_version': (10,),
} }

View file

@ -7,6 +7,7 @@ nodes['htz-cloud.pirmasens'] = {
'rspamd', 'rspamd',
}, },
'groups': { 'groups': {
'debian-buster',
'webserver', 'webserver',
}, },
'metadata': { 'metadata': {
@ -74,6 +75,4 @@ nodes['htz-cloud.pirmasens'] = {
'ram': 2, 'ram': 2,
}, },
}, },
'os': 'debian',
'os_version': (10,),
} }

View file

@ -6,6 +6,7 @@ nodes['htz-cloud.sewfile'] = {
'seafile', 'seafile',
}, },
'groups': { 'groups': {
'debian-buster',
'webserver', 'webserver',
}, },
'metadata': { 'metadata': {
@ -38,6 +39,4 @@ nodes['htz-cloud.sewfile'] = {
'ram': 2, 'ram': 2,
} }
}, },
'os': 'debian',
'os_version': (10,),
} }

View file

@ -19,6 +19,7 @@ nodes['htz.ex42-1048908'] = {
'voc-loudness-monitor', 'voc-loudness-monitor',
}, },
'groups': { 'groups': {
'debian-buster',
'webserver', 'webserver',
}, },
'metadata': { 'metadata': {
@ -344,6 +345,4 @@ nodes['htz.ex42-1048908'] = {
'ram': 64, 'ram': 64,
}, },
}, },
'os': 'debian',
'os_version': (10,),
} }

View file

@ -6,6 +6,7 @@ nodes['ovh.icinga2'] = {
'zfs', 'zfs',
}, },
'groups': { 'groups': {
'debian-buster',
'webserver', 'webserver',
}, },
'metadata': { 'metadata': {
@ -64,6 +65,4 @@ nodes['ovh.icinga2'] = {
'ram': 2, 'ram': 2,
}, },
}, },
'os': 'debian',
'os_version': (10,),
} }

View file

@ -12,7 +12,9 @@ nodes['rx300'] = {
'lldp', # TODO remove once this is no longer at home 'lldp', # TODO remove once this is no longer at home
'zfs', 'zfs',
}, },
'groups': set(), 'groups': {
'debian-buster',
},
'metadata': { 'metadata': {
'interfaces': { 'interfaces': {
'eth0': { 'eth0': {
@ -48,6 +50,4 @@ nodes['rx300'] = {
'ram': 378, 'ram': 378,
}, },
}, },
'os': 'debian',
'os_version': (10,),
} }