provisioner option
This commit is contained in:
@@ -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}
|
||||||
'')
|
'')
|
||||||
|
|||||||
Reference in New Issue
Block a user