foreman_rh_cloud 4.0.27 → 5.0.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/concerns/inventory_upload/report_actions.rb +1 -1
  3. data/app/controllers/foreman_inventory_upload/reports_controller.rb +1 -1
  4. data/app/models/setting/rh_cloud.rb +0 -1
  5. data/app/models/task_output_line.rb +2 -0
  6. data/app/models/task_output_status.rb +2 -0
  7. data/config/Gemfile.lock.gh_test +96 -77
  8. data/config/database.yml.example +2 -2
  9. data/config/package-lock.json.plugin +10551 -7500
  10. data/db/migrate/20211027000001_create_task_output.foreman_rh_cloud.rb +18 -0
  11. data/lib/foreman_inventory_upload/async/generate_all_reports_job.rb +11 -7
  12. data/lib/foreman_inventory_upload/async/generate_report_job.rb +24 -12
  13. data/lib/foreman_inventory_upload/async/progress_output.rb +5 -28
  14. data/lib/foreman_inventory_upload/async/queue_for_upload_job.rb +20 -5
  15. data/lib/foreman_inventory_upload/async/shell_process.rb +17 -4
  16. data/lib/foreman_inventory_upload/async/upload_report_job.rb +22 -13
  17. data/lib/foreman_rh_cloud/engine.rb +2 -10
  18. data/lib/foreman_rh_cloud/version.rb +1 -1
  19. data/lib/insights_cloud/async/insights_scheduled_sync.rb +11 -7
  20. data/lib/tasks/rh_cloud_inventory.rake +2 -2
  21. data/package.json +7 -12
  22. data/test/factories/inventory_upload_factories.rb +14 -0
  23. data/test/jobs/upload_report_job_test.rb +5 -3
  24. data/test/unit/shell_process_job_test.rb +3 -1
  25. data/test/unit/slice_generator_test.rb +24 -4
  26. data/webpack/ForemanInventoryUpload/Components/AccountList/accountList.scss +8 -0
  27. data/webpack/ForemanInventoryUpload/Components/PageHeader/PageHeader.scss +17 -4
  28. data/webpack/ForemanInventoryUpload/Components/PageHeader/PageTitle.js +29 -17
  29. data/webpack/ForemanInventoryUpload/Components/PageHeader/__tests__/__snapshots__/PageTitle.test.js.snap +58 -47
  30. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/PageDescription.js +12 -10
  31. data/webpack/ForemanInventoryUpload/Components/PageHeader/components/PageDescription/__tests__/__snapshots__/PageDescription.test.js.snap +10 -10
  32. data/webpack/ForemanInventoryUpload/SubscriptionsPageExtension/InventoryAutoUpload/__tests__/__snapshots__/InventoryAutoUpload.test.js.snap +1 -1
  33. data/webpack/InsightsCloudSync/Components/InsightsTable/__tests__/__snapshots__/InsightsTable.test.js.snap +4 -1
  34. data/webpack/InsightsCloudSync/Components/__tests__/__snapshots__/NoTokenEmptyState.test.js.snap +24 -13
  35. data/webpack/InsightsCloudSync/__snapshots__/InsightsCloudSync.test.js.snap +1 -1
  36. data/webpack/__mocks__/foremanReact/components/Head.js +11 -0
  37. data/webpack/common/Switcher/__tests__/__snapshots__/SwitcherPF4.test.js.snap +1 -0
  38. metadata +6 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f58fc1e7e0566050620598b261bb98ae808cacdb65ebff7efd59b483eced6996
4
- data.tar.gz: c62e13422b518e22686687e429a5d73185469391d29013cd952d6b631cbf1db8
3
+ metadata.gz: 012fcceed18a6413326df32052bee870b299682bc114d5c3e59954bda33b2475
4
+ data.tar.gz: bb72b384fc54d6c19951c453c69b0ecaae5d26bf844fc85b4d4b56f04e1e76bd
5
5
  SHA512:
