[Puppet Users] Re: how to have "multilines" ?

2009-06-20 Thread Serge LE LOUARNE
hi, Yes, a script is the better wat to do that. I know the wiki, but i have some difficulties to understand the docs (I don't read/write Easily english language ;-) ), so, i try Puppet step vy step : - I know how transfer a file, - I can make little change on a files (rigth, owner ...), - I can e

[Puppet Users] Re: how to have "multilines" ?

2009-06-20 Thread Serge LE LOUARNE
Hi, I'll try this as sonn as possible. It seem powerful ! Thanks Serge 2009/6/19 Trevor Vaughan > > Serge, > > If you want to do it this way, I would ditch the file type and do it > all in an exec: > > define install_blender ( $version, $server ) { > exec { "snarf_blender_$version": >comm

[Puppet Users] Re: how to have "multilines" ?

2009-06-20 Thread Serge LE LOUARNE
Hi, The systems (Ubuntu and Gentoo based) can support package, but, like I said before, I try to learn Puppet and i explore it ;-) The "problem" is that the systems are highly modified, and we need a tool highly "scalable" to maintain our servers. thanks for the piece of code, i'll tru it when i

[Puppet Users] new type: /etc/exports, some questions

2009-06-20 Thread Udo Waechter
Hello all. I have just started to implement my first type and a parsed-file provider for it. It is called nfs_export and it should manage nfs-exports via /etc/ exports. First, here is the type: http://pastie.org/518506 and here the parsedfile provider: http://pastie.org/518507 Now, this is

[Puppet Users] Re: exec "sudo apt-get -t unstable install rubygems" fails!

2009-06-20 Thread Peter Meier
Hi > I am trying to install the latest unstable binary of rubygems using the > following exec > > exec { "latestrubygems": >command => "sudo apt-get -t unstable install rubygems" > } > > I have the apt.conf and the sources.list file updated correctly for this > command to work. This

[Puppet Users] Re: new type: /etc/exports, some questions

2009-06-20 Thread Joe McDonagh
Udo Waechter wrote: > Hello all. > > I have just started to implement my first type and a parsed-file > provider for it. > > It is called nfs_export and it should manage nfs-exports via > /etc/exports. First, here is the type: > http://pastie.org/518506 > and here the parsedfile provider: > http

[Puppet Users] Re: exec "sudo apt-get -t unstable install rubygems" fails!

2009-06-20 Thread Joe McDonagh
Peter Meier wrote: > Hi > > >> I am trying to install the latest unstable binary of rubygems using the >> following exec >> >> exec { "latestrubygems": >>command => "sudo apt-get -t unstable install rubygems" >> } >> >> I have the apt.conf and the sources.list file updated correctly

SOLVED: Re: [Puppet Users] Re: new type: /etc/exports, some questions

2009-06-20 Thread Udo Waechter
Ok, I have the solution: The provider now creates lines where the $name ist stored as a comment, then I can use this to identify the resources. see: http://pastie.org/518507 for the working version. Thanks, udo. On 20.06.2009, at 20:19, Joe McDonagh wrote: Udo Waechter wrote: Hello all. I

[Puppet Users] Re: Making a file out of fragments

2009-06-20 Thread Udo Waechter
Hi. You could create an empty /etc/apt/sources.list Or you could use the file_splice method: http://reductivelabs.com/trac/puppet/wiki/BracketEditor We do have the standard distribution repositories in /etc/apt/ sources.list and additional contrib repositories in /etc/apt/ sources.list.d Th

[Puppet Users] Re: Making a file out of fragments

2009-06-20 Thread jchonig
On Jun 20, 4:28 pm, Udo Waechter wrote: > Hi. > > You could create an empty /etc/apt/sources.list I would actually like this file to be build from the contents I provide. I have local mirrors of the Ubuntu repositories (for binaries), so I want to override this file. Plus, if it is correct, mo

[Puppet Users] Re: Making a file out of fragments

2009-06-20 Thread Robin Sheat
On Sunday 21 June 2009 14:53:14 jchonig wrote: > I think I could do what I wanted by building a bunch of files into a > temp directory and then cattting them to /etc/apt/sources.list. But > I'm wondring if there is an easier way. Put files into /etc/apt/sources.d? Apt does support wildcard inclu

[Puppet Users] Re: Making a file out of fragments

2009-06-20 Thread Scott Smith
jchonig wrote: > I think I could do what I wanted by building a bunch of files into a > temp directory and then cattting them to /etc/apt/sources.list. But > I'm wondring if there is an easier way. > David Schmitt wrote a recipe for this, check out his `common' module (hint: look for concatena