Re: [Puppet Users] Database of Puppet Errors

2017-03-16 Thread Rich Burroughs
I've not seen something like that. I usually just Google for error messages or search this group. There's also the Ask site: https://ask.puppet.com/questions/ Rich On Sun, Mar 5, 2017 at 5:57 PM, warron.french wrote: > Is there a website or database that would help a new Puppet developer >

Re: [Puppet Users] Manage delivery and execution of RPMs not in YUM

2017-03-02 Thread Rich Burroughs
There are a number of reasons it's not a great idea to put them in the module, but one is that if you start sticking binary artifacts into your Puppet code, the size of the repos(s) will grow a lot and it will be much slower to clone them. Also it's just not how people expect things to work. Say y

Re: [Puppet Users] Newbie Question About Puppet

2017-02-17 Thread Rich Burroughs
PuppetDB is great :) You can use Puppet without it, but it gives you a lot of insight into what's happening with puppet and your environment. https://docs.puppet.com/puppetdb/4.3/ There's actually a Puppet module that you can use to set up PuppetDB: https://forge.puppet.com/puppetlabs/puppetdb

Re: [Puppet Users] Re: puppet ruby code documentation needed

2017-01-24 Thread Rich Burroughs
That looks like a really good blog post :) It's definitely work looking at some Ruby Rspec to get some background. I took an introductory Ruby course a few years ago that covered Rspec and it helped me a lot with Puppet testing. At this point pretty much all of the tools widely used for Puppet tes

Re: [Puppet Users] 2016.4.2 puppet enterprise

2017-01-12 Thread Rich Burroughs
The address Carthik mentioned was - certification at puppet dot com. I see the messed up version where it's quoted in your reply, not sure why that's happening :) Rich On Thu, Jan 12, 2017 at 11:41 AM, Ryan Vande wrote: > I have a case open with pearson vue over this, I don't mind paying aga

Re: [Puppet Users] PuppetConf talk recommendations?

2016-11-08 Thread Rich Burroughs
42-gmbh > > <https://puppetconf2016.sched.org/event/6fjq/moving-from-exec-to-types-and-providers-martin-alfke-example42-gmbh> > - Slides - http://www.slideshare.net/PuppetLabs/puppetconf-2016- > moving-from-exec-to-types-and-providers-martin-alfke-example42-gmbh

[Puppet Users] PuppetConf talk recommendations?

2016-11-08 Thread Rich Burroughs
You may have already heard but the PuppetConf videos are posted: https://www.youtube.com/playlist?list=PLV86BgbREluVjwwt-9UL8u2Uy8xnzpIqa I wasn't able to attend and I'm wondering if there were talks people really like that they'd recommend watching :) Rich -- You received this message becaus

Re: [Puppet Users] Using a module that is not 100% hiera-compliant

2016-10-18 Thread Rich Burroughs
On Tue, Oct 18, 2016 at 10:56 AM, Ugo Bellavance wrote: > However, since I can't put all the settings in hiera, I must put some in > the class declaration for the smtp frontends. When I declare the postfix > class in both my default profile and in the smtp frontend profile, I get an > error sayi

Re: [Puppet Users] F5 Module - proxy server

2016-09-06 Thread Rich Burroughs
Hi Mike, I've not done that, but from glancing at the documentation on the Module's Forge page, there don't seem to be any requirements around that besides running a PE agent on that node. I don't know anything about how it hits those APIs on the F5 though. I believe you can use "puppet resource

Re: [Puppet Users] Free cloud for puppet

2016-08-23 Thread Rich Burroughs
Hi, There's not a SaaS version of Puppet, if that's what you mean. You can set up the open source puppetserver yourself in the cloud, or Puppet Enterprise has a free trial. But you have to install it somewhere yourself. Rich On Tue, Aug 23, 2016 at 7:48 AM mastinder singh wrote: > Do puppet s

Re: [Puppet Users] Re: Puppet control, Hiera data, puppetfile, and r10k and git merging woes

2016-08-22 Thread Rich Burroughs
I've managed a lot of configs for apps our developers build. At times when config changes were not backwards compatible I built in the equivalent of feature flags. I added a Boolean param that controlled if it was on or off, and built logic into the ERB/EPP template that used it. Then I could contr

Re: [Puppet Users] Puppet control, Hiera data, puppetfile, and r10k and git merging woes

2016-08-19 Thread Rich Burroughs
I'd love to see you write an article about this if there's not one already. I think these are pretty common workflow issues people grapple with. Rich On Thu, Aug 18, 2016 at 9:24 AM Rob Nelson wrote: > The term 'environment' is overloaded. In the context of puppet, I prefer > to think of it as

Re: [Puppet Users] How does Puppet Push Model works

2016-08-17 Thread Rich Burroughs
Well there is Application Orchestrator if you are using PE, but I think it is still pretty green. It's meant to be the push solution for deploying apps but I'm under the impression that not a lot of people are using it yet. Mcollective is one option, for sure, but there are others. Most orchestrat

Re: [Puppet Users] "extending" hiera data?

2016-08-13 Thread Rich Burroughs
You're right on with the libs part. The modules are assigned to the nodes but using the parameter values that are passed in. There's a great talk from Gary Larizza from Puppet Conf a couple of years ago where he lays this all out. You write modules with parameterized classes (or use ones from the

Re: [Puppet Users] Anyone know how to use the puppetlabs-packer module ?

2016-06-12 Thread Rich Burroughs
Hi Dan, Yeah I took a look and there's not a lot there doc wise. It's quite possible they're driving this from Jenkins or another tool. The Packer JSON files all appear to all be in the templates directory. I'd imagine you could run Packer against the one you need to get the base OS you want, and

Re: [Puppet Users] Git Repo Strategy

2016-06-10 Thread Rich Burroughs
I'm assuming this could be done. We're talking about UNIX she'll commands and there's a way to do just about anything. But I can't imagine it being simple or fun to use. Like could you do Pull Requests on Github between these repos? Maybe, depending on how you set it up. People nowadays recommend a

Re: [Puppet Users] Puppet-in-Docker

2016-06-03 Thread Rich Burroughs
I was starting to play around with rolling my own puppetserver container a few weeks ago and I was wondering if there would ever be an official one. So thanks for reading my mind :) Rich On Fri, Jun 3, 2016 at 6:23 AM Gareth Rushgrove wrote: > Hi All > > A few folks might have seen this yesterd

Re: [Puppet Users] connection refused: 8140

2016-02-19 Thread Rich Burroughs
This is PE and I'm pretty sure iptables can cause this. I believe I've had the same problem, because iptables was blocking the installer from connecting to Puppet DB. I was doing a monolithic install but I expect it could happen if Puppet DB is running on a separate host too. Take a look at the in

Re: [Puppet Users] Announce: A REPL for the puppet language

2016-02-19 Thread Rich Burroughs
Wow! I can't wait to have a look at this. Rich On Fri, Feb 19, 2016 at 3:04 PM Corey Osman wrote: > Hi, > > I created a REPL for the puppet language this week. This is something that > has been lacking for quite some time. > > > https://github.com/nwops/puppet-repl > > Install: gem install pupp

Re: [Puppet Users] Difference between Puppet agent v. apply

2016-02-18 Thread Rich Burroughs
e new things :) Hang in there. Rich On Thu, Feb 18, 2016 at 12:48 PM warron.french wrote: > Hi Rich, thank you for the clarification. The more we discuss this, the > more clear (granted slowly) it becomes for me. > > -- > Warron French > > > On

Re: [Puppet Users] Difference between Puppet agent v. apply

2016-02-18 Thread Rich Burroughs
The agent does not pull modules in a master/agent setup. They are only on the master. The catalog contains the info that the agent needs to get its managed resources into the desired state. It's not a list of modules. Rich On Thu, Feb 18, 2016 at 12:31 PM warron.french wrote: > Henrik, that l

Re: [Puppet Users] Please explain need for multiple .ppm files in a single module

2016-02-17 Thread Rich Burroughs
Check out the Class Design section here: https://docs.puppetlabs.com/guides/module_guides/bgtm.html Rich On Wed, Feb 17, 2016 at 5:01 PM warron.french wrote: > Where I work a great of the Puppet Modules employed are downloaded from > the Puppet Forge; however, some are created by my teammates.

Re: [Puppet Users] Puppet 2015.x versus 3.x

2016-02-10 Thread Rich Burroughs
There's a doc about it here: https://docs.puppetlabs.com/pe/latest/pe_versioning.html Rich On Wed, Feb 10, 2016 at 3:58 PM warron.french wrote: > Can someone please explain to me, the purpose or difference between the > various puppet versions? > > More specifically, I see references to PE 201

Re: [Puppet Users] Still mud-wrestling with spec testing

2015-11-28 Thread Rich Burroughs
+1 for Gareth's skeleton, it's a great way to get started with testing. It comes with rspec-puppet and Beaker set up. I ended up updating some modules recently to use the latest version of it and I was very happy with it. Rich On Sat, Nov 28, 2015 at 10:29 AM Gareth Rushgrove wrote: > Hi Pet

Re: [Puppet Users] Beaker Platforms?

2015-11-19 Thread Rich Burroughs
I think you need a dash in there, not a slash, like: debian-jessie The code is here: https://github.com/puppetlabs/beaker/blob/master/lib/beaker/platform.rb One thing that can help with Beaker stuff is looking at examples like the modules in the puppetlabs space. Rich On Thu, Nov 19, 2015 at

Re: [Puppet Users] rake coverage failing with rspec-puppet

2015-10-18 Thread Rich Burroughs
Ok thanks :) Rich On Sun, Oct 18, 2015 at 1:22 PM Gareth Rushgrove wrote: > On 18 October 2015 at 12:03, Rich Burroughs > wrote: > > Hi Gareth, > > > > Thank you. I wrote this right after PuppetConf and I was thinking, I > should > > have asked him

Re: [Puppet Users] rake coverage failing with rspec-puppet

2015-10-18 Thread Rich Burroughs
ich On Sun, Oct 18, 2015 at 10:32 AM Gareth Rushgrove wrote: > On 12 October 2015 at 16:42, Rich Burroughs > wrote: > > Hey folks, > > > > I'm using a pretty recent version of Gareth's module skeleton and the > > included Rakefile. I can run "rake

Re: [Puppet Users] Re: Configure Jboss EAP with Puppet: How to set the 'jboss_bind_address'

2015-10-16 Thread Rich Burroughs
Yes exactly, you want to override those defaults in Hiera as John says. If you are implementing a module off of the Forge, you shouldn't have to edit the module itself. They should be designed so you can use them with your own data already. Rich On Fri, Oct 16, 2015 at 6:24 AM jcbollinger wrote

[Puppet Users] rake coverage failing with rspec-puppet

2015-10-12 Thread Rich Burroughs
Hey folks, I'm using a pretty recent version of Gareth's module skeleton and the included Rakefile. I can run "rake spec" fine but I don't seem to be able to get the "rake covereage" task to work. -- $ bundle exec rake coverage rake aborted! NoMethodError: undefined method `rcov=' for # Tasks:

Re: [Puppet Users] Re: Why the copied file on client site will not be recovered from server?

2015-10-09 Thread Rich Burroughs
Hi Wei, I wasn't suggesting you should always run it with that --server flag. What I was saying is that the fact that you have to do that to make it work means something is wrong. Again, I would check on the agent host to see what server you have listed in its puppet.conf file. And then see if yo

Re: [Puppet Users] Re: Why the copied file on client site will not be recovered from server?

2015-10-09 Thread Rich Burroughs
You are specifying the name of the Puppet master when you use --server but that's not how the agent will usually run. The error you're getting with the puppet agent -t indicates a problem communicating with the master. That's going to behave the same as when the agent runs every 30 minutes. I woul

Re: [Puppet Users] Re: err: Failed to apply catalog: Parameter source failed on File[...]: Cannot use URLs of type 's001ap38-test' as source for fileserving at /etc/puppet/modules/httpd/manifests/init

2015-10-07 Thread Rich Burroughs
Puppet knows to look in the files directory in your module. There's a bit of an explanation here: https://docs.puppetlabs.com/puppet/latest/reference/modules_fundamentals.html Rich On Wed, Oct 7, 2015 at 10:31 PM Wei Chen wrote: > Hi John, > > Thanks very much. It works now with your code.

Re: [Puppet Users] puppet local environment doesn't match server specified node environment switching agent to

2015-09-22 Thread Rich Burroughs
Are you using Puppet Enterprise? If so, have a look at this: https://docs.puppetlabs.com/pe/latest/console_classes_groups_preconfigured_groups.html#the-agent-specified-environment-node-group If you are using the console for node classification you need to have a group that allows the agent to spe

Re: [Puppet Users] params.pp vs Hiera

2015-09-09 Thread Rich Burroughs
I recommend this post on Gary Larizza's blog: http://garylarizza.com/blog/2013/12/08/when-to-hiera/ Rich On Wed, Sep 9, 2015 at 9:16 AM Martin Alfke wrote: > As a module developer I want to provide a module which will do sane > defaults without forcing users to hiera. > Module developer (at th

Re: [Puppet Users] Re: puppetlabs-postgrest module not loaded

2015-09-01 Thread Rich Burroughs
On Tue, Sep 1, 2015 at 6:40 AM jcbollinger wrote: > > > On Tuesday, September 1, 2015 at 1:59:10 AM UTC-5, Rich Burroughs wrote: >> >> Yeah that is not going to work. >> >> Your Hiera file is a list of classes you're including on the host, > > > > What

Re: [Puppet Users] Re: puppetlabs-postgrest module not loaded

2015-08-31 Thread Rich Burroughs
Yeah that is not going to work. Your Hiera file is a list of classes you're including on the host, I'm assuming your code is using the hiera_include function. Basically Puppet is turning the classes listed in that file into an array and then trying to apply them all. What you've done is try to inc

Re: [Puppet Users] Re: puppetlabs-postgrest module not loaded

