provisioner option

This commit is contained in:
John Lancaster
2026-03-15 21:05:38 -05:00
parent e38689fb82
commit 3e2ad120fe

View File

@@ -46,6 +46,10 @@
type = lib.types.listOf lib.types.str; type = lib.types.listOf lib.types.str;
default = [ ]; default = [ ];
}; };
provisioner = lib.mkOption {
type = lib.types.str;
default = "admin";
};
}; };
config = { config = {
@@ -56,7 +60,7 @@
${cfg.subject} ${tlsCert} ${tlsKey} \ ${cfg.subject} ${tlsCert} ${tlsKey} \
--ca-url ${cfg.caURL} \ --ca-url ${cfg.caURL} \
--root ${rootCA} \ --root ${rootCA} \
--provisioner admin \ --provisioner ${cfg.provisioner} \
${sanArgs} ${sanArgs}
cat ${tlsCert} ${tlsKey} > ${mtlsBundle} cat ${tlsCert} ${tlsKey} > ${mtlsBundle}
'') '')