Compare commits
2 commits
5134d1c89f
...
f2bb2757b8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f2bb2757b8 | ||
|
|
80cfd36fdf |
5 changed files with 27 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
# Customer portal Clan-service
|
||||
|
|
@ -16,6 +16,8 @@ in
|
|||
# Server configuration
|
||||
#==============================================================================================================
|
||||
roles.server = {
|
||||
description = "A server hosts the portal";
|
||||
|
||||
interface = { lib, ... }:
|
||||
let
|
||||
inherit (lib) mkOption types toString;
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
# K3s Clan-service
|
||||
|
|
@ -16,6 +16,8 @@ in
|
|||
# Server configuration
|
||||
#==============================================================================================================
|
||||
roles.server = {
|
||||
description = "A server manages the cluster";
|
||||
|
||||
interface = { lib, ... }:
|
||||
let
|
||||
inherit (lib) mkOption mkEnableOption mkIf types toString;
|
||||
|
|
@ -184,6 +186,8 @@ in
|
|||
# Agent configuration
|
||||
#==============================================================================================================
|
||||
roles.agent = {
|
||||
description = "An agent connects to the server";
|
||||
|
||||
interface = { lib, ... }: {
|
||||
options = {};
|
||||
};
|
||||
|
|
|
|||
|
|
@ -17,6 +17,8 @@ in
|
|||
# Controller configuration
|
||||
#==============================================================================================================
|
||||
roles.controller = {
|
||||
description = "A controller that manages the instance";
|
||||
|
||||
interface = {
|
||||
options = {
|
||||
hostName = mkOption {
|
||||
|
|
@ -75,6 +77,21 @@ in
|
|||
};
|
||||
in
|
||||
{
|
||||
assertions =
|
||||
let
|
||||
inherit (lib) attrValues any;
|
||||
in
|
||||
[
|
||||
{
|
||||
assertion =
|
||||
config.services.k3s.enable == true;
|
||||
# config.clan.inventory.instances
|
||||
# |> attrValues
|
||||
# |> any ({ module, ... }: module.name == "k3s");
|
||||
message = "This module requires k3s in order to run";
|
||||
}
|
||||
];
|
||||
|
||||
clan.core.vars.generators.zitadel = {
|
||||
share = false;
|
||||
|
||||
|
|
@ -225,6 +242,8 @@ in
|
|||
# Peer configuration
|
||||
#==============================================================================================================
|
||||
roles.peer = {
|
||||
description = "A peer";
|
||||
|
||||
interface = {
|
||||
options = {};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue