Skip to content

Commit

Permalink
Add 50traefik module to clone-module directory
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Feb 25, 2024
1 parent 560e179 commit 5906f4d
Showing 1 changed file with 16 additions and 1 deletion.
1 change: 0 additions & 1 deletion imageroot/actions/clone-module/50traefik

This file was deleted.

16 changes: 16 additions & 0 deletions imageroot/actions/clone-module/50traefik
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env python3

#
# Copyright (C) 2023 Nethesis S.r.l.
# SPDX-License-Identifier: GPL-3.0-or-later
#

import agent
import os

configure_retval = agent.tasks.run(agent_id=os.environ['AGENT_ID'], action='configure-module', data={
"lets_encrypt": os.environ["TRAEFIK_LETS_ENCRYPT"] == "True",
"host": os.environ["TRAEFIK_HOST"],
"http2https": os.environ["TRAEFIK_HTTP2HTTPS"] == "True",
})
agent.assert_exp(configure_retval['exit_code'] == 0, "The configure-module subtask failed!")

0 comments on commit 5906f4d

Please sign in to comment.