Skip to content
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

Make foreman::config::apache standalone #800

Merged
merged 1 commit into from
Feb 18, 2020

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Feb 14, 2020

By not relying on the foreman class parameters, it becomes easier to use this class without Foreman. This can be useful when deploying it using a git checkout rather than packages. An example of that is theforeman/puppet-katello_devel#225

@ehelms
Copy link
Member

ehelms commented Feb 14, 2020

So far I am running into:

    [ERROR 2020-02-14T14:21:11 verbose]  Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Class[Foreman::Config::Apache] is already declared at (file: /usr/share/foreman-installer/modules/katello_devel/manifests/apache.pp, line: 6); cannot redeclare (file: /usr/share/foreman-installer/modules/foreman/manifests/config.pp, line: 97) (file: /usr/share/foreman-installer/modules/foreman/manifests/config.pp, line: 97, column: 5) on node centos7-devel.war.example.com

My guess is this is due to puppet-pulpcore integration (https://github.com/theforeman/puppet-foreman_proxy_content/blob/master/manifests/init.pp#L292).

@ekohl
Copy link
Member Author

ekohl commented Feb 14, 2020

I think that's actually a valid concern because that unconditionally pulls in Foreman from packages again just to get the servername. That could also include foreman::config::apache and then use $foreman::config::apache::servername.

@ekohl
Copy link
Member Author

ekohl commented Feb 14, 2020

theforeman/puppet-foreman_proxy_content#243 would probably work there, but depends on this.

@ehelms
Copy link
Member

ehelms commented Feb 14, 2020

The change to puppet-katello is indeed needed to let the devel install pass. With all 3 of those changes though I got a successful install!

When you get a few moments, if you could file a Redmine issue, link all of them up and then I can pass through each with a review. This will unblock devel having Pulp 3 which I know a number of developers are needing.

Thanks for the re-factor here!

By not relying on the foreman class parameters, it becomes easier to use
this class without Foreman. This can be useful when deploying it using a
git checkout rather than packages.
@ehelms ehelms merged commit 8af63b8 into theforeman:master Feb 18, 2020
@ekohl ekohl deleted the standalone-apache-config branch February 19, 2020 19:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants