File tree Expand file tree Collapse file tree 5 files changed +26
-2
lines changed
Expand file tree Collapse file tree 5 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 8282
8383 checks = import ./checks { inherit pkgs pre-commit-hooks-run ; } ;
8484
85- nixosModules = import ./modules { openstackPkgs = packages ; } ;
85+ nixosModules = import ./modules {
86+ openstackPkgs = packages ;
87+ inherit self ;
88+ } ;
8689
8790 tests = import ./tests/default.nix {
8891 inherit pkgs nixosModules ;
Original file line number Diff line number Diff line change 1+ # Ensures libvirt and Cloud Hypervisor are set with the proper sources for SAP
2+ # (for gardenlinux).
3+
4+ # Function returning a NixOS Module
5+ { self } :
6+
7+ # NixOS Module start
8+ { pkgs , ... } :
9+ {
10+ virtualisation . libvirtd . package = pkgs . libvirt ;
11+ nixpkgs . overlays = [
12+ ( prev : final : {
13+ inherit ( self . packages . ${ pkgs . system } ) cloud-hypervisor ;
14+ } )
15+ ] ;
16+ }
Original file line number Diff line number Diff line change 1- { openstackPkgs } :
1+ { openstackPkgs , self } :
22{
33 controllerModule = import ./controller/openstack-controller.nix {
44 inherit ( openstackPkgs )
1414 computeModule = import ./compute/compute.nix { inherit ( openstackPkgs ) neutron nova ; } ;
1515
1616 testModules = import ./testing { } ;
17+
18+ chv-sap = import ./chv-sap.nix { inherit self ; } ;
1719}
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ pkgs.nixosTest {
2020 imports = [
2121 nixosModules . computeModule
2222 nixosModules . testModules . testCompute
23+ nixosModules . chv-sap
2324 ] ;
2425 } ;
2526
Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ pkgs.nixosTest {
130130 imports = [
131131 nixosModules . computeModule
132132 nixosModules . testModules . testCompute
133+ nixosModules . chv-sap
133134 ( novaConfigForIp "10.0.0.39" )
134135 ] ;
135136
@@ -153,6 +154,7 @@ pkgs.nixosTest {
153154 imports = [
154155 nixosModules . computeModule
155156 nixosModules . testModules . testCompute
157+ nixosModules . chv-sap
156158 ( novaConfigForIp "10.0.0.40" )
157159 ] ;
158160
You can’t perform that action at this time.
0 commit comments