Re: [Puppet Users] Glassfish automatic installation in Puppet

2013-02-26 Thread Nikola Petrov
Not sure if this will help you at all but you can try the yes[1]
command.

Try to change your exec to:

exec { 'glassfishInstaExe':
command = '/usr/bin/yes | /usr/bin/java -Xmx256m -jar 
/gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar',
cwd = '/gx/mnt/software/Vidispine/Components',
}



[1] http://en.wikipedia.org/wiki/Yes_(Unix)


-- 
Nikola

On Tue, Feb 26, 2013 at 12:22:18AM -0800, Jithin Xavier wrote:
 Hi All,
 
 Can any one help to install my jar file automatically,
 
 When I tried to install /usr/bin/java -Xmx256m -jar 
 /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar,its
  
 is asking for confirmation like Accept or Decline? [A,D,a,d]. So how can I 
 pass answer with command.
 
 Please find my puppet code below
 
   exec { 'glassfishInstaExe':
command = /usr/bin/java -Xmx256m -jar 
 /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar,
cwd = /gx/mnt/software/Vidispine/Components,
 }
 
 Thanks,
 Jxavier
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
 
 

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Glassfish automatic installation in Puppet

2013-02-26 Thread Jithin Xavier
Thanks Nikola,

for some reason its not working.. I am getting this error now

err: /Stage[main]/Vidispine/Exec[glassfishInstaExe]/returns: change from
notrun to 0 failed: /usr/bin/yes | /usr/bin/java -Xmx256m -jar
/gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar
returned 1 instead of one of [0] at
/etc/puppetlabs/puppet/modules/vidispine/manifests/init.pp:17.

Thanks,
Jithin



On Tue, Feb 26, 2013 at 2:04 PM, Nikola Petrov nikol...@gmail.com wrote:

 Not sure if this will help you at all but you can try the yes[1]
 command.

 Try to change your exec to:

 exec { 'glassfishInstaExe':
 command = '/usr/bin/yes | /usr/bin/java -Xmx256m -jar
 /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar',
 cwd = '/gx/mnt/software/Vidispine/Components',
 }



 [1] http://en.wikipedia.org/wiki/Yes_(Unix)


 --
 Nikola

 On Tue, Feb 26, 2013 at 12:22:18AM -0800, Jithin Xavier wrote:
  Hi All,
 
  Can any one help to install my jar file automatically,
 
  When I tried to install /usr/bin/java -Xmx256m -jar
 
 /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar,its
  is asking for confirmation like Accept or Decline? [A,D,a,d]. So how can
 I
  pass answer with command.
 
  Please find my puppet code below
 
exec { 'glassfishInstaExe':
 command = /usr/bin/java -Xmx256m -jar
 
 /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar,
 cwd = /gx/mnt/software/Vidispine/Components,
  }
 
  Thanks,
  Jxavier
 
  --
  You received this message because you are subscribed to the Google
 Groups Puppet Users group.
  To unsubscribe from this group and stop receiving emails from it, send
 an email to puppet-users+unsubscr...@googlegroups.com.
  To post to this group, send email to puppet-users@googlegroups.com.
  Visit this group at http://groups.google.com/group/puppet-users?hl=en.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 

 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.





-- 
-Regards
Jithin Xavier
+91-9739505163
Skype- jithinxavi
in.linkedin.com/in/jithinxavier/

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Glassfish automatic installation in Puppet

2013-02-26 Thread Nikola Petrov
Please run the command outside of puppet or run puppet with 

--debug --trace 

to see what failed. Error status code of 1 can be anything on
earth ;)

-- 
Nikola

On Tue, Feb 26, 2013 at 02:56:18PM +0530, Jithin Xavier wrote:
 Thanks Nikola,
 
 for some reason its not working.. I am getting this error now
 
 err: /Stage[main]/Vidispine/Exec[glassfishInstaExe]/returns: change from
 notrun to 0 failed: /usr/bin/yes | /usr/bin/java -Xmx256m -jar
 /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar
 returned 1 instead of one of [0] at
 /etc/puppetlabs/puppet/modules/vidispine/manifests/init.pp:17.
 
 Thanks,
 Jithin
 
 
 
 On Tue, Feb 26, 2013 at 2:04 PM, Nikola Petrov nikol...@gmail.com wrote:
 
  Not sure if this will help you at all but you can try the yes[1]
  command.
 
  Try to change your exec to:
 
  exec { 'glassfishInstaExe':
  command = '/usr/bin/yes | /usr/bin/java -Xmx256m -jar
  /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar',
  cwd = '/gx/mnt/software/Vidispine/Components',
  }
 
 
 
  [1] http://en.wikipedia.org/wiki/Yes_(Unix)
 
 
  --
  Nikola
 
  On Tue, Feb 26, 2013 at 12:22:18AM -0800, Jithin Xavier wrote:
   Hi All,
  
   Can any one help to install my jar file automatically,
  
   When I tried to install /usr/bin/java -Xmx256m -jar
  
  /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar,its
   is asking for confirmation like Accept or Decline? [A,D,a,d]. So how can
  I
   pass answer with command.
  
   Please find my puppet code below
  
 exec { 'glassfishInstaExe':
  command = /usr/bin/java -Xmx256m -jar
  
  /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar,
  cwd = /gx/mnt/software/Vidispine/Components,
   }
  
   Thanks,
   Jxavier
  
   --
   You received this message because you are subscribed to the Google
  Groups Puppet Users group.
   To unsubscribe from this group and stop receiving emails from it, send
  an email to puppet-users+unsubscr...@googlegroups.com.
   To post to this group, send email to puppet-users@googlegroups.com.
   Visit this group at http://groups.google.com/group/puppet-users?hl=en.
   For more options, visit https://groups.google.com/groups/opt_out.
  
  
 
  --
  You received this message because you are subscribed to the Google Groups
  Puppet Users group.
  To unsubscribe from this group and stop receiving emails from it, send an
  email to puppet-users+unsubscr...@googlegroups.com.
  To post to this group, send email to puppet-users@googlegroups.com.
  Visit this group at http://groups.google.com/group/puppet-users?hl=en.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 
 
 
 
 -- 
 -Regards
 Jithin Xavier
 +91-9739505163
 Skype- jithinxavi
 in.linkedin.com/in/jithinxavier/
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
 
 

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: package download using manifest

2013-02-26 Thread Mamta Garg
Hi JIthin,

Thanks for your reply!
I need to install package on my one of the window agent So could you please
tell me ,in 'distention' option i should give puppet master path or
window's location?

Also i have created a splunk.pp file inside wget\manifests\splunk.pp and
added as below.


class wget::splunk{
wget::fetch{Universal Forwarder:
  source=
https://www.splunk.com/page/download_track?file=5.0.2/universalforwarder/windows/splunkforwarder-5.0.2-149561-x64-release.msiplatform=Windowsarchitecture=x86_64version=5.0.2typed=releasename=windows_installerd=proelq=e5468912-3573-4b8c-b5db-6d582b318e88
,
  destination=etc/sourceSplunk,
timeout=0,
}
}

then added below in init.pp file-


class wget{ include wget::splunk}

After adding above when i am running this on my window agent ,showing below
error.



Could you please guide me?


On Tue, Feb 26, 2013 at 3:14 AM, Jithin Xavier jithin.xavi...@gmail.comwrote:

 Hi Garg,

 Yes, you can download package using manifests,

 Step1: You have to download wget from puppet labs(if you are using
 enterprise version, can run this command - puppet module insttall
 maestrodev/wget (https://github.com/maestrodev/puppet-wget/))
 Step2: After install yo can see that package in your
 /etc/puppetlabs/puppet/modules.
 Step3: Inside manifest you can create your custom classes like this ,

 class wget::clssName{
  wget::fetch { packageName:
source = url,
destination = destination,
timeout = 0,
}
 }

 Thanks
 Jxavier



 On Tuesday, 26 February 2013 12:10:25 UTC+5:30, Mamta Garg wrote:

 Hi All,

 Can anyone please tell me if we can download package from website using
 puppet manifests?
 If yes,could you please provide me a example.
 i


 --
 Thanks and Regards,
 Mamta Garg

  --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Thanks and Regards,
Mamta Garg

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] applying condition for a module

2013-02-26 Thread Felix Frank
Hi,

then make sure to specify a creates parameter such as

exec { wget http://... -O/var/cache/jdk.bin:
  creates = /var/cache/jdk.bin;
}

HTH,
Felix

On 02/25/2013 05:51 AM, yarlagadda ramya wrote:
 Hi..,
 
 Am not using file...m using exec and in that wget command..

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Glassfish automatic installation in Puppet

2013-02-26 Thread Jithin Xavier
This command /usr/bin/yes | /usr/bin/java -Xmx256m -jar
/gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar
--debug --trace not giving me any useful information.

Glassfish installation is asking for, *Accept or Decline? [A,D,a,d]*.. So
we wanted to answer this question.

is there anyway to answer for this through command line?

Thanks,
Jithin





On Tue, Feb 26, 2013 at 3:01 PM, Nikola Petrov nikol...@gmail.com wrote:

 Please run the command outside of puppet or run puppet with

 --debug --trace

 to see what failed. Error status code of 1 can be anything on
 earth ;)

 --
 Nikola

 On Tue, Feb 26, 2013 at 02:56:18PM +0530, Jithin Xavier wrote:
  Thanks Nikola,
 
  for some reason its not working.. I am getting this error now
 
  err: /Stage[main]/Vidispine/Exec[glassfishInstaExe]/returns: change from
  notrun to 0 failed: /usr/bin/yes | /usr/bin/java -Xmx256m -jar
 
 /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar
  returned 1 instead of one of [0] at
  /etc/puppetlabs/puppet/modules/vidispine/manifests/init.pp:17.
 
  Thanks,
  Jithin
 
 
 
  On Tue, Feb 26, 2013 at 2:04 PM, Nikola Petrov nikol...@gmail.com
 wrote:
 
   Not sure if this will help you at all but you can try the yes[1]
   command.
  
   Try to change your exec to:
  
   exec { 'glassfishInstaExe':
   command = '/usr/bin/yes | /usr/bin/java -Xmx256m -jar
  
 /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar',
   cwd = '/gx/mnt/software/Vidispine/Components',
   }
  
  
  
   [1] http://en.wikipedia.org/wiki/Yes_(Unix)
  
  
   --
   Nikola
  
   On Tue, Feb 26, 2013 at 12:22:18AM -0800, Jithin Xavier wrote:
Hi All,
   
Can any one help to install my jar file automatically,
   
When I tried to install /usr/bin/java -Xmx256m -jar
   
  
 /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar,its
is asking for confirmation like Accept or Decline? [A,D,a,d]. So how
 can
   I
pass answer with command.
   
Please find my puppet code below
   
  exec { 'glassfishInstaExe':
   command = /usr/bin/java -Xmx256m -jar
   
  
 /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar,
   cwd = /gx/mnt/software/Vidispine/Components,
}
   
Thanks,
Jxavier
   
--
You received this message because you are subscribed to the Google
   Groups Puppet Users group.
To unsubscribe from this group and stop receiving emails from it,
 send
   an email to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at
 http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
   
   
  
   --
   You received this message because you are subscribed to the Google
 Groups
   Puppet Users group.
   To unsubscribe from this group and stop receiving emails from it, send
 an
   email to puppet-users+unsubscr...@googlegroups.com.
   To post to this group, send email to puppet-users@googlegroups.com.
   Visit this group at http://groups.google.com/group/puppet-users?hl=en.
   For more options, visit https://groups.google.com/groups/opt_out.
  
  
  
 
 
  --
  -Regards
  Jithin Xavier
  +91-9739505163
  Skype- jithinxavi
  in.linkedin.com/in/jithinxavier/
 
  --
  You received this message because you are subscribed to the Google
 Groups Puppet Users group.
  To unsubscribe from this group and stop receiving emails from it, send
 an email to puppet-users+unsubscr...@googlegroups.com.
  To post to this group, send email to puppet-users@googlegroups.com.
  Visit this group at http://groups.google.com/group/puppet-users?hl=en.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Puppet Users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/puppet-users/0i1ChNoJSKA/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.





-- 
-Regards
Jithin Xavier
+91-9739505163
Skype- jithinxavi
in.linkedin.com/in/jithinxavier/

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: package download using manifest

2013-02-26 Thread Jithin Xavier
Mamtha,


Destination should be your agent server path. Did you install wget from
Puppet,then only this will work for you. And no  need add any entry on your
init.pp file.


On Tue, Feb 26, 2013 at 3:36 PM, Mamta Garg itsmamta.b...@gmail.com wrote:

 Hi JIthin,

 Thanks for your reply!
 I need to install package on my one of the window agent So could you
 please tell me ,in 'distention' option i should give puppet master path or
 window's location?

 Also i have created a splunk.pp file inside wget\manifests\splunk.pp and
 added as below.


 class wget::splunk{
 wget::fetch{Universal Forwarder:
   source=
 https://www.splunk.com/page/download_track?file=5.0.2/universalforwarder/windows/splunkforwarder-5.0.2-149561-x64-release.msiplatform=Windowsarchitecture=x86_64version=5.0.2typed=releasename=windows_installerd=proelq=e5468912-3573-4b8c-b5db-6d582b318e88
 ,
   destination=etc/sourceSplunk,
 timeout=0,
 }
 }

 then added below in init.pp file-


 class wget{ include wget::splunk}

 After adding above when i am running this on my window agent ,showing
 below error.



 Could you please guide me?



 On Tue, Feb 26, 2013 at 3:14 AM, Jithin Xavier 
 jithin.xavi...@gmail.comwrote:

 Hi Garg,

 Yes, you can download package using manifests,

 Step1: You have to download wget from puppet labs(if you are using
 enterprise version, can run this command - puppet module insttall
 maestrodev/wget (https://github.com/maestrodev/puppet-wget/))
 Step2: After install yo can see that package in your
 /etc/puppetlabs/puppet/modules.
 Step3: Inside manifest you can create your custom classes like this ,

 class wget::clssName{
  wget::fetch { packageName:
source = url,
destination = destination,
timeout = 0,
}
 }

 Thanks
 Jxavier



 On Tuesday, 26 February 2013 12:10:25 UTC+5:30, Mamta Garg wrote:

 Hi All,

 Can anyone please tell me if we can download package from website using
 puppet manifests?
 If yes,could you please provide me a example.
 i


 --
 Thanks and Regards,
 Mamta Garg

  --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.






 --
 Thanks and Regards,
 Mamta Garg

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Puppet Users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/puppet-users/mvHXlwSB0Xk/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 puppet-users+unsubscr...@googlegroups.com.

 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
-Regards
Jithin Xavier
+91-9739505163
Skype- jithinxavi
in.linkedin.com/in/jithinxavier/

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Intermittent Erorr 400 on Server messages

2013-02-26 Thread Matthew Burgess
On Mon, Feb 25, 2013 at 9:03 PM, Jagga Soorma jagg...@gmail.com wrote:
 Hi Guys,

 I am running puppet server version 3.0.2-1 on a RHEL 5.8 virtual machine
 with about 110 clients.  I am seeing intermittent errors with my clients
 that are failing with the following error messages:

Intermittent errors with a large(ish) number of clients hints to me
straight away that you could be running into issues with Puppet's HTTP
server, Webrick.  If you're not running puppet behind Apache with
mod_passenger, or Nginx with Unicorn, I'd suggest you look into those.
 Webrick is single-threaded, so depending on the timing of your
client's checkins, you can easily overload it, leading to the issues
you're seeing.

Regards,

Matt.

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: package download using manifest

2013-02-26 Thread Mamta Garg
 I have installed wget module from puppet on my puppet master
(linux-centOS) using command - puppet module insttall maestrodev/wget.
 Do i need to install wget on my window agent also as i need to do
installation on window agent?

Please reply!

On Tue, Feb 26, 2013 at 5:13 AM, Jithin Xavier jithin.xavi...@gmail.comwrote:

 Mamtha,


 Destination should be your agent server path. Did you install wget from
 Puppet,then only this will work for you. And no  need add any entry on your
 init.pp file.


 On Tue, Feb 26, 2013 at 3:36 PM, Mamta Garg itsmamta.b...@gmail.comwrote:

 Hi JIthin,

 Thanks for your reply!
 I need to install package on my one of the window agent So could you
 please tell me ,in 'distention' option i should give puppet master path or
 window's location?

 Also i have created a splunk.pp file inside wget\manifests\splunk.pp and
 added as below.


 class wget::splunk{
 wget::fetch{Universal Forwarder:
   source=
 https://www.splunk.com/page/download_track?file=5.0.2/universalforwarder/windows/splunkforwarder-5.0.2-149561-x64-release.msiplatform=Windowsarchitecture=x86_64version=5.0.2typed=releasename=windows_installerd=proelq=e5468912-3573-4b8c-b5db-6d582b318e88
 ,
   destination=etc/sourceSplunk,
 timeout=0,
 }
 }

 then added below in init.pp file-


 class wget{ include wget::splunk}

 After adding above when i am running this on my window agent ,showing
 below error.



 Could you please guide me?



 On Tue, Feb 26, 2013 at 3:14 AM, Jithin Xavier 
 jithin.xavi...@gmail.comwrote:

 Hi Garg,

 Yes, you can download package using manifests,

 Step1: You have to download wget from puppet labs(if you are using
 enterprise version, can run this command - puppet module insttall
 maestrodev/wget (https://github.com/maestrodev/puppet-wget/))
 Step2: After install yo can see that package in your
 /etc/puppetlabs/puppet/modules.
 Step3: Inside manifest you can create your custom classes like this ,

 class wget::clssName{
  wget::fetch { packageName:
source = url,
destination = destination,
timeout = 0,
}
 }

 Thanks
 Jxavier



 On Tuesday, 26 February 2013 12:10:25 UTC+5:30, Mamta Garg wrote:

 Hi All,

 Can anyone please tell me if we can download package from website using
 puppet manifests?
 If yes,could you please provide me a example.
 i


 --
 Thanks and Regards,
 Mamta Garg

  --
 You received this message because you are subscribed to the Google
 Groups Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.






 --
 Thanks and Regards,
 Mamta Garg

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Puppet Users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/puppet-users/mvHXlwSB0Xk/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 puppet-users+unsubscr...@googlegroups.com.

 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.






 --
 -Regards
 Jithin Xavier
 +91-9739505163
 Skype- jithinxavi
 in.linkedin.com/in/jithinxavier/

   --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Thanks and Regards,
Mamta Garg

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: package download using manifest

2013-02-26 Thread Jithin Xavier
Yes, you should do. If you are using Puppet enterprise version,you should
add wget claas to your agent(and splunk).

Thanks,
Jithin


On Tue, Feb 26, 2013 at 3:49 PM, Mamta Garg itsmamta.b...@gmail.com wrote:

  I have installed wget module from puppet on my puppet master
 (linux-centOS) using command - puppet module insttall maestrodev/wget.
  Do i need to install wget on my window agent also as i need to do
 installation on window agent?

 Please reply!


 On Tue, Feb 26, 2013 at 5:13 AM, Jithin Xavier 
 jithin.xavi...@gmail.comwrote:

 Mamtha,


 Destination should be your agent server path. Did you install wget from
 Puppet,then only this will work for you. And no  need add any entry on your
 init.pp file.


 On Tue, Feb 26, 2013 at 3:36 PM, Mamta Garg itsmamta.b...@gmail.comwrote:

 Hi JIthin,

 Thanks for your reply!
 I need to install package on my one of the window agent So could you
 please tell me ,in 'distention' option i should give puppet master path or
 window's location?

 Also i have created a splunk.pp file inside wget\manifests\splunk.pp and
 added as below.


 class wget::splunk{
 wget::fetch{Universal Forwarder:
   source=
 https://www.splunk.com/page/download_track?file=5.0.2/universalforwarder/windows/splunkforwarder-5.0.2-149561-x64-release.msiplatform=Windowsarchitecture=x86_64version=5.0.2typed=releasename=windows_installerd=proelq=e5468912-3573-4b8c-b5db-6d582b318e88
 ,
   destination=etc/sourceSplunk,
 timeout=0,
 }
 }

 then added below in init.pp file-


 class wget{ include wget::splunk}

 After adding above when i am running this on my window agent ,showing
 below error.



 Could you please guide me?



 On Tue, Feb 26, 2013 at 3:14 AM, Jithin Xavier jithin.xavi...@gmail.com
  wrote:

 Hi Garg,

 Yes, you can download package using manifests,

 Step1: You have to download wget from puppet labs(if you are using
 enterprise version, can run this command - puppet module insttall
 maestrodev/wget (https://github.com/maestrodev/puppet-wget/))
 Step2: After install yo can see that package in your
 /etc/puppetlabs/puppet/modules.
 Step3: Inside manifest you can create your custom classes like this ,

 class wget::clssName{
  wget::fetch { packageName:
source = url,
destination = destination,
timeout = 0,
}
 }

 Thanks
 Jxavier



 On Tuesday, 26 February 2013 12:10:25 UTC+5:30, Mamta Garg wrote:

 Hi All,

 Can anyone please tell me if we can download package from website
 using puppet manifests?
 If yes,could you please provide me a example.
 i


 --
 Thanks and Regards,
 Mamta Garg

  --
 You received this message because you are subscribed to the Google
 Groups Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send
 an email to puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.






 --
 Thanks and Regards,
 Mamta Garg

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Puppet Users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/puppet-users/mvHXlwSB0Xk/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 puppet-users+unsubscr...@googlegroups.com.

 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.






 --
 -Regards
 Jithin Xavier
 +91-9739505163
 Skype- jithinxavi
 in.linkedin.com/in/jithinxavier/

   --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.






 --
 Thanks and Regards,
 Mamta Garg

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Puppet Users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/puppet-users/mvHXlwSB0Xk/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
-Regards
Jithin Xavier
+91-9739505163
Skype- jithinxavi
in.linkedin.com/in/jithinxavier/

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe 

RE: [Puppet Users] dependencies between nodes

2013-02-26 Thread GRANIER Bernard (MORPHO)
Hi,

Thanks for the answer, I understand that with exported resources, I can create 
interactions between nodes.

But If I understood your suggestion, on node b I will get the file defined on 
node a : great.

But does this implicitly mean that all resources on node b will wait that the 
file is created ? Or how do I define a require link between the classes define 
on node b ?

May I write something like that :
node a {
 # Do this when the DB is installed
 @@file { /tmp/dbdone.txt: content = Woo, DB installed!\n, tag 
= dbdone, } 
}

node b {
 File | tag == dbdone |

Pakackage{'jboss':
require = [ File| tag == dbdone |], 
}
}

Cordialement,

Bernard Granier
CE Plateforme Système
bernard.gran...@morpho.com
01 58 11 32 51

-Original Message-
From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On 
Behalf Of Kyle Sexton
Sent: Thursday, February 21, 2013 9:25 PM
To: puppet-users@googlegroups.com
Subject: Re: [Puppet Users] dependencies between nodes

GRANIER Bernard (MORPHO) bernard.gran...@morpho.com writes:

 Hi,

 I need to describe dependencies between nodes, for example, to be sure 
 that database is deployed on one node before deploying web application 
 on another node.


I haven't messed with inter-dependent nodes yet, but exported resources might 
fit the bill.  Something like:

,
| node a {
| # Do this when the DB is installed
| @@file { /tmp/dbdone.txt: content = Woo, DB installed!\n, tag 
| = dbdone, } }
|
| node b {
| File | tag == 'foofile' |
| }
`


Then if /tmp/dbdone.txt is on nodeb it's safe to install?  Again, haven't tried 
this but potentially worth looking at.  No matter what I'm curious what the 
solution is.


--
Kyle Sexton

--
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


#
 This e-mail and any attached documents may contain confidential or 
proprietary information. If you are not the intended recipient, you are 
notified that any dissemination, copying of this e-mail and any attachments 
thereto or use of their contents by any means whatsoever is strictly 
prohibited. If you have received this e-mail in error, please advise the sender 
immediately and delete this e-mail and all attached documents from your 
computer system.
#

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Glassfish automatic installation in Puppet

2013-02-26 Thread Nikola Petrov
Well check the same command (yes) and it's man page

yes A | shell-script

should give you what you want

-- 
Nikola

On Tue, Feb 26, 2013 at 03:37:50PM +0530, Jithin Xavier wrote:
 This command /usr/bin/yes | /usr/bin/java -Xmx256m -jar
 /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar
 --debug --trace not giving me any useful information.
 
 Glassfish installation is asking for, *Accept or Decline? [A,D,a,d]*.. So
 we wanted to answer this question.
 
 is there anyway to answer for this through command line?
 
 Thanks,
 Jithin
 
 
 
 
 
 On Tue, Feb 26, 2013 at 3:01 PM, Nikola Petrov nikol...@gmail.com wrote:
 
  Please run the command outside of puppet or run puppet with
 
  --debug --trace
 
  to see what failed. Error status code of 1 can be anything on
  earth ;)
 
  --
  Nikola
 
  On Tue, Feb 26, 2013 at 02:56:18PM +0530, Jithin Xavier wrote:
   Thanks Nikola,
  
   for some reason its not working.. I am getting this error now
  
   err: /Stage[main]/Vidispine/Exec[glassfishInstaExe]/returns: change from
   notrun to 0 failed: /usr/bin/yes | /usr/bin/java -Xmx256m -jar
  
  /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar
   returned 1 instead of one of [0] at
   /etc/puppetlabs/puppet/modules/vidispine/manifests/init.pp:17.
  
   Thanks,
   Jithin
  
  
  
   On Tue, Feb 26, 2013 at 2:04 PM, Nikola Petrov nikol...@gmail.com
  wrote:
  
Not sure if this will help you at all but you can try the yes[1]
command.
   
Try to change your exec to:
   
exec { 'glassfishInstaExe':
command = '/usr/bin/yes | /usr/bin/java -Xmx256m -jar
   
  /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar',
cwd = '/gx/mnt/software/Vidispine/Components',
}
   
   
   
[1] http://en.wikipedia.org/wiki/Yes_(Unix)
   
   
--
Nikola
   
On Tue, Feb 26, 2013 at 12:22:18AM -0800, Jithin Xavier wrote:
 Hi All,

 Can any one help to install my jar file automatically,

 When I tried to install /usr/bin/java -Xmx256m -jar

   
  /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar,its
 is asking for confirmation like Accept or Decline? [A,D,a,d]. So how
  can
I
 pass answer with command.

 Please find my puppet code below

   exec { 'glassfishInstaExe':
command = /usr/bin/java -Xmx256m -jar

   
  /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar,
cwd = /gx/mnt/software/Vidispine/Components,
 }

 Thanks,
 Jxavier

 --
 You received this message because you are subscribed to the Google
Groups Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it,
  send
an email to puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at
  http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.


   
--
You received this message because you are subscribed to the Google
  Groups
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send
  an
email to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
   
   
   
  
  
   --
   -Regards
   Jithin Xavier
   +91-9739505163
   Skype- jithinxavi
   in.linkedin.com/in/jithinxavier/
  
   --
   You received this message because you are subscribed to the Google
  Groups Puppet Users group.
   To unsubscribe from this group and stop receiving emails from it, send
  an email to puppet-users+unsubscr...@googlegroups.com.
   To post to this group, send email to puppet-users@googlegroups.com.
   Visit this group at http://groups.google.com/group/puppet-users?hl=en.
   For more options, visit https://groups.google.com/groups/opt_out.
  
  
 
  --
  You received this message because you are subscribed to a topic in the
  Google Groups Puppet Users group.
  To unsubscribe from this topic, visit
  https://groups.google.com/d/topic/puppet-users/0i1ChNoJSKA/unsubscribe?hl=en
  .
  To unsubscribe from this group and all its topics, send an email to
  puppet-users+unsubscr...@googlegroups.com.
  To post to this group, send email to puppet-users@googlegroups.com.
  Visit this group at http://groups.google.com/group/puppet-users?hl=en.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 
 
 
 
 -- 
 -Regards
 Jithin Xavier
 +91-9739505163
 Skype- jithinxavi
 in.linkedin.com/in/jithinxavier/
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To 

RE: [Puppet Users] dependencies between nodes

2013-02-26 Thread GRANIER Bernard (MORPHO)
Hi,

Anothoer point about dependencies between nodes, is it possible to say that an 
exported resources requires another one ?

If I used the example given by kyle :
node a {
 # Do this when the DB is installed
 @@file { /tmp/dbdone.txt: content = Woo, DB installed!\n, tag = 
dbdone, } }

node b {
 File | tag == dbdone |

Pakackage{'jboss':
require = [ File| tag == dbdone |], } }

I want to export the resource file only if db installation success otherwise 
not.


Cordialement,

Bernard Granier
CE Plateforme Système
bernard.gran...@morpho.com
01 58 11 32 51


-Original Message-
From: GRANIER Bernard (MORPHO) 
Sent: Tuesday, February 26, 2013 12:09 PM
To: puppet-users@googlegroups.com
Subject: RE: [Puppet Users] dependencies between nodes

Hi,

Thanks for the answer, I understand that with exported resources, I can create 
interactions between nodes.

But If I understood your suggestion, on node b I will get the file defined on 
node a : great.

But does this implicitly mean that all resources on node b will wait that the 
file is created ? Or how do I define a require link between the classes define 
on node b ?

May I write something like that :
node a {
 # Do this when the DB is installed
 @@file { /tmp/dbdone.txt: content = Woo, DB installed!\n, tag = 
dbdone, } }

node b {
 File | tag == dbdone |

Pakackage{'jboss':
require = [ File| tag == dbdone |], } }

Cordialement,

Bernard Granier
CE Plateforme Système
bernard.gran...@morpho.com
01 58 11 32 51

-Original Message-
From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On 
Behalf Of Kyle Sexton
Sent: Thursday, February 21, 2013 9:25 PM
To: puppet-users@googlegroups.com
Subject: Re: [Puppet Users] dependencies between nodes

GRANIER Bernard (MORPHO) bernard.gran...@morpho.com writes:

 Hi,

 I need to describe dependencies between nodes, for example, to be sure 
 that database is deployed on one node before deploying web application 
 on another node.


I haven't messed with inter-dependent nodes yet, but exported resources might 
fit the bill.  Something like:

,
| node a {
| # Do this when the DB is installed
| @@file { /tmp/dbdone.txt: content = Woo, DB installed!\n, tag 
| = dbdone, } }
|
| node b {
| File | tag == 'foofile' |
| }
`


Then if /tmp/dbdone.txt is on nodeb it's safe to install?  Again, haven't tried 
this but potentially worth looking at.  No matter what I'm curious what the 
solution is.


--
Kyle Sexton

--
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


#
 This e-mail and any attached documents may contain confidential or 
proprietary information. If you are not the intended recipient, you are 
notified that any dissemination, copying of this e-mail and any attachments 
thereto or use of their contents by any means whatsoever is strictly 
prohibited. If you have received this e-mail in error, please advise the sender 
immediately and delete this e-mail and all attached documents from your 
computer system.
#

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: distributing updates to multiple puppet masters (Subversion)

2013-02-26 Thread davidemccormick
We use puppet and a module called vcsdeploy to deploy our modules to the 
puppet masters using a puppet run on the puppetmaster.  We insist that all 
modules are tagged and so our nodes file fotr the puppetmaster node looks 
like this: -

node 'puppetmaster' {

  # ONLY DEPLOY tagged versions to TEST!!!
  Vcsdeploy {
source= 
'http://svnserver.practicalclouds.com/repos/puppet/modules/%%NAME%%/tags/%%VERSION%%',
path  = '/etc/puppet/environments/test/modules/%%NAME%%',
provider  = 'svn',
user  = 'user',
pass  = '##',
templates = 'off',
  }
  vcsdeploy {  'centrify':
version = '1.7',
  }
  vcsdeploy {  'wamps_repository':
version = '1.1',
  }
  vcsdeploy { 'weblogic':
version = '4.5',
  }
  vcsdeploy { 'motd':
version = '1.0',
  }
  vcsdeploy { 'ntp_client':
version = '1.0',
  }

You can find out more about vcsdeploy either on the puppet 
forge http://forge.puppetlabs.com/pclouds/vcsdeploy or 
here http://www.practicalclouds.com/content/guide/pclouds-vcsdeploy-deploy-stuff

regards



Dave

On Wednesday, May 2, 2012 3:18:28 PM UTC+1, Scott Merrill wrote:

 For folks with multiple Puppet Masters, how are you pushing out 
 manifest and module updates to them? 

 We intend to use Subversion for our version control. Obviously one 
 option would be to have each Puppet Master perform a checkout of the 
 svn repo. We could schedule periodic updates via cron. Or we could use 
 a post-commit hook to rsync the updates out from the repo to each 
 Puppet Master. 

 What are you doing? What works well, and what headaches have you 
 experienced? 

 Thanks, 
 Scott 


-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: .erb templates are not properly parsed.

2013-02-26 Thread jcbollinger


On Monday, February 25, 2013 6:51:10 AM UTC-6, Felix.Frank wrote:

 On 02/22/2013 07:19 PM, jcbollinger wrote: 
  So finally my conclusion is that when you declase a node, includes 
  order matters. 
  
  
  Yes, it does. 

 ...but I'd argue that this should not be your final conclusion. 



Oh, I agree.  I don't know whether you followed the whole thread, but my 
recommendation was always to solve the issue in a way that was independent 
of parse order.  I suggested two general approaches to the problem and one 
specific implementation.  I decided that the conversation was no longer 
worth my time when the OP discovered parse-order sensitivity some nine 
(combined) messages after I told him that was his problem in my first 
response to him.


John

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: .erb templates are not properly parsed.

2013-02-26 Thread Felix Frank
On 02/26/2013 03:04 PM, jcbollinger wrote:
 Oh, I agree.  I don't know whether you followed the whole thread, but my
 recommendation was always to solve the issue in a way that was
 independent of parse order.  I suggested two general approaches to the
 problem and one specific implementation.  I decided that the
 conversation was no longer worth my time when the OP discovered
 parse-order sensitivity some nine (combined) messages after I told him
 that was his problem in my first response to him.

Right. I guess what I was more or less trying to say was - it should
have been done as was suggested (by you), not in yet a hodgepodge way
that was found to be working in the end.

Cheers,
Felix

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: .erb templates are not properly parsed.

2013-02-26 Thread Marc Bolós
So, your suggestion at the end, is better avoid doing that at all.

Now I was very happy to have it working. The only issue I found was on the
order declaring classes. I think maybe they should try to fix this, because
you can make more powerful and automated declarations this way.

Thanks a lot all for your suggestions.

2013/2/26 Felix Frank felix.fr...@alumni.tu-berlin.de

 On 02/26/2013 03:04 PM, jcbollinger wrote:
  Oh, I agree.  I don't know whether you followed the whole thread, but my
  recommendation was always to solve the issue in a way that was
  independent of parse order.  I suggested two general approaches to the
  problem and one specific implementation.  I decided that the
  conversation was no longer worth my time when the OP discovered
  parse-order sensitivity some nine (combined) messages after I told him
  that was his problem in my first response to him.

 Right. I guess what I was more or less trying to say was - it should
 have been done as was suggested (by you), not in yet a hodgepodge way
 that was found to be working in the end.

 Cheers,
 Felix

 --
 You received this message because you are subscribed to a topic in the
 Google Groups Puppet Users group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/puppet-users/kGrRmzTo_oY/unsubscribe?hl=en
 .
 To unsubscribe from this group and all its topics, send an email to
 puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.





-- 
The computer security is an art form. It's the ultimate martial art.

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Using a variable in another variable name

2013-02-26 Thread Ti Leggett
Is there a good way to check that the fact in question actually exists prior to 
doing an eval? Doing the below when there is no 'my_lan1' fact produces an 
error.

On Feb 21, 2013, at 10:51 AM, windowsrefund windowsref...@gmail.com wrote:

 
 %= eval macaddress_ + my_lan1 %
 
 That will return the appropriate fact based on the value of my_lan1
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] puppet-dashboard-1.2.22 - unable to get it running under Apache/Passenger

2013-02-26 Thread Tom Blich
Do you know where I might be able to change where it's looking for the 
specific rack version for 1.1.0?

Thanks,
Tom


On Friday, February 22, 2013 5:29:59 PM UTC-8, Matt wrote:

 It looks like its trying to use a specific rack gem version but you do 
 not have that version installed or you have two versions installed and 
 its picking up the latest. It could be that you also have another 
 passenger application where the versions conflict? 

 (can't activate rack (~ 1.1.0, runtime) for [], already activated 
 rack-1.5.2 for []) (process 8729, thread #Thread:0x7fed2a6fc358): 

 On Fri, Feb 22, 2013 at 7:17 PM, Tom Blich bunk...@gmail.comjavascript: 
 wrote: 
  Had puppet-dashboard-1.2.21 running via instructions provided here: 
  
  http://docs.puppetlabs.com/dashboard/passenger.html 
  
  Upgraded to puppet-dashboard-1.2.22 and now get the following error: 
  
[ pid=8729 thr=70328297972140 file=utils.rb:176 time=2013-02-22 
  19:12:17.188 ]: *** Exception RuntimeError in 
  PhusionPassenger::Rack::ApplicationSpawner (can't activate rack (~ 
 1.1.0, 
  runtime) for [], already activated rack-1.5.2 for []) (process 8729, 
 thread 
  #Thread:0x7fed2a6fc358): 
  from ./config/../vendor/rails/railties/lib/initializer.rb:271:in 
  `require_frameworks' 
  from ./config/../vendor/rails/railties/lib/initializer.rb:134:in 
 `process' 
  from ./config/../vendor/rails/railties/lib/initializer.rb:113:in `send' 
  from ./config/../vendor/rails/railties/lib/initializer.rb:113:in `run' 
  from ./config/environment.rb:14 
  from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in 
  `gem_original_require' 
  from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in 
 `require' 
  from config.ru:4 
  from /usr/lib/ruby/gems/1.8/gems/rack-1.5.2/lib/rack/builder.rb:55:in 
  `instance_eval' 
  from /usr/lib/ruby/gems/1.8/gems/rack-1.5.2/lib/rack/builder.rb:55:in 
  `initialize' 
  from config.ru:1:in `new' 
  from config.ru:1 
  [Fri Feb 22 19:12:46 2013] [notice] caught SIGTERM, shutting down 
  [Fri Feb 22 19:13:37 2013] [warn] Init: Session Cache is not configured 
  [hint: SSLSessionCache] 
  [Fri Feb 22 19:13:37 2013] [notice] suEXEC mechanism enabled (wrapper: 
  /usr/sbin/suexec) 
  [Fri Feb 22 19:13:37 2013] [warn] module php5_module is already loaded, 
  skipping 
  [Fri Feb 22 19:13:37 2013] [notice] Digest: generating secret for digest 
  authentication ... 
  [Fri Feb 22 19:13:37 2013] [notice] Digest: done 
  [Fri Feb 22 19:13:37 2013] [notice] Apache/2.2.15 (Unix) DAV/2 
  Phusion_Passenger/3.0.19 PHP/5.3.20 mod_ssl/2.2.15 OpenSSL/1.0.0-fips 
  configured -- resuming normal operations 
  
  Not sure how to fix it. 
  
  Thanks, 
  Tom 
  
  -- 
  You received this message because you are subscribed to the Google 
 Groups 
  Puppet Users group. 
  To unsubscribe from this group and stop receiving emails from it, send 
 an 
  email to puppet-users...@googlegroups.com javascript:. 
  To post to this group, send email to 
  puppet...@googlegroups.comjavascript:. 

  Visit this group at http://groups.google.com/group/puppet-users?hl=en. 
  For more options, visit https://groups.google.com/groups/opt_out. 
  
  


-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] puppet-dashboard-1.2.22 - unable to get it running under Apache/Passenger

2013-02-26 Thread Ramin K
I'm guessing you're installing gems since everything looks very up to 
date. Try the following.


sudo gem install rack --version 1.1.6

Then restart Apache. If you still have problems you can try removing all 
versions of Rack that are not 1.1.6, assuming that Puppet and Puppet 
dashboard are the only Rack applications on this machine. I'd test this 
in a maintenance window just in case.


Ramin

On 2/26/2013 9:39 AM, Tom Blich wrote:

Do you know where I might be able to change where it's looking for the
specific rack version for 1.1.0?

Thanks,
Tom


On Friday, February 22, 2013 5:29:59 PM UTC-8, Matt wrote:

It looks like its trying to use a specific rack gem version but you do
not have that version installed or you have two versions installed and
its picking up the latest. It could be that you also have another
passenger application where the versions conflict?

(can't activate rack (~ 1.1.0, runtime) for [], already activated
rack-1.5.2 for []) (process 8729, thread #Thread:0x7fed2a6fc358):

On Fri, Feb 22, 2013 at 7:17 PM, Tom Blich bunk...@gmail.com
javascript: wrote:
  Had puppet-dashboard-1.2.21 running via instructions provided here:
 
  http://docs.puppetlabs.com/dashboard/passenger.html
http://docs.puppetlabs.com/dashboard/passenger.html
 
  Upgraded to puppet-dashboard-1.2.22 and now get the following error:
 
[ pid=8729 thr=70328297972140 file=utils.rb:176 time=2013-02-22
  19:12:17.188 ]: *** Exception RuntimeError in
  PhusionPassenger::Rack::ApplicationSpawner (can't activate rack
(~ 1.1.0,
  runtime) for [], already activated rack-1.5.2 for []) (process
8729, thread
  #Thread:0x7fed2a6fc358):
  from ./config/../vendor/rails/railties/lib/initializer.rb:271:in
  `require_frameworks'
  from ./config/../vendor/rails/railties/lib/initializer.rb:134:in
`process'
  from ./config/../vendor/rails/railties/lib/initializer.rb:113:in
`send'
  from ./config/../vendor/rails/railties/lib/initializer.rb:113:in
`run'
  from ./config/environment.rb:14
  from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
  `gem_original_require'
  from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
  from config.ru:4 http://config.ru:4
  from
/usr/lib/ruby/gems/1.8/gems/rack-1.5.2/lib/rack/builder.rb:55:in
  `instance_eval'
  from
/usr/lib/ruby/gems/1.8/gems/rack-1.5.2/lib/rack/builder.rb:55:in
  `initialize'
  from config.ru:1:in `new'
  from config.ru:1 http://config.ru:1
  [Fri Feb 22 19:12:46 2013] [notice] caught SIGTERM, shutting down
  [Fri Feb 22 19:13:37 2013] [warn] Init: Session Cache is not
configured
  [hint: SSLSessionCache]
  [Fri Feb 22 19:13:37 2013] [notice] suEXEC mechanism enabled
(wrapper:
  /usr/sbin/suexec)
  [Fri Feb 22 19:13:37 2013] [warn] module php5_module is already
loaded,
  skipping
  [Fri Feb 22 19:13:37 2013] [notice] Digest: generating secret for
digest
  authentication ...
  [Fri Feb 22 19:13:37 2013] [notice] Digest: done
  [Fri Feb 22 19:13:37 2013] [notice] Apache/2.2.15 (Unix) DAV/2
  Phusion_Passenger/3.0.19 PHP/5.3.20 mod_ssl/2.2.15
OpenSSL/1.0.0-fips
  configured -- resuming normal operations
 
  Not sure how to fix it.
 
  Thanks,
  Tom
 
  --
  You received this message because you are subscribed to the
Google Groups
  Puppet Users group.
  To unsubscribe from this group and stop receiving emails from it,
send an
  email to puppet-users...@googlegroups.com javascript:.
  To post to this group, send email to puppet...@googlegroups.com
javascript:.
  Visit this group at
http://groups.google.com/group/puppet-users?hl=en
http://groups.google.com/group/puppet-users?hl=en.
  For more options, visit https://groups.google.com/groups/opt_out
https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google
Groups Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send
an email to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




--
You received this message because you are subscribed to the Google Groups Puppet 
Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




RE: [Puppet Users] dependencies between nodes

2013-02-26 Thread GRANIER Bernard (MORPHO)
Hi,

To use exported ressources, I choice to install mysql and I modify puppet.conf, 
adding :
storeconfigs = true
dbadapter = mysql
dbuser = puppet
   dbpassword = a password
dbserver = localhost
dbsocket = /var/run/mysqld/mysqld.sock

Then I run : /etc/init.d/puppetmaster restart

And on client I have the following error :
Warning: Error 400 on SERVER: Could not retrieve facts for agent fqdn: 
Could not autoload puppet/indirector/facts/active_record: uninitialized 
constant ActiveRecord

Does some one knows what's happened ?

Cordialement,

Bernard Granier
CE Plateforme Système
bernard.gran...@morpho.commailto:bernard.gran...@morpho.com
01 58 11 32 51

From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On 
Behalf Of Peter Brown
Sent: Friday, February 22, 2013 2:49 AM
To: puppet-users
Subject: Re: [Puppet Users] dependencies between nodes

On 22 February 2013 06:24, Kyle Sexton 
k...@mocker.orgmailto:k...@mocker.org wrote:
GRANIER Bernard (MORPHO) 
bernard.gran...@morpho.commailto:bernard.gran...@morpho.com writes:

 Hi,

 I need to describe dependencies between nodes, for example,
 to be sure that database is deployed on one node before
 deploying web application on another node.

I haven't messed with inter-dependent nodes yet, but exported resources
might fit the bill.  Something like:


I agree with Kyle.

This seems like the best way to achieve this sort of node interdependence.


,
| node a {
| # Do this when the DB is installed
| @@file { /tmp/dbdone.txt: content = Woo, DB installed!\n, tag = 
dbdone, }
| }
|
| node b {
| File | tag == 'foofile' |
| }
`


Then if /tmp/dbdone.txt is on nodeb it's safe to install?  Again,
haven't tried this but potentially worth looking at.  No matter what I'm
curious what the solution is.


--
Kyle Sexton

--
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
puppet-users+unsubscr...@googlegroups.commailto:puppet-users%2bunsubscr...@googlegroups.com.
To post to this group, send email to 
puppet-users@googlegroups.commailto:puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


--
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
puppet-users+unsubscr...@googlegroups.commailto:puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to 
puppet-users@googlegroups.commailto:puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


#
 This e-mail and any attached documents may contain confidential or 
proprietary information. If you are not the intended recipient, you are 
notified that any dissemination, copying of this e-mail and any attachments 
thereto or use of their contents by any means whatsoever is strictly 
prohibited. If you have received this e-mail in error, please advise the sender 
immediately and delete this e-mail and all attached documents from your 
computer system.
#

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Intermittent Erorr 400 on Server messages

2013-02-26 Thread Jagga Soorma
Thanks for your response Matthew.  I will try to enable
apache/mod_passenger with puppet and see if that helps.  Would I need to
change anything on the clients in order to make this change on the puppet
master?

Thanks again.

On Tue, Feb 26, 2013 at 2:18 AM, Matthew Burgess 
matthew.2.burg...@gmail.com wrote:

 On Mon, Feb 25, 2013 at 9:03 PM, Jagga Soorma jagg...@gmail.com wrote:
  Hi Guys,
 
  I am running puppet server version 3.0.2-1 on a RHEL 5.8 virtual machine
  with about 110 clients.  I am seeing intermittent errors with my clients
  that are failing with the following error messages:

 Intermittent errors with a large(ish) number of clients hints to me
 straight away that you could be running into issues with Puppet's HTTP
 server, Webrick.  If you're not running puppet behind Apache with
 mod_passenger, or Nginx with Unicorn, I'd suggest you look into those.
  Webrick is single-threaded, so depending on the timing of your
 client's checkins, you can easily overload it, leading to the issues
 you're seeing.

 Regards,

 Matt.

 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Puppet dynamically handle ssl registration re-registration

2013-02-26 Thread yngmike
Hello everybody.
 
I'm new to the group and I'm trying to do something a little different here.
 
Puppet Master: CentOS 6.3 running puppet-server-2.7.14-2.1
Clients: CentOS 6.3 (puppet-2.6.17-2.el6.noarch)  SLES 11.2(puppet 
2.7.14-2.1)
 
I am trying to configure puppet in a very dynamic way. Nodes are not 
defined in nodes.conf and each client is configured soley by facts that 
define the role of the node.
Certificate autosigning is turned on. 
I am trying to automate the rollout of 50k clients. The clients will not 
have DNS entries available at the time puppet first runs, but will have 
DNS  sometime an hour or so later.
During the build process the client picks a psuedo random hostname to 
register to puppet with.
 
I am trying to figure out a solution that would be totally programatic for 
registration/re-registration and be tolerant to client hostname changes.
 
Current issues: 
 

   - If the client ssl cert is removed from the puppet master (and 
   puppetmasterd is restarted), the client must rm -rf /var/lib/puppet and 
   re-run to get a valid cert
   - if /var/lib/puppet is removed and the ssl certificate still lives on 
   the puppet master the client cannot re-register until the cert is removed 
   from the master

Essentially I will never be using jabber or remote commands so I don't 
really care what the systems are called, if one stops working I will just 
replace it with a fresh working build.
I need each system to be able to register/re-register no matter if an entry 
exists on the puppet master or the local private key gets wiped out. This 
would be so I can guarantee that the puppet agent will continue to run if 
its hostname changes, or the local caches need to be wiped programatically 
to fix a stuck puppet run.
 
I'm sure this issue has come up before but I can't find anything useful on 
google results. I understand that these requirements are in place for 
security reasons, but that is not as much of a concern in this particular 
implementation (thing 50k dumb nodes that perform simple tasks). I would 
prefer a more secure method, but it doesn't seem that puppet is tolerant to 
dynamic nodes that might move around (regularly).
 
Any ideas?
 
Thanks,
 
-Mike
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Puppet 3.1.0 Execution hanging

2013-02-26 Thread Olivier Trempe
Hello,

I wrote a little hello world script and I am a little concerned by 
execution hanging for a long time at specific steps.

*Computer:*
Windows XP Professional Service Pack 3
Intel(R) Xeon(R) CPU
W3550 @ 3.07GHz
3.07GHz, 3.50 GB of RAM
Puppet 3.1.0
Ruby 1.8.7

*init.pp:*
class hello
{
notice('Hello world!')
}

*command line:*
puppet apply --debug -e 'include hello'

*output:*
*Hangs ~12 seconds here before printing first debug line*
Debug: importing 'K:/Code/puppet/modules/hello/manifests/init.pp' in 
environment production
Debug: Automatically imported hello from hello into production
Notice: Scope(Class[Hello]): Hello world!
Debug: Creating default schedules
Debug: Failed to load library 'selinux' for feature 'selinux'
Debug: Using settings: adding file resource 'requestdir': 
'File[C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/etc/ssl/certificate_requests]{:loglevel=:debug, 
:ensure=:directory, :links=:follow, :backup=false, :path=C:/Documents 
and Settings/All Users/Application 
Data/PuppetLabs/puppet/etc/ssl/certificate_requests}'
Debug: Using settings: adding file resource 'client_datadir': 
'File[C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/client_data]{:loglevel=:debug, 
:ensure=:directory, :links=:follow, :mode=750, :backup=false, 
:path=C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/client_data}'
Debug: Using settings: adding file resource 'hostprivkey': 
'File[C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/etc/ssl/private_keys/###..net.pem]{:loglevel=:debug,
 
:ensure=:file, :links=:follow, :mode=600, :backup=false, 
:path=C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/etc/ssl/private_keys/###..net.pem}'
Debug: Using settings: adding file resource 'vardir': 'File[C:/Documents 
and Settings/All Users/Application 
Data/PuppetLabs/puppet/var]{:loglevel=:debug, :ensure=:directory, 
:links=:follow, :backup=false, :path=C:/Documents and Settings/All 
Users/Application Data/PuppetLabs/puppet/var}'
Debug: Using settings: adding file resource 'statedir': 'File[C:/Documents 
and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/state]{:loglevel=:debug, :ensure=:directory, 
:links=:follow, :mode=1755, :backup=false, :path=C:/Documents and 
Settings/All Users/Application Data/PuppetLabs/puppet/var/state}'
Debug: Using settings: adding file resource 'rundir': 'File[C:/Documents 
and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/run]{:loglevel=:debug, :ensure=:directory, 
:links=:follow, :mode=1777, :backup=false, :path=C:/Documents and 
Settings/All Users/Application Data/PuppetLabs/puppet/var/run}'
Debug: Using settings: adding file resource 'ssldir': 'File[C:/Documents 
and Settings/All Users/Application 
Data/PuppetLabs/puppet/etc/ssl]{:loglevel=:debug, :ensure=:directory, 
:links=:follow, :mode=771, :backup=false, :path=C:/Documents and 
Settings/All Users/Application Data/PuppetLabs/puppet/etc/ssl}'
Debug: Using settings: adding file resource 'privatekeydir': 
'File[C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/etc/ssl/private_keys]{:loglevel=:debug, 
:ensure=:directory, :links=:follow, :mode=750, :backup=false, 
:path=C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/etc/ssl/private_keys}'
Debug: Using settings: adding file resource 'plugindest': 
'File[C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/lib]{:loglevel=:debug, :ensure=:directory, 
:links=:follow, :backup=false, :path=C:/Documents and Settings/All 
Users/Application Data/PuppetLabs/puppet/var/lib}'
Debug: Using settings: adding file resource 'statefile': 'File[C:/Documents 
and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/state/state.yaml]{:loglevel=:debug, 
:ensure=:file, :links=:follow, :mode=660, :backup=false, 
:path=C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/state/state.yaml}'
Debug: Using settings: adding file resource 'clientbucketdir': 
'File[C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/clientbucket]{:loglevel=:debug, 
:ensure=:directory, :links=:follow, :mode=750, :backup=false, 
:path=C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/clientbucket}'
Debug: Using settings: adding file resource 'hostpubkey': 
'File[C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/etc/ssl/public_keys/###..net.pem]{:loglevel=:debug,
 
:ensure=:file, :links=:follow, :mode=644, :backup=false, 
:path=C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/etc/ssl/public_keys/###..net.pem}'
Debug: Using settings: adding file resource 'logdir': 'File[C:/Documents 
and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/log]{:loglevel=:debug, :ensure=:directory, 
:links=:follow, :mode=750, 

[Puppet Users] Re: Intermittent Erorr 400 on Server messages

2013-02-26 Thread Alex Vaqué Brull
I think that you have the puppet modules, manifest or templates with some 
mistake. 

Try to create a easy hello world with Puppet.

El dilluns 25 de febrer de 2013 22:03:18 UTC+1, Jagga Soorma va escriure:

 Hi Guys,

 I am running puppet server version 3.0.2-1 on a RHEL 5.8 virtual machine 
 with about 110 clients.  I am seeing intermittent errors with my clients 
 that are failing with the following error messages:

 --
 Could not retrieve catalog from remote server: Error 400 on SERVER: Could 
 not find class motd for xxx on node xxx
 --

 If I login to that host which failed and manually run a puppet agent -t 
 it finishes without any error messages.  These errors are intermittent but 
 have caused corruption of my passwd file since I also manage that via 
 puppet.  This message shows up for different servers with different classes 
 in the error message.  I have looked at my classes and I don't see any 
 problems with it.  Any idea what might be causing this problem?

 Any help would be greatly appreciated.

 Thanks!
 -J


-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Puppet execution hangs for long periods of time

2013-02-26 Thread Olivier Trempe
Hi,

I wrote a little hello world script and I am a little concerned by 
execution that hangs for long periods of time.

*computer:*
Windows XP Professional Service Pack 3
Intel(R) Xeon(R) CPU
W3550 @ 3.07GHz
3.07GHz, 3.50 GB of RAM

*init.pp:*
class hello
{
notice('Hello world!')
}

*command line:*
puppet apply --debug -e 'include hello'

*output:*
*Execution hangs ~12 seconds before printing first debug log line*
Debug: importing 'K:/Code/puppet/modules/hello/manifests/init.pp' in 
environment production
Debug: Automatically imported hello from hello into production
Notice: Scope(Class[Hello]): Hello world!
Debug: Creating default schedules
Debug: Failed to load library 'selinux' for feature 'selinux'
Debug: Using settings: adding file resource 'requestdir': 
'File[C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/etc/ssl/certificate_requests]{:loglevel=:debug, 
:ensure=:directory, :links=:follow, :backup=false, :path=C:/Documents 
and Settings/All Users/Application 
Data/PuppetLabs/puppet/etc/ssl/certificate_requests}'
Debug: Using settings: adding file resource 'client_datadir': 
'File[C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/client_data]{:loglevel=:debug, 
:ensure=:directory, :links=:follow, :mode=750, :backup=false, 
:path=C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/client_data}'
Debug: Using settings: adding file resource 'hostprivkey': 
'File[C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/etc/ssl/private_keys/###..net.pem]{:loglevel=:debug,
 
:ensure=:file, :links=:follow, :mode=600, :backup=false, 
:path=C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/etc/ssl/private_keys/###..net.pem}'
Debug: Using settings: adding file resource 'vardir': 'File[C:/Documents 
and Settings/All Users/Application 
Data/PuppetLabs/puppet/var]{:loglevel=:debug, :ensure=:directory, 
:links=:follow, :backup=false, :path=C:/Documents and Settings/All 
Users/Application Data/PuppetLabs/puppet/var}'
Debug: Using settings: adding file resource 'statedir': 'File[C:/Documents 
and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/state]{:loglevel=:debug, :ensure=:directory, 
:links=:follow, :mode=1755, :backup=false, :path=C:/Documents and 
Settings/All Users/Application Data/PuppetLabs/puppet/var/state}'
Debug: Using settings: adding file resource 'rundir': 'File[C:/Documents 
and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/run]{:loglevel=:debug, :ensure=:directory, 
:links=:follow, :mode=1777, :backup=false, :path=C:/Documents and 
Settings/All Users/Application Data/PuppetLabs/puppet/var/run}'
Debug: Using settings: adding file resource 'ssldir': 'File[C:/Documents 
and Settings/All Users/Application 
Data/PuppetLabs/puppet/etc/ssl]{:loglevel=:debug, :ensure=:directory, 
:links=:follow, :mode=771, :backup=false, :path=C:/Documents and 
Settings/All Users/Application Data/PuppetLabs/puppet/etc/ssl}'
Debug: Using settings: adding file resource 'privatekeydir': 
'File[C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/etc/ssl/private_keys]{:loglevel=:debug, 
:ensure=:directory, :links=:follow, :mode=750, :backup=false, 
:path=C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/etc/ssl/private_keys}'
Debug: Using settings: adding file resource 'plugindest': 
'File[C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/lib]{:loglevel=:debug, :ensure=:directory, 
:links=:follow, :backup=false, :path=C:/Documents and Settings/All 
Users/Application Data/PuppetLabs/puppet/var/lib}'
Debug: Using settings: adding file resource 'statefile': 'File[C:/Documents 
and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/state/state.yaml]{:loglevel=:debug, 
:ensure=:file, :links=:follow, :mode=660, :backup=false, 
:path=C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/state/state.yaml}'
Debug: Using settings: adding file resource 'clientbucketdir': 
'File[C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/clientbucket]{:loglevel=:debug, 
:ensure=:directory, :links=:follow, :mode=750, :backup=false, 
:path=C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/clientbucket}'
Debug: Using settings: adding file resource 'hostpubkey': 
'File[C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/etc/ssl/public_keys/###..net.pem]{:loglevel=:debug,
 
:ensure=:file, :links=:follow, :mode=644, :backup=false, 
:path=C:/Documents and Settings/All Users/Application 
Data/PuppetLabs/puppet/etc/ssl/public_keys/###..net.pem}'
Debug: Using settings: adding file resource 'logdir': 'File[C:/Documents 
and Settings/All Users/Application 
Data/PuppetLabs/puppet/var/log]{:loglevel=:debug, :ensure=:directory, 
:links=:follow, :mode=750, :backup=false, 

[Puppet Users] Re: Rubygems 2.0.0 removed argument

2013-02-26 Thread matthias
Looks like there is a bug report for it.

http://projects.puppetlabs.com/issues/19140

On Monday, February 25, 2013 9:31:24 AM UTC-8, matthias wrote:

 I recently upgraded one of our puppet agent servers to use rubygems 2.0.0. 
  When I run 'puppet agent --test' after the upgrade it complains that there 
 is an invalid option with using --include-dependencies switch (output 
 below).  Is there a way to pass arguments to puppet when using gem as the 
 package installer to use another argument?

 Eg. output

 [root@vm1 ~]# puppet agent --test
 Info: Retrieving plugin
 Info: Loading facts in /var/lib/puppet/lib/facter/rvm_installed.rb
 Info: Caching catalog for vm1.example.com
 Info: Applying configuration version '1361808741'
 Error: Could not update: Execution of '/usr/bin/gem install 
 --include-dependencies --no-rdoc --no-ri bson' returned 1: ERROR:  While 
 executing gem ... (OptionParser::InvalidOption)
 invalid option: --include-dependencies

 Error: /Stage[main]/Base::Centos6/Package[bson]/ensure: change from 
 [1.8.2, 1.8.1, 1.8.0, 1.7.1, 1.7.0] to 1.8.2 ruby java failed: 
 Could not update: Execution of '/usr/bin/gem install --include-dependencies 
 --no-rdoc --no-ri bson' returned 1: ERROR:  While executing gem ... 
 (OptionParser::InvalidOption)
 invalid option: --include-dependencies

 Error: Could not update: Execution of '/usr/bin/gem install 
 --include-dependencies --no-rdoc --no-ri json' returned 1: ERROR:  While 
 executing gem ... (OptionParser::InvalidOption)
 invalid option: --include-dependencies

 Error: /Stage[main]/Base::Centos6/Package[json]/ensure: change from 
 [1.7.7] to 1.7.7 ruby java failed: Could not update: Execution of 
 '/usr/bin/gem install --include-dependencies --no-rdoc --no-ri json' 
 returned 1: ERROR:  While executing gem ... (OptionParser::InvalidOption)
 invalid option: --include-dependencies

 Notice: Finished catalog run in 15.45 seconds


 Somehow it looks hard coded into the gem.rb file

   def install(useversion = true)
 command = [command(:gemcmd), install]
 command  -v  resource[:ensure] if (! resource[:ensure].is_a? 
 Symbol) and useversion
 # Always include dependencies
 command  --include-dependencies


 Thanks,
 Matthew 



-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] puppet-dashboard-1.2.22 - unable to get it running under Apache/Passenger

2013-02-26 Thread Ramin K

~ 1.1.0 matches 1.1.x

Dashboard 1.2.22 is responding to these CVEs from 
http://rack.github.com/ and 1.1.6 is the one that has the fix.


Ramin

On 2/26/2013 9:55 AM, Tom Blich wrote:

Well, based on the error, wouldn't I need to install rack 1.1.0? I
don't understand ruby all that well yet.

My confusion is why 1.2.21 is working just fine, but 1.2.22 is not.


On Tuesday, February 26, 2013 9:47:17 AM UTC-8, Ramin K wrote:

I'm guessing you're installing gems since everything looks very up to
date. Try the following.

sudo gem install rack --version 1.1.6

Then restart Apache. If you still have problems you can try removing
all
versions of Rack that are not 1.1.6, assuming that Puppet and Puppet
dashboard are the only Rack applications on this machine. I'd test this
in a maintenance window just in case.

Ramin

On 2/26/2013 9:39 AM, Tom Blich wrote:
  Do you know where I might be able to change where it's looking
for the
  specific rack version for 1.1.0?
 
  Thanks,
  Tom
 
 
  On Friday, February 22, 2013 5:29:59 PM UTC-8, Matt wrote:
 
  It looks like its trying to use a specific rack gem version
but you do
  not have that version installed or you have two versions
installed and
  its picking up the latest. It could be that you also have
