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

Update to support Apache 2.4 - rework of #136 #189

Merged
merged 2 commits into from
Sep 24, 2017
Merged

Update to support Apache 2.4 - rework of #136 #189

merged 2 commits into from
Sep 24, 2017

Conversation

wyardley
Copy link
Contributor

@wyardley wyardley commented Sep 18, 2017

This reworks #136 by @steveames
Still probably could use some review, though it does get the tests passing and is rebased against current master.

case $::osfamily {
'Debian': {
if $::operatingsystem == ubuntu {
$apache_confd = '/etc/apache2/conf-enabled'
if ($::operatingsystem == 'ubuntu') {
Copy link
Member

@juniorsysadmin juniorsysadmin Sep 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably should use upper case naming to be consistent. Unless the Puppet logic for $::osfamily cares about case and the logic for $::operatingsystem does not.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please switch to the new facts hash? $facts['os']['family']

# puppetlabs/apache names the apache service
# resource 'httpd', nevermind the actual os
$apache_service = 'httpd'

case $::osfamily {
Copy link
Member

@bastelfreak bastelfreak Sep 23, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use the facts hash here. $facts['os']['family']

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did see those, and had left them the same as the original PR. I added an additional commit that should switch to structured facts.

Acceptance tests are another story; they were out of date, so I'm working on another pull to at least somewhat fix them.

if $::operatingsystem == ubuntu {
$apache_confd = '/etc/apache2/conf-enabled'
if ($::operatingsystem == 'ubuntu') {
if (versioncmp($::operatingsystemrelease,'14.04')) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use the facts hash here. Probably $facts['os']['release']['full']

@bastelfreak bastelfreak merged commit f5f3c11 into voxpupuli:master Sep 24, 2017
@kenyon kenyon mentioned this pull request Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants