-
-
Save lejonet/288ad273a9babb0e711b44bfeb0ce2ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ ... }: | |
{ | |
imports = [ | |
../filenodes.nix | |
./hardware-configuration.nix | |
./networking.nix | |
]; | |
boot.loader.efi.canTouchEfiVariables = true; | |
services.ceph.mon = { | |
enable = true; | |
daemons = [ "filenode0" ]; | |
extraConfig = { | |
#"mon allow pool delete" = "true"; | |
}; | |
}; | |
services.ceph.osd = { | |
enable = true; | |
daemons = [ "0" "1" "2" "3" ]; | |
}; | |
services.ceph.mgr = { | |
enable = true; | |
daemons = [ "filenode0" ]; | |
}; | |
networking.hostName = "filenode0"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[nixops@nixops:~/sources/builddir/nixops/deployments]$ nixops deploy --build-only --show-trace -d filenode0 | gist -u https://gist.github.com/lejonet/288ad273a9babb0e711b44bfeb0ce2ae - | |
error: while evaluating the attribute ‘config.system.nixosRelease’ at /etc/nixos/nixpkgs/lib/attrsets.nix:199:44: | |
while evaluating ‘removeSuffix’ at /etc/nixos/nixpkgs/lib/strings.nix:341:23, called from /nix/store/82gjbw920v9an39ik2jp1kjqb77l4adk-nixops-1.5.2/share/nix/nixops/eval-machine-info.nix:284:59: | |
while evaluating the attribute ‘config.system.nixosVersion’ at /etc/nixos/nixpkgs/lib/attrsets.nix:199:44: | |
attribute ‘nixosVersion’ missing, at /nix/store/82gjbw920v9an39ik2jp1kjqb77l4adk-nixops-1.5.2/share/nix/nixops/eval-machine-info.nix:284:107 | |
error: evaluation of the deployment specification failed | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
filenodes = | |
{ config, pkgs, ... }: | |
{ | |
deployment.targetHost = "filenode0.stor.int.dataaturservice.se"; | |
}; | |
in { | |
filenode0 = filenodes; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let | |
filenode = ../servers/storage/filenodes/filenode0/configuration.nix # This was ../servers/backend/filenodes/filenode0/configuration.nix before | |
in { | |
filenode0 = filenode; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[nixops@nixops:~/sources/builddir/nixops/deployments]$ nixops info | |
error: attribute ‘nixosVersion’ missing, at /nix/store/82gjbw920v9an39ik2jp1kjqb77l4adk-nixops-1.5.2/share/nix/nixops/eval-machine-info.nix:284:107 | |
(use ‘--show-trace’ to show detailed location information) | |
warning: evaluation of the deployment specification failed; status info may be incorrect | |
Network name: filenode0 | |
Network UUID: 286fb6f0-a776-11e7-a182-deadbeef1338 | |
Network description: Unnamed NixOps network | |
Nix expressions: /home/nixops/sources/builddir/nixops/deployments/filenodes.nix /home/nixops/sources/builddir/nixops/deployments/filenodes-nixos.nix | |
+-----------+-----------------+------+-------------------------------------------------------+------------+ | |
| Name | Status | Type | Resource Id | IP address | | |
+-----------+-----------------+------+-------------------------------------------------------+------------+ | |
| filenode0 | Up / Up-to-date | none | nixops-286fb6f0-a776-11e7-a182-deadbeef1338-filenode0 | | | |
+-----------+-----------------+------+-------------------------------------------------------+------------+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment