Re: [Puppet Users] Reg : Pushing files from Puppet Master to Agent node

2014-01-28 Thread krishna bhaskara rao
Hi,

Can I use Mcollective with puppet open source ?

On Tuesday, 28 January 2014 13:11:29 UTC+5:30, Jose Luis Ledesma wrote:

 In fact puppetmaster cannot force a push, but mcollective can force a 
 puppet run. And that with a file resource would make the job.

 Regards,


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/cb92cb62-fbb8-4c53-9476-69bd99f3caf4%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Reg : Pushing files from Puppet Master to Agent node

2014-01-28 Thread Jose Luis Ledesma
Yes. I recommend the puppetlabs/mcollective module to make the configuration 
easier.

Regards

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/9e8d29cc-b4e8-4310-a61c-62ee1b5b2d99%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Reg : Pushing files from Puppet Master to Agent node

2014-01-28 Thread krishna bhaskara rao
Hi,

I am new to puppet. I am using Puppet open source version. I could not find 
how to configure MCollective with Puppet open source.
If you have any documentation for this configuration, Please share me.
With Regards,
Krishna.

On Tuesday, 28 January 2014 14:39:30 UTC+5:30, Jose Luis Ledesma wrote:

 Yes. I recommend the puppetlabs/mcollective module to make the 
 configuration easier.

 Regards


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5fea1075-c96c-4c47-8beb-c0d39909bc66%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: Puppet Dashboard Groups

2014-01-28 Thread Stefan Heijmans


I was looking for a way to group the servers dynamically
Don't know about this but how about making use of the provided rake tasks, 
like;
rake nodegroup:add # Add a new node group
rake nodegroup:add_all_nodes   # Automatically adds all 
nodes to a group
rake node:addgroup # Add group(s) to a node

Stefan

Op maandag 27 januari 2014 15:16:09 UTC+1 schreef kaustubh chaudhari:

 Hi,

 I was looking for a way to group the servers dynamically. Eg: create a 
 Windows Group and all the existing nodes and new nodes should be part of 
 Windows group.
 I edit a group and then add each server, but practically its not possible 
 with 2k servers in all!!

 Is there a way to do that?

 -Kaustubh


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/0656e682-855e-4a39-a3bc-bcd2ba772308%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Reg : Pushing files from Puppet Master to Agent node

2014-01-28 Thread Jose Luis Ledesma

Hi,

   http://docs.puppetlabs.com/mcollective/deploy/standard.html

  :P

regards,



El martes, 28 de enero de 2014 10:14:12 UTC+1, krishna bhaskara rao 
escribió:

 Hi,

 I am new to puppet. I am using Puppet open source version. I could not 
 find how to configure MCollective with Puppet open source.
 If you have any documentation for this configuration, Please share me.
 With Regards,
 Krishna.

 On Tuesday, 28 January 2014 14:39:30 UTC+5:30, Jose Luis Ledesma wrote:

 Yes. I recommend the puppetlabs/mcollective module to make the 
 configuration easier.

 Regards



-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/d9676ba6-3e44-41e5-9760-454a6a24b1f8%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: Puppet Dashboard Groups

2014-01-28 Thread kaustubh chaudhari
Thanks for the Reply Stefan!

I did looked into these options, but i dint find a way to add only windows 
systems to windows group and linux system to linux group.

-Kaustubh

On Tuesday, January 28, 2014 4:15:39 AM UTC-5, Stefan Heijmans wrote:

 I was looking for a way to group the servers dynamically
 Don't know about this but how about making use of the provided rake tasks, 
 like;
 rake nodegroup:add # Add a new node group
 rake nodegroup:add_all_nodes   # Automatically adds all 
 nodes to a group
 rake node:addgroup # Add group(s) to a node

 Stefan

 Op maandag 27 januari 2014 15:16:09 UTC+1 schreef kaustubh chaudhari:

 Hi,

 I was looking for a way to group the servers dynamically. Eg: create a 
 Windows Group and all the existing nodes and new nodes should be part of 
 Windows group.
 I edit a group and then add each server, but practically its not possible 
 with 2k servers in all!!

 Is there a way to do that?

 -Kaustubh



-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5f504a37-5283-456c-bb34-4f7a2e92813c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Re: Exporting a resource only once....

2014-01-28 Thread Krist van Besien


On Friday, January 24, 2014 12:51:07 PM UTC+1, LoreLLo wrote:

 Basically my situation is the following:
 - A database server
 - Several web application servers. 

 We have a similar environment and the solution we adopted is very simple: put 
 the if ! defined inside the exported resource and of course make the name 
 of the resource unique between the web application servers.
 All the webservers will export the resource database, the database host 
 will collect them but the resource will be created only on the first 
 occurrence in the catalog.
 This is a general pattern that we use for mysql database, memcache 
 instances, etc... 


That's an interesting solution. I'll try that out.

Krist
 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/d937a29b-bb0d-4dc1-8f84-a387b0155d6b%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: Puppet Dashboard Groups

2014-01-28 Thread Stefan Heijmans
Do you have MCollective running? 
You could use this to generate a list based on specified facts (mco find 
--wf fact) to use in those rake tasks.
Or create them by hand from the Inventory Search in the Dashboard, maybe 
even a custom rake task.
 
Stefan
 

Op dinsdag 28 januari 2014 11:24:08 UTC+1 schreef kaustubh chaudhari:

 Thanks for the Reply Stefan!

 I did looked into these options, but i dint find a way to add only windows 
 systems to windows group and linux system to linux group.

 -Kaustubh

 On Tuesday, January 28, 2014 4:15:39 AM UTC-5, Stefan Heijmans wrote: 

  I was looking for a way to group the servers dynamically
 Don't know about this but how about making use of the provided rake 
 tasks, like;
 rake nodegroup:add # Add a new node group
 rake nodegroup:add_all_nodes   # Automatically adds all 
 nodes to a group
 rake node:addgroup # Add group(s) to a node

 Stefan

 Op maandag 27 januari 2014 15:16:09 UTC+1 schreef kaustubh chaudhari:

 Hi,

 I was looking for a way to group the servers dynamically. Eg: create a 
 Windows Group and all the existing nodes and new nodes should be part of 
 Windows group.
 I edit a group and then add each server, but practically its not 
 possible with 2k servers in all!!

 Is there a way to do that?

 -Kaustubh



-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/6d1b71cb-77c4-4884-ac7f-ff06ce70f069%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Constructing rvalues from exported resources.

2014-01-28 Thread Krist van Besien
Hello,

I am using the Radez/Paxemaker modules, and this allows me to define a 
cluster like this:

   class {'pacemaker::corosync':
  cluster_name = $control_clu_name,
  cluster_members = $control_clu_members,
  require = [ Package['ccs'],
}

I currently define the cluster name and members in two parameters. If I add 
a host to the cluster I just add it's name to the $control_clu_members 
parameter.
Is there a way however to do this automatically? Have every host that has 
this class declared on export something, and use this. Is there a way one 
can use exported resources to construct strings to be used as rvalues?




-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/bca40aaf-3b34-4e96-9526-70b9215f1516%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Re: Puppet Dashboard Groups

2014-01-28 Thread kaustubh chaudhari
Hi Stefan,

I am in process of setting up MCollective!

In the mean while i can do the search using inventory search in Dashboard,
i do get the list, but when i try ti export the details in the cvs format,
it wont export only filtered, it will export all the node list ie: all
linux windows etc.

where i an searching with the facts as osfamily = windows  and/or Linux.

-Kaustubh

With Warm Regards
Kaustubh.A.Chaudhari
(M)-09373102619


On Tue, Jan 28, 2014 at 6:35 AM, Stefan Heijmans heijm...@rechtspraak.nlwrote:

 Do you have MCollective running?
 You could use this to generate a list based on specified facts (mco find
 --wf fact) to use in those rake tasks.
 Or create them by hand from the Inventory Search in the Dashboard, maybe
 even a custom rake task.

 Stefan


 Op dinsdag 28 januari 2014 11:24:08 UTC+1 schreef kaustubh chaudhari:

 Thanks for the Reply Stefan!

 I did looked into these options, but i dint find a way to add only
 windows systems to windows group and linux system to linux group.

 -Kaustubh

 On Tuesday, January 28, 2014 4:15:39 AM UTC-5, Stefan Heijmans wrote:

  I was looking for a way to group the servers dynamically
 Don't know about this but how about making use of the provided rake
 tasks, like;
 rake nodegroup:add # Add a new node group
 rake nodegroup:add_all_nodes   # Automatically adds all
 nodes to a group
 rake node:addgroup # Add group(s) to a node

 Stefan

 Op maandag 27 januari 2014 15:16:09 UTC+1 schreef kaustubh chaudhari:

 Hi,

 I was looking for a way to group the servers dynamically. Eg: create a
 Windows Group and all the existing nodes and new nodes should be part of
 Windows group.
 I edit a group and then add each server, but practically its not
 possible with 2k servers in all!!

 Is there a way to do that?

 -Kaustubh

  --
 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/bzFuC0l3TPk/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 puppet-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/puppet-users/6d1b71cb-77c4-4884-ac7f-ff06ce70f069%40googlegroups.com
 .

 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAGceKKqi%2BSM87fFdYS2NgyGSV%2BOcMhzgnDrJX49dWpSSqzKt4g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] What is the best replacement for Puppet Dashboard ?

2014-01-28 Thread kaustubh chaudhari
Hi All,

As we all know Puppet Dashboard is now EOL, with that said what is the best 
replacement for the same? We do need a graphical way of managing and 
reporting!

Any thoughts or suggestion! I am looking at Forman, but havent explored it 
yet!

-Kaustubh

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/15cfd564-c8eb-493e-8db6-4b2247da1e95%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: facter-1.7.3 and puppet-3.3.1 on OS X Mavericks 10.9

2014-01-28 Thread Martijn
facter-1.7.4-rc1 is available and it looks like it works!

Martijn

Op woensdag 30 oktober 2013 17:50:59 UTC+1 schreef Paul Tötterman:

 Hi,

 Is anyone else getting this:

 $ facter
 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
  
 `require': cannot load such file -- facter/application (LoadError) 
 from 
 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
  
 `require' 
 from /usr/bin/facter:72:in `main'

 $ puppet
 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
  
 `require': cannot load such file -- puppet/util/command_line (LoadError)
 from 
 /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
  
 `require'
 from /usr/bin/puppet:3:in `main'

 Both installed from packages which were downloaded from 
 http://downloads.puppetlabs.com/mac/

 Cheers,
 Paul


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/f09559a7-0764-4a52-820f-2455ecc84c17%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] puppet user context

2014-01-28 Thread Robert Turk


Am 20.01.14 09:02, schrieb Robert Turk:
You can get list of directories under /Users from facter and then 
build an array out of it and use this in your manifest. 

I tested your solution and here is what I have done:

I created a custom fact which returns a list of directories under /Users:
facter local_user_list = user1,user2

Next in puppet I created the following code:

class wallpaper_plist {
$array_userlist=split($local_user_list,',')
case $macosx_productversion_major {
'10.8':  { $plist_name = 'com.apple.desktop_10.8.plist' }
'10.6':  { $plist_name = 'com.apple.desktop_10.6.plist' }
default: { warn( 'macosx_productversion_major does not 
match 10.8 or 10.6' ) }

}
define user_resource {
file { 
/Users/${name}/Library/Preferences/com.apple.desktop.plist:

  owner  = ${name},
  group  = 'staff',
  mode   = 600,
  ensure = file,
  source = puppet:///modules/wallpaper_plist/${plist_name},
}
}
user_resource { $array_userlist: }
}

This code works, but it gives me a directory for the file resource. And 
not a file like it is said in the code.


Any ideas?

Robert

--
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/52E7B206.2050805%40reproflex.de.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] What is the best replacement for Puppet Dashboard ?

2014-01-28 Thread Thomas Bendler
As far as I know, there is nothing available yet that can compare with
foreman in terms of functionality. There are some reporting projects
available, but if you want to use the dashboard as an ENC as well, there is
know alternative to foreman.

Regards Thomas


2014-01-28 kaustubh chaudhari kaustu...@gmail.com

 Hi All,

 As we all know Puppet Dashboard is now EOL, with that said what is the
 best replacement for the same? We do need a graphical way of managing and
 reporting!

