Check out this thread http://groups.google.com/group/puppet-users/browse_thread/thread/8f9f0a090c9ac235

especially the git repository mentioned in the thread.


Silviu


Derek Yarnell wrote:
So using the content => attribute on files is obviously very helpful. We are using it and templating to really do some powerful things. However, I have run into a few cases where I want to have for example have a file and then prepend or append onto it another file(s). Now I know I can redefine the content attribute however if I had say more than one file to append my logic becomes very hard to deal with. Something like this is what I wanted to do but get a error about using a private method 'split'.

class foo {

    $array = ['module/foo.erb']

    file { foobarbaz:
        content => template($array)
    }
}

class bar inherits foo {
   $array += ['module/bar.erb']
}

Anyone been trying to do something similar?

--
---
Derek T. Yarnell

------------------------------------------------------------------------

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-us...@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.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@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.


Reply via email to