From 1d38ee86be0589b6bac98726dcae44b77170dd52 Mon Sep 17 00:00:00 2001 From: Shantanoo 'Shan' Desai Date: Fri, 28 Jul 2023 21:18:07 +0200 Subject: [PATCH] chore: add SPDX License Identifier header to files closes #104 Signed-off-by: Shantanoo 'Shan' Desai --- ansible.cfg | 2 ++ filter_plugins/mosquitto_passwd.py | 2 ++ generate_stack.yml | 2 ++ .../grafana/provisioning/datasources/datasources.yml.j2 | 5 ++++- templates/config/komponist.env.j2 | 2 ++ templates/config/mosquitto/acl.j2 | 5 ++++- templates/config/mosquitto/mosquitto.conf.j2 | 2 ++ templates/config/mosquitto/users.j2 | 5 ++++- templates/config/nodered/settings.js.j2 | 3 ++- templates/config/telegraf/inputs/mosquitto.conf.j2 | 2 ++ templates/config/telegraf/outputs/influxdbv1.conf.j2 | 5 ++++- templates/config/telegraf/outputs/influxdbv2.conf.j2 | 5 ++++- templates/config/telegraf/outputs/questdb.conf.j2 | 5 ++++- templates/config/telegraf/telegraf.conf.j2 | 2 ++ templates/config/traefik/configurations/dynamic.yml.j2 | 2 ++ templates/config/traefik/traefik.yml.j2 | 2 ++ templates/license_header.txt.j2 | 2 ++ templates/services/docker-compose.grafana.yml.j2 | 2 ++ templates/services/docker-compose.influxdbv1.yml.j2 | 2 ++ templates/services/docker-compose.influxdbv2.yml.j2 | 2 ++ templates/services/docker-compose.mosquitto.yml.j2 | 2 ++ templates/services/docker-compose.nodered.yml.j2 | 2 ++ templates/services/docker-compose.questdb.yml.j2 | 2 ++ templates/services/docker-compose.telegraf.yml.j2 | 2 ++ templates/services/docker-compose.timescaledb.yml.j2 | 2 ++ templates/services/docker-compose.traefik.yml.j2 | 2 ++ tests/services/test_compose_schema.yml | 2 ++ tests/services/test_config_grafana.yml | 1 + tests/services/test_config_influxdb.yml | 1 + tests/services/test_config_mosquitto.yml | 1 + tests/services/test_config_nodered.yml | 1 + tests/services/test_config_telegraf.yml | 1 + tests/services/test_config_traefik.yml | 1 + tests/test_file_contents.yml | 1 + tests/test_generated_directories.yml | 1 + tests/test_generated_files.yml | 1 + tests/test_schemas.yml | 1 + tui-configurator/Dockerfile | 2 ++ tui-configurator/tui-script.sh | 2 ++ vars/config.yml | 2 ++ vars/creds.yml | 2 ++ 41 files changed, 84 insertions(+), 7 deletions(-) diff --git a/ansible.cfg b/ansible.cfg index c4077c6..f4c8132 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only + [defaults] ansible_managed = This file is generated by Komponist.%n Generated On: %Y-%m-%d %H:%M:%S %n diff --git a/filter_plugins/mosquitto_passwd.py b/filter_plugins/mosquitto_passwd.py index 015fd41..3aec023 100644 --- a/filter_plugins/mosquitto_passwd.py +++ b/filter_plugins/mosquitto_passwd.py @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/generate_stack.yml b/generate_stack.yml index 39c4d2e..3b6cc36 100644 --- a/generate_stack.yml +++ b/generate_stack.yml @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/templates/config/grafana/provisioning/datasources/datasources.yml.j2 b/templates/config/grafana/provisioning/datasources/datasources.yml.j2 index 0f260df..84fc54f 100644 --- a/templates/config/grafana/provisioning/datasources/datasources.yml.j2 +++ b/templates/config/grafana/provisioning/datasources/datasources.yml.j2 @@ -1,4 +1,7 @@ -{#- Komponist - Generate Your Favourite Compose Stack With the Least Effort +{#- +# SPDX-License-Identifier: AGPL-3.0-only +# +# Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai # diff --git a/templates/config/komponist.env.j2 b/templates/config/komponist.env.j2 index 068e131..b339975 100644 --- a/templates/config/komponist.env.j2 +++ b/templates/config/komponist.env.j2 @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/templates/config/mosquitto/acl.j2 b/templates/config/mosquitto/acl.j2 index f5ed197..61f03f8 100644 --- a/templates/config/mosquitto/acl.j2 +++ b/templates/config/mosquitto/acl.j2 @@ -1,4 +1,7 @@ -{#- Komponist - Generate Your Favourite Compose Stack With the Least Effort +{#- +# SPDX-License-Identifier: AGPL-3.0-only +# +# Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai # diff --git a/templates/config/mosquitto/mosquitto.conf.j2 b/templates/config/mosquitto/mosquitto.conf.j2 index 645925e..1fa474c 100644 --- a/templates/config/mosquitto/mosquitto.conf.j2 +++ b/templates/config/mosquitto/mosquitto.conf.j2 @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/templates/config/mosquitto/users.j2 b/templates/config/mosquitto/users.j2 index 6ced775..a845abd 100644 --- a/templates/config/mosquitto/users.j2 +++ b/templates/config/mosquitto/users.j2 @@ -1,4 +1,7 @@ -{#- Komponist - Generate Your Favourite Compose Stack With the Least Effort +{#- +# SPDX-License-Identifier: AGPL-3.0-only +# +# Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai # diff --git a/templates/config/nodered/settings.js.j2 b/templates/config/nodered/settings.js.j2 index 7baa892..3adc8c8 100644 --- a/templates/config/nodered/settings.js.j2 +++ b/templates/config/nodered/settings.js.j2 @@ -1,4 +1,5 @@ -/* +/* SPDX-License-Identifier: AGPL-3.0-only + * * Komponist - Generate Your Favourite Compose Stack With the Least Effort * * Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/templates/config/telegraf/inputs/mosquitto.conf.j2 b/templates/config/telegraf/inputs/mosquitto.conf.j2 index fb9e742..4565fe8 100644 --- a/templates/config/telegraf/inputs/mosquitto.conf.j2 +++ b/templates/config/telegraf/inputs/mosquitto.conf.j2 @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/templates/config/telegraf/outputs/influxdbv1.conf.j2 b/templates/config/telegraf/outputs/influxdbv1.conf.j2 index bf4a84a..3db4a3e 100644 --- a/templates/config/telegraf/outputs/influxdbv1.conf.j2 +++ b/templates/config/telegraf/outputs/influxdbv1.conf.j2 @@ -1,4 +1,7 @@ -{# Komponist - Generate Your Favourite Compose Stack With the Least Effort +{#- +# SPDX-License-Identifier: AGPL-3.0-only +# +# Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai # diff --git a/templates/config/telegraf/outputs/influxdbv2.conf.j2 b/templates/config/telegraf/outputs/influxdbv2.conf.j2 index 4ff5c7f..3c30c7d 100644 --- a/templates/config/telegraf/outputs/influxdbv2.conf.j2 +++ b/templates/config/telegraf/outputs/influxdbv2.conf.j2 @@ -1,4 +1,7 @@ -{# Komponist - Generate Your Favourite Compose Stack With the Least Effort +{#- +# SPDX-License-Identifier: AGPL-3.0-only +# +# Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai # diff --git a/templates/config/telegraf/outputs/questdb.conf.j2 b/templates/config/telegraf/outputs/questdb.conf.j2 index d08b9d1..2b76c9a 100644 --- a/templates/config/telegraf/outputs/questdb.conf.j2 +++ b/templates/config/telegraf/outputs/questdb.conf.j2 @@ -1,4 +1,7 @@ -{# Komponist - Generate Your Favourite Compose Stack With the Least Effort +{#- +# SPDX-License-Identifier: AGPL-3.0-only +# +# Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai # diff --git a/templates/config/telegraf/telegraf.conf.j2 b/templates/config/telegraf/telegraf.conf.j2 index aa9319a..a0d0b9d 100644 --- a/templates/config/telegraf/telegraf.conf.j2 +++ b/templates/config/telegraf/telegraf.conf.j2 @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/templates/config/traefik/configurations/dynamic.yml.j2 b/templates/config/traefik/configurations/dynamic.yml.j2 index 9c09c68..7a0be39 100644 --- a/templates/config/traefik/configurations/dynamic.yml.j2 +++ b/templates/config/traefik/configurations/dynamic.yml.j2 @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/templates/config/traefik/traefik.yml.j2 b/templates/config/traefik/traefik.yml.j2 index e2ae423..8ed0d53 100644 --- a/templates/config/traefik/traefik.yml.j2 +++ b/templates/config/traefik/traefik.yml.j2 @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/templates/license_header.txt.j2 b/templates/license_header.txt.j2 index 5a98f87..c8bf84d 100644 --- a/templates/license_header.txt.j2 +++ b/templates/license_header.txt.j2 @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/templates/services/docker-compose.grafana.yml.j2 b/templates/services/docker-compose.grafana.yml.j2 index 6e01b74..0558566 100644 --- a/templates/services/docker-compose.grafana.yml.j2 +++ b/templates/services/docker-compose.grafana.yml.j2 @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/templates/services/docker-compose.influxdbv1.yml.j2 b/templates/services/docker-compose.influxdbv1.yml.j2 index c87b358..22a9279 100644 --- a/templates/services/docker-compose.influxdbv1.yml.j2 +++ b/templates/services/docker-compose.influxdbv1.yml.j2 @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/templates/services/docker-compose.influxdbv2.yml.j2 b/templates/services/docker-compose.influxdbv2.yml.j2 index cdb6fc4..f33ae25 100644 --- a/templates/services/docker-compose.influxdbv2.yml.j2 +++ b/templates/services/docker-compose.influxdbv2.yml.j2 @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/templates/services/docker-compose.mosquitto.yml.j2 b/templates/services/docker-compose.mosquitto.yml.j2 index f945621..020bfab 100644 --- a/templates/services/docker-compose.mosquitto.yml.j2 +++ b/templates/services/docker-compose.mosquitto.yml.j2 @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/templates/services/docker-compose.nodered.yml.j2 b/templates/services/docker-compose.nodered.yml.j2 index e217555..f826c47 100644 --- a/templates/services/docker-compose.nodered.yml.j2 +++ b/templates/services/docker-compose.nodered.yml.j2 @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/templates/services/docker-compose.questdb.yml.j2 b/templates/services/docker-compose.questdb.yml.j2 index 13fadb5..6341f1b 100644 --- a/templates/services/docker-compose.questdb.yml.j2 +++ b/templates/services/docker-compose.questdb.yml.j2 @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/templates/services/docker-compose.telegraf.yml.j2 b/templates/services/docker-compose.telegraf.yml.j2 index d446f19..cd69c25 100644 --- a/templates/services/docker-compose.telegraf.yml.j2 +++ b/templates/services/docker-compose.telegraf.yml.j2 @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/templates/services/docker-compose.timescaledb.yml.j2 b/templates/services/docker-compose.timescaledb.yml.j2 index 7d215e5..06b7113 100644 --- a/templates/services/docker-compose.timescaledb.yml.j2 +++ b/templates/services/docker-compose.timescaledb.yml.j2 @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/templates/services/docker-compose.traefik.yml.j2 b/templates/services/docker-compose.traefik.yml.j2 index 99a10d5..0161e98 100644 --- a/templates/services/docker-compose.traefik.yml.j2 +++ b/templates/services/docker-compose.traefik.yml.j2 @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/tests/services/test_compose_schema.yml b/tests/services/test_compose_schema.yml index 6fd43bd..40b275f 100644 --- a/tests/services/test_compose_schema.yml +++ b/tests/services/test_compose_schema.yml @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +--- - name: Perform Lookup for {{ item }} File ansible.builtin.set_fact: compose_service_file: "{{ lookup('ansible.builtin.file', '{{ item }}') | from_yaml }}" diff --git a/tests/services/test_config_grafana.yml b/tests/services/test_config_grafana.yml index 87d0333..392fe5f 100644 --- a/tests/services/test_config_grafana.yml +++ b/tests/services/test_config_grafana.yml @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only --- - name: Get stats for Grafana Files in dedicated directory under deploy_dir ansible.builtin.stat: diff --git a/tests/services/test_config_influxdb.yml b/tests/services/test_config_influxdb.yml index 97be2af..36ae879 100644 --- a/tests/services/test_config_influxdb.yml +++ b/tests/services/test_config_influxdb.yml @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only --- - name: Get stats for InfluxDBv1/v2 environment file in dedicated directory under deploy_dir ansible.builtin.stat: diff --git a/tests/services/test_config_mosquitto.yml b/tests/services/test_config_mosquitto.yml index 442445a..5d0ad54 100644 --- a/tests/services/test_config_mosquitto.yml +++ b/tests/services/test_config_mosquitto.yml @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only --- - name: Get stats for Mosquitto related configuration files ansible.builtin.stat: diff --git a/tests/services/test_config_nodered.yml b/tests/services/test_config_nodered.yml index 1191ebf..a9656e7 100644 --- a/tests/services/test_config_nodered.yml +++ b/tests/services/test_config_nodered.yml @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only --- - name: Get stats for Node-RED settings file ansible.builtin.stat: diff --git a/tests/services/test_config_telegraf.yml b/tests/services/test_config_telegraf.yml index 1b6b147..b77e043 100644 --- a/tests/services/test_config_telegraf.yml +++ b/tests/services/test_config_telegraf.yml @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only --- - name: Get stats for Telegraf configuration file ansible.builtin.stat: diff --git a/tests/services/test_config_traefik.yml b/tests/services/test_config_traefik.yml index 6a90ef7..573381a 100644 --- a/tests/services/test_config_traefik.yml +++ b/tests/services/test_config_traefik.yml @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only --- - name: Get stats for Traefik related configuration files ansible.builtin.stat: diff --git a/tests/test_file_contents.yml b/tests/test_file_contents.yml index 35518ca..9f26bcb 100644 --- a/tests/test_file_contents.yml +++ b/tests/test_file_contents.yml @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only --- - name: Test Content for Mosquitto / Node-RED Generated Files hosts: localhost diff --git a/tests/test_generated_directories.yml b/tests/test_generated_directories.yml index a76b5e4..b517ff9 100644 --- a/tests/test_generated_directories.yml +++ b/tests/test_generated_directories.yml @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only --- - name: Directory Structure Creation Tests vars: diff --git a/tests/test_generated_files.yml b/tests/test_generated_files.yml index e85f50c..f4641bd 100644 --- a/tests/test_generated_files.yml +++ b/tests/test_generated_files.yml @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only --- - name: File Generation Tests vars_files: diff --git a/tests/test_schemas.yml b/tests/test_schemas.yml index 2cd4664..8d07966 100644 --- a/tests/test_schemas.yml +++ b/tests/test_schemas.yml @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: AGPL-3.0-only --- - name: JSON / YAML Schema Validation for Generated Files hosts: localhost diff --git a/tui-configurator/Dockerfile b/tui-configurator/Dockerfile index 4fa2e21..9cf917a 100644 --- a/tui-configurator/Dockerfile +++ b/tui-configurator/Dockerfile @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/tui-configurator/tui-script.sh b/tui-configurator/tui-script.sh index 62a6029..174f18b 100644 --- a/tui-configurator/tui-script.sh +++ b/tui-configurator/tui-script.sh @@ -1,4 +1,6 @@ #!/bin/bash +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/vars/config.yml b/vars/config.yml index fc78dc5..c611f09 100644 --- a/vars/config.yml +++ b/vars/config.yml @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai diff --git a/vars/creds.yml b/vars/creds.yml index 381f48d..d4e08f4 100644 --- a/vars/creds.yml +++ b/vars/creds.yml @@ -1,3 +1,5 @@ +# SPDX-License-Identifier: AGPL-3.0-only +# # Komponist - Generate Your Favourite Compose Stack With the Least Effort # # Copyright (C) 2023 Shantanoo "Shan" Desai