2015-08-30 Thread Rich Burroughs
Also if any of that is unclear there is a doc on auto loading and namespacing here: https://docs.puppetlabs.com/puppet/latest/reference/lang_namespaces.html On Sun, Aug 30, 2015 at 11:18 PM Rich Burroughs wrote: > The one in your example was: > > postgresql > > And yes that won

Re: [Puppet Users] Re: puppetlabs-postgrest module not loaded

2015-08-30 Thread Rich Burroughs
etrieve catalog from remote server: Error 400 on > SERVER: Could not find class postgresql for puppet-sql.alflab.net on > node puppet-sql.alflab.net > > It seems it can't find the class at all even it's all there and that's > why I thought the init.pp would be why. > Alf

Re: [Puppet Users] Re: puppetlabs-postgrest module not loaded

2015-08-30 Thread Rich Burroughs
A lot of modules do have one, but not all of them. It's not required, it's a design decision. You should be able to add the classes you want to assign using the proper scoping like: mysql::server Rich On Sun, Aug 30, 2015 at 9:12 PM Alfredo De Luca wrote: > Hi all. > I found out that niether

Re: [Puppet Users] Re: Puppet node does not pull changes from master's catalogs in site.pp or node.pp ?

2015-08-29 Thread Rich Burroughs
Awesome :) Rich On Sat, Aug 29, 2015 at 10:10 PM Chuck Amadi wrote: > Hi Rich, > > Guess what ? > > My vps are back in business. > > Much appreciated, now I can continue on the Work Project and add a > progress report. :) > > > Cheers, > > On Thursday, 27 August 2015 03:22:05 UTC+1, Chuck Amadi

Re: [Puppet Users] Re: Puppet node does not pull changes from master's catalogs in site.pp or node.pp ?

2015-08-29 Thread Rich Burroughs
Did you see my other message about how your site.pp is in the wrong place? I think that was maybe the cause of those debug messages. I think at least that part of it should work if you get the file into the right place. I sent it right before the message you just replied to :) Rich On Sat, Aug

Re: [Puppet Users] Re: Puppet node does not pull changes from master's catalogs in site.pp or node.pp ?

2015-08-29 Thread Rich Burroughs
production is the default environment. That's what an agent will use unless you override it with something else. Rich On Sat, Aug 29, 2015 at 12:50 PM Chuck Amadi wrote: > Hi All, > > Just to note I have added "environment = production" directives to both > master and agent puppet.conf file and

Re: [Puppet Users] Re: Puppet node does not pull changes from master's catalogs in site.pp or node.pp ?

2015-08-29 Thread Rich Burroughs
So Chuck, it looks like you are set up to use what's called directory environments. And I think your site.pp is not in the right place for that setup. This is in your master config: environmentpath = $confdir/environments And your agent is using the default environment, production. So your site

Re: [Puppet Users] How do you track large lists of modules?

2015-08-28 Thread Rich Burroughs
I have not been in a position to have to do that, but one thing that comes to mind is that "puppet strings" can generate HTML docs. Those could be leveraged in a lot of interesting ways: https://github.com/puppetlabs/puppetlabs-strings/blob/master/README.md Rich On Fri, Aug 28, 2015 at 2:00 PM

Re: [Puppet Users] Re: Puppet node does not pull changes from master's catalogs in site.pp or node.pp ?

2015-08-28 Thread Rich Burroughs
Well he has actually been posting that stuff, he's posted his site.pp a few times in the thread. But it has been a bit confusing. He was trying to manage a file resource directly in the node definition in site.pp, but then he was also trying it in node.pp too I think? I do agree that stepping back

Re: [Puppet Users] Re: Puppet node does not pull changes from master's catalogs in site.pp or node.pp ?

2015-08-26 Thread Rich Burroughs
I'm not that familiar with that log file but it looks like it did a GET and got a 200 back, so I wouldn't guess that indicates a problem. I saw you have that definition for the node in your node.pp file. What does your site.pp look like? I'm assuming you've double/triple checked that the file in

Re: [Puppet Users] Re: Puppet node does not pull changes from master's catalogs in site.pp or node.pp ?

2015-08-26 Thread Rich Burroughs
Hi Chuck, I'm not seeing anything wrong with your code glancing at it, but it could be I'm missing something. But if it was an issue with the syntax I'd expect you to get an actual failure, as opposed to the agent running but just making no changes. You connected with the agent once and signed th

Re: [Puppet Users] Puppet node does not pull changes from master's catalogs in site.pp or node.pp ?

2015-08-26 Thread Rich Burroughs
Hi Chuck, If the communication is all working fine and the agent is getting the catalog back from the master, and nothing is changing, that likely means the agent just doesn't have any changes to make. If there are files that you think should be created but aren't, then it's possible there is a p

Re: [Puppet Users] Puppet Server install basic problems

