add option to skip certificate fetching

This commit is contained in:
bain 2025-01-19 23:39:20 +01:00
parent 67bf25a0a0
commit a5714a258e
Signed by: bain
GPG key ID: 31F0F25E3BED0B9B

View file

@ -97,7 +97,13 @@ def cli():
help="Try to fetch certificates and deploy",
)
@click.option("--skip-master-check", type=bool, is_flag=True)
def up(certs_only: bool, skip_master_check: bool):
@click.option(
"--skip-certs",
type=bool,
is_flag=True,
help="Do not fetch certificates",
)
def up(certs_only: bool, skip_master_check: bool, skip_certs: bool):
"""Deploy the configuration to the cluster
Does the following:
@ -123,6 +129,7 @@ def up(certs_only: bool, skip_master_check: bool):
Path(CONFIG["dehydrated_dir"]) / "domains.txt",
)
if not skip_certs:
ec, stdout = sysaction.run_shell(
(
str(dehydrated_dir / "dehydrated.sh"),