Hey 
bluethundr

Just a Good Tip! 

Every manifest created...use the 

puppet parser validate <manifest.pp>

It will show you the Syntax Errors...

Em terça-feira, 11 de fevereiro de 2014 13h46min10s UTC-2, bluethundr 
escreveu:
>
> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/a222c276-3f83-4a00-8a39-d47499c2af2d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to