-
Notifications
You must be signed in to change notification settings - Fork 47
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
Fixes #8849 - installs foreman_gutterball #54
Fixes #8849 - installs foreman_gutterball #54
Conversation
didn't need to remove anything wrt the gutterball backend service? |
Why not include calling this in the section of init.pp that sets up gutterball? Is there ever an instance where we want to install and configure gutterball but omit the plugin for it? Or vice versa, move the configuration of gutterball into the plugin's manifest file such that if gutterball is being setup and configured the plugin does as well and then it's all nicely wrapped up in a manifest file. |
74385b8
to
cc70dad
Compare
@@ -116,9 +116,12 @@ | |||
|
|||
Service['httpd'] -> Exec['foreman-rake-db:seed'] | |||
|
|||
class { 'katello::plugin': } | |||
|
|||
if $katello::gutterball { |
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.
Can we move this chunk and logic in plugin/gutterball.pp ? Just makes more sense to all live together for me.
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.
@ehelms removed the extra logic.
f0b4b3b
to
0369c74
Compare
I think I am getting lost in translation. I'd suggest putting all the gutterball logic in katello::plugins::gutterball and then either:
These options let gutterball and it's integration be more cohesive and less coupled. |
@@ -0,0 +1,9 @@ | |||
# gutterball plugin | |||
class katello::plugin::gutterball{ | |||
Class[ 'certs' ] -> |
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.
Nitpick - indentation is off with respect to other files (2 spaces instead of 4)
2b11fc4
to
f7904b7
Compare
@ehelms added the spec but running into some issues getting a passing spec... foreman isn't being evaluated do you know any way around this issue?
|
require 'spec_helper' | ||
|
||
describe 'katello::plugin::gutterball' do | ||
let(:foreman) { {:plugin_prefix => 'ruby193-'} } |
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.
Does this work? I think we mostly use pre_condition:
let :pre_condition do
"class {'foreman': plugin_prefix => 'ruby-193-'}"
end
Though in this particular case you don't have to specify the plugin_prefix explicitly since it should detect it from the provided facts.
f7904b7
to
949a0b9
Compare
thanks @ekohl, that worked! |
949a0b9
to
419fd6c
Compare
ACK |
Fixes #8849 - installs foreman_gutterball
No description provided.