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, }