6
- metadata.gz: 18ed7b82fa19fb2e5b22466648a31e9cfeb8a6dc8c20e07a9d7db028a61a2304ed663b1f9a3b62ce2ab59ca932fe9e35c6efdf0c41945b57a75d60455a541582
7
- data.tar.gz: 12c271cf247328eef9d310f0b85d64a1080ad0321f9b7fd1b6caa44a8a299eb1d4b13a6141b5740b053ecf4622b8269980223bd7ba95cdfa4b6f19765a8782ff
6
+ metadata.gz: 70904b446fce3a2ca3a794c418aaa1591f4276bd35d1636a629e7361b75c62163fc76ad45caa024752a763ef6a9e6344e979dff8f9e9a017c19ac878f667a649
7
+ data.tar.gz: 4fd0e25610e4848565178f19e5a3ffb1da2d9b1505cd604f18a9276bba931f6fea3fbbddcd6c1e375a9d655a4c0b506c3937d89e9e7899b4aed37ae05c72b542
@@ -11,7 +11,7 @@ module InventoryUpload
11
11
  end
12
12
 
13
13
  def start_report_generation(organization_id)
14
- ForemanInventoryUpload::Async::GenerateReportJob.perform_later(ForemanInventoryUpload.generated_reports_folder, organization_id)
14
+ ForemanTasks.async_task(ForemanInventoryUpload::Async::GenerateReportJob, ForemanInventoryUpload.generated_reports_folder, organization_id)
15
15
  end
16
16
 
17
17
  def report_file(organization_id)
@@ -7,7 +7,7 @@ module ForemanInventoryUpload
7
7
  def last
8
8
  label = ForemanInventoryUpload::Async::GenerateReportJob.output_label(params[:organization_id])
9
9
  output = ForemanInventoryUpload::Async::ProgressOutput.get(label)&.full_output
