Home How to: Create a directory with Puppet
Post
Cancel

How to: Create a directory with Puppet

How to create a directory with puppet

If you are creating a website you need to make sure that the directories are in the remote system before you can push the files in to them this is how you do it.

# make sure that the folder /var/www/myfolder/ 
# is in the new system, including permissions
file { "/var/www/myfolder/":
ensure => "directory",
owner => "www-data",
group => "www-data",
mode => 644,
}

 

This post is licensed under CC BY 4.0 by the author.