Re: [Puppet Users] Re: is there anyway to merge two facts into single one

2014-11-26 Thread Zachary Stern
java_foundversion6_path = /u01/java/jdk1.7.0_72/jre/bin/java java_foundversion7_path = /u01/java/jdk1.7.0_72/bin/java java_foundversion8_path = /u01/java/jdk1.7.0_65/jre/bin/java java_foundversion9_path = /u01/java/jdk1.7.0_65/bin/java On Friday, November 21, 2014 1:41:16 PM UTC-5, Zachary Stern wrote: If you

[Puppet Users] Re: is there anyway to merge two facts into single one

2014-11-21 Thread Zachary Stern
If you have a fact called factA and a fact called factB, and you need factC to be a combination of both values, sure, that can be done. I don't know what version of Facter you're using, but if you're using PE 3.7 + Facter 2.2.0, you can simply use Facter.value. E.g: Facter.add(:factC) do

[Puppet Users] Re: Migrating from Puppet open-source to Puppet Enterprise

2013-11-08 Thread Zachary Stern
Puppet support engineer here. It would take some configuration tweaks to do the migration, but it should be doable. Once you're set up with a support plan, we can definitely assist you with that :) On Thursday, November 7, 2013 4:26:16 PM UTC-8, Forrie wrote: We have perhaps 40 to 50

[Puppet Users] variable usage in a string, scenario dependent?

2012-09-22 Thread Zachary Stern
Possibly stupid question - how do I know when I have to use a variable in a string like this - ${apache::params::moddir}/php.conf - or when it's safe to just do it like this - $apache::params::moddir/php.conf. It seems like sometimes I need to do the former, and other times the latter. I don't

Re: [Puppet Users] variable scoping?

2012-08-15 Thread Zachary Stern
My point was that I don't use and won't be using multiple puppet masters. Also, at my current level of puppet knowledge, Nan's code is basically meaningless to me :( On Wed, Aug 15, 2012 at 9:51 AM, jcbollinger john.bollin...@stjude.orgwrote: To use multiple Puppet masters for the same site

Re: [Puppet Users] variable scoping?

2012-08-14 Thread Zachary Stern
That's a fair point, but not applicable to my use-case (multiple puppet servers). However, at some point in the near future, I'll be using hiera, and that will be moot. On Tue, Aug 14, 2012 at 1:44 PM, Chad Huneycutt chad.huneyc...@gmail.comwrote: On Tue, Aug 14, 2012 at 11:56 AM, Zachary Alex

Re: [Puppet Users] variable scoping?

2012-08-13 Thread Zachary Stern
Ok, that's helpful, however: On Sun, Aug 12, 2012 at 8:43 AM, Eric Shamow e...@puppetlabs.com wrote: An example: suppose is this module you say $puppetmaster = myserver.local and in another module, you want to only run on a puppet master and so say $puppetmaster = true. When Puppet assembles

Re: [Puppet Users] variable scoping?

2012-08-13 Thread Zachary Stern
class puppet ( $server = $puppet::params::server ) include puppet::params { ... } If I'm already specifying scope, e.g. $server = $puppet::params::server, why do I also need the include? -- zachary alex stern I systems architect | ceo - enter: narnia o: 212.731.2033 | f:

Re: [Puppet Users] variable scoping?

2012-08-13 Thread Zachary Stern
On Mon, Aug 13, 2012 at 12:42 PM, Nan Liu n...@puppetlabs.com wrote: class puppet ( $server = $puppet::params::server ) inherits puppet::params { Still missing something here - why do I need inherits, or ANY statement at all, other than the $server = $puppet::params::server.

[Puppet Users] variable scoping?

2012-08-11 Thread Zachary Stern
I'm having a really hard time grasping how variables are scoped in puppet (not really much of a programmer). I've got a manifest that looks like this: ### class puppet::config { include puppet::params file { '/etc/puppet/puppet.conf': ensure = present, content =