nix/mapping.nix

29 lines
No EOL
673 B
Nix

# This file is used to map "roles" to nodes
# Modules are supposed to be generic
# If some "hostvars" are needed they should
# be declared here
{
bastion = {
hosts = [
"bastion-mtz-lasuite-federez"
"bastion-ren-lasuite-federez"
"bastion-aur-lasuite-federez"
];
_inherit = [
./shared/bastion.nix
];
};
# For instance:
# psql = rec {
# master = "some-node-1";
# slaves = [
# "some-node-2"
# "some-node-3"
# ];
# hosts = [ master ] ++ slaves;
# _inherit = [
# "./shared/psql.nix"
# ];
# };
}