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

Allow basic auth to be optional in apache conf #11

Conversation

patcon
Copy link
Contributor

@patcon patcon commented Jul 11, 2012

We could add some logic so that if either attr basic_auth_username or basic_auth_password are nil, htpasswd and the relevant section of the apache conf are not written.

Will attach code later if I do this.

@patcon
Copy link
Contributor Author

patcon commented Jul 11, 2012

If this works for you so far, any objection to removing a layer of indirection and moving the simple htpasswd template into a file resource within recipe[jenkins::proxy_apache2]?

@patcon
Copy link
Contributor Author

patcon commented Jul 11, 2012

And to explain, there was some odd behavior in chef roles that were written in ruby, and so nil values weren't even recognized and the defaults were instead utilized. Might have something to do with the unintuitive way the chef thinks of default, normal and override, but just thought it simpler to go with empty strings and doc it.

Would only ever be an issue if the default username/password in the recipe were switched to nil instead of jenkins/jenkins, as that would error when checking if a nil value was .empty?

@patcon patcon mentioned this pull request Jul 11, 2012
@agh
Copy link

agh commented Jul 23, 2012

👍

@fujin fujin closed this Feb 28, 2013
@agh
Copy link

agh commented Mar 1, 2013

Am I to read into this that the standard procedure for Pull Requests is now to not bother reviewing them or providing any feedback, and then to summarily close them after 6+ months? 😸

@chrisroberts
Copy link

@agh please see the readme in the repo root. This cookbook is now being maintained by opscode and has been moved.

@patcon
Copy link
Contributor Author

patcon commented Mar 1, 2013

#23

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.

4 participants