Quantcast
Channel: Ask Puppet: Puppet DevOps Q&A Community - RSS feed
Viewing all articles
Browse latest Browse all 6104

How to create dynamic directories using virtual resources?

$
0
0
So I would like to create some directories with my puppet module. (puppet 3.8) something like /var/www/apps/app1 /var/www/apps/app2 var/www/apps/app3 etc I figured i could accomplish this by creating some virtual resources and just calling them with the resource collector. however its just not working. After spending a couple days on this I'm out of ideas. @file {[ "/var/www/apps/${title}", "/var/www/apps/${title}/shared", "/var/www/apps/${title}/shared/config",]: ensure => directory, owner => $config_owner, group => $config_group, tag => 'app_dir',1 } and call it in multiple classes like # blahblah::test { 'app1': } File <| tag == app_dir |> It hasn't worked the way I wanted it to. It only creates one directory. (/var/www/apps/app1) Am I missing something really obvious?

Viewing all articles
Browse latest Browse all 6104

Trending Articles