diff --git a/roles/web-app-discourse/meta/addons/discourse-activity-pub.yml b/roles/web-app-discourse/meta/addons/discourse-activity-pub.yml index c7dca961bf..05bcb24e16 100644 --- a/roles/web-app-discourse/meta/addons/discourse-activity-pub.yml +++ b/roles/web-app-discourse/meta/addons/discourse-activity-pub.yml @@ -1,6 +1,13 @@ --- -# nocheck: addons-variant-pinning: compiled into the image from services.discourse.plugins, so an addon-level disable saves no deploy time and only silences the spec +# nocheck: addons-variant-pinning: compiled into the image from the addon's ref, so an addon-level disable saves no deploy time and only silences the spec enabled: true required: false mechanism: plugin source: upstream +update: + monitored: true + catalog: discourse-meta + upstream_id: discourse-activity-pub +config: + repository: https://github.com/discourse/discourse-activity-pub.git + ref: main diff --git a/roles/web-app-discourse/meta/addons/discourse-akismet.yml b/roles/web-app-discourse/meta/addons/discourse-akismet.yml index c7dca961bf..770e3fa21d 100644 --- a/roles/web-app-discourse/meta/addons/discourse-akismet.yml +++ b/roles/web-app-discourse/meta/addons/discourse-akismet.yml @@ -1,6 +1,13 @@ --- -# nocheck: addons-variant-pinning: compiled into the image from services.discourse.plugins, so an addon-level disable saves no deploy time and only silences the spec +# nocheck: addons-variant-pinning: compiled into the image from the addon's ref, so an addon-level disable saves no deploy time and only silences the spec enabled: true required: false mechanism: plugin source: upstream +update: + monitored: true + catalog: discourse-meta + upstream_id: discourse-akismet +config: + repository: https://github.com/discourse/discourse-akismet.git + ref: main diff --git a/roles/web-app-discourse/meta/addons/docker_manager.yml b/roles/web-app-discourse/meta/addons/docker_manager.yml index c7dca961bf..8af7b2512d 100644 --- a/roles/web-app-discourse/meta/addons/docker_manager.yml +++ b/roles/web-app-discourse/meta/addons/docker_manager.yml @@ -1,6 +1,13 @@ --- -# nocheck: addons-variant-pinning: compiled into the image from services.discourse.plugins, so an addon-level disable saves no deploy time and only silences the spec +# nocheck: addons-variant-pinning: compiled into the image from the addon's ref, so an addon-level disable saves no deploy time and only silences the spec enabled: true required: false mechanism: plugin source: upstream +update: + monitored: true + catalog: discourse-meta + upstream_id: docker_manager +config: + repository: https://github.com/discourse/docker_manager.git + ref: main diff --git a/roles/web-app-discourse/meta/services.yml b/roles/web-app-discourse/meta/services.yml index 1ce47ba1e0..162066122a 100644 --- a/roles/web-app-discourse/meta/services.yml +++ b/roles/web-app-discourse/meta/services.yml @@ -72,17 +72,6 @@ discourse: application: repository: https://github.com/discourse/discourse.git ref: v2026.8.0 - plugins: - docker_manager: - enabled: true - discourse-activity-pub: - enabled: true - discourse-akismet: - enabled: true - discourse-ldap-auth: - enabled: "{{ lookup('config', 'web-app-discourse', 'services.ldap.enabled') | bool }}" - repository: https://github.com/jonmbake/discourse-ldap-auth.git - ref: master ports: local: http: 8020 diff --git a/roles/web-app-discourse/templates/config.yml.j2 b/roles/web-app-discourse/templates/config.yml.j2 index 91036b29c8..1312e2281d 100644 --- a/roles/web-app-discourse/templates/config.yml.j2 +++ b/roles/web-app-discourse/templates/config.yml.j2 @@ -138,14 +138,10 @@ hooks: cmd: {% for plugin_name, plugin_config in DISCOURSE_PLUGINS.items() %} {% if plugin_config.enabled and plugin_config.source != 'bundled' %} - - git clone --depth=1 https://github.com/discourse/{{ plugin_name }}.git + - git clone --depth=1 --branch {{ plugin_config.config.ref }} {{ plugin_config.config.repository }} {% endif %} {% endfor %} -{% if DISCOURSE_LDAP_ENABLED | bool %} - - git clone --depth=1 --branch {{ DISCOURSE_LDAP_AUTH_PLUGIN_REF }} {{ DISCOURSE_LDAP_AUTH_PLUGIN_REPOSITORY }} -{% endif %} - ## Any custom commands to run after building run: - exec: echo "Beginning of custom commands"