Whoops! Yep that was it. :-/

The class now reads:

class proftpd::config {

  file { "/etc/proftpd.conf":
      owner => "root",
      group => "root",
      mode => 0640,
      content => template("proftpd/proftpd.conf.erb"),
      notify => Service["proftpd"],
     }

}


It's working fine now:

[root@ops:~] #puppet agent --test
Info: Loading facts in /var/lib/puppet/lib/facter/os_maj_version.rb
Info: Caching catalog for ops.mydomain.com
Info: Applying configuration version '1392134032'
Notice: /Stage[main]/Proftpd::Config/File[/etc/proftpd.conf]/ensure:
defined content as '{md5}08fcd69207dce8fa4fdc16c036e38fc0'
Info: /Stage[main]/Proftpd::Config/File[/etc/proftpd.conf]: Scheduling
refresh of Service[proftpd]
Notice: /Stage[main]/Proftpd::Service/Service[proftpd]/ensure: ensure
changed 'stopped' to 'running'
Info: /Stage[main]/Proftpd::Service/Service[proftpd]: Unscheduling refresh
on Service[proftpd]
Notice: /Stage[main]/Puppet::Service/Service[puppet]/ensure: ensure changed
'stopped' to 'running'
Info: /Stage[main]/Puppet::Service/Service[puppet]: Unscheduling refresh on
Service[puppet]
Notice: Finished catalog run in 77.16 seconds
You have mail in /var/spool/mail/root

Thanks for your help!

Tim


On Tue, Feb 11, 2014 at 10:57 AM, Ken Barber <k...@puppetlabs.com> wrote:

> > Error: Failed to apply catalog: Could not find dependent Sevice[proftpd]
> for File[/etc/proftpd.conf] at
> /etc/puppet/modules/proftpd/manifests/config.pp:9
>
> Sevice/Service ... its a typo.
>
> ken.
>
> --
> 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/CAE4bNT%3D92cdsket%2Bi%3D6dh0yjL-g6-NM41uWMdrb4C4RNk5ZcDA%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/groups/opt_out.
>



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

Reply via email to