 Any thoughts or suggestion! I am looking at Forman, but havent explored it
 yet!

 -Kaustubh

 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/puppet-users/15cfd564-c8eb-493e-8db6-4b2247da1e95%40googlegroups.com
 .
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAELoU1OfHkmwsYQB2TJzd6V-6PSmCOgsAWZ2BX0m1ygUFGR%2Bgw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: How to find the time when a Puppet manifest is executed

2014-01-28 Thread jcbollinger


On Monday, January 27, 2014 12:13:03 PM UTC-6, elliott wrote:

 The fix I found for this is to schedule the task using an XML template 
 with the Repetition parameter specified (you can edit these settings 
 under Task Properties  Triggers  Edit  Advanced).  The task repeats 
 every minute for 15 minutes after the start time.

 The StartBoundary parameter is set to the time on the Puppet server (this 
 is the compile time for the manifest, so anywhere from 1 to 10 minutes 
 before the run completes).  In reality the task will start the next minute 
 after the run finishes, which is fine for my purposes.

 It's UGLY, but it works :)



You could try wrapping your task in a script that defers running it until 
the agent's lock file disappears.  That would be cleaner and at least 
slightly more elegant.


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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/874e5440-5b9d-4840-91a7-a17a053eda9c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: How to execute a target action before this one when this one triggers

2014-01-28 Thread jcbollinger


On Monday, January 27, 2014 1:50:24 PM UTC-6, Bret Wortman wrote:

 I'm looking at the case of distributing /etc/cups/printers.conf.

 When this file changes, I'd like to distribute it. But before placing the 
 new file, cupsd needs to be shut down, and restarted again afterwards. This 
 can be done easily enough using an Exec to shut it down and the existing 
 Service entry to trigger a restart, but how can I tell my manifest that 
 when the File triggers, first do the Exec, then the File, then the Service?

 Is there a way to chain these together to produce the effect I'm looking 
 for? To stop a service before deploying a new config file, then start it up 
 again?



No easy way to do that, no.  On the other hand, it's probably not 
necessary.  You should be able to put the new config in place first, then 
trigger a service restart; it is a rare service that cannot be updated in 
that way.  Moreover, it makes the length of the service interruption 
slightly shorter, and it does not leave the service down if the file update 
fails for some reason.  Your manifest will also be simpler.  Just remove 
the Exec, and you should be good to go.


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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/fd78-f5e9-4fa2-82c4-37a5eaef0d8a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Re: How to execute a target action before this one when this one triggers

2014-01-28 Thread Bret Wortman
Yeah, that's what we do in 99% of our manifests, but for cups, the config
file contains this disclaimer right at the top:

# Printer configuration file for CUPS v1.5.4
# Written by cupsd on 2014-01-24 09:47
# DO NOT EDIT THIS FILE WHEN CUPSD IS RUNNING

And the manpages say the same thing: ...If you do choose to edit this file
manually, you will need to stop the scheduler first, make your changes, and
then start the scheduler to make them active.

It just seems like a useful thing, if not exactly common, to say hey, do
this thing before me, but only when I trigger. Declaring a predicate step,
as it were.





*Bret Wortman*
http://about.me/wortmanbret



On Tue, Jan 28, 2014 at 9:10 AM, jcbollinger john.bollin...@stjude.orgwrote:



 On Monday, January 27, 2014 1:50:24 PM UTC-6, Bret Wortman wrote:

 I'm looking at the case of distributing /etc/cups/printers.conf.

 When this file changes, I'd like to distribute it. But before placing the
 new file, cupsd needs to be shut down, and restarted again afterwards. This
 can be done easily enough using an Exec to shut it down and the existing
 Service entry to trigger a restart, but how can I tell my manifest that
 when the File triggers, first do the Exec, then the File, then the Service?

 Is there a way to chain these together to produce the effect I'm looking
 for? To stop a service before deploying a new config file, then start it up
 again?



 No easy way to do that, no.  On the other hand, it's probably not
 necessary.  You should be able to put the new config in place first, then
 trigger a service restart; it is a rare service that cannot be updated in
 that way.  Moreover, it makes the length of the service interruption
 slightly shorter, and it does not leave the service down if the file update
 fails for some reason.  Your manifest will also be simpler.  Just remove
 the Exec, and you should be good to go.


 John

  --
 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/MGIkGFm1LYY/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 puppet-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/puppet-users/fd78-f5e9-4fa2-82c4-37a5eaef0d8a%40googlegroups.com
 .
 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAN9oxgRMSmdSszvd71_tgTp6GMfhw8D71uMJKtvXt5ZEusOy%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Reg : SSL Certificate

2014-01-28 Thread krishna bhaskara rao
Hi,

I have generated SSL certificate in puppet master with domain test.com 
and then moved to below files to puppet agent SSL directory.
certs/test.com.pem, 
private_keys/test.com.pem, 
public_keys/test.com.pem and certs/ca.pem. 

Then I am trying to issue *puppet agent -t --debug* in agent, getting an 
error.
Info: *Creating a new SSL key for test.com*
Info: Caching certificate for ca
Info: Caching certificate for test.com
Error: Could not request certificate: The certificate retrieved 
from the master does not match the agent's private key.

Please suggest me How to resolve this issue, Shall I need to disable 
regeneration of key, if yes how to disable.

With Regards,
Krishna. 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/0a621024-8d23-4225-aa49-e2b8dcf56b7e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Re: Puppet Dashboard Groups

2014-01-28 Thread Stefan Heijmans
it will export all the node list 
That's not nice :(
So that will really be by hand; copy/paste  strip hostnames.
 
Stefan

Op dinsdag 28 januari 2014 13:36:11 UTC+1 schreef kaustubh chaudhari:

   Hi Stefan,

 I am in process of setting up MCollective!

 In the mean while i can do the search using inventory search in Dashboard, 
 i do get the list, but when i try ti export the details in the cvs format, 
 it wont export only filtered, it will export all the node list ie: all 
 linux windows etc.

 where i an searching with the facts as osfamily = windows  and/or Linux.

 -Kaustubh

 With Warm Regards
 Kaustubh.A.Chaudhari
 (M)-09373102619


 On Tue, Jan 28, 2014 at 6:35 AM, Stefan Heijmans 
 heij...@rechtspraak.nljavascript:
  wrote:

  Do you have MCollective running? 
 You could use this to generate a list based on specified facts (mco find 
 --wf fact) to use in those rake tasks.
 Or create them by hand from the Inventory Search in the Dashboard, maybe 
 even a custom rake task.
  
 Stefan
  

 Op dinsdag 28 januari 2014 11:24:08 UTC+1 schreef kaustubh chaudhari:
  
 Thanks for the Reply Stefan!

 I did looked into these options, but i dint find a way to add only 
 windows systems to windows group and linux system to linux group.

 -Kaustubh

 On Tuesday, January 28, 2014 4:15:39 AM UTC-5, Stefan Heijmans wrote: 

  I was looking for a way to group the servers dynamically
 Don't know about this but how about making use of the provided rake 
 tasks, like;
 rake nodegroup:add # Add a new node group
 rake nodegroup:add_all_nodes   # Automatically adds 
 all nodes to a group
 rake node:addgroup # Add group(s) to a node

 Stefan

 Op maandag 27 januari 2014 15:16:09 UTC+1 schreef kaustubh chaudhari:

 Hi,

 I was looking for a way to group the servers dynamically. Eg: create a 
 Windows Group and all the existing nodes and new nodes should be part 
 of 
 Windows group.
 I edit a group and then add each server, but practically its not 
 possible with 2k servers in all!!

 Is there a way to do that?

 -Kaustubh

  -- 
 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/bzFuC0l3TPk/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 puppet-users...@googlegroups.com javascript:.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/puppet-users/6d1b71cb-77c4-4884-ac7f-ff06ce70f069%40googlegroups.com.
  


 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/0e9146e4-cf79-4f2e-8440-f91adb4c0a58%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Just starting and already a little confused

2014-01-28 Thread John Jordan
Greetings,  I installed open-source puppet-server on RHEL 6 and in 
/etc/puppet I see the puppet.conf.

I see entries like:

# The default value is '$confdir/ssl'.
ssldir = $vardir/ssl

My questions is where do (or should) these variables get set and why is the 
default here $vardir and not $confdir? 

Also is there a page that shows how to create your initial 
/etc/puppet/manifest/site.pp file?
I did not get one during install 

Thanx

-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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/573e1e9e-d543-4334-8760-a336877e68ca%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Puppet 2.7.23 error Could not set present on ensure: Function not implemented

2014-01-28 Thread Jon Jaroker
Hello, I was wondering if anyone can give me a pointer on how to solve an 
ambiguous Puppet error Function not implemented when attempting to create 
a file using the 'file' resource type.  The '--debug' flag does not produce 
useful information.

My puppet manifests work fine on several other physical and virtual hosts. 
 This error appears on a new host that was recently installed.  The 
software and hardware configuration of this new host are almost identical 
to all other systems on which the same puppet manifests runs normally.  

I notice the error message is appending (what appears to be) the temporary 
file name used in generating a diff to the managed resource. 

I put the error message and relevant manifest on a web page as well as 
excerpt them below.  

Can someone offer suggestions on how I can debug this?  

Thank you,
Jon

Full manifest is located here:

http://jaroker.org/technical_notes/issues/software/puppet/start

The error message is:

err: /Stage[main]//Node[bose]/Openvz::Bindmount[apps07]/File[Bind Mount Config 
for apps07 on bose]/ensure: change from absent to present failed: Could not set 
'present on ensure: Function not implemented - 
/etc/vz/conf/1107.mount20140128-9690-11oic7u-0 at 
/etc/puppet/modules/common/openvz/manifests/bindmount.pp:47

This error is being triggered by the following resource:

file { Bind Mount Config for ${container} on ${host}:
ensure  = present,
path= $bind_conf,
content = template('openvz/mount.conf.erb','common/header.sh.erb'),
mode= 740, #(Proxmox file system unable to chmod)
}


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/d74d6954-c868-4cf4-8e2d-67dd740d9acf%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: What is the convention used if I want to pull content from source-control for populating a manifest resource?

2014-01-28 Thread Jon Jaroker
The URI scheme for 'source' is either 'puppet' or 'file'.  Here is the man 
page:

http://docs.puppetlabs.com/references/latest/type.html#file-attribute-source

To pull from a repository, you should use a subversion manifest that 
implements checkout.  

Jon

On Monday, January 27, 2014 1:45:30 PM UTC-5, Mark Jaffe wrote:

 Manifest for an app:

 class my_app {
 .
 .
 .

file { '/etc/sysconfig/my_app/configs':
 ensure =  directory,
 mode  =   0755,
 source =  '
 https://subversion.mycompany.com/repository/project/trunk/model-config',
 }

 How would I provide user auth?


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/33875a92-1c20-4ecc-b998-b4624a5241be%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] puppet run interval

2014-01-28 Thread Jason Hatman
Do I *have* to set a run interval for puppet?  I want it to run every 30 
minutes, which I understand is the default.  If I don't specify a run 
interval in puppet.conf will it run anyway every 30 minutes?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/b5a47559-3234-4168-9809-1ec759266879%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: How to find the time when a Puppet manifest is executed

2014-01-28 Thread elliott

On Tuesday, January 28, 2014 6:02:09 AM UTC-8, jcbollinger wrote:


 You could try wrapping your task in a script that defers running it until 
 the agent's lock file disappears.  That would be cleaner and at least 
 slightly more elegant.


Oh good point.  That would be beyond my limited Windows-scripting 
abilities, but it would certainly be possible I think.


 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/a8fa3285-74a6-43ea-a852-3c447c4a052a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] puppet user context

2014-01-28 Thread Jose Luis Ledesma
Could be that the ${plist_name} is undef inside the define? You could try 
adding a notify inside the define to check which value it has.

Regards,

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/842805f9-f950-41aa-9373-9d8db7aa451c%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Re: How to execute a target action before this one when this one triggers

2014-01-28 Thread Jose Luis Ledesma
I dont know if this may work, just an idea ( but I think it is really an ugly 
idea)

Setup a dummy file for printers.conf anywhere I the filesystem

Make it to notify the exec stop cups( setting refreshonly=true) chain it with 
the right file printers.conf and notify from here the cups service.

Regards,

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/aaf6f35a-1bbc-4e2d-8743-cbb2fdfff08f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Re: Puppet Dashboard Groups

2014-01-28 Thread Jose Luis Ledesma
What about storing the facts in yaml format in the puppetmaster and just doing 
a grep there?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5a54a80e-0cdc-4006-b1b1-f4066a4a743f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] puppet run interval

2014-01-28 Thread Jose Luis Ledesma
It is the default behavior, so if you did not especify otherwise it will run 
every 30 minutes.

Regards,

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/4974b835-4a1a-4091-928b-3bf17412fd1e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] puppet run interval

2014-01-28 Thread Matt Zagrabelny
Jose,

Would you please be willing to include some context into your replies?

Thanks,

-mz

On Tue, Jan 28, 2014 at 11:46 AM, Jose Luis Ledesma
joseluis.lede...@gmail.com wrote:
 It is the default behavior, so if you did not especify otherwise it will run 
 every 30 minutes.

 Regards,

 --
 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 view this discussion on the web visit 
 https://groups.google.com/d/msgid/puppet-users/4974b835-4a1a-4091-928b-3bf17412fd1e%40googlegroups.com.
 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAOLfK3XiQCsh23bd2onxMz%2BRiFQdZeozShHSJ_mP0tDPc8X_eQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] puppet run interval

2014-01-28 Thread José Luis Ledesma
Sorry! I normally use groups.google.com to answer,  didn't realize it did
not quote the question! :s

I'll try to solve it out.

Sorry and thanks for notifying me about this.

Regards,

P.d. currently answering from gmail.
El 28/01/2014 18:51, Matt Zagrabelny mzagr...@d.umn.edu escribió:

 Jose,

 Would you please be willing to include some context into your replies?

 Thanks,

 -mz

 On Tue, Jan 28, 2014 at 11:46 AM, Jose Luis Ledesma
 joseluis.lede...@gmail.com wrote:
  It is the default behavior, so if you did not especify otherwise it will
 run every 30 minutes.
 
  Regards,
 
  --
  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 view this discussion on the web visit
 https://groups.google.com/d/msgid/puppet-users/4974b835-4a1a-4091-928b-3bf17412fd1e%40googlegroups.com
 .
  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/hNDJzkfezkc/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 puppet-users+unsubscr...@googlegroups.com.
 To view this discussion on the web visit
 https://groups.google.com/d/msgid/puppet-users/CAOLfK3XiQCsh23bd2onxMz%2BRiFQdZeozShHSJ_mP0tDPc8X_eQ%40mail.gmail.com
 .
 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAF_B3dc1p9ieB0%2B70UbiCHQJstOzXpDbrQnUozJQSvGQAMb8XA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] checking is package is installed ?

2014-01-28 Thread kaustubh chaudhari
Hi,

How do we check if the package is installed, before installing it.

I with to uninstall a package which i can do with ensure = absent, but 
before doing this, i would like to check if the package really exists on 
the system or not?

Can someone help in here or redirect me to the correct documentation.

-Kaustubh

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/90e7a177-d567-4b7c-8fe7-cb30e06af0be%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: Just starting and already a little confused

2014-01-28 Thread kaustubh chaudhari
i will answer the second part of the question!!

 Also is there a page that shows how to create your initial 
/etc/puppet/manifest/site.pp file?

You will have to create it! More details are here 
http://projects.puppetlabs.com/projects/puppet/wiki/Simplest_Puppet_Install_Pattern

-Kaustubh

On Tuesday, January 28, 2014 11:15:54 AM UTC-5, John Jordan wrote:

 Greetings,  I installed open-source puppet-server on RHEL 6 and in 
 /etc/puppet I see the puppet.conf.

 I see entries like:

 # The default value is '$confdir/ssl'.
 ssldir = $vardir/ssl

 My questions is where do (or should) these variables get set and why is 
 the default here $vardir and not $confdir? 

 Also is there a page that shows how to create your initial 
 /etc/puppet/manifest/site.pp file?
 I did not get one during install 

 Thanx

 -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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/0922ece9-604b-4303-9fa1-a84590dffea2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: Just starting and already a little confused

2014-01-28 Thread jcbollinger


On Tuesday, January 28, 2014 10:15:54 AM UTC-6, John Jordan wrote:

 Greetings,  I installed open-source puppet-server on RHEL 6 and in 
 /etc/puppet I see the puppet.conf.

 I see entries like:

 # The default value is '$confdir/ssl'.
 ssldir = $vardir/ssl

 My questions is where do (or should) these variables get set and why is 
 the default here $vardir and not $confdir? 

 Also is there a page that shows how to create your initial 
 /etc/puppet/manifest/site.pp file?
 I did not get one during install 



You could simply do touch /etc/puppet/manifest/site.pp.  The file must be 
readable by the puppetmaster process (so you might need to twiddle 
ownership or permissions), but there is no specific required content.

As you are just starting to play with Puppet, the first (and maybe the 
only) thing you are likely to want to put in your site.pp is one or more 
node declarations.  Again, there is no specific content required for those 
-- the whole point is that's were you declare what *you* want Puppet to 
manage on the target node(s).

Overall, I would recommend that you read the The Puppet Language section 
of the Puppet language reference 
(http://docs.puppetlabs.com/puppet/3/reference/index.html), and at least 
skim the Generated References/Resource Types section.


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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/52749b77-2b6b-459b-8848-33c5802606d4%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Using puppet for openvpn clients

2014-01-28 Thread Derek Cole
Hello,

I have a question about using puppet to distribute openvpn configs to 
clients that I am creating in cloudstack.

To create my cloudstack VMs, I have something similar to this:

cloudstack_instance { 'myVM:
ensure= 'present',
flavor= 'Small Instance',
zone  = 'myzone',
image = 'myimage',
user_data = 'role=ovpnclient',

}

What is the right pattern to follow to distribute my generated client 
openvpn configs to these instances? It seems like the luxflux openvpn 
module just generates the config. Should I just put them into a modules 
file folder, and then use puppet as a file server to push the file based on 
a role?

Has anyone else use puppet to distribute and start openvpn for client 
connections? I'd be interested in hearing what you did.

Thanks

-Derek

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/bade4aa3-b030-400d-a309-d22f915cda69%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] couldn't find the class from the console while Installing a module

