Hi, I'm fairly new to puppet but I've been trying to create some puppet 
modules to help me maintain my various PCs/laptops at home. I have created 
the following module:

my module init.pp contains


class bleachbit {
  include bleachbit::install
  include bleachbit::cronadd
}

install.pp has

class bleachbit::install {
  package { 'bleachbit':
    ensure => installed,
    notify => Cronadd['bleachbit'],
  }
}

cronadd.pp has

class bleachbit::cronadd {
  cron { 'bleachbit':
    ensure  => present,
    command => '/usr/bin/bleachbit',
    user    => 'root',
    weekday => '*',
    minute  => '10',
    hour    => '11',
    subscribe => Package['bleachbit'],
  }
}

site.pp has 

node 'Microserver' {
    include bleachbit
    include testfile
}

when I run "puppet apply manifests" bleachbit is installed fine but the cronadd 
subclass is completely ignored. I have checked the syntax with puppet-lint
and it seems fine. Also, if create cronadd as a separate module, it works fine.

I don't understand what the problem is. Running with --debug gives no clues.

Thanks!
 




-- 
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/e19930a6-63b4-41e4-82cb-67def68d375e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to