RE: [Puppet Users] Re: Is it possible to install actual OS using puppet?

2013-09-12 Thread Steven Nemetz
Take a look at razor https://puppetlabs.com/solutions/next-generation-provisioning https://github.com/puppetlabs/razor http://www.slideshare.net/PuppetLabs/puppetandrazor http://www.slideshare.net/PuppetLabs/razor-puppet Steven Subject: Re: [Puppet Users] Re: Is it possible to install actual OS

RE: [Puppet Users] arnoudj/sudo and different versions of CentOS

2013-09-12 Thread Steven Nemetz
I don't know about the module you are using but things to verify: /etc/sudoers contains an include for /etc/sudoers.d Check that the version of sudo is new enough to support this. You may need to upgrade it. I had to on a number of my Redhat 5 servers Steven Date: Thu, 12 Sep 2013 15:01:30

RE: [Puppet Users] clone system configuration with puppet

2013-09-06 Thread Steven Nemetz
Puppet only knows about what it is managing or auditing. So, it will always be limited by what it is told to look at. While you might be able to do something using the audit feature, I would not recommend it. As it will never be complete for your purpose. I'd recommend looking at blueprint.

RE: [Puppet Users] clone system configuration with puppet

2013-09-06 Thread Steven Nemetz
Found the other one. It is pysa Links for both: Blueprinthttps://github.com/devstructure/blueprinthttp://devstructure.com/blueprint/ Pysahttp://pypi.python.org/pypi/Pysahttp://github.com/MadeiraCloud/pysa Steven From: snem...@hotmail.com To: puppet-users@googlegroups.com Subject: RE: [Puppet

RE: [Puppet Users] puppet client

2013-08-28 Thread Steven Nemetz
Just use the RedHat packages We use the same packages for RedHat, CentOS, and Oracle EL Some modules need to get slightly modified to recognize Oracle EL Steven Subject: [Puppet Users] puppet client From: smcracr...@me.com Date: Wed, 28 Aug 2013 10:02:48 -0700 To:

RE: [Puppet Users] puppet-ls with Puppet 3.2

2013-08-23 Thread Steven Nemetz
You could try the newer module designed to do the same thing. It was written as a puppet face about 6 months ago https://github.com/dalen/puppetls Steven Date: Fri, 23 Aug 2013 01:42:11 -0700 From: andreas.dvo...@googlemail.com To: puppet-users@googlegroups.com Subject: [Puppet Users] puppet-ls

RE: [Puppet Users] execution expired

2013-07-23 Thread Steven Nemetz
Catalog generation took too long. Could be the puppet master is overloaded are just the puppet module code used. You can increase the timeout on the agents. On the agent in puppet.conf under the agent section add configtimeout = 900 The number is in seconds. Set it to whatever you're

RE: [Puppet Users] Re: Validation failed: Host already has a report for time and kind

2013-06-11 Thread Steven Nemetz
Every time that I've received this error, it was because 2 different hosts had the same cert name. In my case a problem caused by system cloning or a system template that contained a cert name. Hope that helps, Steven Date: Tue, 11 Jun 2013 08:17:42 +0100 Subject: Re: [Puppet Users] Re:

RE: [Puppet Users] Trouble writing authorized_keys2

2013-05-07 Thread Steven Nemetz
I see this all the time. It happens due to lacks in the ssh_authorized_key type and the error message isn't very helpful. If the type sees something that it doesn't understand in the file this will happen, also when it runs into things that it does not support. I had a user change from dsa to

RE: [Puppet Users] Puppet mount fails due to kernel module

2013-04-09 Thread Steven Nemetz
This is an OS privilege issue. So puppet has to working within what can be done on the OS. By default mount requires root privileges to make changes. This is why it will work as root but not as puppet. So you either run as root or set it up so a non-root user can mount Some OS's have options to

RE: [Puppet Users] inplace line manipulation

2013-03-09 Thread Steven Nemetz
exec has been used to do this since puppet's early days. You can use your choice of systems tools (sed, perl, ...) Then put it into a define, so it can be called on many different file and multiple times Some examples: http://projects.puppetlabs.com/projects/1/wiki/simple_text_patterns

RE: [Puppet Users] serving large files formally code artifacts best practices

2013-03-09 Thread Steven Nemetz
Ideally, use packages instead. But if that is not possible. Put the tarballs on a web server and have the agents pull the files from there. It will be much faster than puppet distributing the files and they will not be in the codebase. On my repo server, I have a directory for tarballs for

RE: [Puppet Users] Using Facter to find the Java version running on the machine

2013-02-21 Thread Steven Nemetz
This is the fact that I use Facter.add(java_version) do setcode do `/usr/bin/java -version 21`.split(\n)[0].split('')[1] end end Steven Date: Thu, 21 Feb 2013 22:50:24 + From: y...@comcast.net To: puppet-users@googlegroups.com Subject: Re: [Puppet Users] Using Facter

RE: [Puppet Users] Managing puppeteer modules with git

2013-02-11 Thread Steven Nemetz
We have seperate repos in git for every puppet module. Each module has a Jenkins job to auto test it and if it passes updates the super repo (Main repo with all the module repos in use as submodules). This allows all management of each module (rights, testing, etc) to be independent of all

RE: [Puppet Users] hiera query yaml parameters

2013-02-09 Thread Steven Nemetz
I'm not noticing the problem, but maybe it would help to see some other code. I just uploaded my mounts module to github. It has one place that uses a function from Example42, but that can be replaced with a normal hiera call. https://github.com/snemetz/Puppet_mounts I have a few modules that

RE: [Puppet Users] hiera query yaml parameters

2013-02-05 Thread Steven Nemetz
keys comes form the PuppetLab's stdlib moduleSo does is_array and a bunch of other nice functions Steven Date: Tue, 5 Feb 2013 07:12:45 -0800 From: rai...@gmail.com To: puppet-users@googlegroups.com Subject: Re: [Puppet Users] hiera query yaml parameters Steven, thanks for your reply! You

RE: [Puppet Users] hiera query yaml parameters

2013-02-03 Thread Steven Nemetz
You can read the hash directly, create_resource is not needed (may or may not be desired) $user_defs = hiera('os_users') will give you the full hash What I tend to do for this type of data structure is: $user_defs = hiera('os_users') $user_keys = keys($user_defs) if is_array($user_keys) {

RE: [Puppet Users] Re: Hiera hashes and arrays in ERB templates

2013-01-04 Thread Steven Nemetz
I'm using stdlib to help with this $listeners = hiera('haproxy_listeners', undef)$listener_keys = keys($listeners) then pass $listener_keys to a define to create all the instances The entre hash is in memory ($listeners) and the define will have the key it is working on ($name)So you can

RE: [Puppet Users] Re: How do you install a yum repo?

2012-11-25 Thread Steven Nemetz
The error say that on line 8 of file /etc/yum.repos.d/puppet.repo there is something that it cannot interpret. Usually some type of syntax error, but it could be something else. Your first step is to look at that file on the host that is getting the error and see what is there. If it is not

RE: [Puppet Users] Issue with service = disabled and stopped

2012-11-16 Thread Steven Nemetz
If it is happening every time, it is usually an issue with init script. Puppet is not understanding the output of the init script, so it is not saving the correct state.Run the init script manually and see what it is returning. If it is not obvious, run puppet with --debug and see the exact

RE: [Puppet Users] Creating files from array?

2012-11-16 Thread Steven Nemetz
Change your yaml file to: files: - a - b - c Then puppet will read it in as an array. Pass the array to a define and the define will run once for each element of the array Steven Date: Sat, 17 Nov 2012 03:27:20 +0100 From: jso...@srce.hr To: puppet-users@googlegroups.com Subject:

RE: [Puppet Users] puppet facter variable substring

2012-10-25 Thread Steven Nemetz
Not sure if puppet will let you access regex without being in some type of test. Also, just habit. I'm usually doing some validation in the regex. In this case, I've moved validation to after this and have it validate against data in hiera. Hiera has a list of the valid data center codes.

RE: [Puppet Users] puppet facter variable substring

2012-10-24 Thread Steven Nemetz
You can use regex for that Here is an piece of my code for doing that. In my case [environment, 1 letter][collo, 2 letters] if $hostname =~ /^(.)(..)/ { $global_env = $1 $location = $2 } Steven Date: Wed, 24 Oct 2012 07:14:50 -0700 From: paolo.sup...@gmail.com To:

RE: [Puppet Users] Re: Can Puppet interact with perl script user input fields?

2012-10-05 Thread Steven Nemetz
The centrify script may be thousands of lines, but it doesn't do that much. A lot of it is for user interaction and multiple OS stuff. At my last company we used centrify for authentication. It was less then a dozen commands to setup. A bit longer than that once put into puppet. If you really

RE: [Puppet Users] hiera and fallback to params?

2012-10-03 Thread Steven Nemetz
Take a look at Example42's Next Gen modules on github. They all do what you're asking about and a bit more There is a routine defined within the puppi module, that the rest of the modules use to lookup variable values. Defaults are assigned in params.pp which the main class inherits and they

RE: [Puppet Users] Puppet Autosign

2012-10-03 Thread Steven Nemetz
This is normal. New system will always generate a new cert. You only need to delete /var/lib/puppet/ssl on the client and remove the cert on the master puppet cert clean cert There has been some discussions on ways to automate this. Should be able to find them in the archives. Steven Date:

RE: [Puppet Users] Autoscaling with Puppet

2012-05-15 Thread Steven Nemetz
Generally puppet doesn't detect new systems as such. The new systems tell the puppet server about themselves. The way this is handled is your base instance install would include puppet. So, as the system boots up puppet would be running. The puppet agent will contact the master. The master

[Puppet Users] Re: What happens if puppet fails half way into processing a catalog?

2009-09-10 Thread Steven Nemetz
If you have dependencies set for a chain of events and it fails part way, that is how the system is left. Everything that succeeded before the failure with stay there and nothing in the dependence chain after the failure will have been done. Every run of puppet after this, it will keep trying to

[Puppet Users] Re: Useful Puppet/Facter CDP/cdpr hack

2009-04-22 Thread Steven Nemetz
Thanks. This is a great idea and starting point for me to get this information added into our inventory for auto provisioning. Steven -Original Message- From: puppet-users@googlegroups.com [mailto:puppet-us...@googlegroups.com] On Behalf Of Joel Krauska Sent: Wednesday, April 22,

[Puppet Users] Re: Package rpm parameters

2009-02-26 Thread Steven Nemetz
- From: puppet-users@googlegroups.com [mailto:puppet-us...@googlegroups.com] On Behalf Of Todd Zullinger Sent: Thursday, February 26, 2009 5:18 PM To: puppet-users@googlegroups.com Subject: [Puppet Users] Re: Package rpm parameters Steven Nemetz wrote: Is there a way to pass parameters to rpm

[Puppet Users] Package rpm parameters

2009-02-24 Thread Steven Nemetz
Is there a way to pass parameters to rpm with the package type? I have some rpms that need to be installed with --nodeps Thanks, Steven --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Puppet Users group. To post

[Puppet Users] Re: Problem with some of my puppet clients running

2009-02-09 Thread Steven Nemetz
-Original Message- What about if you run Facter with --puppet, making sure it loads your custom facts? -- Due to circumstances beyond your control, you are master of your fate and captain of your soul. -

[Puppet Users] Problem with some of my puppet clients running

2009-02-04 Thread Steven Nemetz
All my puppet clients were running ok. Then 2 things happened yesterday: 1) I had puppet upgrade facter to 1.5.3 everywhere. Most were running 1.3.8 prior. 2) We had network problem, causing one of our datacenters to go offline The network problems have been fixed and was not

[Puppet Users] Re: changing puppet run interval

2008-11-03 Thread Steven Nemetz
I set the interval using both the config file and the command line. Works fine. I believe I did this originally because the config file alone did not work. But that was in 0.23. I haven't retested in later versions, since everything is working. Steven -Original Message- From: