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.

Reply via email to