That's great advice!! Thank you!

Tim

Sent from my iPhone

> On Feb 11, 2014, at 11:02 AM, Rafael Cristaldo 
> <[email protected]> wrote:
> 
> Try to change your notify on config.pp
> 
> notify => Sevice["proftpd"], TO notify => Class['proftpd::service],
> 
> 
> Before running ...test all the manifests with:
> 
> # puppet parser validate init.pp | config.pp etc....
> 
> 
> 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/f3c17191-c134-4ed6-b368-43ed69ddefc3%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

-- 
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/2FD6D405-75F6-4336-94B4-320FE41D000C%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to