somefile.pp class mumble { } class mumble::testcontents inherits mumble { file { "/tmp/testfile": path => "/tmp/testfile, ensure => present, mode => 0640, content => "I am a test file.", puppet parser validate passed it. puppet apply says it is run yet no /tmp/testfile appears the puppet master is running and this is being done on the puppet master. the agent on the puppet master is running. -- 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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/26c6e69c-76e4-4ff6-a4ed-b07aa6ae7957%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
There''s no call to invoke your class, and there''s no closing bracket on the testcontents class. I think you only need to put the closing bracket, and then outside of the class invoke it. You also don''t need inheritance. So like somefile.pp: class { ''mumble::testcontents'': } # this is your invocation class mumble {} …etc On Nov 14, 2013, at 1:46 PM, Stuart Cracraft <smcracraft@gmail.com> wrote:> > somefile.pp > > class mumble { > } > > class mumble::testcontents inherits mumble { > file { "/tmp/testfile": > path => "/tmp/testfile, > ensure => present, > mode => 0640, > content => "I am a test file.", > > > > puppet parser validate passed it. > > puppet apply says it is run > > yet no /tmp/testfile appears > > the puppet master is running and this is being done on the puppet master. > the agent on the puppet master is running. > > > -- > 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+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/26c6e69c-76e4-4ff6-a4ed-b07aa6ae7957%40googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out.-- Jo Rhett Net Consonance : net philanthropy to improve open source and internet projects. Author of Instant Puppet 3 Starter: http://www.netconsonance.com/instant-puppet-3-starter-book/ -- 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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/6AB7C545-A884-47DF-91A2-E3DC34EE52BB%40netconsonance.com. For more options, visit https://groups.google.com/groups/opt_out.
On Thursday, November 14, 2013 3:46:24 PM UTC-6, Stuart Cracraft wrote:> > > somefile.pp > > class mumble { > } > > class mumble::testcontents inherits mumble { > file { "/tmp/testfile": > path => "/tmp/testfile, > ensure => present, > mode => 0640, > content => "I am a test file.", > > > > puppet parser validate passed it. > > puppet apply says it is run > > yet no /tmp/testfile appears > > the puppet master is running and this is being done on the puppet master. > the agent on the puppet master is running. >Other than the problems Jo pointed out, it is a bit inconsistent to combine "ensure => present" with any specified ''content''. If you intend for the target to be a regular file, then you should "ensure => ''file''", and if you don''t care whether it''s a regular file then it doesn''t make sense to specify content. John -- 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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e8587c1b-6d16-4673-a972-0a9ddc01e497%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
This is all working now so it''s in good shape. Able to get it up yesterday. Good stuff! On Friday, November 15, 2013 1:27:06 AM UTC-8, Jo wrote:> There''s no call to invoke your class, and there''s no closing bracket on > the testcontents class. I think you only need to put the closing bracket, > and then outside of the class invoke it. You also don''t need inheritance. > So like > > somefile.pp: > class { ''mumble::testcontents'': } # this is your invocation > > class mumble {} > …etc > > On Nov 14, 2013, at 1:46 PM, Stuart Cracraft <smcra...@gmail.com<javascript:>> > wrote: > > > somefile.pp > > class mumble { > } > > class mumble::testcontents inherits mumble { > file { "/tmp/testfile": > path => "/tmp/testfile, > ensure => present, > mode => 0640, > content => "I am a test file.", > > > > puppet parser validate passed it. > > puppet apply says it is run > > yet no /tmp/testfile appears > > the puppet master is running and this is being done on the puppet master. > the agent on the puppet master is running. > > > -- > 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...@googlegroups.com <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/26c6e69c-76e4-4ff6-a4ed-b07aa6ae7957%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > > > -- > Jo Rhett > Net Consonance : net philanthropy to improve open source and > internet projects. > > Author of Instant Puppet 3 Starter: > http://www.netconsonance.com/instant-puppet-3-starter-book/ > > > >-- 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+unsubscribe@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/fe9ca629-e044-4dd6-a692-c0e3531023b8%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.