I''m trying to setup iptables management, but I''m getting the
syntax
error below. I don''t see how the recipe used ipt_fragment, so this is
what I tried. The error seems to say it found what it expected :-)
Thanks
Could not parse for environment production: Syntax error at
''}'';
expected ''}'' at
/etc/puppet/manifests/classes/iptables-files_base.pp:4
That file starts with:
class iptables-files_base {
include iptables
ipt_fragment {"iptables.000-header"}
ipt_fragment {"iptables.100-self"}
modules/iptables/manifests/init.pp contains:
Handles iptables concerns. See also ipt_fragment definition
define ipt_fragment($ensure) {
case $ensure {
absent: {
file { "/etc/sysconfig/iptables.d/$name":
ensure => absent,
}
}
present: {
file {
"/etc/sysconfig/iptables.d/$title":
source => "puppet://puppet/iptables/fragments/
$name",
owner => root, group => root, mode => 640,
notify => Exec[rebuild_iptables],
}
}
}
}
class iptables {
package { "iptables":
ensure => present
}
exec { "rebuild_iptables":
command => "/usr/sbin/rebuild-iptables",
refreshonly => true,
require => File["/usr/sbin/rebuild-iptables"],
}
file {
"/etc/sysconfig/iptables.d":
ensure => directory,
purge => false,
notify => Exec["rebuild_iptables"];
"/usr/sbin/rebuild-iptables":
source => "puppet://puppet/iptables/rebuild-iptables";
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---