Re: [Puppet Users] Re: file resource to provide serveral files

2014-01-27 Thread Andreas Dvorak
Hi, thank you now it is working. Best regards, Andreas -- 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

[Puppet Users] Listing Unresponsive nodes

2014-01-27 Thread vaibhav gupta
Hi All, Is there a way to list unresponsive nodes using a RAKE Task? Just to give the background for the need of such task: In our organization we are having multiple instances of puppet master to manage different set of environments (like DEV, QA, UAT, PROD). Just to verify the configuration

[Puppet Users] Re: Listing Unresponsive nodes

2014-01-27 Thread kaustubh chaudhari
HI Vaibhav, I use the below procedure. Hope this helps you! == Use the below procedure to delete the nodes permanantly! On Puppet Master Server # puppet node clean # puppet node deactivate ON Dashboard server # cd /usr/share/puppet-dashboard # rake RAILS_ENV=production node:del name=node_cer

[Puppet Users] Puppet Dashboard Groups

2014-01-27 Thread 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?

Re: [Puppet Users] Re: Listing Unresponsive nodes

2014-01-27 Thread Deepak Giridharagopal
On Mon, Jan 27, 2014 at 7:12 AM, kaustubh chaudhari wrote: > HI Vaibhav, > > I use the below procedure. Hope this helps you! > > == > Use the below procedure to delete the nodes permanantly! > > On Puppet Master Server > > # puppet node clean > # puppet node deactivate > It's worth mentioning t

[Puppet Users] Re: Module ordering in nodes.pp

2014-01-27 Thread jcbollinger
On Monday, January 27, 2014 1:05:16 AM UTC-6, Sam Rajagopal wrote: > > I have nodes.pp defined as follows > > node "abc.x.com", "123.x.com" { > include module1 > include module2 > include module3 > } > > Very simple definition. No parameterization, no scoping etc > When I run "puppet agent -t

[Puppet Users] Re: Composite namevars for custom Type

2014-01-27 Thread Len
Eric, Thanks that addressed it. I should have tried that. :} Thanks again Len On Sunday, January 26, 2014 10:34:46 AM UTC-5, badgerious wrote: > > Len, > > I tried out your code, and it looks good (the resource in the puppet > manifest doesn't conform to the title pattern format, which causes

[Puppet Users] Re: Hash and loops

2014-01-27 Thread jcbollinger
On Sunday, January 26, 2014 7:13:51 AM UTC-6, thbe wrote: > > Hi @all, > > I try to pass a hash to a module class like this: > > class { 'modulename': > filecontent => { > name1 => 'value1', > name2 => 'value2', > ... > namex => 'valuex', > } > } > > ​The class should take the

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

2014-01-27 Thread Josh D
On Friday, January 24, 2014 1:02:59 PM UTC-7, Rob Reynolds wrote: > > The supported way of making it work is to update to at least 3.3.1. > Just tried installing the 3.4.2 client and had the same problem; service fails to start and the installation is rolled back. The log is *slightly* differen

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

2014-01-27 Thread elliott
I'm wondering if anyone knows a good way to get the date and time when a portion of code in a Puppet manifest is actually *executed*. Sometimes my manifests take a long time to run, and I need to schedule a task to occur soon after the end of the run, no matter when that occurs. I have tried

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

2014-01-27 Thread Felix Frank
Ugh, that's too bad. Also FWIW, I did this on linux using "echo | at now+3min", which works out of the box as long as "atd" is running. Perhaps a similar crutch can be created using the Windows Task Scheduler. Regards, Felix On 01/27/2014 06:07 PM, elliott wrote: > Any ideas? The clients are al

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

2014-01-27 Thread Rob Reynolds
Josh, Can you try something for me? With the install, can you add the following to it? msiexec /qn /i themsilocation.msi PUPPET_AGENT_STARTUP_MODE=Manual And tell me if it installs okay? Then we'll move onto trying to start the service and see what errors crop up. On Mon, Jan 27, 2014 at 10:

[Puppet Users] puppetmaster + hearbeat + mon

2014-01-27 Thread Vassiliy Vins
Hi! 2 puppetmasters and 1 client installed on VMware. I'm using puppetversion 3.4.2 on all 3 hosts 2 pupetmasters, one as primary (hostname =puppetserver.ops.ss) , second (hostname=puppetslave) as secondary, client (hostname=client.ops.ss). High availability and all other steps - exactly a

[Puppet Users] environment variable inside a template

2014-01-27 Thread Jose Luis Ledesma
Is it possible to use the environment variable inside a template? I use a ENC, and I want to avoid the : Warning: Local environment: "production" doesn't match server specified node environment "201401", switching agent to "201401". So I decided to setup puppet.conf inside one of my classes:

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

2014-01-27 Thread Josh D
On Monday, January 27, 2014 10:34:36 AM UTC-7, Rob Reynolds wrote: > > Josh, > Can you try something for me? With the install, can you add the following > to it? > > msiexec /qn /i themsilocation.msi PUPPET_AGENT_STARTUP_MODE=Manual > > And tell me if it installs okay? > > Yep, one step ahead

[Puppet Users] environment variable inside a template

2014-01-27 Thread Jose Luis Ledesma
Nevermind, it's solved -- 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

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

2014-01-27 Thread elliott
On Monday, January 27, 2014 9:17:18 AM UTC-8, Felix.Frank wrote: > > Ugh, that's too bad. > > Haha, indeed. > Also FWIW, I did this on linux using "echo | at now+3min", which > works out of the box as long as "atd" is running. > Perhaps a similar crutch can be created using the Windows Task

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

2014-01-27 Thread elliott
The fix I found for this is to schedule the task using an XML template with the 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 ti

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

2014-01-27 Thread Mark Jaffe
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 messag

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

2014-01-27 Thread Bret Wortman
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

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

2014-01-27 Thread Rob Reynolds
Can you blow away the C:/ProgramData/PuppetLabs directory and try the install again? On Mon, Jan 27, 2014 at 12:01 PM, Josh D wrote: > > > On Monday, January 27, 2014 10:34:36 AM UTC-7, Rob Reynolds wrote: >> >> Josh, >> Can you try something for me? With the install, can you add the >> follow

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

2014-01-27 Thread Rob Reynolds
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. On Mon, Jan 27, 2014 at 5

[Puppet Users] CA puppetmaster

2014-01-27 Thread Vassiliy Vins
Hi! I have 2 puppetmasters with High availability configuration. If first dead, second starts. Could you tell me which file from $ssl_dir of primary should I copy to secondary puppetmaster that clients recognize it as primary one? Any amendments should I make inside files? Thank you -- Y

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

2014-01-27 Thread krishna bhaskara rao
Hi, I have installed puppetmaster in ubuntu machine and i have installed puppet in all my clients using apt-get. I have joined all my puppet clients with puppet master. Is it possible to copy a file to all these puppet clients from puppet master instead of going into agent and issue the command

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

2014-01-27 Thread SHARNINDER_KHERA
Dell - Internal Use - Confidential Read up about the built-in file resource type. http://docs.puppetlabs.com/references/latest/type.html#file -- Sharninder From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] On Behalf Of krishna bhaskara rao Sent: Tuesday, January 28, 20

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

2014-01-27 Thread Dirk Heinrichs
Am 28.01.2014 08:09, schrieb krishna bhaskara rao: > I have installed puppetmaster in ubuntu machine and i have installed > puppet in all my clients using apt-get. I have joined all my puppet > clients with puppet master. Is it possible to copy a file to all these > puppet clients from puppet mast

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

2014-01-27 Thread Jose Luis Ledesma
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 emai