another
  passenger application where the versions conflict?
 
  (can't activate rack (~ 1.1.0, runtime) for [], already
activated
  rack-1.5.2 for []) (process 8729, thread
#Thread:0x7fed2a6fc358):
 
  On Fri, Feb 22, 2013 at 7:17 PM, Tom Blich bunk...@gmail.com
  javascript: wrote:
Had puppet-dashboard-1.2.21 running via instructions
provided here:
   
http://docs.puppetlabs.com/dashboard/passenger.html
http://docs.puppetlabs.com/dashboard/passenger.html
  http://docs.puppetlabs.com/dashboard/passenger.html
http://docs.puppetlabs.com/dashboard/passenger.html
   
Upgraded to puppet-dashboard-1.2.22 and now get the
following error:
   
  [ pid=8729 thr=70328297972140 file=utils.rb:176
time=2013-02-22
19:12:17.188 ]: *** Exception RuntimeError in
PhusionPassenger::Rack::ApplicationSpawner (can't activate
rack
  (~ 1.1.0,
runtime) for [], already activated rack-1.5.2 for [])
(process
  8729, thread
#Thread:0x7fed2a6fc358):
from
./config/../vendor/rails/railties/lib/initializer.rb:271:in
`require_frameworks'
from
./config/../vendor/rails/railties/lib/initializer.rb:134:in
  `process'
from
./config/../vendor/rails/railties/lib/initializer.rb:113:in
  `send'
from
./config/../vendor/rails/railties/lib/initializer.rb:113:in
  `run'
from ./config/environment.rb:14
from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
  `require'
from config.ru:4 http://config.ru:4 http://config.ru:4
from
  /usr/lib/ruby/gems/1.8/gems/rack-1.5.2/lib/rack/builder.rb:55:in
`instance_eval'
from
  /usr/lib/ruby/gems/1.8/gems/rack-1.5.2/lib/rack/builder.rb:55:in
`initialize'
from config.ru:1:in `new'
from config.ru:1 http://config.ru:1 http://config.ru:1
[Fri Feb 22 19:12:46 2013] [notice] caught SIGTERM,
shutting down
[Fri Feb 22 19:13:37 2013] [warn] Init: Session Cache is not
  configured
[hint: SSLSessionCache]
[Fri Feb 22 19:13:37 2013] [notice] suEXEC mechanism enabled
  (wrapper:
/usr/sbin/suexec)
[Fri Feb 22 19:13:37 2013] [warn] module php5_module is
already
  loaded,
skipping
[Fri Feb 22 19:13:37 2013] [notice] Digest: generating
secret for
  digest
authentication ...
[Fri Feb 22 19:13:37 2013] [notice] Digest: done
[Fri Feb 22 19:13:37 2013] [notice] Apache/2.2.15 (Unix)
DAV/2
Phusion_Passenger/3.0.19 PHP/5.3.20 mod_ssl/2.2.15
  OpenSSL/1.0.0-fips
configured -- resuming normal operations
   
Not sure how to fix it.
   
Thanks,
Tom
   
--
You received this message because you are subscribed to the
  Google Groups
Puppet Users group.
To unsubscribe from this group and stop receiving emails
from it,
  send an
email to puppet-users...@googlegroups.com javascript:.
To post to this group, send email to
puppet...@googlegroups.com

[Puppet Users] Long puppet catalog run times on certain nodes after using pson is called

2013-02-26 Thread r.yeo
Running the agent in debug mode on a some clients and I am seeing long run 
times such as this, but only after the using pson lines :

Tue Feb 26 10:57:38 2013: Debug: file_metadata supports formats: 
b64_zlib_yaml pson raw yaml; using pson
Tue Feb 26 10:58:53 2013: Info: 
/Stage[main]/Vpn::Config/File[/opt/cisco/vpn/.anyconnect_global]: Evaluated 
in 75.03 seconds

Tue Feb 26 10:58:53 2013: Debug: file_metadata supports formats: 
b64_zlib_yaml pson raw yaml; using pson
Tue Feb 26 11:00:08 2013: Info: 
/Stage[main]/Amadeuspro/File[/etc/puppet/tmp/com.HairerSoft.AmadeusPro.plist]: 
Evaluated in 74.78 seconds
Tue Feb 26 11:00:08 2013: Info: 
/Stage[main]/Adobe/File[/etc/puppet/tmp/com.adobe.Reader.plist]: Starting 
to evaluate the resource
Tue Feb 26 11:00:08 2013: Debug: file_metadata supports formats: 
b64_zlib_yaml pson raw yaml; using pson
Tue Feb 26 11:01:23 2013: Info: 
/Stage[main]/Adobe/File[/etc/puppet/tmp/com.adobe.Reader.plist]: Evaluated 
in 75.00 seconds

Tue Feb 26 11:01:23 2013: Debug: file_metadata supports formats: 
b64_zlib_yaml pson raw yaml; using pson
Tue Feb 26 11:02:38 2013: Info: 
/Stage[main]/Puppet::Snow/File[/etc/hooks/cleanpup.pl]: Evaluated in 75.01 
seconds

This catalog took 921.02 to complete :

Tue Feb 26 11:02:38 2013: Notice: Finished catalog run in 916.78 seconds
Tue Feb 26 11:02:38 2013: Changes:
Tue Feb 26 11:02:38 2013: Events:
Tue Feb 26 11:02:38 2013: Resources:
Tue Feb 26 11:02:38 2013: Total: 55
Tue Feb 26 11:02:38 2013:   Skipped: 6
Tue Feb 26 11:02:38 2013: Time:
Tue Feb 26 11:02:38 2013:Filebucket: 0.00
Tue Feb 26 11:02:38 2013:   Package: 0.00
Tue Feb 26 11:02:38 2013:Ssh authorized key: 0.00
Tue Feb 26 11:02:38 2013:  User: 0.06
Tue Feb 26 11:02:38 2013: Group: 0.11
Tue Feb 26 11:02:38 2013:  Exec: 0.59
Tue Feb 26 11:02:38 2013:Config retrieval: 13.28
Tue Feb 26 11:02:38 2013:  Last run: 1361901758
Tue Feb 26 11:02:38 2013:  File: 906.98
Tue Feb 26 11:02:38 2013: Total: 921.02
Tue Feb 26 11:02:38 2013: Version:
Tue Feb 26 11:02:38 2013:Config: 1361893868
Tue Feb 26 11:02:38 2013:Puppet: 3.1.0

Also, this isn't global as I have nodes getting identical complete configs 
in 7 seconds and run times are just fine after the using pson lines.

Example of a fast node :

Tue Feb 26 11:22:57 2013: Debug: file_metadata supports formats: 
b64_zlib_yaml pson raw yaml; using pson
Tue Feb 26 11:22:58 2013: Info: 
/Stage[main]/Amadeuspro/File[/etc/puppet/tmp/com.HairerSoft.AmadeusPro.plist]: 
Evaluated in 0.15 seconds
Tue Feb 26 11:22:58 2013: Info: 
/Stage[main]/Adobe/File[/etc/puppet/tmp/com.adobe.Reader.plist]: Starting 
to evaluate the resource
Tue Feb 26 11:22:58 2013: Debug: file_metadata supports formats: 
b64_zlib_yaml pson raw yaml; using pson
Tue Feb 26 11:22:58 2013: Info: 
/Stage[main]/Adobe/File[/etc/puppet/tmp/com.adobe.Reader.plist]: Evaluated 
in 0.07 seconds

Puppet master and clients are 3.1 with Dashboard 1.2.22 and also using 
PuppetDB.

Any thoughts why I'd have trouble and long run times on select nodes when 
pson is called?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: Intermittent Erorr 400 on Server messages

2013-02-26 Thread Jagga Soorma
The modules are fine because this is just a intermittent problem.  Most of
the times the puppet runs are fine even when things are being changed on
the nodes.  If it was a problem with the modules then I would expect it to
consistently fail.  Let me know if that assumption is not correct.  I am in
the process of enabling apache/mod_passenger with puppet and hopefully that
will help.

Thanks.

On Tue, Feb 26, 2013 at 2:10 AM, Alex Vaqué Brull mem...@gmail.com wrote:

 I think that you have the puppet modules, manifest or templates with some
 mistake.

 Try to create a easy hello world with Puppet.

 El dilluns 25 de febrer de 2013 22:03:18 UTC+1, Jagga Soorma va escriure:

 Hi Guys,

 I am running puppet server version 3.0.2-1 on a RHEL 5.8 virtual machine
 with about 110 clients.  I am seeing intermittent errors with my clients
 that are failing with the following error messages:

 --
 Could not retrieve catalog from remote server: Error 400 on SERVER: Could
 not find class motd for xxx on node xxx
 --

 If I login to that host which failed and manually run a puppet agent -t
 it finishes without any error messages.  These errors are intermittent but
 have caused corruption of my passwd file since I also manage that via
 puppet.  This message shows up for different servers with different classes
 in the error message.  I have looked at my classes and I don't see any
 problems with it.  Any idea what might be causing this problem?

 Any help would be greatly appreciated.

 Thanks!
 -J

  --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: Puppet Nagios group problem

2013-02-26 Thread stevenc
Check your store config database for duplicate entries in the resources 
table.

On Saturday, September 8, 2012 5:09:03 AM UTC-6, thbe wrote:

 Hi Steven,

 2012/9/8 Steven C ste...@qualtrics.com javascript:

 Having a similar problem. So far I've tried clearing the nagios.cfg and 
 dropping the puppet database from puppetmaster, but this has not helped.
 [...]


 currently I've defined the groups manually as a template file in puppet 
 but this is only a workaround. The goal is to automate this completely, so 
 any hints how to solve this are welcome.

 Regards, Thomas
 -- 
 Linux ... enjoy the ride!



-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] puppet-dashboard-1.2.22 - unable to get it running under Apache/Passenger

2013-02-26 Thread Ti Leggett
The issue is that on RHEL/CentOS 6, the mod_passenger RPM requires the 
rubygems-rack RPM which is at 1.2.5. The Puppet Dashboard RPM requires 
explicitly rack version 1.1.0 - from 
vendor/rails/actionpack/lib/action_controller.rb:

gem 'rack', '~ 1.1.0'
require 'rack'
require 'action_controller/cgi_ext'

If you comment out:

#gem 'rack', '~ 1.1.0'

Things work fine. So why is dashboard explicitly requiring this version? I'm 
not sure my 'fix' is the proper way to do things, but it at least makes things 
work again.

On Feb 26, 2013, at 12:16 PM, Ramin K ramin-l...@badapple.net wrote:

 ~ 1.1.0 matches 1.1.x
 
 Dashboard 1.2.22 is responding to these CVEs from http://rack.github.com/ and 
 1.1.6 is the one that has the fix.
 
 Ramin
 

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Using a variable in another variable name

2013-02-26 Thread Ti Leggett
Nevermind. Figured this out:

% if defined?( eval macaddress_ + my_lan1 -%
...
% end -%

On Feb 26, 2013, at 10:16 AM, Ti Leggett shin...@gmail.com wrote:

 Is there a good way to check that the fact in question actually exists prior 
 to doing an eval? Doing the below when there is no 'my_lan1' fact produces an 
 error.
 
 On Feb 21, 2013, at 10:51 AM, windowsrefund windowsref...@gmail.com wrote:
 
 
 %= eval macaddress_ + my_lan1 %
 
 That will return the appropriate fact based on the value of my_lan1
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
 
 
 

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Puppet dynamically handle ssl registration re-registration

2013-02-26 Thread Denmat
You could try the ruby gem uuid. That would give you a reasonably unique cert 
name. You would then run a scan/probe to verify current certs against current 
nodes and remove unused certs from the master.

The nodes are just rebuilt with a new uuid and register. Wouldn't worry about 
SSL dir cleaning if security isn't high on you priorities.

Den

On 27/02/2013, at 5:04, yngmike mikew...@gmail.com wrote:

 Hello everybody.
  
 I'm new to the group and I'm trying to do something a little different here.
  
 Puppet Master: CentOS 6.3 running puppet-server-2.7.14-2.1
 Clients: CentOS 6.3 (puppet-2.6.17-2.el6.noarch)  SLES 11.2(puppet 
 2.7.14-2.1)
  
 I am trying to configure puppet in a very dynamic way. Nodes are not defined 
 in nodes.conf and each client is configured soley by facts that define the 
 role of the node.
 Certificate autosigning is turned on. 
 I am trying to automate the rollout of 50k clients. The clients will not have 
 DNS entries available at the time puppet first runs, but will have DNS  
 sometime an hour or so later.
 During the build process the client picks a psuedo random hostname to 
 register to puppet with.
  
 I am trying to figure out a solution that would be totally programatic for 
 registration/re-registration and be tolerant to client hostname changes.
  
 Current issues:
  
 If the client ssl cert is removed from the puppet master (and puppetmasterd 
 is restarted), the client must rm -rf /var/lib/puppet and re-run to get a 
 valid cert
 if /var/lib/puppet is removed and the ssl certificate still lives on the 
 puppet master the client cannot re-register until the cert is removed from 
 the master
 Essentially I will never be using jabber or remote commands so I don't really 
 care what the systems are called, if one stops working I will just replace it 
 with a fresh working build.
 I need each system to be able to register/re-register no matter if an entry 
 exists on the puppet master or the local private key gets wiped out. This 
 would be so I can guarantee that the puppet agent will continue to run if its 
 hostname changes, or the local caches need to be wiped programatically to fix 
 a stuck puppet run.
  
 I'm sure this issue has come up before but I can't find anything useful on 
 google results. I understand that these requirements are in place for 
 security reasons, but that is not as much of a concern in this particular 
 implementation (thing 50k dumb nodes that perform simple tasks). I would 
 prefer a more secure method, but it doesn't seem that puppet is tolerant to 
 dynamic nodes that might move around (regularly).
  
 Any ideas?
  
 Thanks,
  
 -Mike
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Puppet dynamically handle ssl registration re-registration

2013-02-26 Thread Erik Dalén
For desktops and laptops that don't have a proper static hostname we have
used the mac address (minus colons) as the certname. That is pretty much
guaranteed to be unique and never change, might work in your situation as
well.


On 26 February 2013 19:04, yngmike mikew...@gmail.com wrote:

 Hello everybody.

 I'm new to the group and I'm trying to do something a little different
 here.

 Puppet Master: CentOS 6.3 running puppet-server-2.7.14-2.1
 Clients: CentOS 6.3 (puppet-2.6.17-2.el6.noarch)  SLES 11.2(puppet
 2.7.14-2.1)

 I am trying to configure puppet in a very dynamic way. Nodes are not
 defined in nodes.conf and each client is configured soley by facts that
 define the role of the node.
 Certificate autosigning is turned on.
 I am trying to automate the rollout of 50k clients. The clients will not
 have DNS entries available at the time puppet first runs, but will have
 DNS  sometime an hour or so later.
 During the build process the client picks a psuedo random hostname to
 register to puppet with.

 I am trying to figure out a solution that would be totally programatic for
 registration/re-registration and be tolerant to client hostname changes.

 Current issues:


- If the client ssl cert is removed from the puppet master (and
puppetmasterd is restarted), the client must rm -rf /var/lib/puppet and
re-run to get a valid cert
- if /var/lib/puppet is removed and the ssl certificate still lives on
the puppet master the client cannot re-register until the cert is removed
from the master

 Essentially I will never be using jabber or remote commands so I don't
 really care what the systems are called, if one stops working I will just
 replace it with a fresh working build.
 I need each system to be able to register/re-register no matter if an
 entry exists on the puppet master or the local private key gets wiped out.
 This would be so I can guarantee that the puppet agent will continue to run
 if its hostname changes, or the local caches need to be wiped
 programatically to fix a stuck puppet run.

 I'm sure this issue has come up before but I can't find anything useful on
 google results. I understand that these requirements are in place for
 security reasons, but that is not as much of a concern in this particular
 implementation (thing 50k dumb nodes that perform simple tasks). I would
 prefer a more secure method, but it doesn't seem that puppet is tolerant to
 dynamic nodes that might move around (regularly).

 Any ideas?

 Thanks,

 -Mike
















 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Erik Dalén

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] puppetlabs-lvm and --guess-fstype

2013-02-26 Thread John Warburton
On 26 February 2013 03:30, Chuck cssc...@gmail.com wrote:

 Yep.. Red Hat was nice enough to take --guest-fstype out of RHEL 6.4.

 On Friday, February 22, 2013 4:25:04 AM UTC-6, steve foster wrote:

 Logged a bug:

 http://projects.puppetlabs.**com/issues/19410http://projects.puppetlabs.com/issues/19410

 On Friday, 22 February 2013 09:47:33 UTC, Mathieu Bornoz wrote:

 Hi,


I have tested Mathieu's patch per his pull
requesthttps://github.com/puppetlabs/puppetlabs-lvm/pull/23in the
bug ticket and it works like a charm (RHEL 6.4, ext4 only). Thanks
Mathieu!

How do we get this into an official update of the lvm module on the forge?

John

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Re: Puppet agent intermittently stops without doing any thing

2013-02-26 Thread sanjiv singh

Please help on this...

On Thursday, 7 February 2013 12:29:15 UTC+5:30, sanjiv singh wrote:

 Hi All,

 We are observing frequently issue that Puppet agent intermittently stops 
 without doing any thing  when lot of puppet agent hitting puppet master . 
 In our environment , we have configured puppet master over Apache-passenger 
 and we have used LDAP as node classifier. 


- puppet 5.5
- Apache-passenger 3.0.17
- CentOS 6.3 / 5.5
- OpenLDAP 2.4

 Sometimes restarting Apache solves the problem and sometimes issue 
 resolved automatically when we trigger puppet daemon again.


 Puppet daemon stops without doing any thing following :

 ^[[0;36mnotice: Ignoring --listen on onetime run^[[0m

 ^[[0;32minfo: Caching catalog for buildsrvtd-1.domain.local^[[0m

 ^[[0;32minfo: Applying configuration version '1355066292'^[[0m

 ^[[0;36mnotice: Finished catalog run in 0.29 seconds^[[0m



 Regards,

 Sanjiv Singh



-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: Puppet agent intermittently stops without doing any thing

2013-02-26 Thread Adrien Thebo
Hi Sanjiv,

How are you running Puppet, ie via a cron or as a persistent daemon? You
listed the Puppet version as 5.5, but that's not an actual version of
Puppet available; could you post the output of `puppet --version` ? Lastly,
how is the service stopping? Is it hanging, or is it crashing?


On Tue, Feb 26, 2013 at 3:36 PM, sanjiv singh sanjiv.is...@gmail.comwrote:


 Please help on this...


 On Thursday, 7 February 2013 12:29:15 UTC+5:30, sanjiv singh wrote:

 Hi All,

 We are observing frequently issue that Puppet agent intermittently stops
 without doing any thing  when lot of puppet agent hitting puppet master
 . In our environment , we have configured puppet master over Apache-passenger
 and we have used LDAP as node classifier.


- puppet 5.5
- Apache-passenger 3.0.17
- CentOS 6.3 / 5.5
- OpenLDAP 2.4

 Sometimes restarting Apache **solves the problem and sometimes issue
 resolved automatically when we trigger puppet daemon again.


 Puppet daemon stops without doing any thing following :

 ^[[0;36mnotice: Ignoring --listen on onetime run^[[0m

 ^[[0;32minfo: Caching catalog for buildsrvtd-1.domain.local^[[0m

 ^[[0;32minfo: Applying configuration version '1355066292'^[[0m

 ^[[0;36mnotice: Finished catalog run in 0.29 seconds^[[0m



 Regards,

 Sanjiv Singh

  --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.






-- 
Adrien Thebo | Puppet Labs

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Using a variable in another variable name

2013-02-26 Thread Adrien Thebo
Using the scope.lookupvar or getvar functions would be greatly preferable;
using `eval` in this context is Really Bad (TM) and could produce some
extremely bad behavior depending on the value of my_lan1.


On Tue, Feb 26, 2013 at 1:11 PM, Ti Leggett shin...@gmail.com wrote:

 Nevermind. Figured this out:

 % if defined?( eval macaddress_ + my_lan1 -%
 ...
 % end -%

 On Feb 26, 2013, at 10:16 AM, Ti Leggett shin...@gmail.com wrote:

  Is there a good way to check that the fact in question actually exists
 prior to doing an eval? Doing the below when there is no 'my_lan1' fact
 produces an error.
 
  On Feb 21, 2013, at 10:51 AM, windowsrefund windowsref...@gmail.com
 wrote:
 
 
  %= eval macaddress_ + my_lan1 %
 
  That will return the appropriate fact based on the value of my_lan1
 
  --
  You received this message because you are subscribed to the Google
 Groups Puppet Users group.
  To unsubscribe from this group and stop receiving emails from it, send
 an email to puppet-users+unsubscr...@googlegroups.com.
  To post to this group, send email to puppet-users@googlegroups.com.
  Visit this group at http://groups.google.com/group/puppet-users?hl=en.
  For more options, visit https://groups.google.com/groups/opt_out.
 
 
 

 --
 You received this message because you are subscribed to the Google Groups
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to puppet-users+unsubscr...@googlegroups.com.
 To post to this group, send email to puppet-users@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.





-- 
Adrien Thebo | Puppet Labs

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: Puppet agent intermittently stops without doing any thing

2013-02-26 Thread sanjiv singh
Thanks for quick response.Sorry for mentioning wrong version

$ puppet --version
0.25.5
 

On Wednesday, 27 February 2013 06:42:39 UTC+5:30, Adrien Thebo wrote:

 Hi Sanjiv,

 How are you running Puppet, ie via a cron or as a persistent daemon? You 
 listed the Puppet version as 5.5, but that's not an actual version of 
 Puppet available; could you post the output of `puppet --version` ? Lastly, 
 how is the service stopping? Is it hanging, or is it crashing?


 On Tue, Feb 26, 2013 at 3:36 PM, sanjiv singh 
 sanjiv...@gmail.comjavascript:
  wrote:


 Please help on this...


 On Thursday, 7 February 2013 12:29:15 UTC+5:30, sanjiv singh wrote:

 Hi All,

 We are observing frequently issue that Puppet agent intermittently stops 
 without doing any thing  when lot of puppet agent hitting puppet master 
 . In our environment , we have configured puppet master over 
 Apache-passenger 
 and we have used LDAP as node classifier. 


- puppet 5.5
- Apache-passenger 3.0.17
- CentOS 6.3 / 5.5
- OpenLDAP 2.4

 Sometimes restarting Apache **solves the problem and sometimes issue 
 resolved automatically when we trigger puppet daemon again.


 Puppet daemon stops without doing any thing following :

 ^[[0;36mnotice: Ignoring --listen on onetime run^[[0m

 ^[[0;32minfo: Caching catalog for buildsrvtd-1.domain.local^[[0m

 ^[[0;32minfo: Applying configuration version '1355066292'^[[0m

 ^[[0;36mnotice: Finished catalog run in 0.29 seconds^[[0m



 Regards,

 Sanjiv Singh

  -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to puppet-users...@googlegroups.com javascript:.
 To post to this group, send email to puppet...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




 -- 
 Adrien Thebo | Puppet Labs
  

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: Puppet agent intermittently stops without doing any thing

2013-02-26 Thread sanjiv singh


On Wednesday, 27 February 2013 06:42:39 UTC+5:30, Adrien Thebo wrote:

 Hi Sanjiv,

 How are you running Puppet, ie via a cron or as a persistent daemon? You 
 listed the Puppet version as 5.5, but that's not an actual version of 
 Puppet available; could you post the output of `puppet --version` ? Lastly, 
 how is the service stopping? Is it hanging, or is it crashing?


In our environment,  we are  triggering puppet daemon only when we want to 
refresh VM with latest catalog. You can say its On-Demand

So there is no cron OR  persistent puppet daemon.

 

 On Tue, Feb 26, 2013 at 3:36 PM, sanjiv singh 
 sanjiv...@gmail.comjavascript:
  wrote:


 Please help on this...


 On Thursday, 7 February 2013 12:29:15 UTC+5:30, sanjiv singh wrote:

 Hi All,

 We are observing frequently issue that Puppet agent intermittently stops 
 without doing any thing  when lot of puppet agent hitting puppet master 
 . In our environment , we have configured puppet master over 
 Apache-passenger 
 and we have used LDAP as node classifier. 


- puppet 5.5
- Apache-passenger 3.0.17
- CentOS 6.3 / 5.5
- OpenLDAP 2.4

 Sometimes restarting Apache **solves the problem and sometimes issue 
 resolved automatically when we trigger puppet daemon again.


 Puppet daemon stops without doing any thing following :

 ^[[0;36mnotice: Ignoring --listen on onetime run^[[0m

 ^[[0;32minfo: Caching catalog for buildsrvtd-1.domain.local^[[0m

 ^[[0;32minfo: Applying configuration version '1355066292'^[[0m

 ^[[0;36mnotice: Finished catalog run in 0.29 seconds^[[0m



 Regards,

 Sanjiv Singh

  -- 
 You received this message because you are subscribed to the Google Groups 
 Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to puppet-users...@googlegroups.com javascript:.
 To post to this group, send email to puppet...@googlegroups.comjavascript:
 .
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




 -- 
 Adrien Thebo | Puppet Labs
  

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: Puppet agent intermittently stops without doing any thing

2013-02-26 Thread 刘长元
first of all, your puppet version is so old..at least, you should upgrade 
to 2.7.
and then, you can check last catalog your client got which stored in 
/var/lib/client_yaml/ folder, if it contains some resources or not.

On Wednesday, February 27, 2013 9:17:53 AM UTC+8, sanjiv singh wrote:

 Thanks for quick response.Sorry for mentioning wrong version

 $ puppet --version
 0.25.5
  

 On Wednesday, 27 February 2013 06:42:39 UTC+5:30, Adrien Thebo wrote:

 Hi Sanjiv,

 How are you running Puppet, ie via a cron or as a persistent daemon? You 
 listed the Puppet version as 5.5, but that's not an actual version of 
 Puppet available; could you post the output of `puppet --version` ? Lastly, 
 how is the service stopping? Is it hanging, or is it crashing?


 On Tue, Feb 26, 2013 at 3:36 PM, sanjiv singh sanjiv...@gmail.comwrote:


 Please help on this...


 On Thursday, 7 February 2013 12:29:15 UTC+5:30, sanjiv singh wrote:

 Hi All,

 We are observing frequently issue that Puppet agent intermittently 
 stops without doing any thing  when lot of puppet agent hitting puppet 
 master . In our environment , we have configured puppet master over 
 Apache-passenger and we have used LDAP as node classifier. 


- puppet 5.5
- Apache-passenger 3.0.17
- CentOS 6.3 / 5.5
- OpenLDAP 2.4

 Sometimes restarting Apache **solves the problem and sometimes issue 
 resolved automatically when we trigger puppet daemon again.


 Puppet daemon stops without doing any thing following :

 ^[[0;36mnotice: Ignoring --listen on onetime run^[[0m

 ^[[0;32minfo: Caching catalog for buildsrvtd-1.domain.local^[[0m

 ^[[0;32minfo: Applying configuration version '1355066292'^[[0m

 ^[[0;36mnotice: Finished catalog run in 0.29 seconds^[[0m



 Regards,

 Sanjiv Singh

  -- 
 You received this message because you are subscribed to the Google 
 Groups Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to puppet-users...@googlegroups.com.
 To post to this group, send email to puppet...@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




 -- 
 Adrien Thebo | Puppet Labs
  


-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Regarding fact file name

2013-02-26 Thread Heena
Hi guys,


Can we change facts yaml file name generated by puppet master?
If yse then how? 

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Can we rename yaml file generated by puppet master as report?

2013-02-26 Thread Sonal Singhal
We know Puppet master generated report after sync with agent and name
of file is like node_name.yml. I want to change its name from
node_name.yml to node_name_timestamp.yml. Is it possible in puppet?
hoe can i do this?

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [Puppet Users] Re: Puppet agent intermittently stops without doing any thing

2013-02-26 Thread sanjiv singh
Adding more on it..
As i mentioned , we are using Apache-passenger for puppet master. 
Restarting Apache have solved problem after failure.



On Wednesday, 27 February 2013 07:22:24 UTC+5:30, 刘长元 wrote:

 first of all, your puppet version is so old..at least, you should upgrade 
 to 2.7.
 and then, you can check last catalog your client got which stored in 
 /var/lib/client_yaml/ folder, if it contains some resources or not.

 On Wednesday, February 27, 2013 9:17:53 AM UTC+8, sanjiv singh wrote:

 Thanks for quick response.Sorry for mentioning wrong version

 $ puppet --version
 0.25.5
  

 On Wednesday, 27 February 2013 06:42:39 UTC+5:30, Adrien Thebo wrote:

 Hi Sanjiv,

 How are you running Puppet, ie via a cron or as a persistent daemon? You 
 listed the Puppet version as 5.5, but that's not an actual version of 
 Puppet available; could you post the output of `puppet --version` ? Lastly, 
 how is the service stopping? Is it hanging, or is it crashing?


 On Tue, Feb 26, 2013 at 3:36 PM, sanjiv singh sanjiv...@gmail.comwrote:


 Please help on this...


 On Thursday, 7 February 2013 12:29:15 UTC+5:30, sanjiv singh wrote:

 Hi All,

 We are observing frequently issue that Puppet agent intermittently 
 stops without doing any thing  when lot of puppet agent hitting 
 puppet master . In our environment , we have configured puppet master 
 over 
 Apache-passenger and we have used LDAP as node classifier. 


- puppet 5.5
- Apache-passenger 3.0.17
- CentOS 6.3 / 5.5
- OpenLDAP 2.4

 Sometimes restarting Apache **solves the problem and sometimes issue 
 resolved automatically when we trigger puppet daemon again.


 Puppet daemon stops without doing any thing following :

 ^[[0;36mnotice: Ignoring --listen on onetime run^[[0m

 ^[[0;32minfo: Caching catalog for buildsrvtd-1.domain.local^[[0m

 ^[[0;32minfo: Applying configuration version '1355066292'^[[0m

 ^[[0;36mnotice: Finished catalog run in 0.29 seconds^[[0m



 Regards,

 Sanjiv Singh

  -- 
 You received this message because you are subscribed to the Google 
 Groups Puppet Users group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to puppet-users...@googlegroups.com.
 To post to this group, send email to puppet...@googlegroups.com.
 Visit this group at http://groups.google.com/group/puppet-users?hl=en.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  




 -- 
 Adrien Thebo | Puppet Labs
  


-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[Puppet Users] Help with augeas

2013-02-26 Thread Adam Crews
Hello,

I'm trying to manage a properties file used by a java program with augeas.
I'm using PE 2.7.1 on a CentOS 5 machine.

Sample content is:
# Sample file /home/acrews/test.properties
session.securityLevel.createSession=10
session.securityLevel.listFiles=10
low.session.timeout=15
# eof

I want to change createSession from 10 to 11.

my puppet code is:

augeas { test:
lens= Property.lns,
incl= /home/acrews/test.properties,
changes = [ set session.securityLevel.createSession 11 ],
load_path   = /home/acrews/lens,
}

I grabbed the properties lens from
https://raw.github.com/maestrodev/augeas/af585c7e29560306f23938b3ba15aa1104951f7f/lenses/properties.aug
(since that is more robust than the one found on my system) and put it
in /home/acrews/lens.

When I run puppet, it fails to update the file:

debug: Augeas[test](provider=augeas): Opening augeas with root /, lens
path /home/acrews/lens, flags 64
debug: Augeas[test](provider=augeas): Augeas version 0.10.0 is installed
debug: Augeas[test](provider=augeas): Will attempt to save and only
run if files changed
debug: Augeas[test](provider=augeas): sending command 'set' with
params 
[/files/home/acrews/test.properties/session.securityLevel.createSession,
11]
debug: Augeas[test](provider=augeas): Closed the augeas connection
err: /Stage[main]//Augeas[test]: Could not evaluate: Save failed with
return code false

Full output is at:  http://pastebin.com/pa5MWYGH

I can't figure out why it is failing.  Does anyone have any pointers
on how to make this work?

Thanks
-Adam

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.