Split nixops deployments.

This commit is contained in:
Jonas Juselius
2017-07-06 15:06:44 +02:00
parent 3967239a50
commit f317c16852
3 changed files with 21 additions and 16 deletions

4
deploy.sh Executable file
View File

@@ -0,0 +1,4 @@
#!/sur/bin/bash
nixops modify -d $1 $1.nix
nixops deploy -d $1

7
git.nix Normal file
View File

@@ -0,0 +1,7 @@
{
git01 = { config, lib, pkgs, ... }:
{
deployment.targetHost = "10.253.18.103";
imports = [ ./git01/configuration.nix ];
};
}

View File

@@ -1,25 +1,19 @@
{ {
kube01 = { config, lib, pkgs, ... }: k8s00 = { config, lib, pkgs, ... }:
{
deployment.targetHost = "10.253.18.100";
imports = [ ./k8s01/configuration.nix ];
};
kube02 = { config, lib, pkgs, ... }:
{
deployment.targetHost = "10.253.18.102";
imports = [ ./k8s02/configuration.nix ];
};
kubemaster = { config, lib, pkgs, ... }:
{ {
deployment.targetHost = "10.253.18.101"; deployment.targetHost = "10.253.18.101";
imports = [ ./k8s00/configuration.nix ]; imports = [ ./k8s00/configuration.nix ];
}; };
git01 = { config, lib, pkgs, ... }: k8s01 = { config, lib, pkgs, ... }:
{ {
deployment.targetHost = "10.253.18.103"; deployment.targetHost = "10.253.18.100";
imports = [ ./git01/configuration.nix ]; imports = [ ./k8s01/configuration.nix ];
};
k8s02 = { config, lib, pkgs, ... }:
{
deployment.targetHost = "10.253.18.102";
imports = [ ./k8s02/configuration.nix ];
}; };
} }