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

18 lines
377 B
Puppet

# 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'),
}