From f4cb0ab00fa67dc839b9494e3d6fa94122f9a564 Mon Sep 17 00:00:00 2001 From: Nadja Heitmann Date: Thu, 21 Nov 2024 12:23:42 +0100 Subject: [PATCH] Add resource_quota plugin --- config/foreman-answers.yaml | 1 + .../20241121121821_add_resource_quota_plugin.rb | 1 + config/katello-answers.yaml | 1 + .../20241121122001_add_resource_quota_plugin.rb | 1 + .../katello-answers-after.yaml | 1 + .../katello-answers-before.yaml | 1 + .../pulpcore-migration-rpm-only/katello-answers-after.yaml | 1 + .../pulpcore-migration-rpm-only/katello-answers-before.yaml | 1 + spec/fixtures/pulpcore-migration/katello-answers-after.yaml | 1 + 9 files changed, 9 insertions(+) create mode 100644 config/foreman.migrations/20241121121821_add_resource_quota_plugin.rb create mode 100644 config/katello.migrations/20241121122001_add_resource_quota_plugin.rb diff --git a/config/foreman-answers.yaml b/config/foreman-answers.yaml index 26088a576..4fdad0e2b 100644 --- a/config/foreman-answers.yaml +++ b/config/foreman-answers.yaml @@ -54,6 +54,7 @@ foreman::plugin::puppetdb: false foreman::plugin::remote_execution: false foreman::plugin::remote_execution::cockpit: false foreman::plugin::rescue: false +foreman::plugin::resource_quota: false foreman::plugin::salt: false foreman::plugin::snapshot_management: false foreman::plugin::statistics: false diff --git a/config/foreman.migrations/20241121121821_add_resource_quota_plugin.rb b/config/foreman.migrations/20241121121821_add_resource_quota_plugin.rb new file mode 100644 index 000000000..593c0b72f --- /dev/null +++ b/config/foreman.migrations/20241121121821_add_resource_quota_plugin.rb @@ -0,0 +1 @@ +answers['foreman::plugin::resource_quota'] ||= false diff --git a/config/katello-answers.yaml b/config/katello-answers.yaml index e210ef90c..e486728aa 100644 --- a/config/katello-answers.yaml +++ b/config/katello-answers.yaml @@ -67,6 +67,7 @@ foreman::plugin::puppetdb: false foreman::plugin::remote_execution: true foreman::plugin::remote_execution::cockpit: false foreman::plugin::rescue: false +foreman::plugin::resource_quota: false foreman::plugin::rh_cloud: false foreman::plugin::salt: false foreman::plugin::scc_manager: false diff --git a/config/katello.migrations/20241121122001_add_resource_quota_plugin.rb b/config/katello.migrations/20241121122001_add_resource_quota_plugin.rb new file mode 100644 index 000000000..593c0b72f --- /dev/null +++ b/config/katello.migrations/20241121122001_add_resource_quota_plugin.rb @@ -0,0 +1 @@ +answers['foreman::plugin::resource_quota'] ||= false diff --git a/spec/fixtures/pulpcore-migration-dont-use-content-plugins-on-upgrades/katello-answers-after.yaml b/spec/fixtures/pulpcore-migration-dont-use-content-plugins-on-upgrades/katello-answers-after.yaml index ce89a573c..f899c4de1 100644 --- a/spec/fixtures/pulpcore-migration-dont-use-content-plugins-on-upgrades/katello-answers-after.yaml +++ b/spec/fixtures/pulpcore-migration-dont-use-content-plugins-on-upgrades/katello-answers-after.yaml @@ -33,6 +33,7 @@ foreman::plugin::puppet: false foreman::plugin::remote_execution: true foreman::plugin::remote_execution::cockpit: false foreman::plugin::rescue: false +foreman::plugin::resource_quota: false foreman::plugin::rh_cloud: false foreman::plugin::salt: false foreman::plugin::scc_manager: false diff --git a/spec/fixtures/pulpcore-migration-dont-use-content-plugins-on-upgrades/katello-answers-before.yaml b/spec/fixtures/pulpcore-migration-dont-use-content-plugins-on-upgrades/katello-answers-before.yaml index 09fce4a81..dd8afcd66 100644 --- a/spec/fixtures/pulpcore-migration-dont-use-content-plugins-on-upgrades/katello-answers-before.yaml +++ b/spec/fixtures/pulpcore-migration-dont-use-content-plugins-on-upgrades/katello-answers-before.yaml @@ -18,6 +18,7 @@ foreman::plugin::memcache: false foreman::plugin::monitoring: false foreman::plugin::remote_execution::cockpit: false foreman::plugin::rh_cloud: false +foreman::plugin::resource_quota: false foreman::plugin::salt: false foreman::plugin::snapshot_management: false foreman::plugin::virt_who_configure: false diff --git a/spec/fixtures/pulpcore-migration-rpm-only/katello-answers-after.yaml b/spec/fixtures/pulpcore-migration-rpm-only/katello-answers-after.yaml index d3d568d01..fac53dd9e 100644 --- a/spec/fixtures/pulpcore-migration-rpm-only/katello-answers-after.yaml +++ b/spec/fixtures/pulpcore-migration-rpm-only/katello-answers-after.yaml @@ -33,6 +33,7 @@ foreman::plugin::puppet: false foreman::plugin::remote_execution: true foreman::plugin::remote_execution::cockpit: false foreman::plugin::rescue: false +foreman::plugin::resource_quota: false foreman::plugin::rh_cloud: false foreman::plugin::salt: false foreman::plugin::scc_manager: false diff --git a/spec/fixtures/pulpcore-migration-rpm-only/katello-answers-before.yaml b/spec/fixtures/pulpcore-migration-rpm-only/katello-answers-before.yaml index a57716f19..9bb26863f 100644 --- a/spec/fixtures/pulpcore-migration-rpm-only/katello-answers-before.yaml +++ b/spec/fixtures/pulpcore-migration-rpm-only/katello-answers-before.yaml @@ -17,6 +17,7 @@ foreman::plugin::leapp: false foreman::plugin::memcache: false foreman::plugin::monitoring: false foreman::plugin::remote_execution::cockpit: false +foreman::plugin::resource_quota: false foreman::plugin::rh_cloud: false foreman::plugin::salt: false foreman::plugin::snapshot_management: false diff --git a/spec/fixtures/pulpcore-migration/katello-answers-after.yaml b/spec/fixtures/pulpcore-migration/katello-answers-after.yaml index 415ceb1fa..13babbc2a 100644 --- a/spec/fixtures/pulpcore-migration/katello-answers-after.yaml +++ b/spec/fixtures/pulpcore-migration/katello-answers-after.yaml @@ -33,6 +33,7 @@ foreman::plugin::puppet: false foreman::plugin::remote_execution: true foreman::plugin::remote_execution::cockpit: false foreman::plugin::rescue: false +foreman::plugin::resource_quota: false foreman::plugin::rh_cloud: false foreman::plugin::salt: false foreman::plugin::scc_manager: false