foreman_rh_cloud 11.0.0 → 11.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fcd4ee874e42e9236bbc4fae540911c372af73f3a336507c9421693b8fb128da
4
- data.tar.gz: da0c96b9b8fb3d737d0f8902da7176adbd2f1a8810260ddeba547c3a22004ec7
3
+ metadata.gz: 2ad60942e47521d64a7a896a330d8d03471fc7d6fc6f54e29937fa619614846e
4
+ data.tar.gz: 66e1f83283d36cf8e9d48d7719411c99cf027643453924fd7792580030c7e7ae
5
5
  SHA512:
6
- metadata.gz: 12343eaac2bfb4c666c156a84a868f02a3b684f4a4bf044f7a838d9134d140ec6fb698b356c35efb8b11618fa0c36b3a61c0cc411caf48ff91b8fc9957528074
7
- data.tar.gz: 41f578f21a65aee43ade158a99991c1b3b7b37ee2000e0e1c8c7d55cba60ac94d31e734d205e589bfc1bf1850fb98142b91ea975b3d9580361a11803eac8f17b
6
+ metadata.gz: 25b4d4e6a5503ae59fafd7c4a9d2ab61391a6fc7df458415f3b28eb19a9da411d086693aa1f130a97dd814ee4c3e1292628e82eff12f333b146eb2ecec930741
7
+ data.tar.gz: a7327156fe02cd95ce112d1a3a8d4260f99cdca7af1e101f2b77a44d422d24be4424f873ac0da8e342f9b1d1e42b66d004404819addd8940da1d242386b4ce93
@@ -151,46 +151,46 @@ module ForemanRhCloud
151
151
  end
152
152
  end
153
153
 
154
- rake_tasks do
155
- Rake::Task['db:seed'].enhance do
156
- ForemanRhCloud::Engine.load_seed
157
- end
158
- end
159
-
160
- initializer 'foreman_rh_cloud.register_rex_features', :before => :finisher_hook do |_app|
154
+ initializer 'foreman_rh_cloud.register_scheduled_tasks', :before => :finisher_hook do |_app|
161
155
  # skip database manipulations while tables do not exist, like in migrations
162
- if ActiveRecord::Base.connection.data_source_exists?(ForemanTasks::Task.table_name)
163
- RemoteExecutionFeature.register(
164
- :rh_cloud_remediate_hosts,
165
- N_('Apply Insights recommendations'),
166
- description: N_('Run remediation playbook generated by Insights'),
167
- host_action_button: false
168
- )
169
- RemoteExecutionFeature.register(
170
- :rh_cloud_connector_run_playbook,
171
- N_('Run RH Cloud playbook'),
172
- description: N_('Run playbook genrated by Red Hat remediations app'),
173
- host_action_button: false,
174
- provided_inputs: ['playbook_url', 'report_url', 'correlation_id', 'report_interval']
175
- )
176
- RemoteExecutionFeature.register(
177
- :ansible_configure_cloud_connector,
178
- N_('Configure Cloud Connector on given hosts'),
179
- :description => N_('Configure Cloud Connector on given hosts'),
180
- :proxy_selector_override => ::RemoteExecutionProxySelector::INTERNAL_PROXY
181
- )
182
-
183
- # skip object creation when admin user is not present, for example in test DB
184
- if User.unscoped.find_by_login(User::ANONYMOUS_ADMIN).present?
185
- ::ForemanTasks.dynflow.config.on_init(false) do |world|
186
- ForemanRhCloud::Engine.register_scheduled_task(ForemanInventoryUpload::Async::GenerateAllReportsJob, '0 0 * * *')
187
- ForemanRhCloud::Engine.register_scheduled_task(InventorySync::Async::InventoryScheduledSync, '0 0 * * *')
188
- ForemanRhCloud::Engine.register_scheduled_task(InsightsCloud::Async::InsightsScheduledSync, '0 0 * * *')
189
- ForemanRhCloud::Engine.register_scheduled_task(InsightsCloud::Async::InsightsClientStatusAging, '0 0 * * *')
190
- end
156
+ # skip object creation when admin user is not present, for example in test DB
157
+ if ActiveRecord::Base.connection.data_source_exists?(ForemanTasks::Task.table_name) && User.unscoped.find_by_login(User::ANONYMOUS_ADMIN).present?
158
+ ::ForemanTasks.dynflow.config.on_init(false) do |world|
159
+ ForemanRhCloud::Engine.register_scheduled_task(ForemanInventoryUpload::Async::GenerateAllReportsJob, '0 0 * * *')
160
+ ForemanRhCloud::Engine.register_scheduled_task(InventorySync::Async::InventoryScheduledSync, '0 0 * * *')
161
+ ForemanRhCloud::Engine.register_scheduled_task(InsightsCloud::Async::InsightsScheduledSync, '0 0 * * *')
162
+ ForemanRhCloud::Engine.register_scheduled_task(InsightsCloud::Async::InsightsClientStatusAging, '0 0 * * *')
191
163
  end
192
164
  end
193
165
  rescue ActiveRecord::NoDatabaseError
194
166
  end
167
+
168
+ config.to_prepare do
169
+ RemoteExecutionFeature.register(
170
+ :rh_cloud_remediate_hosts,
171
+ N_('Apply Insights recommendations'),
172
+ description: N_('Run remediation playbook generated by Insights'),
173
+ host_action_button: false
174
+ )
175
+ RemoteExecutionFeature.register(
176
+ :rh_cloud_connector_run_playbook,
177
+ N_('Run RH Cloud playbook'),
178
+ description: N_('Run playbook genrated by Red Hat remediations app'),
179
+ host_action_button: false,
180
+ provided_inputs: ['playbook_url', 'report_url', 'correlation_id', 'report_interval']
181
+ )
182
+ RemoteExecutionFeature.register(
183
+ :ansible_configure_cloud_connector,
184
+ N_('Configure Cloud Connector on given hosts'),
185
+ :description => N_('Configure Cloud Connector on given hosts'),
186
+ :proxy_selector_override => ::RemoteExecutionProxySelector::INTERNAL_PROXY
187
+ )
188
+ end
189
+
190
+ rake_tasks do
191
+ Rake::Task['db:seed'].enhance do
192
+ ForemanRhCloud::Engine.load_seed
193
+ end
194
+ end
195
195
  end
196
196
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanRhCloud
2
- VERSION = '11.0.0'.freeze
2
+ VERSION = '11.0.1'.freeze
3
3
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "foreman_rh_cloud",
3
- "version": "11.0.0",
3
+ "version": "11.0.1",
4
4
  "description": "Inventory Upload =============",
5
5
  "main": "index.js",
6
6
  "scripts": {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_rh_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.0.0
4
+ version: 11.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Foreman Red Hat Cloud team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-20 00:00:00.000000000 Z
11
+ date: 2024-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: foreman_ansible
@@ -639,7 +639,7 @@ homepage: https://github.com/theforeman/foreman_rh_cloud
639
639
  licenses:
640
640
  - GPL-3.0
641
641
  metadata: {}
642
- post_install_message:
642
+ post_install_message:
643
643
  rdoc_options: []
644
644
  require_paths:
645
645
  - lib
@@ -657,8 +657,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
657
657
  - !ruby/object:Gem::Version
658
658
  version: '0'
659
659
  requirements: []
660
- rubygems_version: 3.2.33
661
- signing_key:
660
+ rubygems_version: 3.3.27
661
+ signing_key:
662
662
  specification_version: 4
663
663
  summary: Summary of ForemanRhCloud.
664
664
  test_files: