You need to "include" the class myclass somewhere. Based on the paths that you show you should be able to do that by invoking
puppet apply -e 'include myclass' Hope that helps. You may also find a quicker response to this kind of question on puppet-users instead of here on puppet-dev. This list is for the development of the puppet system itself, whereas the other list is a very large community of users of puppet who can answer these questions on using puppet. Thanks, Andy On Thu, Aug 23, 2012 at 2:06 PM, w4junos <[email protected]> wrote: > > I am new to create a puppet class that will create a test file. the testfile > is not created after I apply init.pp in the following way. Any suggestion? > thanks for your help. > > > [root@srack1-07 manifests]# puppet apply init.pp --verbose > > info: Applying configuration version '1345755240' > > > > [root@srack1-07 manifests]# pwd > > /etc/puppet/modules/myclass/manifests > > > > [root@srack1-07 manifests]# cat install.pp > > class myclass::install { > > > > file { "testfile": > > path => '/tmp/testfile', > > ensure => present, > > mode => 0640, > > content => "I'm a test file.", > > } > > > > } > > > > [root@srack1-07 manifests]# cat init.pp > > class myclass { > > include myclass::install > > } > > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Developers" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/puppet-dev/-/cVF8y4J4oDkJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/puppet-dev?hl=en. -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
