augeas { 'postfix-master-smtp-inet' :
    context => "/files/etc/postfix/master.cf",
    changes => [
      "set smtp[type = inet]/private n",
      "set smtp[type = inet]/unprivileged -",
      "set smtp[type = inet]/chroot n",
      "set smtp[type = inet]/wakeup -",
      "set smtp[type = inet]/limit 10",
      'set smtp[type = inet]/command "smtpd -o
content_filter=smtptorestgw:dummy"',
    ],
    require => Package['postfix'],
    notify  => Service['postfix'],
  }

On the server:

Debug: Augeas[postfix-master-smtp-inet](provider=augeas): Opening augeas
with root /, lens path , flags 32
Debug: Augeas[postfix-master-smtp-inet](provider=augeas): Augeas version
1.2.0 is installed
Debug: Augeas[postfix-master-smtp-inet](provider=augeas): Will attempt to
save and only run if files changed
Debug: Augeas[postfix-master-smtp-inet](provider=augeas): sending command
'set' with params ["/files/etc/postfix/master.cf/smtp[type =
inet]/private", "n"]
Debug: Augeas[postfix-master-smtp-inet](provider=augeas): sending command
'set' with params ["/files/etc/postfix/master.cf/smtp[type =
inet]/unprivileged", "-"]
Debug: Augeas[postfix-master-smtp-inet](provider=augeas): sending command
'set' with params ["/files/etc/postfix/master.cf/smtp[type = inet]/chroot",
"n"]
Debug: Augeas[postfix-master-smtp-inet](provider=augeas): sending command
'set' with params ["/files/etc/postfix/master.cf/smtp[type = inet]/wakeup",
"-"]
Debug: Augeas[postfix-master-smtp-inet](provider=augeas): sending command
'set' with params ["/files/etc/postfix/master.cf/smtp[type = inet]/limit",
"10"]
Debug: Augeas[postfix-master-smtp-inet](provider=augeas): sending command
'set' with params ["/files/etc/postfix/master.cf/smtp[type =
inet]/command", "smtpd -o content_filter=smtptorestgw:dummy"]
Debug: Augeas[postfix-master-smtp-inet](provider=augeas): Put failed on one
or more files, output from /augeas//error:
Debug: Augeas[postfix-master-smtp-inet](provider=augeas):
/augeas/files/etc/postfix/master.cf/error = put_failed
Debug: Augeas[postfix-master-smtp-inet](provider=augeas):
/augeas/files/etc/postfix/master.cf/error/path = /files/etc/postfix/
master.cf/smtp
Debug: Augeas[postfix-master-smtp-inet](provider=augeas):
/augeas/files/etc/postfix/master.cf/error/lens =
/usr/share/augeas/lenses/dist/postfix_master.aug:39.18-47.21:
Debug: Augeas[postfix-master-smtp-inet](provider=augeas):
/augeas/files/etc/postfix/master.cf/error/message = Failed to match
    { /type/ = /inet|unix|fifo|pass/ }{ /private/ = /y|n|-/ }{
/unprivileged/ = /y|n|-/ }{ /chroot/ = /y|n|-/ }{ /wakeup/ =
/([0-9]+|-)\\??/ }{ /limit/ = /([0-9]+|-)\\??/ }{ /command/ =
/[!$,-.0-:=@-Z_a-{}]([!$,-.0-:=@-Z_a-{}]|[]"\/[]|
)*([!$,-.0-:=@-Z_a-{}]|[]"\/[])([\t ]*\n[\t
]+[!$,-.0-:=@-Z_a-{}]([!$,-.0-:=@-Z_a-{}]|[]"\/[]|
)*([!$,-.0-:=@-Z_a-{}]|[]"\/[]))*/ }
  with tree
    { "private" = "n" }
Debug: Augeas[postfix-master-smtp-inet](provider=augeas): Closed the augeas
connection
Error: /Stage[main]/custom_postfix::Sasl/Augeas[postfix-master-smtp-inet]:
Could not evaluate: Saving failed, see debug

Any ideas?

Thanks,

James

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAMH6%2BayVPziXijP1A67rubah_iE-ryski6RF8Er3z4QfD2FR0w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to