Hi All

On the face of it this seems like it should be fairly simple.

Im using a shorewall module details of which can be found, according to the 
README, here 
http://reductivelabs.com/trac/puppet/wiki/Recipes/AqueosShorewall

I'm trying to create a shorewall hosts file, my module looks like:

class firewall::host{                                                       
    
                                                                            
    
  shorewall::host {"${interface_public}:0.0.0.0/0":                        
    zone => 'net',                                                         
     
    order => 100;                                                           
    
  }                                                                         
    
                                                                            
    
}   

where $interface_admin in this case = bond0.2

>From this I expect something like:

net bond0.2:0.0.0.0/0

Howerver I instead get

err: 
/Stage[main]/Firewall::Host/Shorewall::Host[bond0.2:0.0.0.0/0]/Shorewall::Entry[hosts-100-bond0.2:0.0.0.0/0]/Concat_fragment[managed_file_hosts+100-bond0.2:0.0.0.0/0.tmp]/content:
 
change from net bond0.2:0.0.0.0/0 tcpflags,blacklist,norfc1918
 to net bond0.2:0.0.0.0/0 tcpflags,blacklist,norfc1918
 failed: No such file or directory - 
/var/lib/puppet/concat/fragments/managed_file_hosts/100-bond0.2:0.0.0.0/0.tmp

I suspect that the /0 being used for the CIDR notation is confusing the 
concat module and it thinks that 
"managed_file_hosts+100-bond0.2:0.0.0.0/0.tmp" should be a directory when 
in fact it should not.

I attempted to escape the / with "\" but got a similar error:

err: 
/Stage[main]/Firewall::Host/Shorewall::Host[bond0.2:0.0.0.0\/0]/Shorewall::Entry[hosts-100-bond0.2:0.0.0.0\/0]/Concat_fragment[managed_file_hosts+100-bond0.2:0.0.0.0\/0.tmp]/content:
 
change from net bond0.2:0.0.0.0\/0 tcpflags,blacklist,norfc1918
 to net bond0.2:0.0.0.0\/0 tcpflags,blacklist,norfc1918
 failed: No such file or directory - 
/var/lib/puppet/concat/fragments/managed_file_hosts/100-bond0.2:0.0.0.0\/0.tmp


I expect that I am missing something glaringly obvious but any pointers 
would be appreciated.

Regards
--
Callum

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/cOk1rasjED0J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to