-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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 support for RHEL7/Systemd in Terraform example #1629
Conversation
Hi @moofish32 thanks for updating these! If you've gotten to test them then we can merge them in case they are useful to others. Only thing I saw from a quick look is that |
@slackpad - I need to go back through and plum the Thinking about this again though I'll probably call it |
1ba9018
to
9361a9b
Compare
@slackpad - so this change drifted a little. When I started I was going after just one and then I found a few others. In an effort to slim down I consolidated scripts. If you don't like this, let's just roll it back and I'll add only the rhel7/centos7 piece. I was a little annoyed I had to I'm looking into build issue with sudo. I may need to back track a bit. |
9361a9b
to
3133b15
Compare
rebased test passing |
Hi @moofish32 it looks like you need another rebase. If you were able to test the older scripts then we can update them all, but if not I'd prefer if we just updated the version 7 ones. |
3133b15
to
f1e1532
Compare
@slackpad rebased to master. A couple quick items:
|
f1e1532
to
8be6a7c
Compare
@slackpad -- I am getting intermittent builds locally and on Travis. Is that new? |
Hi @moofish32 moving up to latest Consul is definitely the right thing - sorry I regressed that with the older PR. We have a few tests that are timing dependent that are a little flaky and we are working on those. Your changes definitely don't interact with the unit tests :-) I was looking through old issues and found this one that we might want to roll into this PR since you're in here - #1304. You definitely want all three (8300 for RPC, 8301 for LAN, 8302 for WAN) to be exposed for servers and (8301 for LAN) for clients, though if things are working perhaps these are getting exposed anyway? The comment about a reboot seems apt, too. Would it be possible for you to take a look at that? |
@slackpad -- I was officially dominated by the linux distros today. I'll have a fix up in the next couple of days for all the issues you mentioned, but there is just enough difference between upstart in Ubuntu, Centos, and RHEL that I may have to move those back to separate files :( I thought about rendering a template inside a remote exec to append to file, but need to kick the tires one more time. |
101eaa7
to
e77c23d
Compare
@slackpad -- All four OS variants are now tested and can be restarted. Obviously there is still an anchor dependency on the consul-0 host because that is the default join address. Please review and let me know if you find anything else. |
e77c23d
to
ca828d5
Compare
@slackpad -- rebased to latest master |
8b7d075
to
18acc72
Compare
858928d
to
7720fd1
Compare
@moofish32 thanks for all the work on this one! Looks good except we should knock this file out :-) |
This change started out as a quick update to RHEL 7 support (aka systemd), in the process I realized most of the other platforms could use an update. While trying to cleanup there I discovered I was repeating of bunch of information that might be better maintained in one place - as a result: * consolidated server.sh and install.sh * removed upstart-join.conf in a favor of join flag in the consul start * removed platform specific folders and increased complexity of install.sh to include handling the differences * updated and extracted consul version * added a consistent ip_table.sh file to open ports on firewalls * updating consul service management configurations to enable proper restarting behavior for each platform * the configuration naming convention is <distro_origin>_file_name * added platform to the security group name so you can easily launch multpile platforms at once * fixes hashicorp#1304
7720fd1
to
b4dfd0f
Compare
@slackpad -- great catch, bad miss on my part but it was at least only the names; removed file and rebased. |
Add support for RHEL7/Systemd in Terraform example
@moofish32 thanks for all your work on this one! |
This change started out as a quick update to RHEL 7 support (aka systemd), in
the process I realized most of the other platforms could use an update. While
trying to cleanup there I discovered I was repeating of bunch of information
that might be better maintained in one place - as a result:
include handling the differences