In my puppet manifect I want to use dirtree
function like
#don't know which syntax is right, but seems like both of them have no effect
include AlexCline/dirtree
include AlexCline_dirtree
class sw_mage_deploy {
$deploy_folder = '/var/www/html'
file { dirtree($deploy_folder):
ensure => directory,
owner => 'root',
group => 'root',
mode => 755,
}
}
And in my Modulefile I have
dependency 'AlexCline/dirtree', '>= 0.2.1'
But I'm getting an error:
==> default: Error: Unknown function dirtree at /tmp/vagrant-puppet/modules-bcfd
1f8b7eed950360c8143b9e421347/sw_mage_deploy/manifests/init.pp:15 on node vagrant
-vm
Tried this article, but it seem to be irrelevant. Because it covers class inclusion and I need method inclusion.
As a side question I would really appreciate a link to puppet tutorial for very beginners, because googling doesn't really help and all docs seem to admit some obvious knowledge minimum which I seem to miss.