2015-08-16 Thread Rich Burroughs
Yeah you should add /opt/puppetlabs/bin to your shell's PATH or run it with the full path. Rich On Sun, Aug 16, 2015 at 3:40 PM Christopher Wood wrote: > On Sun, Aug 16, 2015 at 08:19:10AM -0700, Sarsa-JP wrote: > >Guys, > > > >First, I'm sorry for the basic question. I'm just starting

Re: [Puppet Users] Why variables standing by themselves should be quoted in resource titles and only there?

2015-08-15 Thread Rich Burroughs
Hi David, My guess is that this is because of the guideline in section 9.1 that all resource titles be quoted. So that is the area where it should be done for consistency. Otherwise if you have a standalone variable elsewhere in your manifest, it's not necessary to quote it. Generally the impetus

[Puppet Users] Pro Git 2nd Edition out

2014-10-27 Thread Rich Burroughs
This isn't Puppet specific but I know a lot of people are using Git in their Puppet workflows (or should be). There's a 2nd edition out of the awesome Pro Git book. It's free, which is just one of the reasons it's awesome: http://git-scm.com/book/en/v2 I haven't read through the new version ye

Re: [Puppet Users] Example of how to use require with hiera?

2014-09-18 Thread Rich Burroughs
I'm not clear what the context is here. Those snippets are what's in your YAML file? Maybe you could post the relevant code from your manifest too? Rich On Thu, Sep 18, 2014 at 6:19 PM, Daniel Johnson wrote: > Things like > > require: File['somefile'] > > or > > require: > File: somefile > >

Re: [Puppet Users] Puppet copy not working

2014-07-11 Thread Rich Burroughs
http://docs.puppetlabs.com/guides/file_serving.html Rich On Friday, July 11, 2014, Nishantu Kumar wrote: > Hello All, > > I have successfully configured puppet master and agent on two machines and > i have created a file in manifest directory to copy a file from master > server to agent machin

Re: [Puppet Users] My hiera entries parse incorrectly

2014-07-04 Thread Rich Burroughs
;CheckingThis' > > > and if I shift the backslash to after the colon I get > > marcstest1.password='Checking:\ This' > > > On Friday, 4 July 2014 14:28:09 UTC-4, Rich Burroughs wrote: >> >> Hi Marc, >> >> Have you tried removing that backs

Re: [Puppet Users] How to deploy code in agent machines from Master

2014-07-04 Thread Rich Burroughs
The Puppet agent runs are initiated on the agent side. There is no Puppet master command that you can use to trigger an agent run. If you want to do something like kick off multiple agent runs at the same time or in a sequence, you can do that with Mcollective. Mcollective comes with Puppet Enterp

Re: [Puppet Users] My hiera entries parse incorrectly

2014-07-04 Thread Rich Burroughs
Hi Marc, Have you tried removing that backslash? I don't think you need to escape the colon. Rich On Friday, July 4, 2014, Marc Whittaker wrote: > Hi Everyone, > > I have run into an issue using puppet with hiera. The situation is I have > the following in a yaml file > > - marcstest1.passwor

Re: [Puppet Users] puppet agent --test errors

2014-07-04 Thread Rich Burroughs
Yeah I think that error occurs when the agent node can't resolve the master's hostname. If you don't define a master I believe the default is just the hostname "puppet". It's probably trying to resolve that and failing. Rich On Friday, July 4, 2014, John Kennedy wrote: > First thing off the to

Re: [Puppet Users] Do modules need to be installed on agents?

2014-06-30 Thread Rich Burroughs
You should not need to install modules on the agents. If they use plugins you will want to have pluginsync enabled, see: http://docs.puppetlabs.com/guides/plugins_in_modules.html That may be what you ran into with the Augeas module. You shouldn't need to install the module on the client though.

Re: [Puppet Users] Re: Puppet 3.6.2: import is deprecated

2014-06-30 Thread Rich Burroughs
I think what you were seeing is related to the last note on this page: http://docs.puppetlabs.com/puppet/latest/reference/lang_import.html Restarting the master should have corrected it, did you end up trying that? Rich On Mon, Jun 30, 2014 at 12:15 PM, Sergey Arlashin < sergeyarl.maill...

[Puppet Users] Stop and Start Services running on Puppet Master or Agent Machine

2014-06-30 Thread Rich Burroughs
I think you're right about the two slashes, if you're specifying the hostname. One thing you might try is running puppet parser validate on your manifest, if you haven't. I'm not sure what the problem is based on your code examples, it's not jumping out at me, but that might point it out. There's

Re: [Puppet Users] New Puppet book: Extending Puppet

2014-06-27 Thread Rich Burroughs
Yes congrats :) The table of contents looks like it covers a lot of useful material. Rich On Thursday, June 26, 2014, Alessandro Franceschi wrote: > Sorry for the shameless promotion, but I suppose this might be of interest > for the readers of this group. > > After more that 6 months of pain,

Re: [Puppet Users] Execute a class if a file is not present.

2014-06-27 Thread Rich Burroughs
gt; On Friday, June 27, 2014 11:08:25 AM UTC+5:30, Rich Burroughs wrote: >> >> How are you doing the installation? With an exec? If so there are some >> notes about making those idempotent on the type reference page: >> >> http://docs.puppetlabs.com/references/latest/type.

Re: [Puppet Users] Execute a class if a file is not present.

2014-06-26 Thread Rich Burroughs
How are you doing the installation? With an exec? If so there are some notes about making those idempotent on the type reference page: http://docs.puppetlabs.com/references/latest/type.html#exec Have a look at the creates attribute. If it's not an exec, maybe provide some code so people have an

Re: [Puppet Users] Puppet newbie, Apache vHosts, and trying to do it the right way

2014-06-24 Thread Rich Burroughs
I'd really recommend that second edition for Pro Puppet for you if you are starting and want to learn to Puppet the right way. If I remember right doing Apache vhosts is an example they use in the book even. The problem is that there are certain types of tasks that it's going to be able to do with

Re: [Puppet Users] Puppet newbie, Apache vHosts, and trying to do it the right way

2014-06-24 Thread Rich Burroughs
Yeah I think part of the difficulty is that there are multiple ways to do things and not everyone agrees on what is the best way. There are some groups that have put their entire Puppet code base on GitHub. I bet you could find some by Googling or searching on GitHub. That's one of the nice things

Re: [Puppet Users] 3.6 directory environments, r10k, and hieradata

2014-06-22 Thread Rich Burroughs
I wonder if you could use hiera-gpg or eyaml to deal with this. Keep the Hiera data in one repo, but have the sensitive data encrypted so the other groups can't read it but the Puppet master can. We use hiera-gpg where I work. With it you should be able to have the people working with the files en

Re: [Puppet Users] Puppet new deployment questions - deployment patterns, sensitivity to network errors, and certificate headaches.

2014-06-16 Thread Rich Burroughs
I'm not sure about your #2 and #3. I've not really experienced either of those and I wouldn't expect they are regular for most people. It would probably be more helpful if you could post more specifics when one of those things happens. As to #1, it maybe depends on how you administer your systems.

Re: [Puppet Users] What is the puppet way to do if I want to customize run interval of a special module

2014-06-11 Thread Rich Burroughs
This is the best answer, in my opinion. Spencer has it totally right. Puppet is not a substitute for scripting languages and cron. Think of it as a way to enforce a desired configuration of a node at any given moment. Things that fall outside of that are probably better candidates for other tools.

Re: [Puppet Users] Dynamically make configuration chnages in files with puppet

2014-06-10 Thread Rich Burroughs
There are multiple ways to make configuration data available. The pattern we use where I work is to manage the config files, use ERB templates for them, and store the data in Hiera. You could also set custom facts on your node to make data available. The second edition of Pro Puppet has some exampl

Re: [Puppet Users] Problem, with Vagrant and Puppet

2014-06-09 Thread Rich Burroughs
If you want to rule out Puppet as being involved, you could run the Puppet agent by hand when you know that the resolv.conf is correct and see if anything changes. If it's something happening on reboot, I doubt Puppet is involved. If you're using VirtualBox, Vagrant will assign a NAT interface aut

Re: [Puppet Users] change jboss port

2014-06-02 Thread Rich Burroughs
Can you let people know which module exaxtly that you're using? Is it one you wrote or one you got from the Forge? I looked on the Forge and saw multiple JBOSS modules and they are probably all going to work differently. Hopefully it's parameterized and you can just override the default port when

Re: [Puppet Users] EC2 autoscaling reusing hostnames

2014-05-29 Thread Rich Burroughs
Yeah I think masterless is probably the way to go for autoscaling. Even with autosigning on you have to deal with the cert issue somehow. I have a vagrant environment I hacked together for some testing and I re-use hostnames there. My solution was to have the agent execute a "puppet cert clean" on

Re: [Puppet Users] change jboss port

2014-05-29 Thread Rich Burroughs
Are you using a Puppet module to configure JBOSS? Rich On Thursday, May 29, 2014, Ankita kumari wrote: > > I want to know how can we change the jboss port no. which is 8080 by > default > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group.

Re: [Puppet Users] puppet-lint questions

2014-04-10 Thread Rich Burroughs
s string > before doing the lint check > > All new puppet modules get the string put in immediately > > At some time in the future, we will flip the logic and string change to > '#NO_PUPPET_LINT' > for the challenging files and lint check by default > > John &g

[Puppet Users] puppet-lint questions

2014-04-10 Thread Rich Burroughs
I saw one of the Puppet Labs webinars about setting up your Puppet development environment, and at one point it mentioned using a git hook to run puppet-lint before committing. We do that where I work with "puppet parser validate," but right now a lot of our code would not pass a puppet-lint ru

Re: [Puppet Users] puppet agent doesn't start service on initial run

2014-03-28 Thread Rich Burroughs
I just saw this, glad you got it worked out. In my experience that sort of behavior usually does have to do with resource ordering, when something fails on one the first run but succeeds on the second. It's usually because a dependency like that got created too late. Rich On Thursday, March 27,

Re: [Puppet Users]

2014-01-01 Thread Rich Burroughs
Tim, Is the version of Puppet the same on the agent and master? When you upgrade you want to upgrade the master first. I'm not sure what's causing it but the puppet@localhost part actually looks like a MySQL grant issue, like something is hitting a MySQL DB trying to use that user and host and fa

Re: [Puppet Users] Re: VMware and open source puppet

2013-12-04 Thread Rich Burroughs
If you are using Puppet Enterprise, it does have support for provisioning VMs though Puppet: http://docs.puppetlabs.com/pe/latest/cloudprovisioner_vmware.html If you're using the open source Puppet, I'm not aware of a way to do that (I'm not saying there's not a way, just that I don't know of one

Re: [Puppet Users] Question about Hiera...

2013-12-04 Thread Rich Burroughs
Is this the one you were using Jerald? http://docs.puppetlabs.com/hiera/1/complete_example.html I'm not sure I've seen a better one. There is a chapter on it in the second edition of Pro Puppet. I am expecting it will be pretty clear but I've not gotten that far yet :) http://www.apress.com/9781

Re: [Puppet Users] Can't find good tutorial/how-to

2013-12-03 Thread Rich Burroughs
Yeah agreed. I took a few of those, I thought they were well done. Rich On Tue, Nov 26, 2013 at 5:02 PM, Nathan Valentine wrote: > Hey, Stephen. > > I point people here: https://puppetlabs.com/learn/library. Free > self-directed videos about core Puppet concepts with similar content to the > i

Re: [Puppet Users] best way to distribute puppet manifests

2013-12-02 Thread Rich Burroughs
I think it depends a bit on your situation. If you're the only one editing the code, you might find using a version control system too much overhead. I would probably still want to do it even in that case, but not everyone would. If you're making changes infrequently, a backup of the files might be

Re: [Puppet Users] Re: noop = true and what for test?

2013-12-02 Thread Rich Burroughs
Hi Stuart, I'm not sure what your use case is for running the agent as a daemon in noop mode? I can't think of a situation at least in my workplace when I'd want to do that. You know that you can run the agent once in noop mode from the command line? You can do that without changing any configs r

Re: [Puppet Users] Can't find good tutorial/how-to

2013-11-26 Thread Rich Burroughs
I took the Puppet Fundamentals class a few months ago in Portland at Puppet Labs and it was great. I definitely recommend it. I already was using Puppet some in my day job but it gave me a lot more context. The instructor was very well qualified and was fielding some pretty advanced questions, he h

Re: [Puppet Users] Puppet: a way to secure certain files

2013-11-19 Thread Rich Burroughs
You can use hiera gpg for ssh keys too. See this example: https://groups.google.com/d/msg/puppet-users/jHcuKQXT9cQ/g23Lmf4e6b8J On Tue, Nov 19, 2013 at 1:03 PM, Sergey Arlashin < sergeyarl.maill...@gmail.com> wrote: > Hi! > > I'm trying to secure some data inside my puppet repository. Some pas

Re: [Puppet Users] group type

2013-11-18 Thread Rich Burroughs
;]: } > expression? > > > On Monday, November 18, 2013 3:47:10 PM UTC-8, Rich Burroughs wrote: > >> I bet members needs to be an array when you specify more than one value. >> >> http://docs.puppetlabs.com/puppet/3/reference/lang_datatypes.html#arrays >> &

Re: [Puppet Users] group type

2013-11-18 Thread Rich Burroughs
Oops my mail client hadn't loaded the replies, it looks like Matthaus has it. But yeah you do also need to use arrays when there are multiple values. Rich On Monday, November 18, 2013, Rich Burroughs wrote: > I bet members needs to be an array when you specify more than one value.

Re: [Puppet Users] group type

2013-11-18 Thread Rich Burroughs
I bet members needs to be an array when you specify more than one value. http://docs.puppetlabs.com/puppet/3/reference/lang_datatypes.html#arrays On Monday, November 18, 2013, Stuart Cracraft wrote: > Hi. > > Created: > > class mumble { > : > random stuff > : > } > > class mumble:groupe

Re: [Puppet Users] Enterprise support for Puppet

2013-11-18 Thread Rich Burroughs
We've been using the open source Puppet for a while but we're going to switch over to PE. >From what I understand, their top level of support is pretty extensive, like they will actually look at manifests and tell you why your code isn't working (so I've heard). We had them out for a professional

Re: [Puppet Users] running a program and returning the value

2013-11-16 Thread Rich Burroughs
Yeah I'm with John. I don't know what your use case is, but if you want to make sure that user's UID is set to a certain value, that's a great task for Puppet's user management. Manage the user in a manifest and set the UID, and Puppet will make sure it's set to that value each time the agent runs.

Re: [Puppet Users] List of all Hiera data for a particular host/puppet run?

2013-11-16 Thread Rich Burroughs
This would be a pretty awesome feature. I think the hard part about something like a script is that different hosts may have different classes applied. You could also make a big ERB template with all the known Hiera variables in it and just have it generate a file somewhere on your filesystem. I'm

Re: [Puppet Users] Puppet agent does not start in Solaris zone

2013-11-15 Thread Rich Burroughs
I'm not sure. I'd check to see if your Ruby version is supported: http://docs.puppetlabs.com/guides/platforms.html Rich On Friday, November 15, 2013, Andreas Dvorak wrote: > Hi Rich, > > I tried > /opt/csw/bin/puppet agent --test > bash: /opt/csw/bin/puppet: /opt/csw/bin/ruby18: bad interprete

Re: [Puppet Users] some good books

2013-11-15 Thread Rich Burroughs
The new Pro Puppet is likely to be great, I haven't read it yet. It's updated for 3.x. http://www.apress.com/9781430260400 Rich On Thursday, November 14, 2013, Stuart Cracraft wrote: > > Hi, > > I have some books on Puppet, none of which impresses me. > > What are the Puppet books you have and

Re: [Puppet Users] Upgrade from Puppet 2.7.20 to latest !!!

2013-11-15 Thread Rich Burroughs
Yeah seconded. I'm in the same boat :) I appreciate the info. Rich On Friday, November 15, 2013, Rakesh Kathpal wrote: > Thanks a lot Pete for your really helpful reply.. :) > > > On Fri, Nov 15, 2013 at 4:49 PM, Peter Meier > > > wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA1 >>

Re: [Puppet Users] Puppet agent does not start in Solaris zone

2013-11-14 Thread Rich Burroughs
Hi, It's starting up through SMF? What happens if you try to run the agent directly? Like: sudo puppet agent -t Or run it as root without sudo. Rich On Wednesday, November 13, 2013, Andreas Dvorak wrote: > Dear all > > the puppet agent does not want to start on my first Solaris zone. I have

Re: [Puppet Users] Re: Issuing web request (REST) from puppet manifest

2013-11-14 Thread Rich Burroughs
I haven't coded this sort of thing but I know of one example. We use a module where I work to configure our Opsview monitoring software. It sends requests to the Opsview REST API, parses the responses, and sends more requests to update anything that needs it. If you want to look at it: https://fo

Re: [Puppet Users] Re: Few questions about Puppet

2013-10-24 Thread Rich Burroughs
It's not clear to me exactly what you're trying to do. Unless I'm misreading something, both of those file resources are exactly the same. I'm not sure why you would need to manage the same resource twice with the same settings, but as the earlier person said, you can't. Maybe part of the confusio

Re: [Puppet Users] Looking for tips for transitioning to Puppet Enterprise

2013-09-11 Thread Rich Burroughs
Dan, You can do those things from the PE console but you don't have to. You can assign classes to nodes the old school way too. It's really up to you whether you prefer to do those kinds of things through the UI or in your Puppet code. On Wednesday, September 11, 2013, Dan White wrote: > I hav

Re: [Puppet Users] puppet agent modules/ manual pull

2013-09-09 Thread Rich Burroughs
For #1: Puppet is very good at managing cron jobs, in fact there's a cron resource type that makes that very easy: http://docs.puppetlabs.com/references/latest/type.html#cron I'm not sure if there's an easy way to do #2. You could maybe run a puppet apply on that manifest out of cron if you have

Re: [Puppet Users] Puppet under HA Environment

2013-09-05 Thread Rich Burroughs
One of my former co-workers did a talk about Mcollective at PuppetConf. People involved in this thread might find it useful :) He gives some examples about doing rolling restarts, you could do something very similar with orchestrating agent runs. http://puppetlabs.com/presentations/intro-systems-o

Re: [Puppet Users] Hiera and hiera-gpg

2013-08-30 Thread Rich Burroughs
Your manifests look the same. You do a hiera lookup just as you would if you weren't using the GPG integration. It's just another data store for hiera. You do need to set that up, as other people have mentioned. But it's no different in the manifests. On Fri, Aug 30, 2013 at 6:30 AM, Worker Bee

  1   2   >