Re: [Puppet Users] Re: Access variables defined in defined type

2013-01-21 Thread Vladimir Rutsky
John, thank you for providing such complete example! I definitely will use ideas from it in my scripts. -- Vladimir Rutsky On Tue, Jan 15, 2013 at 9:43 PM, jcbollinger wrote: > > > On Tuesday, January 15, 2013 4:56:13 AM UTC-6, Vladimir Rutsky wrote: >> >> >> On Fri, Jan 11, 2013 at 6:14 PM, j

Re: [Puppet Users] Re: Access variables defined in defined type

2013-01-15 Thread jcbollinger
On Tuesday, January 15, 2013 4:56:13 AM UTC-6, Vladimir Rutsky wrote: > > > On Fri, Jan 11, 2013 at 6:14 PM, jcbollinger > > > wrote: > >> >> >> On Friday, January 11, 2013 4:45:49 AM UTC-6, Vladimir Rutsky wrote: >> >>> Can you suggest solution to my problem? >>> >>> >> >> Generally speaking,

Re: [Puppet Users] Re: Access variables defined in defined type

2013-01-15 Thread Vladimir Rutsky
On Fri, Jan 11, 2013 at 6:14 PM, jcbollinger wrote: > > > On Friday, January 11, 2013 4:45:49 AM UTC-6, Vladimir Rutsky wrote: > >> Can you suggest solution to my problem? >> >> > > Generally speaking, the Puppet way of approaching such problems is to have > all the relevant resources draw on the

Re: [Puppet Users] Re: Access variables defined in defined type

2013-01-11 Thread jcbollinger
On Friday, January 11, 2013 4:45:49 AM UTC-6, Vladimir Rutsky wrote: > > Can you suggest solution to my problem? > > Generally speaking, the Puppet way of approaching such problems is to have all the relevant resources draw on the same data, instead of some resources getting it indirectly from

Re: [Puppet Users] Re: Access variables defined in defined type

2013-01-11 Thread llowder
On Friday, January 11, 2013 4:45:49 AM UTC-6, Vladimir Rutsky wrote: > > Thank you for your reply. > > On Fri, Jan 11, 2013 at 1:06 AM, llowder >wrote: > >> >> >> On Thursday, January 10, 2013 2:53:34 PM UTC-6, Vladimir Rutsky wrote: >>> >>> Sorry, there is a typo in example: >>> >>> define pyth

Re: [Puppet Users] Re: Access variables defined in defined type

2013-01-11 Thread Vladimir Rutsky
Thank you for your reply. On Fri, Jan 11, 2013 at 1:06 AM, llowder wrote: > > > On Thursday, January 10, 2013 2:53:34 PM UTC-6, Vladimir Rutsky wrote: >> >> Sorry, there is a typo in example: >> >> define python_virtualenv( $directory ) { >> # Setup virtualenv in directory here >> ... >> >>

[Puppet Users] Re: Access variables defined in defined type

2013-01-10 Thread llowder
On Thursday, January 10, 2013 2:53:34 PM UTC-6, Vladimir Rutsky wrote: > > Sorry, there is a typo in example: > > define python_virtualenv( $directory ) { > # Setup virtualenv in directory here > ... > > $easy_install = "${directory}/bin/easy_install" > } > > And use it in this way: > > pyt

[Puppet Users] Re: Access variables defined in defined type

2013-01-10 Thread Vladimir Rutsky
Sorry, there is a typo in example: define python_virtualenv( $directory ) { # Setup virtualenv in directory here ... $easy_install = "${directory}/bin/easy_install" } And use it in this way: python_virtualenv { 'env for Django': directory => '/opt/django/env' } python_virtualenv { 'env