Skip to content
This repository has been archived by the owner on Jan 24, 2019. It is now read-only.

Errors in configuration files when using createresources #26

Open
norlaminis opened this issue Jun 16, 2015 · 1 comment
Open

Errors in configuration files when using createresources #26

norlaminis opened this issue Jun 16, 2015 · 1 comment

Comments

@norlaminis
Copy link

When using hiera, the zone.xml files become corrupt,
eg, "" is displayed in the XML zone file. which causes the zone to fail to load.
As when its left as Undef in puppet when there is no parameter match, undef is still a value, blank but a value.

In the file zoneprovider.rb I have included "next if source.empty?" line for each type
Source, Interfaces, forward_ports, icmp and the like
Which is a quick workaround for me. But wondering if your intending on setting the module up for use with Hiera in the future ?

@asasfu
Copy link

asasfu commented Jul 8, 2015

norlaminis, can you give my fork a test against your issue here? It may fix this issue as I updated the XML format output which caused things to break if you created your zone with this module but later ran firewall-cmd against the zone. https://github.com/sfu-rcg/puppet-firewalld

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

No branches or pull requests

2 participants