mirror of
https://github.com/TheWanderingCrow/CrOS.git
synced 2026-02-13 08:08:57 -05:00
WIP: openbao
This commit is contained in:
parent
a591184639
commit
35cc552eb7
2 changed files with 24 additions and 19 deletions
24
modules/quadlets/openbao/default.nix
Normal file
24
modules/quadlets/openbao/default.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}:
|
||||
let
|
||||
openBaoConfig = pkgs.writeText "config.hcl" ''
|
||||
ui = true
|
||||
cluster_addr = "https://127.0.0.1:8201"
|
||||
api_addr = "https://127.0.0.1:8200"
|
||||
|
||||
|
||||
'';
|
||||
in
|
||||
{
|
||||
virtualisation.quadlet = {
|
||||
containers = {
|
||||
openbao.containerConfig = {
|
||||
image = "ghcr.io/openbao/openbao";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,19 +0,0 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
services.openbao = {
|
||||
enable = true;
|
||||
settings = {
|
||||
ui = true;
|
||||
|
||||
listener.default = {
|
||||
type = "tcp";
|
||||
tls_disable = true;
|
||||
};
|
||||
|
||||
cluster_addr = "http://127.0.0.1:8201";
|
||||
api_addr = "http://127.0.0.1:8200";
|
||||
|
||||
storage.raft.path = "/var/lib/openbao";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue