You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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
The text was updated successfully, but these errors were encountered: