Hi The below is from a colleague who is trying to get puppet to create some config dir's and then within those dir's put some files. He expereinces issues where sometimes this works but mostly it does not. Is this the correct way to be trying to achieve this?
thanks -------- file { "/var/app/$serviceName/$env.env": ensure => 'directory' } file { "/var/app/$serviceName/$env.env/conf": ensure => 'directory' } file { "/var/app/$serviceName/$env.env/etc": ensure => 'directory' } file { "/var/app/$serviceName/current.env": ensure => "/var/ app/$serviceName/$env.env" } package { "$serviceName": ensure => latest } file { "/var/app/$serviceName/current.env/conf/lus- discovery.properties": content => template("$serviceName/lus- discovery.properties"), mode => 644, owner => $uid, group => $gid, replace => true, } file { "/var/app/$serviceName/current.env/etc/ component.properties": source => "puppet:///$serviceName/ component.properties", mode => 644, owner => $uid, group => $gid, replace => true, } file { "/var/app/$serviceName/current.env/etc/tomcat.sysprops": content => template("$serviceName/tomcat.sysprops"), mode => 644, owner => $uid, group => $gid, replace => true, } -------- when directories (links) do not exist it may or may not deploy the files (usually fails on the second one). dirs are always created on the first run, so if it fails and i re-run puppet, all files would be deployed. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---