-
Notifications
You must be signed in to change notification settings - Fork 38
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 to the Chef Corosync cookbook for RHEL based distros and make it testable #10
base: master
Are you sure you want to change the base?
Conversation
for RHEL platform_family - Add the LICENSE file - Add berks and test-kitchen config which are needed for cookbook testing
platform_family. The version is kept at '0' on suse but on RHEL version '1' is used. - Reformat the template content
…ing compilation phase when authey is nil
…n. Minor code formatting.
… required packages
… corosync init script that was being setup for non-suse platforms only needs to be setup for debian based distros
…ore than 1 instances so that they can communicate with each other
@@ -64,7 +63,7 @@ | |||
pkg = package rubygem_ruby_shadow do | |||
action :nothing | |||
end | |||
pkg.run_action(:install) if node.platform == "suse" | |||
pkg.run_action(:install) if node["platform_family"] == 'suse' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
template "/etc/sysconfig/SuSEfirewall2.d/services/cluster" do | ||
source "firewall.erb" | ||
mode "0640" | ||
owner "root" | ||
variables( | ||
mcast_port: node[:corosync][:mcast_port] | ||
:mcast_port => node[:corosync][:mcast_port] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style/HashSyntax: Use the new Ruby 1.9 hash syntax.
@@ -17,11 +18,13 @@ | |||
# limitations under the License. | |||
# | |||
|
|||
authkey = node[:corosync][:authkey] | |||
require 'base64' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Style/StringLiterals: Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.
Thanks a lot - will take a look ASAP! |
@aspiers is there anything I can do here? |
@aspiers this looks like its still blocked for some reason. Anything you want me to do here? |
As with #17 (comment) it would be great if you could fix the Hound CI warnings and rebase. Thanks a lot for your patience! |
Fixes issue #9