Skip to content

Commit

Permalink
Merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Mtze committed Jun 11, 2024
2 parents ddf2c4e + 4213f40 commit fd4be37
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
3 changes: 3 additions & 0 deletions roles/artemis/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ artemis_external_password_reset_link_de: "https://campus.tum.de/tumonline/ee/ui/
# user: # An artemis admin user for the local version control system
# password: # The password of the artemis admin user for the local version control system
# ssh_key_path: /opt/artemis/ssh-keys
# build_agent_git_credentials:
# user:
# password:
#
#continuous_integration:
# bamboo:
Expand Down
6 changes: 6 additions & 0 deletions roles/artemis/templates/application-prod.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,14 @@ artemis:
url: {{ version_control.localvc.url }}
local-vcs-repo-path: {{ version_control.localvc.repo_storage_base_path }}
default-branch: {{ artemis_version_control_default_branch_name }}
{% if artemis_computed_is_core_node or version_control.localvc.build_agent_git_credentials is not defined %}
user: {{ artemis_internal_admin_user }}
password: {{ artemis_internal_admin_password }}
{% endif %}
{% if version_control.localvc.build_agent_git_credentials is defined %}
build-agent-git-username: {{ version_control.localvc.build_agent_git_credentials.user }}
build-agent-git-password: {{ version_control.localvc.build_agent_git_credentials.password }}
{% endif %}
{% if version_control.localvc.ssh_key_path is defined and version_control.localvc.ssh_key_path|length > 0 %}
ssh-host-key-path: {{ version_control.localvc.ssh_key_path }}
{% endif %}
Expand Down
10 changes: 8 additions & 2 deletions roles/artemis/templates/artemis.env.j2
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,14 @@ ARTEMIS_CONTINUOUSINTEGRATION_ARTEMISAUTHENTICATIONTOKENVALUE='{{ continuous_int
{% if version_control.localvc is defined %}
ARTEMIS_VERSIONCONTROL_URL='{{ version_control.localvc.url }}'
ARTEMIS_VERSIONCONTROL_LOCALVCSREPOPATH='{{ artemis_repo_basepath }}/local-vcs-repos'
ARTEMIS_VERSIONCONTROL_USER='demo'
ARTEMIS_VERSIONCONTROL_PASSWORD='demo'
{% if artemis_computed_is_core_node or version_control.localvc.build_agent_git_credentials is not defined %}
ARTEMIS_VERSIONCONTROL_USER='{{ artemis_internal_admin_user }}'
ARTEMIS_VERSIONCONTROL_PASSWORD='{{ artemis_internal_admin_password }}'
{% endif %}
{% if version_control.localvc.build_agent_git_credentials is defined %}
ARTEMIS_VERSIONCONTROL_BUILDAGENTGITUSERNAME='{{ version_control.localvc.build_agent_git_credentials.user }}'
ARTEMIS_VERSIONCONTROL_BUILDAGENTGITPASSWORD='{{ version_control.localvc.build_agent_git_credentials.password }}'
{% endif %}
{% if version_control.localvc.ssh_key_path is defined and version_control.localvc.ssh_key_path|length > 0 %}
ARTEMIS_VERSIONCONTROL_SSHHOSTKEYPATH='{{ artemis_repo_basepath }}/ssh-keys'
{% endif %}
Expand Down

0 comments on commit fd4be37

Please sign in to comment.