Skip to content

Commit

Permalink
Merge pull request #239 from Normo/229-jinja-comments
Browse files Browse the repository at this point in the history
Use jinja style comments for license headers in jinja templates
  • Loading branch information
Normo authored May 22, 2024
2 parents e4ab5b8 + 0eb8def commit 54a5938
Show file tree
Hide file tree
Showing 16 changed files with 56 additions and 44 deletions.
6 changes: 3 additions & 3 deletions roles/gitlab_runner/templates/clouds.yaml.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{#
# SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
#
# SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
SPDX-License-Identifier: Apache-2.0
#}
clouds:
openstack:
Expand Down
8 changes: 4 additions & 4 deletions roles/gitlab_runner/templates/config.toml.j2
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{#
# SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ)
# SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
#
# SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ)
SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
SPDX-License-Identifier: Apache-2.0
#}
concurrent = {{ gitlab_runner_concurrent }}
{% if gitlab_runner_listen_address | length > 0 %}
Expand Down
8 changes: 4 additions & 4 deletions roles/gitlab_runner/templates/flatcar-linux-config.bu.j2
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{#
# SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ)
# SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
#
# SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ)
SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
SPDX-License-Identifier: Apache-2.0
#}
variant: flatcar
version: 1.1.0
Expand Down
6 changes: 6 additions & 0 deletions roles/gitlab_runner/templates/pin-gitlab-runner.pref.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{#
SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ)
SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
SPDX-License-Identifier: Apache-2.0
#}
Explanation: Prefer GitLab provided packages over the Debian native ones
Package: gitlab-runner
Pin: origin packages.gitlab.com{% if gitlab_runner_version | length > 0 %}, version {{ gitlab_runner_pkg_version }}{% endif +%}
Expand Down

This file was deleted.

8 changes: 4 additions & 4 deletions roles/gitlab_runner/templates/runner_config.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{#
# SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ)
# SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
#
# SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ)
SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden - Rossendorf (HZDR)
SPDX-License-Identifier: Apache-2.0
#}
{{ runner_config }}
9 changes: 5 additions & 4 deletions roles/keepalived/templates/keepalived.conf.j2
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ)
# SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden-Rossendorf (HZDR)
#
# SPDX-License-Identifier: Apache-2.0
{#
SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ)
SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden-Rossendorf (HZDR)
SPDX-License-Identifier: Apache-2.0
#}
global_defs {
{% if keepalived_activate_script %}
script_user {{ keepalived_script_user }} {{ keepalived_script_group }}
Expand Down
9 changes: 5 additions & 4 deletions roles/keepalived/templates/keepalived.service.j2
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ)
# SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden-Rossendorf (HZDR)
#
# SPDX-License-Identifier: Apache-2.0
{#
SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ)
SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden-Rossendorf (HZDR)
SPDX-License-Identifier: Apache-2.0
#}
[Unit]
Description=LVS and VRRP High Availability Monitor
After=network-online.target syslog.target
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{#
SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ)
SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden-Rossendorf (HZDR)
SPDX-License-Identifier: GPL-2.0-or-later
#}
[Unit]
Description=Daily apt download activities

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{#
SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ)
SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden-Rossendorf (HZDR)
SPDX-License-Identifier: GPL-2.0-or-later
#}
[Unit]
Description=Daily apt upgrade and clean activities
After=apt-daily.timer
Expand Down

This file was deleted.

7 changes: 7 additions & 0 deletions roles/unattended_upgrades/templates/unattended-upgrades.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
{#
SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ)
SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden-Rossendorf (HZDR)
SPDX-FileCopyrightText: Jan Vlnas
SPDX-License-Identifier: GPL-2.0-or-later
#}
{{ ansible_managed | comment('c') }}

// Erase unattended-upgrades configuration tree
Expand Down

This file was deleted.

6 changes: 6 additions & 0 deletions roles/zammad/templates/nginx-zammad.conf.j2
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{#
SPDX-FileCopyrightText: Helmholtz Centre for Environmental Research (UFZ)
SPDX-FileCopyrightText: Helmholtz-Zentrum Dresden-Rossendorf (HZDR)
SPDX-License-Identifier: MIT
#}
# {{ ansible_managed }}
#
# this is the nginx config for zammad
Expand Down
4 changes: 0 additions & 4 deletions roles/zammad/templates/nginx-zammad.conf.j2.license

This file was deleted.

0 comments on commit 54a5938

Please sign in to comment.