2014-01-28 Thread arguscesus .
Hello, I started learning Puppet Enterprise 3.1.1 by following its quick 
start guide. Now I am having trouble with adding new modules. I installed 
puppetlabs-ntp and puppetlabs-awsdemo_profiles in the master node. all 
modules including these two are under the /home/ubuntu/.puppet/modules. 
When I run 'puppet module list', I can see all of them. However, I couldn't 
find any of them when I clicked add classes in the PE console. Any 
comments and helps? 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/67d7f82e-685f-46ac-913e-269e51e12002%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Re: How to execute a target action before this one when this one triggers

2014-01-28 Thread jcbollinger


On Tuesday, January 28, 2014 11:42:18 AM UTC-6, Jose Luis Ledesma wrote:

 I dont know if this may work, just an idea ( but I think it is really an 
 ugly idea)

 Setup a dummy file for printers.conf anywhere I the filesystem

 Make it to notify the exec stop cups( setting refreshonly=true) chain it 
 with the right file printers.conf and notify from here the cups service.


In the same vein, but perhaps slightly nicer, might be to sync the conf 
file just once, with a secondary file on the target node as Jose suggests, 
and to use that to signal an Exec that does a stop; file copy; start 
sequence on the service.  Something like this:

file { '/var/lib/site/cupsd.conf':
  ensure = 'file',
  content = template('cupsd.conf.erb')
}

exec { 'install-cupsd.conf-update':
  command = '/sbin/service cups stop  cp /var/lib/site/cupsd.conf 
/etc/cups.d/  /sbin/service/cups start',
  provider = 'shell',
  refreshonly = true,
  subscribe = File['/var/lib/site/cupsd.conf'']
}

The main problem with an approach along these lines is that it fails to 
notice local changes to the real target config file.  It will modify the 
true target file only when the computed content differs from the content of 
the *proxy* file (i.e. /var/lib/site/cupsd.conf), but if local changes are 
applied to /etc/cups.d/cupsd.conf then Puppet will not recognize the need 
to sync.

I suppose one could use an 'onlyif' parameter to the Exec instead of 
'refreshonly' / 'subscribe', and roll in a comparison of the proxy config 
file with the real target.  That all will get very complicated very 
quickly, though, if you want to manage anything about the real config file 
other than its contents.

The idea of declaring a predicate as a separate resource that will be 
synced only if some other resource needs to be synced is not implemented in 
Puppet, and does not fit well into the Puppet model.  Each declared 
resource determines for itself whether it is in sync, and what to do if it 
isn't.

Therefore, the most correct way to do this in Puppet is to create a custom 
type / provider to handle it.  The first hint was that we were whipping up 
solutions around Execs.  The fact that the service and the config file need 
to be managed in concert, the latter *around* the former, is the real 
indication that the whole thing ought to be modeled as a single resource, 
however.


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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/560499ff-14b1-4534-98ae-223fb81571e2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: Constructing rvalues from exported resources.

2014-01-28 Thread jcbollinger


On Tuesday, January 28, 2014 6:16:41 AM UTC-6, Krist van Besien wrote:

 Hello,

 I am using the Radez/Paxemaker modules, and this allows me to define a 
 cluster like this:

class {'pacemaker::corosync':
   cluster_name = $control_clu_name,
   cluster_members = $control_clu_members,
   require = [ Package['ccs'],
 }

 I currently define the cluster name and members in two parameters. If I 
 add a host to the cluster I just add it's name to the $control_clu_members 
 parameter.
 Is there a way however to do this automatically? Have every host that has 
 this class declared on export something, and use this. Is there a way one 
 can use exported resources to construct strings to be used as rvalues?



Not any good ways.  In any case, that idea doesn't look like a good fit for 
the module in question.  A quick examination leads me to believe that it 
will set up the cluster only once (on each node that has the 
pacemaker::corrosync class).  The resources exported by a given node are 
not available for collection until after the node has checked in at least 
once, however, so even if you could collect information that they exported, 
most nodes would initially get have an incomplete list of cluster members.  
And that would stick.  To use that module effectively, it looks like you 
need to be able to enumerate the cluster members in advance.


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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1dece38d-7e99-4686-9af6-edd1f4343b6e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Puppet client 3.2.X fails to install on Windows 7 x64

2014-01-28 Thread Josh D


On Monday, January 27, 2014 4:15:12 PM UTC-7, Rob Reynolds wrote:

 You should be able to take ownership of the directory you cannot delete as 
 an administrator. Once you have done that you should be able to move 
 forward with deleting those. I think the prior install attempts might have 
 botched something and that directory is not removed.


Ok, have some good news to report.  First, uninstalling and blowing away 
C:\ProgramData\PuppetLabs resulted in the original error when performing a 
clean uninstall.  However, we did find one combination that worked.

#1. Uninstall and ensure C:\ProgramData is absent
#2. Install with PUPPET_AGENT_STARTUP_MODE=Manual
#3. Following installation and *BEFORE* attempting to run puppet agent 
service, run puppet agent as admin.

By running puppet agent not only did it run to completion unlike past 
attempts following a failed start of the service, it also mysteriously 
changed the puppet agent startup mode to automatic and now the puppet 
service works.

In the past when we followed steps #1 and #2 and attempted to start the 
service following installation, the service failed to start and broke the 
client due to permissions.  By running the client before the service, 
everything is fine and dandy.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/bafcdc5d-68b3-4bd1-9236-3d51398fda94%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] checking is package is installed ?

2014-01-28 Thread Gareth Rushgrove
On 28 January 2014 18:21, kaustubh chaudhari kaustu...@gmail.com wrote:
 Hi,

 How do we check if the package is installed, before installing it.

 I with to uninstall a package which i can do with ensure = absent, but
 before doing this, i would like to check if the package really exists on the
 system or not?

 Can someone help in here or redirect me to the correct documentation.


This isn't really how puppet works, but that's a good thing.

By saying absent you're not saying uninstall this package you're
saying I want this package to be absent.

Therefore when you run the Puppet code with ensure = absent on a
system where the package isn't already installed it won't do anything,
the state is already as you have requested. Under the hood it will
check if the package is already installed - you don't have to do this
yourself.

Think of Puppet as describing the state you want, not as running a
series of commands and you'll write much better code.

Gareth

 -Kaustubh

 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/puppet-users/90e7a177-d567-4b7c-8fe7-cb30e06af0be%40googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.



-- 
Gareth Rushgrove
@garethr

devopsweekly.com
morethanseven.net
garethrushgrove.com

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAFi_6yLWRAssd0%3Dufe23VsWs67nC_vphHRf4CWMV0%2BzZGdS8Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Deploy puppet agent to all servers

2014-01-28 Thread WL
Is there a way to deploy puppet agent to all servers rather than installing 
it one by one?
I am using puppet open source.

Thanks,

Wendy

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/09cc7c6a-8820-4b91-aaa5-343ba1c2830f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Deploy puppet agent to all servers

2014-01-28 Thread Derek Harkness
This is kind of a boot strapping problem how to deploy puppet which can then 
manage your puppet.  Tools like razor, kickstart, automation linux installs are 
all pretty good at solving the problem at install time.  Doing it after the 
system is up and running is usually best handled by a ssh for loop, cssh, or 
something similar.

Derek

On Jan 28, 2014, at 15:17, WL w...@ualberta.ca wrote:

 Is there a way to deploy puppet agent to all servers rather than installing 
 it one by one?
 I am using puppet open source.
 
 Thanks,
 
 Wendy
 
 -- 
 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 view this discussion on the web visit 
 https://groups.google.com/d/msgid/puppet-users/09cc7c6a-8820-4b91-aaa5-343ba1c2830f%40googlegroups.com.
 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/6E582EE7-EA95-407F-AEEF-04FF62D981E3%40mac.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Deploy puppet agent to all servers

2014-01-28 Thread Mark Walkom
Ansible might be the best bet.

Regards,
Mark Walkom

Infrastructure Engineer
Campaign Monitor
email: ma...@campaignmonitor.com
web: www.campaignmonitor.com


On 29 January 2014 10:36, Derek Harkness dhark...@mac.com wrote:

 This is kind of a boot strapping problem how to deploy puppet which can
 then manage your puppet.  Tools like razor, kickstart, automation linux
 installs are all pretty good at solving the problem at install time.  Doing
 it after the system is up and running is usually best handled by a ssh for
 loop, cssh, or something similar.

 Derek

 On Jan 28, 2014, at 15:17, WL w...@ualberta.ca wrote:

 Is there a way to deploy puppet agent to all servers rather than
 installing it one by one?
 I am using puppet open source.

 Thanks,

 Wendy

 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/puppet-users/09cc7c6a-8820-4b91-aaa5-343ba1c2830f%40googlegroups.com
 .
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/puppet-users/6E582EE7-EA95-407F-AEEF-04FF62D981E3%40mac.com
 .
 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAEM624YSQohjfhhAzzzd9QPsnuQzN0ets%2BztrJBOVkp_7PhrTA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Help changing a power shell to Puppet types and providers

2014-01-28 Thread Atse Tewodors
Hi,

I am trying converting a powershell script to puppet and providers. I try 
to compile using https://downloads.puppetlabs.com/windows/puppet-3.0.2.msi but 
the code executed without windows update setting changed.

Powershell code -Works fine in powershell

$Updates = (New-Object -ComObject Microsoft.Update.AutoUpdate).Settings

if ($Updates.ReadOnly -eq $True) { 
$Updates.ReadOnly = False
$Updates.NotificationLevel = 1 #Disabled
$Updates.Save()
$Updates.Refresh()
}

else {
$Updates.NotificationLevel = 1 #Disabled
$Updates.Save()
$Updates.Refresh()
}


but when i run the below command using 
https://downloads.puppetlabs.com/windows/puppet-3.0.2.msi --The 
Notification level not updated ???

a = %x[ powershell -command   {($Updates = (New-Object -ComObject 
Microsoft.Update.AutoUpdate).Settings.NotificationLevel)} ]
b = %x[ powershell -command   {($Updates = (New-Object -ComObject 
Microsoft.Update.AutoUpdate).Settings.ReadOnly)} ]


if b.delete(\n) != False
 
%x[ powershell -command   {($Updates = (New-Object -ComObject 
Microsoft.Update.AutoUpdate).Settings; $Updates.ReadOnly = False)}]

end


if a.delete(\n).to_i != 1

%x[ powershell -command  -  {($Updates = (New-Object -ComObject 
Microsoft.Update.AutoUpdate).Settings ; $Updates.NotificationLevel = 
'$1' -Force ; $Updates.save()} ]

end


Any help is appreciated with the above or any other alternative




-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/106f4ce0-d641-49a6-a555-d1c2a8653d6a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Re: Puppet master does not start

2014-01-28 Thread Bhuvnesh Chaudhary
Facing the same error, did anyone figure out the reason for the same ?

On Thursday, October 31, 2013 6:54:59 AM UTC-7, josec...@gmail.com wrote:

 Somebody has any idea what is happening? Can I provide more information 
 (logs, command, etc) where we can find what is the problem?

 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/02dd399f-0f8a-4a62-aecb-2f06614cce4e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] password is not setting up in /etc/shadow included libshadow on ubuntu 12.04 client

2014-01-28 Thread jyotir bhandari
Hi 

I have been trying to set password on ubuntu 12.04 which is client. All the 
neccessary packages of ruby already exists.

Password is not setting up in /etc/shadow. User creation is working just 
fine.

*init.pp*

class accounts {

package {'ruby-shadow': 
 name = 'libshadow-ruby1.8', 
 ensure = installed,
}
 
   @accounts::system { 'demo':
   comment  = 'demo users',
   password = 
'$6$salt$gUxP.t8.YpGkzSXlD5XOUBFAI7Jeat2pRraF7S2ycm36qprk76ihcTCqtgS3YS/dMk9j0EXIK..ZnVqi5YBKs1',
   require = Package['ruby-shadow'],
   }
}

*system.pp*

define accounts::system ($comment,$password) {
user { $title:
   ensure = 'present',
   shell = '/bin/bash',
   managehome = true,
 }
}


Jyotir

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/9fc4d8b4-eed6-4507-baf4-afe8b8d51fa5%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Reg : Pre Generated SSL certificate for multiple agents

2014-01-28 Thread krishna bhaskara rao
Hi,

I have a requirement like below
1. I have generated pre-generated certificates in master for multiple 
agents with some name
2. I have to copy the pre-generated certificate to all the agents.
3. All the clients which have pre-generated certificate, should be able to 
pull the catalog from master.

Please help me on this.

I have tried, but I am getting an error like below
*   Error: Could not request certificate: The certificate retrieved 
from the master does not match the agent's private key.*
*   Certificate fingerprint:*

With Regards,
Krishna.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/55cba39d-9f74-4329-90b2-abe9aaaea8a4%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


[Puppet Users] Re: Constructing rvalues from exported resources.

2014-01-28 Thread Krist van Besien


On Tuesday, January 28, 2014 10:11:58 PM UTC+1, jcbollinger wrote:



 Not any good ways.  In any case, that idea doesn't look like a good fit 
 for the module in question.  A quick examination leads me to believe that 
 it will set up the cluster only once (on each node that has the 
 pacemaker::corrosync class).  The resources exported by a given node are 
 not available for collection until after the node has checked in at least 
 once, however, so even if you could collect information that they exported, 
 most nodes would initially get have an incomplete list of cluster members.  
 And that would stick.  To use that module effectively, it looks like you 
 need to be able to enumerate the cluster members in advance.



What would be the correct way of doing this then?

Krist
 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/9da32cdf-7ab1-4e51-b1f3-e2e3bfdb18fc%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Puppet client 3.2.X fails to install on Windows 7 x64

2014-01-28 Thread Rob Reynolds
Josh,
 I'm glad we were able to get you going. However it is slightly troubling
to see that the service flips to automatic after running puppet agent.

Also are you overriding the user the agent installed as to a
non-administrative user?


On Tue, Jan 28, 2014 at 3:24 PM, Josh D joshuadavid...@gmail.com wrote:



 On Monday, January 27, 2014 4:15:12 PM UTC-7, Rob Reynolds wrote:

 You should be able to take ownership of the directory you cannot delete
 as an administrator. Once you have done that you should be able to move
 forward with deleting those. I think the prior install attempts might have
 botched something and that directory is not removed.


 Ok, have some good news to report.  First, uninstalling and blowing away
 C:\ProgramData\PuppetLabs resulted in the original error when performing a
 clean uninstall.  However, we did find one combination that worked.

 #1. Uninstall and ensure C:\ProgramData is absent
 #2. Install with PUPPET_AGENT_STARTUP_MODE=Manual
 #3. Following installation and *BEFORE* attempting to run puppet agent
 service, run puppet agent as admin.

 By running puppet agent not only did it run to completion unlike past
 attempts following a failed start of the service, it also mysteriously
 changed the puppet agent startup mode to automatic and now the puppet
 service works.

 In the past when we followed steps #1 and #2 and attempted to start the
 service following installation, the service failed to start and broke the
 client due to permissions.  By running the client before the service,
 everything is fine and dandy.

 --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/puppet-users/bafcdc5d-68b3-4bd1-9236-3d51398fda94%40googlegroups.com
 .

 For more options, visit https://groups.google.com/groups/opt_out.




-- 
Rob Reynolds
Developer, Puppet Labs

Join us at PuppetConf 2014, September 23-24 in San Francisco -
http://bit.ly/pupconf14
Register now and save 40%! Offer expires January 31st.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAMJiBK4g-%2BdWbtYk9j%2BPDZWyDvhb%3DYxKLk8cgi%3DQwLaGyCnUTA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: [Puppet Users] Help changing a power shell to Puppet types and providers

2014-01-28 Thread Rob Reynolds
I think this might have to do with 32bit versus x64.

Try opening an x86 PowerShell console and running the first set of code.


On Tue, Jan 28, 2014 at 8:18 PM, Atse Tewodors adugenet1...@gmail.comwrote:

 Hi,

 I am trying converting a powershell script to puppet and providers. I try
 to compile using https://downloads.puppetlabs.com/windows/puppet-3.0.2.msi but
 the code executed without windows update setting changed.

 Powershell code -Works fine in powershell

 $Updates = (New-Object -ComObject Microsoft.Update.AutoUpdate).Settings

 if ($Updates.ReadOnly -eq $True) {
 $Updates.ReadOnly = False
 $Updates.NotificationLevel = 1 #Disabled
 $Updates.Save()
 $Updates.Refresh()
 }

 else {
 $Updates.NotificationLevel = 1 #Disabled
 $Updates.Save()
 $Updates.Refresh()
 }


 but when i run the below command using
 https://downloads.puppetlabs.com/windows/puppet-3.0.2.msi --The
 Notification level not updated ???

 a = %x[ powershell -command   {($Updates = (New-Object -ComObject
 Microsoft.Update.AutoUpdate).Settings.NotificationLevel)} ]
 b = %x[ powershell -command   {($Updates = (New-Object -ComObject
 Microsoft.Update.AutoUpdate).Settings.ReadOnly)} ]


 if b.delete(\n) != False

 %x[ powershell -command   {($Updates = (New-Object -ComObject
 Microsoft.Update.AutoUpdate).Settings; $Updates.ReadOnly = False)}]

 end


 if a.delete(\n).to_i != 1

 %x[ powershell -command  -  {($Updates = (New-Object -ComObject
 Microsoft.Update.AutoUpdate).Settings ; $Updates.NotificationLevel =
 '$1' -Force ; $Updates.save()} ]

 end


 Any help is appreciated with the above or any other alternative




  --
 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 view this discussion on the web visit
 https://groups.google.com/d/msgid/puppet-users/106f4ce0-d641-49a6-a555-d1c2a8653d6a%40googlegroups.com
 .
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
Rob Reynolds
Developer, Puppet Labs

Join us at PuppetConf 2014, September 23-24 in San Francisco -
http://bit.ly/pupconf14
Register now and save 40%! Offer expires January 31st.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAMJiBK4LdfD1nAnqZTzZxh1XCkrBrw46p9iH0kg-%3D7ja9iKuGQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.