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

firewalld_rich_rule issue #180

Closed
rkgardner opened this issue May 30, 2018 · 2 comments
Closed

firewalld_rich_rule issue #180

rkgardner opened this issue May 30, 2018 · 2 comments

Comments

@rkgardner
Copy link

I am not sure what I am doing wrong. However, I am attempting to use the following in puppet to create a rich rule that opens a port for a specific IP.

firewalld_rich_rule {'Open MariaDB port for web server': ensure => 'present', zone => 'public', family => 'ipv4', source => '10.129.74.65/32', port => [{ 'protocol' => 'tcp', 'port' => 3306, }], action => 'accept', }

The above results in the following error:

Error: /Stage[main]/Profile::Swamp::Swampfirewall/Firewalld_rich_rule[Open MariaDB port for web server]: Could not evaluate: no implicit conversion of String into Integer

I have successfully inserted the rule via the firewalld-cmd:

firewall-cmd --permanent --zone=public --add-rich-rule='rule family="ipv4" source address="10.129.74.65/32" port protocol="tcp" port="3306" accept'

Any help or explanation would be appreciated.

Thanks,
Jeff

@rkgardner
Copy link
Author

OS of machine I am running puppet agent on is CentOS 7.

@rkgardner
Copy link
Author

Figured out my issue. The [ ] were the cause.

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

No branches or pull requests

1 participant