From 218eb0ea420ec6c2eb3c2cd7fa1c8e1a46f18e85 Mon Sep 17 00:00:00 2001 From: clan-tool Date: Wed, 3 Sep 2025 17:26:40 +0200 Subject: [PATCH 1/2] add inventory metadata --- clan.nix | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) diff --git a/clan.nix b/clan.nix index a98aab0..72e7e8c 100644 --- a/clan.nix +++ b/clan.nix @@ -6,10 +6,26 @@ }; inventory.machines = { - m1 = {}; - c1 = {}; - c2 = {}; - c3 = {}; + m1 = { + name = "Management node 1"; + machineClass = "nixos"; + tags = [ "cloud:amarth" "region:oss" "nodeType:management" "criticallity: medium" "" ]; + }; + c1 = { + name = "Compute node 1"; + machineClass = "nixos"; + tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity: medium" "" ]; + }; + c2 = { + name = "Compute node 2"; + machineClass = "nixos"; + tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity: medium" "" ]; + }; + c3 = { + name = "Compute node 3"; + machineClass = "nixos"; + tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity: medium" "" ]; + }; }; # Docs: See https://docs.clan.lol/reference/clanServices From a3987254f06b6a87f957e5703bf48c896eb923a6 Mon Sep 17 00:00:00 2001 From: clan-tool Date: Wed, 3 Sep 2025 17:26:50 +0200 Subject: [PATCH 2/2] add initial action --- .forgejo/workflows/action.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .forgejo/workflows/action.yml diff --git a/.forgejo/workflows/action.yml b/.forgejo/workflows/action.yml new file mode 100644 index 0000000..4aac00e --- /dev/null +++ b/.forgejo/workflows/action.yml @@ -0,0 +1,16 @@ +name: Test action + +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + hello: + name: Print hello world + runs-on: default + steps: + - name: Echo + run: | + echo "Hello, world!" \ No newline at end of file