-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow specifying extra gemfiles for a plugin #307
Conversation
define katello_devel::plugin ( | ||
Optional[String] $settings_template = undef, | ||
Optional[String] $scm_revision = undef, | ||
Boolean $manage_repo = true, | ||
Array[String] $extra_gemfiles = [], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has been a long time since I looked at puppet, here we are setting an empty array, then in https://github.com/theforeman/puppet-katello_devel/pull/307/files#diff-b55cd2d4fee4ad88a9e21316ff2015c5579e8ec9bef7bc0fe5253262905fa702R51 we are hard coding it, is that so Katello always has it and we can override it if needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a define
which is meant to be a re-usable chunk of code, so we assume this is empty by default and plugin definitions can pass in values if they need.
Just leaving this here since I thought about it before. We can also consider the use of groups (like |
I don't think that helps us here. |
8e8253c
to
3ed93cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied the patch and it works now that rh_cloud and virt-who are green:
[root@toledodevel ~]# foreman-installer -v --no-colors --scenario katello-devel --foreman-proxy-content-enable-ostree=true --katello-devel-modulestream-nodejs=18 --katello-devel-admin-password changeme --katello-devel-extra-plugins theforeman/foreman_rh_cloud --katello-devel-extra-plugins theforeman/foreman_virt_who_configure
2024-09-24 10:16:27 [NOTICE] [root] Loading installer configuration. This will take some time.
2024-09-24 10:16:31 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2024-09-24 10:16:31 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
2024-09-24 10:16:33 [NOTICE] [checks] System checks passed
2024-09-24 10:16:40 [NOTICE] [configure] Starting system configuration.
2024-09-24 10:16:54 [NOTICE] [configure] 250 configuration steps out of 1338 steps complete.
2024-09-24 10:16:56 [NOTICE] [configure] 500 configuration steps out of 1339 steps complete.
2024-09-24 10:16:59 [NOTICE] [configure] 750 configuration steps out of 1342 steps complete.
2024-09-24 10:17:03 [NOTICE] [configure] 1000 configuration steps out of 1347 steps complete.
2024-09-24 10:36:04 [NOTICE] [configure] 1250 configuration steps out of 1347 steps complete.
2024-09-24 10:36:28 [NOTICE] [configure] System configuration has finished.
Success!
* To run the Katello dev server log in using SSH
* Run `cd foreman && bundle exec foreman start`
* The server is running at https://toledodevel.satellite.lab.eng.rdu2.redhat.com
* On Firefox you need to accept the certificate at https://toledodevel.satellite.lab.eng.rdu2.redhat.com
:3808
Initial credentials are admin / changeme
* Foreman Proxy is running at https://toledodevel.satellite.lab.eng.rdu2.redhat.com:9090
The full log is at /var/log/foreman-installer/katello-devel.log
@ehelms can this get in so we can spin up new devel boxes?
Done |
This aims to provide a targeted solution to extra gemfiles rather than a catch all solution.
This should prevent the need for theforeman/foreman_virt_who_configure#201 and to keep the solution in place of having a
test.rb
in Katello.