move modules from nodes.nix to mapping.nix

This commit is contained in:
asyncnomi 2025-07-24 21:22:14 +02:00
parent 4df3c2678d
commit 5103243bfd
5 changed files with 32 additions and 92 deletions

View file

@ -3,18 +3,27 @@
# If some "hostvars" are needed they should
# be declared here
{
bastion = [
"bastion-mtz-lasuite-federez"
"bastion-ren-lasuite-federez"
"bastion-aur-lasuite-federez"
];
bastion = {
hosts = [
"bastion-mtz-lasuite-federez"
"bastion-ren-lasuite-federez"
"bastion-aur-lasuite-federez"
];
_inherit = [
./shared/bastion.nix
];
};
# For instance:
# psql = {
# psql = rec {
# master = "some-node-1";
# slaves = [
# "some-node-2"
# "some-node-3"
# ];
# hosts = [ master ] ++ slaves;
# _inherit = [
# "./shared/psql.nix"
# ];
# };
}