[Puppet Users] Module haproxy and hiera
Hi I got the same problem like here with haproxy module and hiera https://ask.puppet.com/question/28861/puppetlabs-haproxy-hierra-help/ I wounder how a hiera fiole would have to lok like that haproxy module is taking its information like listing from hiera . Sry for the n00b question and thx for your help! -- 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/83d58845-d199-49fb-8cca-70b2327c173dn%40googlegroups.com.
[Puppet Users] Prevent duplicate resources
Hi All, We recently start with Puppet and during our introductory consultancy it was mentioned that there is a "sneaky" way to define a resource (for example a pakcage) in multiple classes that wouldn't cause the "duplicate resource" errors. We have a few classes that rely on the same package being installed, but cannot guarantee they are all attached to a node, as such we would need to define the same package resource in all classes. Does anyone know how to add a resource in multiple classes without the error? thanx! Timo -- 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/b690bc99-46cc-4130-b7ea-8f03442aa16d%40googlegroups.com.
Re: [Puppet Users] Foreman and Puppet managing templates question
Thanks for the reply. You've answered my question. I'll post back if I need anymore help. On Tuesday, May 7, 2013 3:49:38 PM UTC+1, Ashley Penney wrote: Foreman does replace nodes.pp. It acts as an 'ENC', the external node classifier. We'd need more details on what you're doing with templates in Puppet and nodes.pp to really answer this question. Are you thinking in terms of how you'd put variables into nodes directly with Foreman? There's space in the host page in Foreman for adding variables, under Parameters if you want to add them directly. A better approach to this is to look into Hiera, where you build a hierarchal data store that relies on various facts to provide the appropriate contents to variables to then consume in erb templates. Ideally you'd find ways to not have node specific information, but if you did need it you'd add $::fqdn to your hiera hierarchy and then add nodename.yaml files for each node where you listed out all the variables. This has the big benefit of remaining version controlled, unlike parameter entries in Foreman. As I said earlier, if you give some use cases we can probably explain this all a little better to you. Thanks, On Tue, May 7, 2013 at 9:53 AM, timo stockf...@gmail.com javascript:wrote: Hi, I have just started to use Foreman 1.1. I have been using Puppet for a while and have some custom modules and ones that have been dragged down from git etc. I am using nodes.pp in Puppet to assign classes and template entries to hosts. So is Foreman meant to eliminate my need for a nodes.pp? How do I manage my erb templates in Puppet without a nodes.pp? 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...@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.
[Puppet Users] Foreman and Puppet managing templates question
Hi, I have just started to use Foreman 1.1. I have been using Puppet for a while and have some custom modules and ones that have been dragged down from git etc. I am using nodes.pp in Puppet to assign classes and template entries to hosts. So is Foreman meant to eliminate my need for a nodes.pp? How do I manage my erb templates in Puppet without a nodes.pp? 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.
[Puppet Users] Re: Force unmount??
Thanks for the replies. I created a module and made it a 'requires' of mount.pp, The exec subscribes to a text file that holds the current environment (test/production) then kills any PID's 'onlyif' lsof -N returns a 0. So in the event of DR, puppet can unmount and remount without a problem. Dirty but it works. Cheers, On Monday, October 8, 2012 1:38:23 PM UTC+1, timo wrote: Is there any method of forcibly umounting an NFS mounted directory? We have a test environment managed under puppet that is also our DR environment. In a DR scenario we'll be umounting all NFS shares from out test array and remounting to our DR array. However, as this is a test environment we have users logged on, so when Puppet attempts to unmount the test directories, it fails with umount: /test/dir: device is busy if I fuser against the /test/dir directory and kill the PID all is OK. I need a method of either forcibly umounting the array, or killing all PID's using the mounted directores so Puppet can unmount them. I'd like all this done from Puppet. Any ideas? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/o__ruNxeTMMJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Force unmount??
Is there any method of forcibly umounting an NFS mounted directory? We have a test environment managed under puppet that is also our DR environment. In a DR scenario we'll be umounting all NFS shares from out test array and remounting to our DR array. However, as this is a test environment we have users logged on, so when Puppet attempts to unmount the test directories, it fails with umount: /test/dir: device is busy if I fuser against the /test/dir directory and kill the PID all is OK. I need a method of either forcibly umounting the array, or killing all PID's using the mounted directores so Puppet can unmount them. I'd like all this done from Puppet. Any ideas? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/DAsPOFksueMJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Remove directory
Here's one for you! We're rolling out some zip files to our servers using Puppet, there's an exec that unzips them, the zip file is then deleted. I need to remove the old versions of the unzipped directory using Puppet when we rol out a newer version. So, on my client/node machine I have the below directories. /opt/1234 /opt/12345 /opt/123456 What I need to do, is rm the the above directories when we roll out 1234567.zip. When the newest directory (1234567) is unzipped, the Puppet exec sym links it to /opt/java. So could I remove the older directores that are not sym linked? Maybe using: tidy { tidy_opt: path = /opt/, age = 1d, backup = false, matches = [ some nice ruby here that finds the non sym linked directories?? ], } Hope this makes sense? Thanks, -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/nq3bxtqSYNwJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: puppet client can't get certificate
Hi mate, I use Puppet 2.6 but in this situation would run: From puppetmaster puppetca --revoke agent.foo.com puppetcat --clean agent.foo.com From agent rm -rf /var/lib/puppet/ssl puppetd --waitforcert 30 --server puppetmaster -v From puppetmaster puppetca --sign agent.foo.com On Thursday, October 4, 2012 4:14:14 AM UTC+1, mike sonero wrote: Hi All, I apologize for what I'm sure is a very boneheaded question, but I'm stuck. I have a number of puppet agents all talking to the same master. Things worked great until at some point one of the agents stopped talking to the master - I'm not sure why that happened. I decided to wipe its key from the master and start fresh. Unfortunately I haven't had any luck getting them to play nicely. The agent is running 2.7.11. The master is running 2.7.1. They can ping, do hostname lookups, etc to each other. When I attempt a manual update from the agent I see: ubuntu@agent:~$ sudo puppet agent --onetime --no-daemonize --verbose warning: peer certificate won't be verified in this SSL session warning: peer certificate won't be verified in this SSL session warning: peer certificate won't be verified in this SSL session Exiting; no certificate found and waitforcert is disabled Doing a sudo puppet cert list on the master shows nothing pending. Running the server with debugging turned on shows the following: ubuntu@puppet:/var/lib$ sudo puppetmasterd --no-daemonize --debug --verbose ...startup... info: access[^/catalog/([^/]+)$]: allowing 'method' find info: access[^/catalog/([^/]+)$]: allowing $1 access info: access[^/node/([^/]+)$]: allowing 'method' find info: access[^/node/([^/]+)$]: allowing $1 access info: access[/certificate_revocation_list/ca]: allowing 'method' find info: access[/certificate_revocation_list/ca]: allowing * access info: access[/report]: allowing 'method' save info: access[/report]: allowing * access info: access[/file]: allowing * access info: access[/certificate/ca]: adding authentication no info: access[/certificate/ca]: allowing 'method' find info: access[/certificate/ca]: allowing * access info: access[/certificate/]: adding authentication no info: access[/certificate/]: allowing 'method' find info: access[/certificate/]: allowing * access info: access[/certificate_request]: adding authentication no info: access[/certificate_request]: allowing 'method' find info: access[/certificate_request]: allowing 'method' save info: access[/certificate_request]: allowing * access info: access[/]: adding authentication any info: Inserting default '/status'(auth) ACL because none were found in '/etc/puppet/auth.conf' info: Could not find certificate for 'agent.foo.com' info: Could not find certificate for 'agent.foo.com' info: Could not find certificate for 'agent.foo.com' I tried generating a key on the server (even though it said there was no pending request) with: cert generate agent.foo.com However, the client then reported: ubuntu@agent:~$ sudo puppet agent --onetime --no-daemonize --verbose --waitforcert 120 err: Could not request certificate: The certificate retrieved from the master does not match the agent's private key. Certificate fingerprint: 51:E2:EC:3B:28:39:FB:24:95:38:AD:FE:D0:89:8C:93 To fix this, remove the certificate from both the master and the agent and then start a puppet run, which will automatically regenerate a certficate. On the master: puppet cert clean agent.foo.com On the agent: rm -f /var/lib/puppet/ssl/certs/agent.foo.com.pem puppet agent -t I followed those instructions, but now am back at the beginning... If anybody has ideas on things I might try I'd really appreciate it! Sorry if I didn't include the right info. /var/log/syslog seemed pretty empty. Thanks, - mike -- You received this message because you are subscribed to the Google Groups Puppet Users group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/UYOw8wirADsJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Re: [Puppet Users] Re: How to change the node's class or groups
HI igal: I find the ajax only work in windows IE. It don't work in the Firefox 3.6.8 under Ubuntu 10.04. I think this is a bug. ### Best regards Timo Seven blog: http://zauc.wordpress.com twitter: http://twitter.com/zauc Linux System Admin MySQL DBA 2010/8/23 Igal Koshevoy i...@pragmaticraft.com: On Wed, Aug 18, 2010 at 10:47 PM, Timo Seven gre...@gmail.com wrote: I install puppet version 2.6 and puppet dashboard 1.0.3. When I change one node's class or groups, it is invalid。 I also can add new class and groups. But no nodes can be in these class or groups. So I insert a node in a class under mysql like insert into node_class_memberships values (1,1,1,'2010-08-17','2010-08-17');, Then I can see the first node has been in the first class. [...] follow is the log Processing NodesController#update (for 10.1.41.81 at 2010-08-19 13:45:53) [PUT] Parameters: {node={name=puppet.timo.com, node_group_names=[ ], parameter_attributes=[{value=, key=}], node_class_names=[ ], description=}, action=update, _method=put, authenticity_token=sV1FfxR5EAatq+BW/ApH7/JPEK9LLwmKCtBEDIvYmQI=, id=puppet.timo.com, controller=nodes} Redirected to http://10.10.83.193:3000/nodes/puppet.timo.com Completed in 40ms (DB: 0) | 302 Found [http://10.10.83.193/nodes/puppet.timo.com] Timo, The Puppet Dashboard currently uses a quirky AJAX autocomplete system. You need to type the first few characters of the group field, then click the desired group name in the popup selector list, which will then add it as text within a rounded box to the groups text input field, and then you can click the create/save button for the form to save it. Simply typing the name in is not enough, you must click the name of the group in that popup selector list. There's a strong desire to either fix or replace the autocompletion system with something that's more user friendly. Here's the related ticket: http://projects.puppetlabs.com/issues/3427 Can you please confirm that what I just described is the issue you were having? -igal -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: How to change the node's class or groups
Hi all: Who can help me to resolve this problem. ### Best regards Timo Seven blog: http://zauc.wordpress.com twitter: http://twitter.com/zauc Linux System Admin MySQL DBA 在 2010年8月19日 下午1:47,Timo Seven gre...@gmail.com 写道: follow is the log Processing NodesController#update (for 10.1.41.81 at 2010-08-19 13:45:53) [PUT] Parameters: {node={name=puppet.timo.com, node_group_names=[ ], parameter_attributes=[{value=, key=}], node_class_names=[ ], description=}, action=update, _method=put, authenticity_token=sV1FfxR5EAatq+BW/ApH7/JPEK9LLwmKCtBEDIvYmQI=, id=puppet.timo.com, controller=nodes} Redirected to http://10.10.83.193:3000/nodes/puppet.timo.com Completed in 40ms (DB: 0) | 302 Found [http://10.10.83.193/nodes/puppet.timo.com] ### Best regards Timo Seven blog: http://zauc.wordpress.com twitter: http://twitter.com/zauc Linux System Admin MySQL DBA 在 2010年8月19日 上午11:50,Timo Seven gre...@gmail.com 写道: Hi all: I install puppet version 2.6 and puppet dashboard 1.0.3. When I change one node's class or groups, it is invalid。 I also can add new class and groups. But no nodes can be in these class or groups. So I insert a node in a class under mysql like insert into node_class_memberships values (1,1,1,'2010-08-17','2010-08-17');, Then I can see the first node has been in the first class. ### Best regards Timo Seven blog: http://zauc.wordpress.com twitter: http://twitter.com/zauc Linux System Admin MySQL DBA -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] How to change the node's class or groups
Hi all: I install puppet version 2.6 and puppet dashboard 1.0.3. When I change one node's class or groups, it is invalid。 I also can add new class and groups. But no nodes can be in these class or groups. So I insert a node in a class under mysql like insert into node_class_memberships values (1,1,1,'2010-08-17','2010-08-17');, Then I can see the first node has been in the first class. ### Best regards Timo Seven blog: http://zauc.wordpress.com twitter: http://twitter.com/zauc Linux System Admin MySQL DBA -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] Re: How to change the node's class or groups
follow is the log Processing NodesController#update (for 10.1.41.81 at 2010-08-19 13:45:53) [PUT] Parameters: {node={name=puppet.timo.com, node_group_names=[ ], parameter_attributes=[{value=, key=}], node_class_names=[ ], description=}, action=update, _method=put, authenticity_token=sV1FfxR5EAatq+BW/ApH7/JPEK9LLwmKCtBEDIvYmQI=, id=puppet.timo.com, controller=nodes} Redirected to http://10.10.83.193:3000/nodes/puppet.timo.com Completed in 40ms (DB: 0) | 302 Found [http://10.10.83.193/nodes/puppet.timo.com] ### Best regards Timo Seven blog: http://zauc.wordpress.com twitter: http://twitter.com/zauc Linux System Admin MySQL DBA 在 2010年8月19日 上午11:50,Timo Seven gre...@gmail.com 写道: Hi all: I install puppet version 2.6 and puppet dashboard 1.0.3. When I change one node's class or groups, it is invalid。 I also can add new class and groups. But no nodes can be in these class or groups. So I insert a node in a class under mysql like insert into node_class_memberships values (1,1,1,'2010-08-17','2010-08-17');, Then I can see the first node has been in the first class. ### Best regards Timo Seven blog: http://zauc.wordpress.com twitter: http://twitter.com/zauc Linux System Admin MySQL DBA -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
[Puppet Users] how to ensure like this like puppet://puppet.server/modules/xxx
Hi all: I want to every client to download a file like test.txt to /etc/ So I write a test.pp class test { file { /etc/test.txt: source = puppet://puppet.timo.com/module/test.txt } } But now in the server log I found the error like Aug 16 13:21:44 zw_83_193 puppet-master[22362]: Not authorized to call find on /file_metadata/module/test.txt, and the test.txt has not in the all clients. ### Best regards Timo Seven blog: http://zauc.wordpress.com twitter: http://twitter.com/zauc Linux System Admin MySQL DBA -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.