Permission on the files?

On Feb 11, 2014, at 10:46 AM, Tim Dunphy <bluethu...@gmail.com> wrote:

> Hey puppet,
> 
> I thought I had all my ducks in a row with this puppet module I had written 
> for proftpd. I'm attempting to get the proftpd config to notify the proftpd 
> service, but without much luck.
> 
> [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
> 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
> 
> Here's my class definitions:
> 
> class proftpd {
>   include proftpd::service, proftpd::install, proftpd::config
> 
> }
> 
> class proftpd::config {
> 
>   file { "/etc/proftpd.conf":
>       owner => "root",
>       group => "root",
>       mode => 0640,
>       content => template("proftpd/proftpd.conf.erb"),
>       notify => Sevice["proftpd"],
>      }
> 
> }
> 
> class proftpd::service {
> 
>   service { "proftpd":
>   ensure => running,
>   }
> 
> }
> 
> And just for completeness:
> 
> class proftpd::install {
> 
> 
>   package { [ "proftpd", "proftpd-mysql" ]:
>      ensure => present,
>   }
> 
> }
> 
> Again, it seems pretty straightforward to me! Can someone please let me know 
> what I may be missing? 
> 
> 
> Thanks
> 
> 
> -- 
> 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/CAOZy0ekfLnU8pyGE5kSUXDQhZ_HPwFCaGqvt0YQyaSjioaEGbQ%40mail.gmail.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

Reply via email to