torstai 4. huhtikuuta 2013

Puppet Template

Create a new file named templeitti.erb, write some text there "blah blah, blah" and save it. To puppet init.pp write:

file {'testfile':
      path    => '/tmp/testfile',
      ensure  => present,
   content => template("/home/xubuntu/templeitti.erb"),
    }

This creates a new file named "testfile" under /tmp folder. The file gets its contents from the template file which is originally located in /home/xubuntu/templeitti.erb

Puppet templates documentation page: Puppet Templates Documentation

Instructions

Ei kommentteja:

Lähetä kommentti