Skip to content

Commit

Permalink
Refactor clone-module actions to use new configure-module script
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Apr 24, 2024
1 parent ae6cf75 commit 5a94d13
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
17 changes: 17 additions & 0 deletions imageroot/actions/clone-module/50configure-module
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env python3

#
# Copyright (C) 2024 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={
"mail_server": os.environ["MAIL_SERVER"],
"lets_encrypt": os.environ["TRAEFIK_LETS_ENCRYPT"],
"host": os.environ["TRAEFIK_HOST"],
"http2https": os.environ["TRAEFIK_HTTP2HTTPS"],
})
agent.assert_exp(configure_retval['exit_code'] == 0, "The configure-module subtask failed!")
1 change: 0 additions & 1 deletion imageroot/actions/clone-module/50traefik

This file was deleted.

0 comments on commit 5a94d13

Please sign in to comment.