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

Add support to the Chef Corosync cookbook for RHEL based distros and make it testable #10

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

ovaistariq
Copy link

Fixes issue #9

  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
… 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'

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]

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'

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.

@aspiers
Copy link
Member

aspiers commented Sep 4, 2015

Thanks a lot - will take a look ASAP!

@ovaistariq
Copy link
Author

@aspiers is there anything I can do here?

@ovaistariq
Copy link
Author

@aspiers this looks like its still blocked for some reason. Anything you want me to do here?

@aspiers
Copy link
Member

aspiers commented Oct 6, 2015

As with #17 (comment) it would be great if you could fix the Hound CI warnings and rebase. Thanks a lot for your patience!

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

Successfully merging this pull request may close these issues.

4 participants