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

(MODULES-2783) Missing ip6tables service name #578

Conversation

abednarik
Copy link
Contributor

No description provided.

@pshaikh
Copy link

pshaikh commented Nov 4, 2015

We use both iptables & ip6tables, for this we set service_name of firewall class as ['iptables','ip6tables'], the change though is excellent, will it work in situation where one passes service_name as above?

@abednarik
Copy link
Contributor Author

I think the way you were using this module did-t work since they have iptables service hardcoded.

@pshaikh
Copy link

pshaikh commented Nov 11, 2015

You're right...iptables was hardcoded, however how to enable both iptables & ip6tables on CentOS or RedHat? By default its always iptables. So what I am doing is passing ['iptables','ip6tables'] for "service_name" attribute of class firewall. This is also done for Gentoo linux. In such a case this may not work.

@@ -46,7 +46,7 @@
exec { '/usr/bin/systemctl daemon-reload':
require => Package[$package_name],
before => Service[$service_name],
unless => '/usr/bin/systemctl is-active iptables'
unless => '/usr/bin/systemctl is-active iptables',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this also use $service_name?

@abednarik
Copy link
Contributor Author

Thanks @DavidS for providing feedback. Will do that today.

Cheers.

@abednarik abednarik force-pushed the fix/master/redhat_service_name_references branch from 58ba76d to 428081a Compare January 8, 2016 12:12
Replaced hardcoded iptables service references with $service_name
variable.
@abednarik abednarik force-pushed the fix/master/redhat_service_name_references branch from 428081a to 6779867 Compare January 8, 2016 12:14
@abednarik
Copy link
Contributor Author

Done @DavidS

Any feedback is welcome.

@DavidS
Copy link
Contributor

DavidS commented Jan 8, 2016

I'll merge it as is. For @pshaikh 's use-case (and I guess this will become more necessary in the coming time) I'd really love to see explicit IPv6 support alongside the current types, so that it can be selected properly at the top-level.

DavidS added a commit that referenced this pull request Jan 8, 2016
…_references

(MODULES-2783) Missing ip6tables service name
@DavidS DavidS merged commit ac4ab65 into puppetlabs:master Jan 8, 2016
cegeka-jenkins pushed a commit to cegeka/puppet-firewall that referenced this pull request Oct 23, 2017
…rvice_name_references

(MODULES-2783) Missing ip6tables service name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants