-
-
Notifications
You must be signed in to change notification settings - Fork 244
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
Add HWRPs for installing and managing consul. #126
Conversation
@johnbellone excellent work man! I really like having the ability to swap service providers for the service resource. That'll let people implement and test whatever service startup tool they use (runit, systemd, etc). Comment here again when it's finished and I'll take another look ;) |
action :create do | ||
include_recipe 'golang::default' | ||
|
||
directory File.join(node['go']['gopath'], 'src/github.com/hashicorp') do |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
This is great. I'm so happy to see people copying this pattern. +100. On Sun, Feb 8, 2015 at 4:39 PM, Jamie Winsor notifications@github.com
|
hey there, tried to give this a test, but getting:
I looked into it and it would appear that the directory resource being used in consul_config is trying to use a class method from ConsulCookbook::Helpers, parsed_run_user. I see in some previous commits there was a change from run_user to service_user, and I wonder if this has just not been updated yet. directory: https://github.com/johnbellone/consul-cookbook/blob/develop/libraries/provider_consul_config.rb#L20-L21 thanks in advance for any thoughts, let me know if I can help in anyway. |
@fujin I have a whole bunch of commits I need to push. Apologies. They'll be coming in a few minutes. |
I need to tear into this now that I am back from vacation. I'll see if I get some time to hack on it this evening. |
This has become a beastly set of changes, but I am nearing completion. I need to open source a cookbook from work prior to release and thorough testing. |
7a79ab5
to
2ec492a
Compare
@coderanger pointed out a few things that I could spruce up.
It seems that some people really dig runit. I don't get all the hype. But here it is courtesy of @coderanger.
The way that this cookbook is intended to work is for it to be included in a [base cookbook][0] or an [environment cookbook][1] so that the whole infrastructure built with poise-service uses runit. [0]: http://blog.vialstudios.com/the-environment-cookbook-pattern/#thebasecookbook [1]: http://blog.vialstudios.com/the-environment-cookbook-pattern/#theenvironmentcookbook
In all of RedHat's infinite wisdom it seems that upstart is available on EL6.6. The poise-service library cookbook we use defaults to that so we need to conver that test case in our integration tests.
This ensures that we can check for idempotence by simply using the normal Chef means. Its actually a hell of a lot better than querying Consul and doing some insane magic in the background.
Add HWRPs for installing and managing consul.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I am channeling @someara and @reset here.
After taking a look at the new httpd library cookbook as well
as the Mysql library cookbook I think this is an excellent example
of using HWRP for defining the building blocks of a quality cookbook.