10
- task_label = ForemanInventoryUpload::Async::GenerateAllReportsJob.singleton_job_name
10
+ task_label = ForemanInventoryUpload::Async::GenerateAllReportsJob.name
11
11
  scheduled = ForemanTasks::Task.where(
12
12
  :label => task_label,
13
13
  :state => 'scheduled'
@@ -12,7 +12,6 @@ class Setting::RhCloud < Setting
12
12
  end
13
13
 
14
14
  def self.default_settings
15
- return unless ActiveRecord::Base.connection.table_exists?('settings')
16
15
  [
17
16
  set('allow_auto_inventory_upload', N_('Enable automatic upload of your host inventory to the Red Hat cloud'), true, N_('Automatic inventory upload')),
18
17
  set('allow_auto_insights_sync', N_('Enable automatic synchronization of Insights recommendations from the Red Hat cloud'), false, N_('Synchronize recommendations Automatically')),
@@ -0,0 +1,2 @@
1
+ class TaskOutputLine < ApplicationRecord
2
+ end
@@ -0,0 +1,2 @@
1
+ class TaskOutputStatus < ApplicationRecord
2
+ end
@@ -1,35 +1,49 @@
1
+ PATH
2
+ remote: ../foreman-tasks
3
+ specs:
4
+ foreman-tasks (4.1.5)
5
+ dynflow (>= 1.2.3)
6
+ foreman-tasks-core
7
+ get_process_mem
8
+ parse-cron (~> 0.1.4)
9
+ sinatra
10
+ foreman-tasks-core (0.3.6)
11
+ dynflow (>= 1.2.0)
12
+
1
13
  PATH
2
14
  remote: ../foreman_rh_cloud
3
15
  specs:
4
- foreman_rh_cloud (3.0.15)
16
+ foreman_rh_cloud (4.0.27)
17
+ foreman-tasks
5
18
  foreman_ansible
6
19
  katello
7
20
 
8
21
  PATH
9
22
  remote: ../katello
10
23
  specs:
11
- katello (3.18.0.rc1)
24
+ katello (4.1.4)
12
25
  activerecord-import
13
26
  anemone
14
27
  angular-rails-templates (~> 1.1.0)
15
28
  apipie-rails (>= 0.5.14)
16
29
  deface (>= 1.0.2, < 2.0.0)
17
- dynflow (>= 1.2.0)
18
- foreman-tasks (>= 0.14.1)
30
+ dynflow (< 1.6.0)
31
+ foreman-tasks (~> 4.0)
32
+ foreman-tasks-core (< 0.4)
19
33
  foreman_remote_execution (>= 3.0)
20
34
  fx (< 1.0)
21
35
  gettext_i18n_rails
22
36
  json
23
37
  oauth
24
38
  pg
25
- pulp_2to3_migration_client (>= 0.3.0, < 0.6.0, != 0.4.0)
26
- pulp_ansible_client (>= 0.2, < 0.5)
39
+ pulp_ansible_client (>= 0.8, < 0.9)
27
40
  pulp_certguard_client (< 2.0)
28
- pulp_container_client (>= 2.0.0, < 2.2.0)
29
- pulp_deb_client (>= 2.6.0, < 2.8.0)
30
- pulp_file_client (>= 1.2.0, < 1.4.0)
31
- pulp_rpm_client (>= 3.6.2, < 3.8.0)
32
- pulpcore_client (>= 3.6.0, < 3.8.0)
41
+ pulp_container_client (>= 2.7.0, < 2.8.0)
42
+ pulp_deb_client (>= 2.13.0, < 2.14.0)
43
+ pulp_file_client (>= 1.8.0, < 1.9.0)
44
+ pulp_rpm_client (>= 3.13.0, < 3.15.0)
45
+ pulpcore_client (>= 3.14.0, < 3.15.0)
46
+ qpid_proton
33
47
  rabl
34
48
  rails
35
49
  rest-client
@@ -84,7 +98,7 @@ GEM
84
98
  activerecord (6.0.3.6)
85
99
  activemodel (= 6.0.3.6)
86
100
  activesupport (= 6.0.3.6)
87
- activerecord-import (1.0.8)
101
+ activerecord-import (1.2.0)
88
102
  activerecord (>= 3.2)
89
103
  activerecord-nulldb-adapter (0.7.0)
90
104
  activerecord (>= 5.2.0, < 6.3)
@@ -105,6 +119,8 @@ GEM
105
119
  minitest (~> 5.1)
106
120
  tzinfo (~> 1.1)
107
121
  zeitwerk (~> 2.2, >= 2.2.2)
122
+ acts_as_list (1.0.4)
123
+ activerecord (>= 4.2)
108
124
  addressable (2.7.0)
109
125
  public_suffix (>= 2.0.2, < 5.0)
110
126
  algebrick (0.7.5)
@@ -133,7 +149,7 @@ GEM
133
149
  execjs
134
150
  bcrypt (3.1.16)
135
151
  benchmark-ips (2.8.4)
136
- binding_of_caller (1.0.0)
152
+ binding_of_caller (0.8.0)
137
153
  debug_inspector (>= 0.0.1)
138
154
  bootsnap (1.7.3)
139
155
  msgpack (~> 1.0)
@@ -189,7 +205,7 @@ GEM
189
205
  polyglot
190
206
  rails (>= 5.2)
191
207
  rainbow (>= 2.1.0)
192
- docile (1.3.5)
208
+ docile (1.4.0)
193
209
  domain_name (0.5.20190701)
194
210
  unf (>= 0.0.5, < 1.0.0)
195
211
  dynflow (1.4.7)
@@ -246,12 +262,12 @@ GEM
246
262
  fog-core (~> 2.1)
247
263
  fog-json (>= 1.0)
248
264
  ipaddress (>= 0.8)
249
- fog-ovirt (1.2.5)
265
+ fog-ovirt (2.0.1)
266
+ activesupport
250
267
  fog-core
251
268
  fog-json
252
269
  fog-xml
253
- ovirt-engine-sdk (>= 4.1.3)
254
- rbovirt (~> 0.1.5)
270
+ ovirt-engine-sdk (>= 4.3.1)
255
271
  fog-vsphere (3.5.0)
256
272
  fog-core
257
273
  rbvmomi (>= 1.9, < 3)
@@ -261,26 +277,19 @@ GEM
261
277
  font-awesome-sass (4.6.2)
262
278
  sass (>= 3.2)
263
279
  foreman (0.87.2)
264
- foreman-tasks (3.0.3)
265
- dynflow (>= 1.2.3)
266
- foreman-tasks-core
267
- get_process_mem
268
- parse-cron (~> 0.1.4)
269
- sinatra
270
- foreman-tasks-core (0.3.4)
271
- dynflow (>= 1.2.0)
272
- foreman_ansible (6.1.1)
280
+ foreman_ansible (6.4.1)
281
+ acts_as_list (~> 1.0.3)
273
282
  deface (< 2.0)
274
- foreman_remote_execution (>= 4.2.0)
283
+ foreman_remote_execution (>= 4.4.0)
275
284
  ipaddress (>= 0.8.0, < 1.0)
276
285
  foreman_ansible_core (4.0.0)
277
286
  foreman-tasks-core (~> 0.3.2)
278
287
  foreman_remote_execution_core (~> 1.1)
279
288
  net-ssh
280
- foreman_remote_execution (4.2.2)
289
+ foreman_remote_execution (4.5.6)
281
290
  deface
282
291
  dynflow (>= 1.0.2, < 2.0.0)
283
- foreman-tasks (>= 0.15.1)
292
+ foreman-tasks (>= 4.1.0)
284
293
  foreman_remote_execution_core
285
294
  foreman_remote_execution_core (1.4.0)
286
295
  foreman-tasks-core (>= 0.3.1)
@@ -342,7 +351,6 @@ GEM
342
351
  immigrant (0.3.6)
343
352
  activerecord (>= 3.0)
344
353
  ipaddress (0.8.3)
345
- jaro_winkler (1.5.4)
346
354
  journald-logger (3.0.1)
347
355
  journald-native (~> 1.0)
348
356
  journald-native (1.0.12)
@@ -408,14 +416,14 @@ GEM
408
416
  oauth (0.5.5)
409
417
  optimist (3.0.1)
410
418
  os (1.1.1)
411
- ovirt-engine-sdk (4.4.0)
419
+ ovirt-engine-sdk (4.4.1)
412
420
  json (>= 1, < 3)
413
421
  paint (2.2.1)
414
- parallel (1.20.1)
422
+ parallel (1.21.0)
415
423
  parallel_tests (3.6.0)
416
424
  parallel
417
425
  parse-cron (0.1.4)
418
- parser (3.0.0.0)
426
+ parser (3.0.2.0)
419
427
  ast (~> 2.4.1)
420
428
  patternfly-sass (3.59.5)
421
429
  bootstrap-sass (~> 3.4.0)
@@ -441,39 +449,34 @@ GEM
441
449
  pry-remote (0.1.8)
442
450
  pry (~> 0.9)
443
451
  slop (~> 3.0)
444
- pry-stack_explorer (0.6.0)
445
- binding_of_caller (~> 1.0)
452
+ pry-stack_explorer (0.4.13)
453
+ binding_of_caller (~> 0.7)
446
454
  pry (~> 0.13)
447
455
  public_suffix (4.0.6)
448
- pulp_2to3_migration_client (0.5.1)
449
- faraday (>= 0.14.0)
450
- json (~> 2.1, >= 2.1.0)
451
- pulp_ansible_client (0.4.3)
456
+ pulp_ansible_client (0.8.1)
452
457
  faraday (>= 0.14.0)
453
458
  json (~> 2.1, >= 2.1.0)
454
- pulp_certguard_client (1.1.0)
459
+ pulp_certguard_client (1.5.1)
455
460
  faraday (>= 0.14.0)
456
461
  json (~> 2.1, >= 2.1.0)
457
- pulp_container_client (2.1.0)
462
+ pulp_container_client (2.7.1)
458
463
  faraday (>= 0.14.0)
459
464
  json (~> 2.1, >= 2.1.0)
460
- pulp_deb_client (2.7.0)
465
+ pulp_deb_client (2.13.1)
461
466
  faraday (>= 0.14.0)
462
467
  json (~> 2.1, >= 2.1.0)
463
- pulp_file_client (1.3.0)
468
+ pulp_file_client (1.8.2)
464
469
  faraday (>= 0.14.0)
465
470
  json (~> 2.1, >= 2.1.0)
466
- pulp_rpm_client (3.7.0)
471
+ pulp_rpm_client (3.14.6)
467
472
  faraday (>= 0.14.0)
468
473
  json (~> 2.1, >= 2.1.0)
469
- pulpcore_client (3.7.3)
474
+ pulpcore_client (3.14.8)
470
475
  faraday (>= 0.14.0)
471
476
  json (~> 2.1, >= 2.1.0)
472
- puma (4.3.7)
477
+ puma (5.5.2)
473
478
  nio4r (~> 2.0)
474
- puma-plugin-systemd (0.1.5)
475
- json
476
- puma (>= 3.6, < 5)
479
+ qpid_proton (0.33.0)
477
480
  rabl (0.14.3)
478
481
  activesupport (>= 2.3.14)
479
482
  racc (1.5.2)
@@ -527,9 +530,6 @@ GEM
527
530
  rb-fsevent (0.10.4)
528
531
  rb-inotify (0.10.1)
529
532
  ffi (~> 1.0)
530
- rbovirt (0.1.7)
531
- nokogiri
532
- rest-client (> 1.7.0)
533
533
  rbvmomi (2.4.1)
534
534
  builder (~> 3.0)
535
535
  json (>= 1.8)
@@ -553,7 +553,7 @@ GEM
553
553
  mime-types (>= 1.16, < 4.0)
554
554
  netrc (~> 0.8)
555
555
  retriable (3.1.2)
556
- rexml (3.2.4)
556
+ rexml (3.2.5)
557
557
  rfauxfactory (0.1.5)
558
558
  roadie (4.0.0)
559
559
  css_parser (~> 1.4)
@@ -564,23 +564,30 @@ GEM
564
564
  robotex (1.0.0)
565
565
  robottelo_reporter (0.1.1)
566
566
  builder (>= 2.1.2)
567
- rubocop (0.80.1)
568
- jaro_winkler (~> 1.5.1)
567
+ rubocop (0.89.1)
569
568
  parallel (~> 1.10)
570
- parser (>= 2.7.0.1)
569
+ parser (>= 2.7.1.1)
571
570
  rainbow (>= 2.2.2, < 4.0)
571
+ regexp_parser (>= 1.7)
572
572
  rexml
573
+ rubocop-ast (>= 0.3.0, < 1.0)
573
574
  ruby-progressbar (~> 1.7)
574
- unicode-display_width (>= 1.4.0, < 1.7)
575
+ unicode-display_width (>= 1.4.0, < 2.0)
576
+ rubocop-ast (0.8.0)
577
+ parser (>= 2.7.1.5)
575
578
  rubocop-checkstyle_formatter (0.4.0)
576
579
  rubocop (>= 0.35.1)
577
- rubocop-minitest (0.7.0)
578
- rubocop (>= 0.74)
579
- rubocop-performance (1.5.2)
580
- rubocop (>= 0.71.0)
581
- rubocop-rails (2.4.2)
580
+ rubocop-minitest (0.10.3)
581
+ rubocop (>= 0.87, < 2.0)
582
+ rubocop-performance (1.8.1)
583
+ rubocop (>= 0.87.0)
584
+ rubocop-ast (>= 0.4.0)
585
+ rubocop-rails (2.8.1)
586
+ activesupport (>= 4.2.0)
582
587
  rack (>= 1.1)
583
- rubocop (>= 0.72.0)
588
+ rubocop (>= 0.87.0)
589
+ rubocop-rspec (1.43.2)
590
+ rubocop (~> 0.87)
584
591
  ruby-libvirt (0.7.1)
585
592
  ruby-openid (2.9.2)
586
593
  ruby-progressbar (1.11.0)
@@ -647,7 +654,7 @@ GEM
647
654
  simplecov-html (0.12.3)
648
655
  simplecov-rcov (0.2.3)
649
656
  simplecov (>= 0.4.1)
650
- simplecov_json_formatter (0.1.2)
657
+ simplecov_json_formatter (0.1.3)
651
658
  sinatra (2.1.0)
652
659
  mustermann (~> 1.0)
653
660
  rack (~> 2.2)
@@ -664,10 +671,18 @@ GEM
664
671
  actionpack (>= 4.0)
665
672
  activesupport (>= 4.0)
666
673
  sprockets (>= 3.0.0)
674
+ sqlite3 (1.4.2)
667
675
  sshkey (1.9.0)
668
676
  statsd-instrument (2.9.2)
669
677
  stomp (1.4.10)
670
678
  text (1.3.1)
679
+ theforeman-rubocop (0.0.6)
680
+ rubocop (~> 0.89.0)
681
+ rubocop-checkstyle_formatter (~> 0.4.0)
682
+ rubocop-minitest (~> 0.10.1)
683
+ rubocop-performance (~> 1.8.1)
684
+ rubocop-rails (~> 2.8.1)
685
+ rubocop-rspec (~> 1.43.2)
671
686
  thor (1.1.0)
672
687
  thread_safe (0.3.6)
673
688
  tilt (2.0.10)
@@ -679,7 +694,7 @@ GEM
679
694
  unf (0.1.4)
680
695
  unf_ext
681
696
  unf_ext (0.0.7.7)
682
- unicode-display_width (1.6.1)
697
+ unicode-display_width (1.8.0)
683
698
  uniform_notifier (1.13.2)
684
699
  validates_lengths_from_database (0.8.0)
685
700
  activerecord (>= 4)
@@ -717,6 +732,7 @@ DEPENDENCIES
717
732
  benchmark-ips (>= 2.8.2)
718
733
  bootsnap
719
734
  bullet (>= 6.1.0)
735
+ byebug
720
736
  capybara (~> 3.0, < 3.32.1)
721
737
  ci_reporter_minitest
722
738
  coffee-rails (~> 5.0.0)
@@ -732,12 +748,14 @@ DEPENDENCIES
732
748
  fog-aws (>= 3.6.2, < 4)
733
749
  fog-core (= 2.1.0)
734
750
  fog-google (~> 1.11.0)
735
- fog-libvirt (>= 0.7.0)
751
+ fog-libvirt (>= 0.8.0)
736
752
  fog-openstack (>= 1.0.8, < 2.0.0)
737
- fog-ovirt (~> 1.2.5)
738
- fog-vsphere (>= 3.3.1, < 4.0)
753
+ fog-ovirt (>= 2.0.1, < 3)
754
+ fog-vsphere (>= 3.5.0, < 4.0)
739
755
  foreman
756
+ foreman-tasks!
740
757
  foreman_ansible_core
758
+ foreman_remote_execution (~> 4.5.6)
741
759
  foreman_rh_cloud!
742
760
  friendly_id (>= 5.3.0, < 5.4)
743
761
  get_process_mem
@@ -751,10 +769,10 @@ DEPENDENCIES
751
769
  i18n (~> 1.1)
752
770
  immigrant (~> 0.1)
753
771
  jquery-ui-rails (~> 6.0)
754
- jwt (~> 2.2.1)
772
+ jwt (~> 2.2.2)
755
773
  katello!
756
774
  launchy (~> 2.4)
757
- ldap_fluff (>= 0.4.7, < 1.0)
775
+ ldap_fluff (>= 0.5.0, < 1.0)
758
776
  logging (>= 1.8.0, < 3.0.0)
759
777
  logging-journald (~> 2.0)
760
778
  mail (~> 2.7)
@@ -780,8 +798,8 @@ DEPENDENCIES
780
798
  pry-rails
781
799
  pry-remote
782
800
  pry-stack_explorer
783
- puma (< 5.0)
784
- puma-plugin-systemd
801
+ puma (~> 5.1)
802
+ qpid_proton (~> 0.33.0)
785
803
  rabl (~> 0.14.2)
786
804
  rack-cors (~> 1.0.2)
787
805
  rack-jsonp
@@ -799,11 +817,10 @@ DEPENDENCIES
799
817
  rfauxfactory (~> 0.1, >= 0.1.5)
800
818
  roadie-rails (~> 2.0)
801
819
  robottelo_reporter (~> 0.1)
802
- rubocop (~> 0.80.0)
803
- rubocop-checkstyle_formatter (~> 0.2)
804
- rubocop-minitest (~> 0.7.0)
805
- rubocop-performance (~> 1.5.2)
806
- rubocop-rails (~> 2.4.2)
820
+ rubocop
821
+ rubocop-checkstyle_formatter
822
+ rubocop-performance
823
+ rubocop-rails
807
824
  ruby-libvirt (~> 0.5)
808
825
  safemode (>= 1.3.5, < 2)
809
826
  sass-rails (~> 6.0)
@@ -821,8 +838,10 @@ DEPENDENCIES
821
838
  spring (>= 1.0, < 3)
822
839
  sprockets (~> 4.0)
823
840
  sprockets-rails (~> 3.0)
841
+ sqlite3
824
842
  sshkey (~> 1.9)
825
843
  statsd-instrument (< 3)
844
+ theforeman-rubocop (~> 0.0.6)
826
845
  uglifier (>= 1.0.3)
827
846
  validates_lengths_from_database (~> 0.5)
828
847
  vcr (< 4.0.0)
@@ -2,9 +2,9 @@
2
2
 
3
3
  default: &default
4
4
  adapter: postgresql
5
- username: foreman
5
+ username: <%= ENV['PGUSER'] || 'foreman' %>
6
6
  password: foreman
7
- host: localhost
7
+ host: <%= ENV['PGHOST'] || 'localhost' %>
8
8
 
9
9
  test:
10
10
  <<: *default