Re: [Puppet Users] Configuring Networking

2009-12-16 Thread Michael Gliwinski
On Tuesday 15 December 2009 23:39:31 Douglas Garstang wrote: > And... even then I'd be requiring a definition, not a class. Is that > even valid? How would the syntax look? Definition is like a custom type so define foo() {} foo {'bar':} file {'/tmp/bar': require => Foo['bar'] } -- Michae

Re: [Puppet Users] Configuring Networking

2009-12-15 Thread Scott Smith
Douglas Garstang wrote: > b) How do you require a definition? That makes no sense. A definition is essentially just a custom resource. -scott -- 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...@goo

Re: [Puppet Users] Configuring Networking

2009-12-15 Thread Douglas Garstang
On Tue, Dec 15, 2009 at 3:59 PM, Steven VanDevender wrote: > Douglas Garstang writes: >  > On Tue, Dec 15, 2009 at 3:47 PM, Peter Meier > wrote: >  > > -BEGIN PGP SIGNED MESSAGE- >  > > Hash: SHA1 >  > > >  > >> First question... are definitions executed in the order they appear? >  > >

Re: [Puppet Users] Configuring Networking

2009-12-15 Thread Steven VanDevender
Douglas Garstang writes: > On Tue, Dec 15, 2009 at 3:47 PM, Peter Meier wrote: > > -BEGIN PGP SIGNED MESSAGE- > > Hash: SHA1 > > > >> First question... are definitions executed in the order they appear? > > > > puppet doesn't execute anything. it manages resources and defines are >

Re: [Puppet Users] Configuring Networking

2009-12-15 Thread Scott Smith
Douglas Garstang wrote: > On Tue, Dec 15, 2009 at 3:47 PM, Peter Meier wrote: >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >> >>> First question... are definitions executed in the order they appear? >> puppet doesn't execute anything. it manages resources and defines are >> resources as wel

Re: [Puppet Users] Configuring Networking

2009-12-15 Thread Douglas Garstang
On Tue, Dec 15, 2009 at 3:47 PM, Peter Meier wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > >> First question... are definitions executed in the order they appear? > > puppet doesn't execute anything. it manages resources and defines are > resources as well. Fine. Does puppet manages

Re: [Puppet Users] Configuring Networking

2009-12-15 Thread Peter Meier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > First question... are definitions executed in the order they appear? puppet doesn't execute anything. it manages resources and defines are resources as well. cheers pete -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using

Re: [Puppet Users] Configuring Networking

2009-12-15 Thread Douglas Garstang
On Tue, Dec 15, 2009 at 3:22 PM, Douglas Garstang wrote: > On Tue, Dec 15, 2009 at 3:21 PM, Scott Smith wrote: >> Douglas Garstang wrote: >>> On Tue, Dec 15, 2009 at 3:14 PM, Scott Smith wrote: Douglas Garstang wrote: > I'll trying to work out the best way to configure networking in >>>

Re: [Puppet Users] Configuring Networking

2009-12-15 Thread Douglas Garstang
On Tue, Dec 15, 2009 at 3:21 PM, Scott Smith wrote: > Douglas Garstang wrote: >> On Tue, Dec 15, 2009 at 3:14 PM, Scott Smith wrote: >>> Douglas Garstang wrote: I'll trying to work out the best way to configure networking in puppet, being routes, dns and ip addresses. >>> http://gi

Re: [Puppet Users] Configuring Networking

2009-12-15 Thread Scott Smith
Douglas Garstang wrote: > On Tue, Dec 15, 2009 at 3:14 PM, Scott Smith wrote: >> Douglas Garstang wrote: >>> I'll trying to work out the best way to configure networking in >>> puppet, being routes, dns and ip addresses. >>> >> http://github.com/ohlol/puppet-network >> >> Doesn't handle route-#{if

Re: [Puppet Users] Configuring Networking

2009-12-15 Thread Scott Smith
Scott Smith wrote: > http://github.com/ohlol/puppet-network > > Doesn't handle route-#{iface} files, but would be trivial to add. > Scratch that -- it does! :) Been a long time since I wrote that. -scott -- You received this message because you are subscribed to the Google Groups "Puppet Use

Re: [Puppet Users] Configuring Networking

2009-12-15 Thread Douglas Garstang
On Tue, Dec 15, 2009 at 3:14 PM, Scott Smith wrote: > Douglas Garstang wrote: >> I'll trying to work out the best way to configure networking in >> puppet, being routes, dns and ip addresses. >> > > http://github.com/ohlol/puppet-network > > Doesn't handle route-#{iface} files, but would be trivia

Re: [Puppet Users] Configuring Networking

2009-12-15 Thread Scott Smith
Douglas Garstang wrote: > I'll trying to work out the best way to configure networking in > puppet, being routes, dns and ip addresses. > http://github.com/ohlol/puppet-network Doesn't handle route-#{iface} files, but would be trivial to add. -scott -- You received this message because you ar

[Puppet Users] Configuring Networking

2009-12-15 Thread Douglas Garstang
I'll trying to work out the best way to configure networking in puppet, being routes, dns and ip addresses. First question... are definitions executed in the order they appear? If I put definitions way up the node hierarchy, and they are indeed executed first, I can be sure that the network will