Hey all,

 I'm attempting to setup some defaults to my postfix 'config' class to
require a package and request a refresh of the postfix service.

This is my class definition:

class postfix::config {
   $require = Class["postfix::install"]
   $notify = Class["postfix::service"]

   File {
      owner => "postfix",
      group => "postfix",
      mode => 0644,
    }

   file {  "/etc/postfix/master.cf":
        ensure => present,
        source => "puppet:///modules/postfix/master.cf",
    }

   file { "/etc/postfix/main.cf":
         ensure => present,
         content => template("postfix/main.cf.erb"),
    }
}


But I notice that if I create a situation where the service _should_ be
refreshed (like by moving the main.cf file out of the way and doing a
puppet run) the service is not cycled.

Can anyone point out where I'm going wrong with my syntax in this class
definition?

Thanks
Tim

-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

-- 
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/CAOZy0emL9BRjgRU%2Bag0_UZKx9G5oSm5Hx6ws9HPPqamn-6ZA8w%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to