1
0
Fork 0
puppet-walkthru/manifests/2-file-type.pp

19 lines
377 B
ObjectPascal
Raw Normal View History

2013-12-02 16:51:56 -05:00
# create file simple file
file { '/tmp/test1.txt':
ensure => present,
content => 'Hello',
}
# create file from existing file
file { '/tmp/test2.txt':
ensure => present,
source => '/vagrant/files/test2.txt',
}
# create file from template
$something = "Hello"
file { '/tmp/test3.txt':
ensure => present,
content => template('/vagrant/templates/test3.txt.erb'),
}