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

sort $vhost_cfg_append hash in vhost_footer.erb template #115

Merged
merged 1 commit into from
Aug 22, 2013

Conversation

jhoblitt
Copy link
Member

This is so the paremter ordering in the configuration is stable. It also
force the :allow key (if it exists) to be first in the sort ordering.
It would probably be better to change $vhost_cfg_append into an array
of one key hashes but would require a public API change.

I'm not intending this PR to actually get merged as several other defines have similar problems. I'd like to know if they should all be fixed in a similar, if a bit ugly, manner or if a PR to change the API would be accepted.

@jfryman
Copy link
Contributor

jfryman commented Aug 22, 2013

Can you please rebase and re-submit? Thanks!

There were some bugs in the existing $::operatingsystem based approach.

* amazon was it's own package set when it's properly part of $::osfamily ==
'redhat' as of facter >= 1.7.2

* gentoo was improperly part of the amazon package set; this patch removes
support for gentoo but it was broken anyways

modifications to nginx::package::redhat were made as well

* it no longer tries to setup the nginx.org yumrepo for fedora as no packages
for fedora are currently provided

* amazon release numbers are inconsistent with EL.  Unknown
$::lsbmajdistrelease values are now mapped to 6 so it's no longer nessicary to
test for $::lsbmajdistrelease being undefined.  This logic will need to be
reworked after RHEL7.x is released.

* the url to the nginx repo was including $::operatingsystem in it but
nginx.org only has package dirs for 'rhel' & 'centos' which are presently
identical; the usage of the 'rhel' dir has been hardcoded.  This fixes broken
yum repo setup for all $::osfamily == 'redhat' platforms other than redhat and
centos.
@jhoblitt
Copy link
Member Author

Done.

@jfryman jfryman merged commit 8a1981f into voxpupuli:master Aug 22, 2013
@jhoblitt
Copy link
Member Author

@jfryman Any thoughts on my question if that other templates should be modified in a similar way or if the API should be changed so directives can be ordered? I'm at puppetconf if you want to have a 30s face to face on this. :)

@jfryman
Copy link
Contributor

jfryman commented Aug 22, 2013

@jhoblitt you should certainly come find me. I'm talking at 5:10 in the Grand Ballroom. I'm hesitant to put too much effort into re-writing this template, as I'm working on a 1.0 release that is all dynamically generated along these lines. I'd love to get your input.

@jhoblitt
Copy link
Member Author

This PR was apparently a train wreck. Somehow the commit from this PR #99 ended up on this topic branch and the intended commit never got pushed to github.

@jhoblitt
Copy link
Member Author

I've opened a new PR #123 for the changeset that was actually intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants