Re: [Puppet Users] Smoke testing puppet modules within Red Hat Satellite v6.2 Puppet Master

2016-09-23 Thread Evan Hisey
Warron-
  Just something to think about also, you may be calling a class that
Satellite does not have as it is running an older version of the community
puppet.

On Wed, Sep 21, 2016 at 8:13 PM, Warron French 
wrote:

> Thanks Rob, I will review your advice when I am in the environment (back
> at work) tomorrow.
>
>
> Thanks again.
>
> On 9/21/2016 5:14 PM, Rob Nelson wrote:
>
> Warren,
>
> It seems like you might be running afoul of the autoloader. It expects
> that within the module path, each module has a certain layout - the class
> ntp is defined in ntp/manifests/init.pp, etc. if you place that in a
> directory called module2, puppet will not find it, since it expects
> module2/manifests/init.pp to contain the module2 class. That's my first
> guess, but it could be that you obfuscated your paths and did not call it
> module_name2 on disk but mas_shared_mas_menu as the error indicated,
> difficult to tell from here. Let us know if that helps!
>
> Rob Nelson
>
> On Wednesday, September 21, 2016, Warron French 
> wrote:
>
>> As most of you I know, I am a total novice at Puppet.  I have built, on
>> my own however, a PE Puppet Master at home and it is running on a
>> CentOS-6.7 VM.
>>
>> Now, I am at work, trying to write modules and smoke test them, like I
>> have learned to do much better now at home.
>>
>> At home, I can write some basic modules without having to constantly
>> refer to style guides, syntax documentation, etc... then I run:
>>
>>1. puppet parser validate module_name1/tests/init.pp
>>2. puppet apply --noop module_name1/tests/init.pp
>>
>> When I run the smoke test, I see an indicate of *what changes would have
>> occured*.  Normal right?
>>
>>
>> In my work environment, on the Red Hat Satellite Server, I wrote some
>> similar modules from memory, then I run:
>>
>>1. puppet parser validate module_name2/tests/init.pp
>>2. puppet apply --noop module_name2/tests/init.pp
>>
>> The syntax checks out, but the error(s) I get in response to the smoke
>> test are:
>>
>> Error: Could not find class mas_shared_mas_menu for x  on node x
>>
>> Error: Could not find class mas_shared_mas_menu for x on node  x
>>
>>
>> *NOTE1:*  I have learned how to upload a puppet module to my Puppet
>> Master on the Satellite Server.
>>
>> *NOTE2:*  I am smoketesting these modules from the ssh terminal session
>> connected to the Satellite/Puppet Master server = .
>>
>> *NOTE3:*  I don't have any agent nodes attached to my Puppet Master.
>>
>>
>> Can someone tell me what I am doing wrong please?
>> --
>> 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/ms
>> gid/puppet-users/2a3b3fc7-f287-48b4-9031-187f041a56be%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
> --
>
> Rob Nelson
> rnels...@gmail.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/CAC76iT-NeFxm5NPv%2B5YnZ2YGEYW%
> 2B81474t--i2TioysrJ0xX8w%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> 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/4a5a407a-3681-eb14-587d-f35880ff428e%40gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAEcFzYynBp%3D%2BT46xj4u-%3DzyXn5eofkzbVGN8UXtpag-C4bpRyQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Code_manager checkout fails during puppet run with a 401/404 error

2016-03-18 Thread evan . hisey
I had Codemanger and git_lab running well, but had to move change the 
server name. After the name change, Git_lab is running fine from the GUI, 
and for code check-in. However the puppetmaster when it does its puppet run 
fails to connect to the control-repo. I am pretty sure the errors are being 
triggered by the fact puppet is getting 401 error from the git host. And I 
am pretty sure this means I have corrected an entry somewhere in the 
manifest or need to change keys somewhere. Suggestions?

Debug log Message from the Puppet run:

Debug: gitlab_deploy_key::api_call: REST API GET Endpoint: 
http://nwcal-srv07.nwc.nws.noaa.gov/api/v3/projects/puppet%2Fcontrol-repo
Debug: gitlab_deploy_key::api_call: REST API GET Request: #
opening connection to nwcal-srv07.nwc.nws.noaa.gov:80...
opened
<- "GET /api/v3/projects/puppet%2Fcontrol-repo HTTP/1.1\r\nAccept-Encoding: 
gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nUser-Agent: 
Ruby\r\nContent-Type: application/json\r\nPrivate-Token: 
***\r\nConnection: close\r\nHost: 
nwcal-srv07.nwc.nws.noaa.gov\r\n\r\n"
-> "HTTP/1.1 404 Not Found\r\n"
-> "Date: Thu, 17 Mar 2016 16:41:06 GMT\r\n"
-> "Server: Apache/2.4.6 (CentOS)\r\n"
-> "Cache-Control: no-cache\r\n"
-> "Content-Length: 35\r\n"
-> "Content-Type: application/json\r\n"
-> "Status: 404 Not Found\r\n"
-> "Vary: Origin\r\n"
-> "X-Request-Id: aa9af9c9-9e59-4a2b-bcc8-c97be8f8035c\r\n"
-> "X-Runtime: 0.028008\r\n"
-> "Connection: close\r\n"
-> "\r\n"
reading 35 bytes...
-> "{\"message\":\"404 Project Not Found\"}"
read 35 bytes
Conn close
Debug: gitlab_deploy_key::api_call: REST API GET Response: 
#
Debug: gitlab_deploy_key::api_call: REST API GET Endpoint: 
http://nwcal-srv07.nwc.nws.noaa.gov/api/v3/projects/0/keys
Debug: gitlab_deploy_key::api_call: REST API GET Request: #
opening connection to nwcal-srv07.nwc.nws.noaa.gov:80...
opened
<- "GET /api/v3/projects/0/keys HTTP/1.1\r\nAccept-Encoding: 
gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nUser-Agent: 
Ruby\r\nContent-Type: application/json\r\nPrivate-Token: 
\r\nConnection: close\r\nHost: 
nwcal-srv07.nwc.nws.noaa.gov\r\n\r\n"
-> "HTTP/1.1 404 Not Found\r\n"
-> "Date: Thu, 17 Mar 2016 16:41:06 GMT\r\n"
-> "Server: Apache/2.4.6 (CentOS)\r\n"
-> "Cache-Control: no-cache\r\n"
-> "Content-Length: 35\r\n"
-> "Content-Type: application/json\r\n"
-> "Status: 404 Not Found\r\n"
-> "Vary: Origin\r\n"
-> "X-Request-Id: bd185376-d065-4b4d-b2be-6bec9000ce35\r\n"
-> "X-Runtime: 0.023668\r\n"
-> "Connection: close\r\n"
-> "\r\n"
reading 35 bytes...
-> "{\"message\":\"404 Project Not Found\"}"
read 35 bytes
Conn close
Debug: gitlab_deploy_key::api_call: REST API GET Response: 
#
Error: 
/Stage[main]/Profile::Git_webhook::Code_manager/Git_deploy_key[add_deploy_key_to_puppet_control-nwcal-srv06.nwc.nws.noaa.gov]:
 
Could not evaluate: no implicit conversion of String into Integer
Debug: gitlab_webhook::api_call: REST API GET Endpoint: 
http://nwcal-srv07.nwc.nws.noaa.gov/api/v3/projects/puppet%2Fcontrol-repo
Debug: gitlab_webhook::api_call: REST API GET Request: #
opening connection to nwcal-srv07.nwc.nws.noaa.gov:80...
opened
<- "GET /api/v3/projects/puppet%2Fcontrol-repo HTTP/1.1\r\nAccept-Encoding: 
gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nUser-Agent: 
Ruby\r\nContent-Type: application/json\r\nPrivate-Token: 
**\r\nConnection: close\r\nHost: 
nwcal-srv07.nwc.nws.noaa.gov\r\n\r\n"
-> "HTTP/1.1 404 Not Found\r\n"
-> "Date: Thu, 17 Mar 2016 16:41:06 GMT\r\n"
-> "Server: Apache/2.4.6 (CentOS)\r\n"
-> "Cache-Control: no-cache\r\n"
-> "Content-Length: 35\r\n"
-> "Content-Type: application/json\r\n"
-> "Status: 404 Not Found\r\n"
-> "Vary: Origin\r\n"
-> "X-Request-Id: b3f757d2-7ca7-42bf-8a62-bb67facfa7da\r\n"
-> "X-Runtime: 0.013062\r\n"
-> "Connection: close\r\n"
-> "\r\n"
reading 35 bytes...
-> "{\"message\":\"404 Project Not Found\"}"
read 35 bytes
Conn close
Debug: gitlab_webhook::api_call: REST API GET Response: #
Debug: gitlab_webhook::api_call: REST API GET Endpoint: 
http://nwcal-srv07.nwc.nws.noaa.gov/api/v3/projects/0/hooks
Debug: gitlab_webhook::api_call: REST API GET Request: #
opening connection to nwcal-srv07.nwc.nws.noaa.gov:80...
opened
<- "GET /api/v3/projects/0/hooks HTTP/1.1\r\nAccept-Encoding: 
gzip;q=1.0,deflate;q=0.6,identity;q=0.3\r\nAccept: */*\r\nUser-Agent: 
Ruby\r\nContent-Type: application/json\r\nPrivate-Token: 
***\r\nConnection: close\r\nHost: 
nwcal-srv07.nwc.nws.noaa.gov\r\n\r\n"
-> "HTTP/1.1 404 Not Found\r\n"
-> "Date: Thu, 17 Mar 2016 16:41:06 GMT\r\n"
-> "Server: Apache/2.4.6 (CentOS)\r\n"
-> "Cache-Control: no-cache\r\n"
-> "Content-Length: 35\r\n"
-> "Content-Type: application/json\r\n"
-> "Status: 404 Not Found\r\n"
-> "Vary: Origin\r\n"
-> "X-Request-Id: a1885023-728f-47f3-a0d8-b5d9dd3cf62b\r\n"
-> "X-Runtime: 0.015593\r\n"
-> "Connection: close\r\n"
-> "\r\n"
reading 35 bytes...
-> "{\"message\":\"404 Project Not 

Re: [Puppet Users] Help to find Automation tool

2016-03-08 Thread evan . hisey
Agree with Abu, if for no other reason than Redhat, the original powerhouse 
behind spacewalk has moved to Puppet to power it's backend. 
Puppet+Foreman+katello+pulp combination is going to give you very powerful 
tools for handling both windows and linux automation.

On Tuesday, March 8, 2016 at 2:04:28 PM UTC-6, Abu Yousef wrote:
>
> The alternative for spacewalk would be foreman, foreman can do linux 
> provisioning (bare metal, docker, vms), and can do configurtion managment 
> and reporting, as well as scalable and was built with the assumption of 
> distributed data centers. in terms of configuration managment foreman uses 
> currently puppet 3, and can be used with chef, and Ansible via plugins. 
>
> On 7 March 2016 at 00:01,  wrote:
>
>> ‎Dear yeayu,
>>
>> Perfect! You are right...
>> I waste my time to read many documentation over internet.
>> But, I think that I found the right interlocutors now‎.
>> Our infrastructure is based on virtualisation.
>> We have 85% Linux VMs‎ and 15% Windows.
>> We already use an automation tool which is Bladelogic. 
>> I have earlier done some comparison between Puppet and Bladelogic and 
>> found that the last one is powerful than Puppet.
>> But we are oblige to change bladelogic for Group security raison.
>> They proposed us 3 software (Chef, spacewalk and Puppet) .
>> We have two distant Datacenter.
>> We want to continue our Deployment, automatic OS installation, dashboard, 
>>  Group VM creation and so one...
>> We have to take ownership on this automation tool and give limited right 
>> ‎to our partner.
>>
>> Best Regards ! 
>>
>> Envoyé de mon smartphone BlackBerry 10.
>> *De: *yeayu
>> *Envoyé: *dimanche 6 mars 2016 19:47
>> *À: *Puppet Users
>> *Cc: *tux...@gmail.com ; mamadou...@yahoo.fr 
>> *Objet: *Re: [Puppet Users] Help to find Automation tool
>>
>> Hello,
>>
>> Although we all probably suggest you to go for it, I think you should 
>> give it some more thought...
>>
>> There are many other factors to consider:
>> - what's your environment like? all windows? 50% linux based? OS 
>> versions? are they fully supported?
>> - how confident do you feel with puppet's DSL, powershell or other 
>> scripting languages like ruby (this one for chef)?
>> - supportability, scalability, expandability, integration with external 
>> tools (i.e. VMware)...
>>
>> Before making a final decision, I would get familiar with these tools, 
>> perform some testing, review pros/cons according to your strategic vision 
>> (what are you going to manage in the next 3/6/12/18 months?) ... and then 
>> make up your mind.
>>
>> I hope this helps.
>>
>> Regards
>>
>>
>>
>> On Sunday, 6 March 2016 18:41:24 UTC, Mamadou CHERIF wrote:
>>>
>>> Dear Martin !  
>>>
>>> Great!!! 
>>> Thanks you so much. 
>>> I will come back if any issue regarding Puppet Deployment. 
>>>
>>> Regards, 
>>>
>>> Envoyé de mon smartphone BlackBerry 10. 
>>>   Message d'origine   
>>> De: Martin Alfke 
>>> Envoyé: dimanche 6 mars 2016 17:41 
>>> À: puppet...@googlegroups.com 
>>> Cc: mamadou...@yahoo.fr 
>>> Objet: Re: [Puppet Users] Help to find Automation tool 
>>>
>>> Hi Mamadou, 
>>>
>>> Puppet OpenSource also supports windows: 
>>> https://docs.puppetlabs.com/windows/ 
>>>
>>> Best, 
>>> Martin 
>>>
>>> On 06 Mar 2016, at 10:13, Mamadou CHERIF  wrote: 
>>>
>>> > Hello Team, 
>>> > 
>>> > I am a noob on automation. 
>>> > I should choose one tool between Puppet, CHEF and Spacewalk. 
>>> > I have done some research on the web and i found that puppet is 
>>> better. 
>>> > But our company would like to use puppet opensource not enterprise 
>>> version. 
>>> > 
>>> > I would like to know if puppet ope,source version supports WINDOWS. 
>>> > 
>>> > 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. 
>>> > To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/puppet-users/516bb44b-166d-4897-ae2d-e87cfdd63e96%40googlegroups.com.
>>>  
>>>
>>> > For more options, visit https://groups.google.com/d/optout. 
>>>
>>>
>> -- 
>> 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 .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/20160306210115.8212559.8087.2071%40yahoo.fr
>>  
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop 

[Puppet Users] Hiera manifest development on workstation

2016-03-08 Thread evan . hisey
Well, I have hiera running an working and beginning to handle my code. But 
I have run in to the problem of developing on on my workstation, but having 
to upload to the puppet server to test when using hiera. If I use normal 
manifests everything can be coded and test on the workstation with "puppet 
apply". How can this functionality be setup with Hiera. (It may be in the 
puppet docs, but I am not finding it in my hunt)

-- 
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/3634d13b-e574-4ada-8c58-4a481d084b0a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Setting up Code Manager and running in to problem with r10k_api_user needing key and web hook failing test pushes

2016-03-07 Thread evan . hisey
Discovered the solution. Turns out port 8170 was closed on the Puppet 
server firewall. The logs were not very helpful in finding this, and the 
error had me looking in the wrong place to begin with as it was on the 
Master and not the GitLab server despite the error.

On Friday, March 4, 2016 at 4:23:58 PM UTC-6, evan@noaa.gov wrote:
>
> As the title says this is dealing with Code Manager. First I followed the 
> directions in the gitlab module to setup gitlab, and that much worked up to 
> testing code pushes. At this point it was apparent the the r10k_api_user 
> had a problem do to no ssh key, and that the web hook trigger is not 
> working. I am not sure where how to go about debugging this as the only 
> error I have found is the un helpful:
> 500 Whoops, something went wrong on our end. 
> --
>
> Try refreshing the page, or going back and attempting the action again.
>
> Please contact your GitLab administrator if this problem persists.
>
>
> This looks like something is configured wrong on the gitlab side by I need 
> help in hunting it down. 
>
>
> Evan
>

-- 
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/3644378e-59ee-4f00-99c2-6b48a7aea26d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Setting up Code Manager and running in to problem with r10k_api_user needing key and web hook failing test pushes

2016-03-04 Thread evan . hisey
As the title says this is dealing with Code Manager. First I followed the 
directions in the gitlab module to setup gitlab, and that much worked up to 
testing code pushes. At this point it was apparent the the r10k_api_user 
had a problem do to no ssh key, and that the web hook trigger is not 
working. I am not sure where how to go about debugging this as the only 
error I have found is the un helpful:
500 Whoops, something went wrong on our end. 
--

Try refreshing the page, or going back and attempting the action again.

Please contact your GitLab administrator if this problem persists.


This looks like something is configured wrong on the gitlab side by I need 
help in hunting it down. 


Evan

-- 
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/ed6de589-a17b-4e82-acb6-3fe6474f3558%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] POC Update for PuppetForce Apache Module

2016-01-05 Thread Evan Hisey
AJ-
  Out of curiosity why would you want more than one instance of apache per
host? I can't think of a situation that can't be handled by a single apache
server other than maybe running to different versions of apache at once,
and I am not sure when I would need to do that.

Evan

On Tue, Jan 5, 2016 at 10:50 AM, Hunter Haugen 
wrote:

> Hi AJ!
>
> Ooo, this sounds like a desirable feature for the apache module.
>
> On Tue, Jan 5, 2016 at 5:14 AM, A J  wrote:
>
>> Hello,
>>
>> I am new to distributed development and Puppet.  The one thing that was
>> bothering since I started learning this product is the lack of ability to
>> run more than one instance of Apache per host.
>>
>> I actually like the PuppetForge Apache module for the most part, so I
>> have made some changes to it as a Proof-of-Concept for RedHat that allows
>> you to run multiple instances.
>>
>> My question is that I get confused by the documentation, etc. on how best
>> to submit this for review to the community, without actually causing any
>> problems.
>>
>> Could someone help direct me as to the correct way to make this
>> submission?
>>
>
> Our docs on this are basically what is described in
> https://github.com/puppetlabs/puppetlabs-apache/blob/master/CONTRIBUTING.md
> though it is not very verbose. Github documentation on creating a pull
> request is at https://help.github.com/articles/creating-a-pull-request/
>
> If you have contributions to CONTRIBUTING.md (hah) then the master copy is
> held at
> https://github.com/puppetlabs/modulesync_configs/blob/master/moduleroot/CONTRIBUTING.md
>
> It also helps speed up the process if you ping us on the #puppet-dev
> freenode channel and get real-time feedback.
>
> --
> 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/CAJaQvGDmeyH_D-D_MDjDO-0GGO7kvAWgNG4%2BUUD%2B6nxOaQ9DNQ%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAEcFzYxb%2BVdiGfonJ5qapqwJg4s5dNoiaDm3Q0pyRUPs-OHcEA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Puppet keeps trying to change correct setting back to correct

2015-12-11 Thread evan . hisey
Thats is how I got the notices. It is either in how the facts are being 
pulled, or how puppet is asking but I am can't determine which from what I 
am seeing in the --debug.  

On Friday, December 11, 2015 at 8:04:18 AM UTC-6, jcbollinger wrote:
>
>
>
> On Thursday, December 10, 2015 at 3:42:22 PM UTC-6, evan@noaa.gov 
> wrote:
>  
>
>> Suggestions on where to start trouble shooting this? 
>>
>>
>
> Running the agent with --debug logging would likely provide more 
> information for you to work with.
>
>
> 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/ec724bba-49d7-49c6-b8da-5233482e97c8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet 101: How to make it go?

2015-12-11 Thread evan . hisey
The community version use a different web frontend, namely foreman. Foreman 
had some pretty good getting started with puppet docs also. 

If you are up to having a client check in, showing up in Radiator, and able 
to trigger remote runs then you are in to writing classes and modules, and 
using puppetforge which is the same for both at the command line. And 
honestly, I am leaning to saying that is way easier than doing it with the 
gui. 

On Wednesday, December 2, 2015 at 9:55:17 AM UTC-6, John Oliver wrote:
>
> Thanks, Morgan!  No, I had not thought to look under puppet 4.3 to find 
> puppet 3.8 docs :-P
>
> I have been working through the learning VM, and it has a GUI and has you 
> install graphite.  Do those things exist with open-source puppet?
>
> Once I get going, it's very possible that we'll want to go with PE, but 
> procuring stuff is a real headache, which is why I'm starting with the 
> open-source project.  being limited to 10 nodes would quickly kill any 
> possibility of selling this to our management :-/
>
>
> On Tuesday, December 1, 2015 at 2:10:14 PM UTC-8, Morgan Haskel wrote:
>>
>> John,
>>
>> Have you checked out 
>> https://docs.puppetlabs.com/puppet/4.3/reference/quick_start.html? That 
>> should all work with open source as far as I know.
>>
>>

-- 
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/3cf04a08-cc05-4fe4-874e-6069dcaa3aec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Puppet Enterprise Installation Error on CentOS7

2015-12-10 Thread evan . hisey
Rao-
  First thing you need to do is make your harddrive bigger. 10G is just not 
going to cut it. Second, looks like you have a network issue, so you 
probably need to fix that. I would just wipe the VM, start with new one 
that has working network, and atleast a configured to the puppet 
recommended minimums.

-- 
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/6fd54a8e-3517-4e4c-86aa-e84cc8e20ec1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Puppet keeps trying to change correct setting back to correct

2015-12-10 Thread evan . hisey
I have 3 settings that are already in the correct state yet puppet keeps 
seeing them as an incorrect state:

First one is here on the puppet master: (centos 6)
Notice: 
/Stage[main]/Puppet_enterprise::Profile::Mcollective::Peadmin/Puppet_enterprise::Mcollective::Client[peadmin]/Puppet_enterprise::Mcollective::Client::User[peadmin]/Pe_accounts::User[peadmin]/User[peadmin]/shell:
 
current_value /bin/cdax/bash, should be /bin/bash

Yet the /etc/password file already has it correct: 
peadmin:x:500:500:peadmin:/var/lib/peadmin:/bin/bash  (if you are wondering 
the /bin/cdax/bash is from a different program). If it is not checking 
/etc/passwd were would it be finding this as the path for bash?

The next on a client: (centos 7)
/Stage[main]/Puppet_enterprise::Pxp_agent::Service/Service[pxp-agent]/enable 
and 
/Stage[main]/Puppet_enterprise::Mcollective::Service/Service[mcollective]/enable
 
both service are state enabled whle both are enabled.

>From the client: 
mcollective0:off1:off2:on3:on4:on5:on6:off
pxp-agent  0:off1:off2:on3:on4:on5:on6:off

Suggestions on where to start trouble shooting this? 

Evan

-- 
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/144bab3e-4ebc-41f0-8b18-34a28e7f26b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] use pe-http or ad a second http server

2014-03-20 Thread Evan Hisey
This is more a better practice than can I do this question. I need
to server up the puppet agent repos and centos http install tree via
HTTP from the the same box as puppet console. It is saner to use the
pe-http or setup a second httpd instance on the same box?


Evan

-- 
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/CAEcFzYxffvhRdGbgMFE%2BXM_kZb8%2B8KRQ4LdozfD-UaQq3B%2B%2Btg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] How to add a new line at a particular place in a file..

2013-03-14 Thread Evan Hisey
On Wed, Mar 13, 2013 at 4:06 AM, yarlagadda ramya rams.15...@gmail.com wrote:
 Hi all,

 How can i write a puppet code such that..it adds a line of content that i
 want..at a desired place in a file..

 if [ x$JAVA_OPTS = x ]; then
JAVA_OPTS=-Xms64m -Xmx512m -XX:MaxPermSize=256m
 -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true
 -Dsun.rmi.dgc.client.gcInterval=360
 -Dsun.rmi.dgc.server.gcInterval=360
JAVA_OPTS=$JAVA_OPTS
 -Djboss.modules.system.pkgs=$JBOSS_MODULES_SYSTEM_PKGS
 -Djava.awt.headless=true
JAVA_OPTS=$JAVA_OPTS -Djboss.server.default.config=standalone.xml

 This a part of file and i want to add --
 -Djboss.socket.binding.port-offset=900 -- after 360 in the 3rd
 line..through puppet ode..how can i do that??
n some one please help me??

 Regards
 Ramya Y
Ramya-
  Have you looked at
Augeas,http://projects.puppetlabs.com/projects/1/wiki/puppet_augeas ?
It is designed to solve just this problem.

Evan

-- 
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.




Re: [Puppet Users] Re: Multiple nodes.pp files

2011-11-21 Thread Evan Hisey
On Thu, Nov 17, 2011 at 2:04 PM, Ramin K ramin.khat...@gmail.com wrote:
 Tech documentation is littered with examples that illustrate exactly
 one thing and call it day. 99% of the power of any system comes from
 learning to combine multiple functions. I chose that example because
 it illustrates regex, using regex in a node as well as case
 statements, adding classes based on case statements, setting a default
 in a case statement, and should have the OP considering that Puppet
 can do more then 1:1 mapping. Getting past the 1:1 mapping idea seems
 to take most traditional sysadmins or non CS types longer. Simply,
 demonstrating possibilities was more important than least keystrokes.
 Also my example avoids first match problems. Yours does as well
 assuming it was clear that the first statement *had* to be first. That
 is probably the number #2 mistake of documentation, illustrating a
 concept without exploring the assumptions of the example.

 Ramin

Don't know about the OP, but it made me feel like an idiot. Been using
Puppet for years and never even considered using regex in my node
files. It would make life so much simpler for some things.

Evan

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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] Puppet Windows: Should I use dedicated environment ?

2011-11-21 Thread Evan Hisey
On Sun, Nov 20, 2011 at 8:05 PM, Mohamed Lrhazi lrh...@gmail.com wrote:
 I stated tweaking my puppet modules and site.pp to support the new
 OS.. things like:

 if ( $operatingsystem == windows ) {
    Exec { path =
 C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Ruby187\\bin
 }
 } else {

 And now am thinking, would be better to just have an independent
 environment for all my Windows clients? what would be the draw backs
 of that?

 Thanks a lot,
 Mohamed.


I use multiple environments for separating development and production
systems. The only really draw back I encounter is the need to make the
same change twice for certain things that are shared between both
environments. I ma sure there is wa way around that, but it has not
become enough of an issue to make me find it.

evan

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: [Solved] [Puppet Users] Puppet throws error when evaluating block after statement

2011-11-21 Thread Evan Hisey

 We found, that we had some hidden, invisible characters in that line.
 Neither vim nor nano showed those characters.

 Problem is solved by removing and retyping the affected lines.

 Kind regards,

 Martin



Not a completely uncommon issue for some reason. I have encountered it
a few times myself.

evan

-- 
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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] Puppet in a virtual environment

2010-12-09 Thread Evan Hisey

 On Dec 8, 2010, at 4:13 AM, john maclean wrote:

 Morning chaps,

 From my understanding the puppet master must have a hostname of
 puppet. Is this correct? I'd like to be able to call this box
 whatever I like. I think that I can do that within
 /etc/puppet/puppet.conf.



 --
 John Maclean
 MSc (DIC)

 Enterprise Linux Systems Engineer


What I do is name my server what ever I want and then DNS I add a
puppet CNAME record to point to my server's real name. It saves me a
lot headaches both in puppet and the rest of my infrastructure.

Evan

-- 
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.



Re: Puppet on Windows (was Re: [Puppet Users] ANNOUNCE: Puppet 2.6.0 - Final release!)

2010-07-20 Thread Evan Hisey
James-
  Will you be updating your book with info on Windows management? Our
Windows side likes books, and after the success I have had with Puppet
they are wanting to look at it now that it supports Windows.

Evan

On Tue, Jul 20, 2010 at 12:47 AM, James Turnbull ja...@puppetlabs.com wrote:
 Rohan McGovern wrote:
 James Turnbull said:
 The journey was long and arduous and many fell along the way but Puppet
 Labs is proud to announce the 2.6.0 release!


 Is anyone aware of an attempt to package up a complete (puppet + all
 prereqs) installer for Windows?  Either official, or by someone in the
 community?

 And, asking from the other direction: would anyone else be interested in
 such a thing?

 I would be, because setting up puppet on Windows seems pretty tough
 right now.  I also have no need for Ruby on my Windows boxes except
 for the usage of puppet.

 Rohan

 There isn't such an attempt so far - we've got it on the cards to do -
 but any progress in that direction would be awesome.

 We've got some basic notes at:

 http://projects.puppetlabs.com/projects/puppet/wiki/Puppet_Windows

 Regards

 James Turnbull

 --
 Puppet Labs - http://www.puppetlabs.com
 C: 503-734-8571

 --
 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.



Re: [Puppet Users] is puppet the right tool for me?

2010-04-08 Thread Evan Hisey
 Regardless of if puppet is intended to manage multiple similar hosts, it is
 still useful when you have a smaller number of unique hosts.

 If every host is completely unique then you get one some benefits of puppet:
  * you have a single place to review your configuration
  * you can make changes without having to do it by hand
  * puppet checks nothing has changed, and puts it back if something has

 However, I bet that all your hosts are a *lot* more alike than you think:
  * you probably use the same web server (apache, or so), and *mostly* have it
   set up the same way on each machine, right?
  * you probably use the same MTA on most machines
  * you probably use the same log watching and checking stuff on 'em all
  * you probably have similar needs for installing PHP and some extra PHP
   modules, which are usually configured more or less the same.[1]
  * you probably do a bunch of install mysql, configure like this stuff the
   same on each host.


You forgot a biggy bonus of puppet, no matter what size you support. I
have several small ( as in 1-3) groups  of very different machines,
and with puppet I can rebuild them very quickly on when they need to
be replaced or upgraded. doing it by hand takes most of a day or 2.

-- 
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.



Re: [Puppet Users] is puppet the right tool for me?

2010-04-08 Thread Evan Hisey

 Hmm, you're right, I didn't thought about it, but each member of our team
 has a desktop machine he uses for development and testing. And as it comes
 to web related things, the setup is intentionally almost the same as on the
 server.

 Also, currently we're planning to change the geographic location of vps and
 to move from gentoo to ubuntu. Looks like a perfect time for big changes.




Having migrated a production environment in place ( yeah stupid I
know, but did not have an option) from random scripts to puppet. I
would say the easiest, safest and fastest way to learn puppet and get
the migration done, is to teach puppet how to things the way they are
now. Now this is not the ideal setup for puppet, but once puppet is
talking to all the machines, then you can use puppet to slowly
rewrite the machine is to a puppet sanitized way of doing things and
then life just gets better.

Evan

P.S. Luke, puppet is still making life so nice and needs such little
maintaince, I forget to checkup on the list. Thanks for such great
tool.

-- 
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: Variables redefine

2009-08-28 Thread Evan Hisey

On Thu, Aug 27, 2009 at 3:02 AM, Thomas Bellmanbell...@nsc.liu.se wrote:

 Evan Hisey wrote:

 I think you should have

 class myclass ($passwd = 111) {
     file {
 this syntax is completely new to me, where is it documented?


 http://reductivelabs.com/trac/puppet/wiki/LanguageTutorial#variable-scope
 does not mention that syntax as far as I can see.  It tells us how
 scoping works, but no mention about putting variable assignments
 inside parenthesis between the class name and the opening brace of
 the class body.  And more tellingly, actually trying it with Puppet
 errors out with the message Syntax error at '('; expected ')'.

 That section of the language tutorial *does* show how the original
 poster should solve his problem.  But it is not with the syntax that
 Trevor suggested.

 Your right missed that part.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: Installing applications using puppet

2009-06-26 Thread Evan Hisey

 done by you to create the application package.  The package would then
 be setup in a local repository and now puppet uses the appropraite
 package manager to install you custom package.

 what distribution are you using?

 Evan


 My puppet master server is RHEL 5 and puppet client is CentOS 5.3. I
 am not sure what you exactly mean by create the application package.
 If you could explain that, that would be helpful.

In this case, creating an application package means make an RPM.
Redhat , Fedora and Centos website all have documentation on doing
this. I suggest you start there for learning the basics of  RPM
package creation.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: Override configuration defined in inherited node?

2009-06-25 Thread Evan Hisey

On Thu, Jun 25, 2009 at 1:12 AM, Kenneth Holterkenneho@gmail.com wrote:
 Hi all.


 I'm running puppet 0.24.4, and have the following issue: I have a base node
 which more or less every linux server inherits. In the base node I've
 defined a default NTP client configuration, but now I've come across a
 couple of nodes that need a different configuration. So what I need to do on
 these particular nodes are, as far as I know, one of these things:
 1) Find a way to override the NTP configuration defined in the base node
 2) Make sure they don't inherit the base node, so that I can define a
 different NTP configuration here

 So is there a way to override a configration defined in the base node (i.e.
 the inherited node)?


One thing might be to change the inherit to an include on the nodes
that need special stuff. That way you can use variables to override
default setting in the ntp module. There is an ongoing thread on this
right now Server Hierarchies and other configuration questions

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: Installing applications using puppet

2009-06-25 Thread Evan Hisey

On Thu, Jun 25, 2009 at 4:36 PM, Neil Ksate...@gmail.com wrote:

 Thank you for your replies. As I said I am pretty new to this puppet
 language. Could any one please point how to do a sample package
 install which includes a ./configure, make, make install inside a
 package directory?

 Thanks again for our helps.

Wrong place to do this, you do not use puppet to create a package. you
sue puppet to install the package. The distribution you are using will
dictate how to create packages. The ./configure, make, make install
plus anything else needed for your particular package format would be
done by you to create the application package.  The package would then
be setup in a local repository and now puppet uses the appropraite
package manager to install you custom package.

what distribution are you using?

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: Server Hierarchies and other configuration questions

2009-06-24 Thread Evan Hisey

On Tue, Jun 23, 2009 at 9:54 PM, Dond...@blacksun.org wrote:

 Ack- sorry I got my examples backwards- The overrides should have come
 after the included classes like so:

 node www02.example.com {
   include zones::global

   include roles::general
   include roles::webserver

   $ldap_servers = ['ldaptest1.nyc.example.com',
 'ldaptest2.example.com']

 }

 node host1.nyc.example.com {
   include zones::global
   include zones::nyc

   include roles::general
   include roles::ldapserver

   $ldap_servertype = slave
 }

 Sorry for the confusion (and the previous absurdly long email).

Long yes, but it did help define your issue. I think the first layout
would be a more correct one, and from my experience should work,  I
think. Have you tried doing zones::global and zones::nyc as inherits?
When you then redefine the variables in the node definition they
should override the settings in the inheritance. Inheritance puts
things in the parent scope and includes puts variables in the child
scope

 This means that to change something like an ACL, which might be the
 same across several different services, you now need to change it in
 several templates, or several node definitions. That can not be
 considered a good way to do things.
This type of situation where you have the same thing defined across
several nodes is in theory best handled by virtual resources. I have
encountered similar issues and that is the advice I got. I am still
working on making that change so am not sure who much use my
explaining virtual resources will be.

As a general thought, looking at the complexity you have, are you
using external node definitions? From what I have read on the list and
about you site that looks like it would be extremely useful to you and
possible something using stored configs could help resolve your
issues.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: Server Hierarchies and other configuration questions

2009-06-23 Thread Evan Hisey

On Tue, Jun 23, 2009 at 12:43 PM, Dond...@blacksun.org wrote:

 This were template files com in really handy. Instead of having two
 ntp .conf files you use one ntp_conf.erb that has a case switch.
 If I put a case statement in the .erb file then I've tied the template
 to a specific host or set of hosts. I'd rather pass in the variables
 to the template and keep the logic outside the template.

Here I am seeing a thought process barrier. You do not have to tye a
template case to _servers_ by name. The idea is to tye the template
case to _roles_. That way it does not matter what the server name is
or where it is. If it is defined as have having a ntp server role then
it gets that configuration. One of the strengths I have found in
templates is that you can but the logic in the template. Pass the
roles you want the server to play to the template , server , client,
or client and server and the template sorts itself out to produce the
correct config file to hand out. Also remeber anything you can do in
ruby you can pretty much do in the templates. You may also want to
look at the generate function. It lets you call external scripts to
produce results that will be used by puppet for things like source.


 This is sort of what I've done. I end up with a template file that
 accepts things like the master servers as an array, as well as the
 ACL's and so on. It populates just fine with the variables I specify.
 I specify a null set of ACL's for the clients, and different masters
 and such for the servers.

 In the end we come back to the same sort of problem though- It's not
 possible to override values, and so we define everything backwards.
 That, plus the scoping rules, makes it (to me at least) very difficult
 to build a nice clean organizational structure.

evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: ANNOUNCE: 0.25.0beta2 release!

2009-06-23 Thread Evan Hisey

On Mon, Jun 22, 2009 at 8:54 PM, James Turnbullja...@lovedthanlost.net wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 This is the beta2 release of Puppet 0.25.0.

 It is available at:

 http://reductivelabs.com/downloads/puppet/puppet-0.25.0beta2.tar.gz

 This is not production ready code - it is a beta release for testing.

 The beta is not fully feature complete (we anticipate adding Windows
 support and a number of language enhancements to beta3) and the
 extent of testing and issues will determine how soon we move to a
 release candidate after that.

 We would ask everyone to test and report issues with the beta.

 Please log any issues found during testing at:

 http://projects.reductivelabs.com/projects/puppet/issues/new

 Please select the Affected Version as 0.25.0beta2.

 Please email any other specific questions, comments or feedback to
 the puppet-user list.

Looking forward to beta3 and the Windows support. If it can make life
half as easy as on Windows as it did for my Centos boxes, it will much
welcomed.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: removing resources no longer specified

2009-06-22 Thread Evan Hisey


 But can puppet make this easier for me? What I'd like to do instead is:
 node 'oldwebserver' {
 }

 At the moment puppet doesn't behave in that manner, it simply leaves the
 Package and File resources in their last configured state, and forgets
 about them. So I was wondering if it is possible for a storeconfigs
 database to store some history of configs?

 If it is possible (or if it's possible to build that feature in), is it
 possible with that history to determine when a resource changes from
 existing in the manifest, to not existing in the manifest?

 If that is possible (or could be built in), could you make puppet
 automatically remove that resource from the client system if it detects
 a resource has been removed?

Well there was a long discussion about this on the list a while back.
In a nutshell having puppet automagiclly removing things was generally
a bad idea as it could have very large nasty unexpected side effects.
one of the goals of a good configuration management system is no
surprises.

Udo's include foo {ensure = absent} idea might be a way around the
surprise issue. Still explicitly set by the user, but using puppets
internal knowledge to make things happen.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: how to have multilines ?

2009-06-18 Thread Evan Hisey


 Serge LE LOUARNE wrote:
 Hi,

 I install blender ;-)

 My pp file (in actual state, I have no backup of previous versions)  :

 class blender {
     file { /tmp/blender-2.49-linux-glibc236-py25-i386.tar.bz2:
            owner = root,
            group = root,
            mode = 644,
         source =
 'puppet://formation01.giprecia.net/test/blender-2.49-linux-glibc236-py25-i386.tar.bz2
 http://formation01.giprecia.net/test/blender-2.49-linux-glibc236-py25-i386.tar.bz2'}
     Exec { path = /usr/bin:/bin:/usr/sbin:/sbin:logoutput = false,
     tar -jxf
 /tmp/blender-2.49-linux-glibc236-py25-i386.tar.bz2:logoutput = false,
     cp -R  /tmp/blender-2.49-linux-glibc236-py25-i386 /opt/:logoutput
 = false,
     chmod -R  755 /opt/blender-2.49-linux-glibc236-py25-i386:logoutput
 = false,
     cp -R /opt/blender-2.49-linux-glibc236-py25-i386/.blender
 /home/serge/:logoutput = false,
     chown -R serge:serge /home/serge/.blender:logoutput = false,
     unless = test -d /home/serge/.blender }
     }

 The unless statement isn't follow by the puppet agent. The logs said
 that the 8th line is wrong : Puppet look for a } ...

 These are several independent exec commands that will be scheduled by
 puppet completely independently (that is not order-preserving). For this
 specific case, you might want to create a real shell script, put it on
 the server with file{} and execute it then with a single exec.

 Also, since you are specifying multiple resources, those need to be
 separated with semicolons (;) and not colons (,).

 Please go to
 http://reductivelabs.com/trac/puppet/wiki/DocumentationStart and start
 reading some of the docs there. Especially the LanguageTutorial and
 TypeReference.


 Regards, DavidS

As DavidS said, or make a nice .deb for blender use apt. Using puppet
below 0.25.0 is probable going to be painfully slow moving a file the
size of the blender tar.bz to any large number of machines.

evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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 Password Default

2009-06-18 Thread Evan Hisey

On Thu, Jun 18, 2009 at 10:58 AM, Pedrosantacruz.pe...@gmail.com wrote:

 Hi
 I need help, I want to know what user and password that the puppet has
 a default or if necessary create a user as you would
 Greetings

Puppet has  the user puppet on the server, but it does not have a user
or password as you do not actually log in to puppet. I recommend
reviewing the Simplest puppet recipe at
http://reductivelabs.com/trac/puppet/wiki/SimplestPuppetInstallRecipe.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: how to have multilines ?

2009-06-17 Thread Evan Hisey

On Wed, Jun 17, 2009 at 8:56 AM,
serge.leloua...@free.frserge.leloua...@gmail.com wrote:

 Hi

 All is in title ;-)

 I have to run multiples Bash commands. It is just for readability of
 the pp file.

 Thank
 Serge
What are you trying to do? It sounds like you are trying to work
against the way puppet operates.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: Puppetshow defunct?

2009-05-27 Thread Evan Hisey

On Wed, May 27, 2009 at 2:49 AM, Sheldon Hearn sheld...@starjuice.net wrote:

 Hi folks,

 Is puppetshow still a going concern?

 it is referred to by the Puppet Wiki's DocumentationStart page, but
 the target URL produces an Environment not found error message:

 http://reductivelabs.com/trac/puppetshow

 If puppetshow is defunct, what are people using as a visual interface
 into stored logs instead?  I know I can get RRD files easily, but I'm
 looking for answers to questions like

 * On which hosts is this fact false?
 * On which hosts is this recipe failing?
 * Which recipes are failing on this host?

 I use puppetview for checking my logs. Not as fancy or robust as
puppetshow, but a lot easier to setup.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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] yumrepo +exec weirdness

2009-05-14 Thread Evan Hisey

I have encountered a repeatable and odd problem. If I run the
following manifest snippet yumrepo over writes the
rpmfusion-free-updates.repo file after the RPM is installed:

yumrepo{rpmfusion-free-updates:
priority =10,
enable =1,
gpgcheck =0,
require = Exec[rpmfusion],
}

exec{rpmfusion:
command =/bin/rpm -Uvh
http://download1.rpmfusion.org/free/el/updates/testing/5/i386/rpmfusion-free-release-5-0.1.noarch.rpm;,
creates = /etc/yum.repos.d/rpmfusion-free-updates.repo,
before = Yumerepo[rpmfusion-free-updates] # redundant in
theory but I am reaching,
}

. This from the logs of the first case where puppet has run exec and
install the RPM:

notice: 
//Node[workstation]/multimedia::totem/multimedia::totem-xine/yum::rpmfusion-updates/Exec[rpmfusion]/returns:
executed successfully
info: create new repo rpmfusion-free-updates-debuginfo in file
/etc/yum.repos.d/rpmfusion-free-updates-debuginfo.repo
 snip
info: create new repo rpmfusion-free-updates-source in file
/etc/yum.repos.d/rpmfusion-free-updates-source.repo
snip
info: create new repo rpmfusion-free-updates in file
/etc/yum.repos.d/rpmfusion-free-updates.repo
snip

Each snip contains the 5 same lines:
notice: 
//Node[workstation]/multimedia::totem/multimedia::totem-xine/yum::rpmfusion-updates/Yumrepo[rpmfusion-free-updates-source]/enabled:
defined 'enabled' as '1'
notice: 
//Node[workstation]/multimedia::totem/multimedia::totem-xine/yum::rpmfusion-updates/Yumrepo[rpmfusion-free-updates-source]/gpgcheck:
defined 'gpgcheck' as '1'
notice: 
//Node[workstation]/multimedia::totem/multimedia::totem-xine/yum::rpmfusion-updates/Yumrepo[rpmfusion-free-updates-source]/enablegroups:
defined 'enablegroups' as '1'
notice: 
//Node[workstation]/multimedia::totem/multimedia::totem-xine/yum::rpmfusion-updates/Yumrepo[rpmfusion-free-updates-source]/failovermethod:
defined 'failovermethod' as 'priority'
notice: 
//Node[workstation]/multimedia::totem/multimedia::totem-xine/yum::rpmfusion-updates/Yumrepo[rpmfusion-free-updates-source]/priority:
defined 'priority' as '10'


If I run the exec command manually and then run puppet everything
works as expected. Exec see thatt it has already run and yumrepo
properly manages the rpmfusion-free-updates.repo file. From the log:

notice: 
//Node[workstation]/multimedia::totem/multimedia::totem-xine/yum::rpmfusion-updates/Yumrepo[rpmfusion-free-updates-debuginfo]/enabled:
enabled changed '0' to '1'
notice: 
//Node[workstation]/multimedia::totem/multimedia::totem-xine/yum::rpmfusion-updates/Yumrepo[rpmfusion-free-updates-debuginfo]/enablegroups:
defined 'enablegroups' as '1'
notice: 
//Node[workstation]/multimedia::totem/multimedia::totem-xine/yum::rpmfusion-updates/Yumrepo[rpmfusion-free-updates-debuginfo]/failovermethod:
defined 'failovermethod' as 'priority'
notice: 
//Node[workstation]/multimedia::totem/multimedia::totem-xine/yum::rpmfusion-updates/Yumrepo[rpmfusion-free-updates-debuginfo]/priority:
defined 'priority' as '10'
notice: 
//Node[workstation]/multimedia::totem/multimedia::totem-xine/yum::rpmfusion-updates/Yumrepo[rpmfusion-free-updates-source]/enabled:
enabled changed '0' to '1'
notice: 
//Node[workstation]/multimedia::totem/multimedia::totem-xine/yum::rpmfusion-updates/Yumrepo[rpmfusion-free-updates-source]/enablegroups:
defined 'enablegroups' as '1'
notice: 
//Node[workstation]/multimedia::totem/multimedia::totem-xine/yum::rpmfusion-updates/Yumrepo[rpmfusion-free-updates-source]/failovermethod:
defined 'failovermethod' as 'priority'
notice: 
//Node[workstation]/multimedia::totem/multimedia::totem-xine/yum::rpmfusion-updates/Yumrepo[rpmfusion-free-updates-source]/priority:
defined 'priority' as '10'
notice: 
//Node[workstation]/multimedia::totem/multimedia::totem-xine/yum::rpmfusion-updates/Yumrepo[rpmfusion-free-updates]/enablegroups:
defined 'enablegroups' as '1'
notice: 
//Node[workstation]/multimedia::totem/multimedia::totem-xine/yum::rpmfusion-updates/Yumrepo[rpmfusion-free-updates]/failovermethod:
defined 'failovermethod' as 'priority'
notice: 
//Node[workstation]/multimedia::totem/multimedia::totem-xine/yum::rpmfusion-updates/Yumrepo[rpmfusion-free-updates]/priority:
defined 'priority' as '10'

Everything looks like I would expect. I am wondering If i have some
kind of race condition, or there is something odd about hte way
Yumrepo and the exec are interacting. I am using puppet 0.24.8 on both
client and server.

evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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] require class between modules

2009-05-13 Thread Evan Hisey

Okay, I know this has been addressed before but I can not find it. I
have module setup to handle all my Yum repos. This module works well.
The issue I am having is I need to include/require  a class/type from
that module in a different module. I can't get this to work. This may
be best handled by making the yum module all virtual resources and
include it everywhere, pointers welcome. Also if you know were it is
documented you can just point me there.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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] Best uses for virtual resources

2009-05-13 Thread Evan Hisey

Okay, I am sure virtual resources are a good idea. The problem is
other than may be for users I need to include in multiple places, I
have not idea of teh right way to use them. I am looking for I guess
the best practice in using virtual resource, and maybe some practical
examples on right ways to use them.

evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: Problematic provider dependencies

2009-05-13 Thread Evan Hisey

On Wed, May 13, 2009 at 8:19 AM, jerith fir...@gmail.com wrote:

 Good day,

 Does puppet have a way of setting up provider dependencies before
 setting up the provider itself?

 Here's the scenario I'm trying to get working: I have some machines
 that need to be database servers. I also have a mysql type/provider
 that manages users and databases.

 However, the provider only works if mysql is already installed, since
 it requires '/usr/bin/mysql' to be present and fails the suitability
 test if the binary is missing. Thus, I cannot install mysql and then
 configure it -- I must install it by hand or using a class that does
 the installation without any configuration and then change classes
 once it is installed.

 I have tried using optional_commands instead of commands in the
 provider code. This allows the provider to be used, but it fails when
 it tries to test or create resources because the command binaries are
 apparently resolved at startup.

 I had a hack in place that would pretend to configure mysql using fake
 commands, which lets me set up the database as a two-step operation.
 However, this requires additional code to test for the existence of
 mysql around every further operation that requires the database to be
 present.

 The best solution I can see at the moment is to rewrite the provider
 to do everything manually instead of using the built-in command
 infrastructure. Are there any other options?

 Thanks,
 --J

You should be able to do this using the the require and before
metatypes. Have the package{mysql: before = Exec[mysql-config]}.
Some thing liek that should get teh ordering correct for you.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: using yum and puppet simultaneously

2009-05-09 Thread Evan Hisey

On Sat, May 9, 2009 at 5:04 PM, Nat qwerty@gmail.com wrote:

 Hi,

 once i have my puppet set up and installed how does updating occour,
 if for example i have a package httpd instaledd on all my servers and
 there is an update to this package will i still need to log into every
 machine to run the updater or will puppet notice that the package is
 not at the latest level and update acordingly?

 Thanks
I am assuming you are ona RHEL/CENTOS/Fedora box.  Use yum-cron or
yum-updatesd to keep all installed packages up to date. Use puppet to
be sure that the packages you want are installed. This is a classic
example of the right tool for the right job. Yum to keep things up to
date. Puppet to make sure the box is configured correctly. If you only
want certain updates to be available or applied to your servers then
use a local repo were you stage all okayed updates for your machines

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: default options in site.pp

2009-05-08 Thread Evan Hisey

On Fri, May 8, 2009 at 1:41 AM, Peter Meier peter.me...@immerda.ch wrote:

 Hi

 yumrepo { pic:
                 baseurl      = 
 http://server/mrepo/local-PIC-noarch/RPMS.pic/;,
                 descr        = pic,
                 name         = pic,
                 enabled      = absent,
         }

 *i also tried with absent and ' absent' .

 I think it is ensure = absent

 enable is to disable the repo, but to keep the information on disk.
 However the type seems to assume enable = true for every option
 different than false or 0.

 so, default option in site.pp is mandataory for the type?

 I don't think so. However if you look at the yum-module I wrote
 (http://git.puppet.immerda.ch/?p=module-yum.git) I manage the whole
 directory of yum.repos.d to get rid off unmanaged repos.

 cheers pete.
Nice module may use it. Looking over it I did find one minor issue
with the epel source:

yum::managed_yumrepo { epel-source:
descr = 'Extra Packages for Enterprise Linux $releasever -
$basearch - Source',
mirrorlist =
'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-$releaseverarch=$basearch',
enabled = 1,
gpgcheck = 1,
failovermethod = priority,
failovermethod = 'priority',
gpgkey = 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL',
priority = 16,

As you can see you have 2 failovermethod = 'priority' entries.
Nothing big thought you might want to know..

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: stored ressources and file creation

2009-05-08 Thread Evan Hisey

On Fri, May 8, 2009 at 8:37 AM, Peter Meier peter.me...@immerda.ch wrote:

 Hi

  I was wondering, can we create stored virtual ressources like a @@file
 on a node and have it realized on another node ?

 yes, we can. ;)

 cheers pete

Um cool, but how does that work? I am still trying to get a handle on
virtual resources. As I rewrite my not so great original manifests I
am thinking the whole virttual resources is going to be very very
handy.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: set password of root

2009-05-06 Thread Evan Hisey

On Wed, May 6, 2009 at 2:51 AM, 骡骡 ken.g...@gmail.com wrote:

 in 1st day of each month , change passwd of root.

 # vi /etc/puppet/modules/user/manifests/init.pp

 class user {
exec { rootpw:
command = /usr/sbin/usermod -p $rootpw root,
onlyif = /usr/bin/test `/bin/date -d now +%d` = '01',
}
 }

 # vi  /etc/puppet/manifests/templates.pp
 import user
 node basenode {
$rootpw = Vale.com-init
include user
 }



This just looks like a bad way to handle things. Given that you are
going to manually set the password for puppet to use any way why not
use something like this: Warning this has not been tested

class update_pw{
 user{root:
   ensure = present,
   password = generate(/opt/new_passwd.sh),
}

On the server /opt/new_passwd.sh would look like this:
#!/bin/bash
passwd=foobar
openssl passwd -crypt $passwd


This method should provide solutions to several problems with the
initial approach. You know have the password out of the manifests and
only have to secure one file. It will be handled by puppet as an
encrypted password so it will go over the wire encrypted. It will now
only change the password if the password parsed by the generate
command changes.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: set password of root

2009-05-06 Thread Evan Hisey

On Wed, May 6, 2009 at 2:25 PM, Bruce Richardson itsbr...@workshy.org wrote:

 On Wed, May 06, 2009 at 02:02:42PM -0500, Evan Hisey wrote:
 
  But it will still show up unencrypted in processlist.
 
 Only on the puppetmaster server, and this would happen no matter how
 you generate the password encryption.

 Not true.  There are several utilities that can read from stdin or a
 file to generate an encrypted passwrd, like mkpasswd.

 --
 Bruce
I was thinking about scripted creation of passwords. If you used
mkpasswd in place of oppenssl in the script it would still show up in
the list. Openssl also takes sdtin as an option. You could probably
put a lot of extra work in place and get a completely encrypted
automate path of creation. But if you need that level of protection on
a puppetmaster server then you would be best served  by manual
creation anyway. That may be best practice, on further though. Using
generate and an external file to hold the encrypted password, saves
the headache of version controlling old passwords. That way if you
have to roll back for some reason you do not accidentally rollback the
password.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: generate problem command runs on server not client

2009-04-23 Thread Evan Hisey

On Thu, Apr 23, 2009 at 1:27 PM, andyr...@gmail.com
andyr...@gmail.com wrote:

 How can I get generate to run the command on the client, not the
 server.

 I have the following

 class exports {
        $dirs = generate(/bin/sh,-c,/bin/mount -t ext3,xfs)
        file { exports.test:
                name = /etc/exports.test,
                content = template(exports.erb)
        }
 }

 And when run on the client, I get the same results that I get when run
 on the server. It seems that generate should run the command on the
 client, otherwise it isn't very useful.

 Thanks,

 Andy

Generate runs on the server. it is actually a pretty useful tool that
way. For instance, it lets you have a dynamical produce file or
template content outside of the puppet manifest and then return that
information into a puppet. For what you are doing you might want to
use a facter fact so that the information is available to the puppet
to instead of using generate.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: force a reboot

2009-04-15 Thread Evan Hisey

On Wed, Apr 15, 2009 at 8:29 AM, Joe McDonagh
joseph.e.mcdon...@gmail.com wrote:

 James Richardson wrote:
 Hi,

 I am just starting to try to learn/use puppet. The problem I am trying
 to overcome now it how to make a client reboot after a kernel upgrade.

 Alternatively, what is the best practice for managing kernels on a
 debian system.

 Thanks


 I manage upgrades through scripts, but you can have an exec like this:

 exec { /sbin/reboot:
   refreshonly = true
 }

 Then in your kernel package def set the attribute notify =
 Exec[/sbin/reboot]. This means when your kernel package gets changed,
 the system reboots. It will be unpredictable however, unless your nodes
 are in LDAP and you can run puppetrun on all of them at once...

This brings you to the really question. Do you really want the servers
rebooting in a semi random manner? Some as disruptive as a system
reboot really need to be set to happen at pre-scheduled time, not
really whenever there is a kernel update. I would suggest using a
'notify =' to a cron type that sets up a pre-scheduled reboot window.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: Automating removal of an application

2009-01-28 Thread Evan Hisey

On Wed, Jan 28, 2009 at 3:00 AM, nicolas ncapp...@yahoo.fr wrote:


 Thanks for your answer Evan.

 For these applications, we need to have a very good control. So we'll
 never update them via local update utility nor use an ensure = latest
 We always use ensure = x.y.z
 We also need to be able to do rollback, so it's simpler to remove
 everything from say, version 1-3-2, and then apply version 1-3-1

 I understand that our needs are specific, but there is something that
 surprise me with Puppet : if you don't explicitly remove something
 that was deployed previously with Puppet, then it stays
 For example, say you have a mount point A that you manage with Puppet
 For some reason, you need to change this mount point, now call it B.
 We could expect that if your manifest first contains A, then contains
 B, your intent is to remove A and creates B
 Puppet will just create B and leave A. It forces you to do it in two
 steps, first remove B, then apply and second add A then apply

 Any reasons why Puppet forces to explicitely remove everything that it
 previously installed (and that is known, thanks to localconfig.yaml
 file on nodes) ?


I find that this method is lot more admin friendly. If you have to
explicitly remove things you can not accidentally remove large chunks
of the system. Let say you have apache and php installed on a server.
You want to remove php but have forgotten that you replaced the apache
non-phped config with a phped config using the php module. Under
current operational mode nothing to bad happens except maybe a
complaint about the missing php. Under an automatic associated roll
back all of a sudden apache quits working because it removed the
config file, leaving you having to figure out that happened. A lot of
things in puppet error on the side of least surprise and least
dangerous.

  I occasionally have need to do one time pushes to my machines for
license files. Once all the machines have updated to the newest
license, I disable the license update as it only happens once a year
and only has to be done to existing installs as all new installs will
get the latest license. The current mode of operation makes this work.

Of course Luke may tell me I am totally wrong.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: Stoking a Religious War: Why Did You Go With Puppet Over Other Options?

2009-01-27 Thread Evan Hisey

On Tue, Jan 27, 2009 at 8:04 AM, Jonathan Share jon.sh...@gmail.com wrote:

 2009/1/27 tomcat akocu...@mun.ca:

 Hi, Gang..

  The Subject: line says it all. My organisation is looking at
 selecting a configuration management
 system. Any comments about why you chose Puppet over other options
 would be very helpful to us.


Well, there are basicly 4 options really in this area.

1) roll-your-own
2) cfengine
3) puppet
and now 4) Chef

Problems with option one range from scalability to maintainability. It
does have the advantage of being dirt cheap and you know everything
about it in house, but for me the maintenance issues were driving me
to something else. Option 2 was just a right PITA everytime I tried to
use it. Option 4 was not available at the time.

So I started with puppet, since then puppet has just gotten better and
keeps making life better. It scales great. It has made doing OS
upgrades much easier. Basicly made everything I do maintenance wise
better.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: Automating removal of an application

2009-01-27 Thread Evan Hisey

On Mon, Jan 26, 2009 at 10:18 AM, nicolas ncapp...@yahoo.fr wrote:

 Hello,

   I'm currently prototyping the use of Puppet to manage a bunch of
 home-made applications on a lot of servers.
   As our applications evolves frequently and multiples versions can
 be used at the same time, we use classes that include version in their
 name, like myApplication_1-2-0

  A typical application class like myApplication_1-2-0 contains for
 example a package to install, some configuration files as templates, a
 crontab, a service definition and a mount point

  When I want to deploy version 1-3-0 of my application on a node, to
 replace version 1-2-0, the standard way to do with puppet, as I
 understand it, would be :
  - node initially contains include myApplication_1-2-0
  - I edit node to contains include myApplication_1-2-0::remove
 where myApplication_1-2-0::remove is a class that removes everything
 myApplication_1-2-0 installed
  - I apply the config to node
  - I edit the node to contains include myApplication_1-3-0
  - I apply the config to node

 But on node, there is the localconfig.yaml file (usually in /var/lib/
 puppet/) that contains everything needed to know what should be
 removed when myApplication_1-2-0 is installed.
 I was thinking of automating this step like this :
  - retrieve config from master
  - retrieve local config (in localconfig.yaml)
  - if an application has not the same version on the master and
 locally then
   a)  change everything to absent for version which is locally
 installed
   b) apply this, so local version is removed
   c) then apply config from master, so new version is installed

 Do you think it's a good approach ?
 If not, do you know an alternate ways to manage applications that have
 several versions ?

 thanks for your answers
 nicolas

I can see atleast one big got-ya with this approach. It would work
okay with packages using ensure = present and that don't get update
by the local update utility. But anything using ensure = latest or
that gets updated by the local update utility is going to get hosed. I
find the best approach with pacakges that need a lot of configs that
change version to version is either wrap it all up in an RPM or use
somethinglike the generate function to create config files on the
file. In most cases, though all that really needs to be done is update
the template and config files, they will replace the old ones and tell
puppet to ensure = present with the version number you want.

About the only time you need to do a wholesale application removal is
when you want to remove it from a system. If you have lots of
applications that are just ugly to install an dremove you may want to
take a look at Stow.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: reporting, rollback

2009-01-21 Thread Evan Hisey

On Wed, Jan 21, 2009 at 4:31 AM, Dan Bode bod...@gmail.com wrote:
 Hi all,

 I need to fulfill a requirement for change rollbacks with puppet. (where the
 original version of files is not necessarily managed with puppet)

 Is there something in place that I can use as a starting point here?

 I wanted see what the future plan is for this, so that I can gauge how much
 effort I should put into doing something custom. (if there is a report DB
 coming out soon, maybe I will wait)

 1. Requirement - be able to rollback any configuration changes made by
 puppet

 I can use a mix of procedure and scripting, but I would rather have scripts
 do everything (and let puppet rollback the changes like they were regular
 config)

 1. Approach:

 - store reports with

 report = true

 -create a comand line app with the following functionality

 *list = for a host, show a list of all of the reports, along with
 date, and an index (most recent = 1).
 *id  = for a given report index, show a list of all file changes.
 *rollback = for a given report index(default is most recent), rollback all
 changes to the host.

 -rollback

  *Initially, this will just dump the files in a defined dir location, where
 an admin must push them out manually
  *create the same files that puppet created for config changes, push these
 files out using puppet, create a report of the changes that are being
 reverted.

 Is there a good starting place with existing code for this?

 Also, does the approach make sense? If so, I have some follow up questions
 about how to use some of the puppet classes.

 Is this something that would be useful for the community(maybe my boss would
 let me contribute it)? Maybe I could find some time to integrate it with
 PuppetShow later this year.

Not sure how the best to do this would be, but the file bucket gives
you a solid stating place. With the file bucket turned on, and I
believe it is by default, you automatically get a copy of the
pre-puppet modified files. That should help greatly with setting up a
rollback procedure, especially for pre-puppettized files. I am not
sure how many changes stay in the bucket though. The reports  feature
provides most of the information you need already. I would also look
at puppetview as it is a much simpler report viewer than puppetshow.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: Is Anyone Using Puppet to Administer Multiple Clusters?

2009-01-14 Thread Evan Hisey

On Mon, Jan 12, 2009 at 1:35 PM, Tony Kocurko akocu...@mun.ca wrote:
 Hi, Gang...

   The Subject: line says it all pretty much. We've
 got six clusters spread over a nice sized geographical
 area. I wonder whether anyone is using Puppet in a kind
 of, let's say, cascaded style to manage the configurations
 on all the nodes of all the clusters, given that each cluster
 has a dedicated outward facing management node and the usual
 mess of compute nodes hidden behind that management node?

   That is, I wonder whether one could have each of the
 head nodes act as a puppet master to their respective compute
 nodes, while having the head nodes being clients to an overarching
 puppet master that can see all of the head nodes?

 Cheers,
 tomcat
Not implemented it yet, put I have been looking at doing something
like this. Basiclly my idea was to have a puppetmaster on the head
node dedicated to managing the cluster, and have the main puppetmaster
maintain the puppet manifests on the head node. This would keep all
the configuration files in one place and reduce the outbound/inbound
traffic load from the cluster.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: I give up: why does the Augeas type hate me?

2008-12-22 Thread Evan Hisey

On Mon, Dec 22, 2008 at 1:02 PM, Robin Lee Powell
rlpow...@digitalkingdom.org wrote:

 On Mon, Dec 22, 2008 at 10:40:05AM +0100, Peter Meier wrote:

 Hi

  Debug output of the client run follows.  No, I didn't update the
  master; why would I do that?  This is about functionality on the
  client, not the master.  Is it actually necessary that the
  *master* have Augeas when it never uses it?

 well the master has to compile the manifest with all it's
 dependencies and it will send the evaluated manifest down to the
 client. IMHO therefore it have to know the new type.

 Well, that seemed to do it.  Just strikes me as odd.  Thank you!

 -Robin

Why does it strike you as odd? The server does all the heavy lifting.
By the time it gets to the client all you have are set of directions
to be followed. The idea of a Puppet and a PuppetMaster is really an
accurate view of the system

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
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: Moving a file with Puppet

2008-11-13 Thread Evan Hisey

On Thu, Nov 13, 2008 at 9:06 AM, Leah [EMAIL PROTECTED] wrote:

 I wanted to move a file from one directory to another because my co-
 worker didn't like where it was being put by puppet.  I went into
 puppet and changed the name parameter of the the file directive.  I
 then created a new file directive to delete the old file, but I was
 wondering if there was a better way to do this.

 So, just to clarify, I went from:

 file {myfile:
  name = /root/myfile,
  ...
 }

 to:

 file {myfile:
  name = /newdirectory/myfile,
  ...
 }

 file {deleteoldlocationofmyfile:
  name = /root/myfile,
  ensure = absent,
 }

 I just feel like moving the location of a file will cause bloat of
 configurations in puppet, but maybe I'm missing some great parameter.


That is really about the way to do it. Don't for get that after it has
run for awhile and all teh clients have resynced to the new location
you can remove the code needed to delete the old location.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[Puppet Users] Re: Appending a file to an existing file

2008-11-12 Thread Evan Hisey


 1) let the security tool fix the motd once

 2) copy it to the puppetmaster and convert it into a template with your
 extra lines

 3) change your puppet manifests to only deploy the new motd template if
 there's evidence the security script has run. Something like:

   file { /etc/motd:
 content = template(motd.erb),
 onlyif  = test -f /path/to/evidence_log
   }

 would be simple, integrating your security tool into your puppet
 manifests would be another way.

I don't believe this will work as the onlyif attribute is only
available for the exec type. But something similiar using the generate
function might work.

file { /etc/motd:
 content =generate (script that runs the security tool server
side then cats on the extra lines) ,
   }

Of course the security tool may not work as a server side run, but
this might give you an idea to work with.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[Puppet Users] Change in the yaml file format.

2008-11-12 Thread Evan Hisey

Luke-
   After the last upgrade to puppet there was change in the yaml
format for the facts yaml files. It looks like a time stamp has gotten
accidently inserted in the file or miss formated:

 --- !ruby/object:Puppet::Node::Facts
name: elephant.unix.eng.ua.edu
values:
  :_timestamp: 2008-11-12 14:47:51.749544 -06:00this is the
line in question.
  processorcount: 4
  kernel: Linux
  processor2: Intel(R) XEON(TM) CPU 2.20GHz
  serialnumber: 5NHJL11
  uniqueid: a0821114
  lsbrelease: :core-3.1-ia32:core-3.1-noarch:g





I noticed it because it broke the puppetview fact reporting. If delete
this line puppetview is able to correctly report facts again. If it si
a bug I'll make a bug report. If it is correct, then I will try and
patch puppetview.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[Puppet Users] Re: Getting started on puppet transition

2008-11-12 Thread Evan Hisey

 Unfortunately, in-situ file editing does not seem to be one of puppet's
 strong  points at the moment so you may find yourself copying in lots of
 files or using workarounds involving exec.

 I think I only do that a few times but was hoping there were some easy
 ways to manage:

 * User Setting Requirements
  - MAX, MIN days etc.
  - Password Complexity
  - etc. etc.
 * PAM Settings
 * AUDITD
  - setting etc.

 I guess each of these could use the file copy/module method but that
 is just a step above cat  EOF which hopefully we can all get away
 from at some point :). It adds an upkeep layer that I was hoping
 puppet would allow me to avoid.

You will be amazed at what templating can do for you here. The
generate function and content attribute has alot of interesting
possibilities to help with this. Assuming you have more or less
standard setting but need to do small tweaks, you use generate
function to call a server side script to create the file data on the
fly from facts and policy scripts. also I see no one has pointed that
if you have a large number of nodes you will probably want to use and
LDAP tree for your node declarations. It is a bit more versatile than
in manifest node definitions and is easier to parse for security audit
tools.


 Following that same naming scheme
 you could create modules in the same way eg /etc/puppet/modules/GEN006255
 which would contain subdirs files/ manifests/ templates. The possible
 advantage of using that is that your tags would reflect the compliance
 points. The downside is that you'll probably need a look up sheet to remind
 yourself what each bit is doing

 Agreed. But again, I want to try to keep the coding a level above,
 like separating implementation from interface as it were. I want to
 try and make my classes, templates and facts reuseable to other users
 if I can.

The key here is learning to think like puppet. That is the absolute
hardest part of the equation. Only suggestion I have to help here is
to go back through the examples in Pulling Strings and understand who
the approach there differs from the procedural or SSH approach.

 One goal here would be the ability to create an appliance ( apache,
 mysql, postgresql, postfix, etc. ) That can easily grab all my orgs
 requirements and push them to the OS layer, App layer etc. Only
 pulling the pieces of interest to the installed baseline.

 Another goal is to remove the hard tie to organization specific
 mappings and help generalize to the best practice. At least that is my
 goal :).


 Totally agree. I have read the Pulling Strings book. Is there another
 book. Google doesn't seem to think so. I want to make this CM and IA
 stuff easy :) because I am a good lazy SA :).


Not sure about any other books, but James is on the list and really
good at tossing those useful tidbits of knowledge in an understandable
way.

I don't have near the setup some of the guys on here do, but I can say
that puppet paired with version control for the manifests has really
helped here by forcing a minimum level of documentation to all system
changes and configurations.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[Puppet Users] Re: Change in the yaml file format.

2008-11-12 Thread Evan Hisey

 I noticed it because it broke the puppetview fact reporting. If delete
 this line puppetview is able to correctly report facts again. If it si
 a bug I'll make a bug report. If it is correct, then I will try and
 patch puppetview.

 Well, the format didn't get modified -- we just added an attribute.

 I'd just have it ignore that timestamp, although you can also use it
 to indicate the age of the information (although I think the Facts
 instance would have it as 'facts.timestamp'.)

Okay, I'll code around the quirky format of that time stamp. I would
have expexted it to look like:
timestamp: 2008-11-12 14:47:51.749544 -06:00 instead of  :_timestamp:
2008-11-12 14:47:51.749544 -06:00, that was why I want to check if it
was a bug.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[Puppet Users] Re: Reports and Reporting

2008-11-07 Thread Evan Hisey

On Thu, Nov 6, 2008 at 10:33 AM, Arnau Bria [EMAIL PROTECTED] wrote:

 On Thu, 6 Nov 2008 16:43:31 +0100
 Arnau Bria wrote:

 err: Report rrdgraph failed: Could not create RRD
 file /var/lib/puppet/rrd/td234.pic.es/time.rrd: invalid argument -
 Bignum, expected T_STRING or T_FIXNUM on index 2

 I've installed http://rubyforge.org/projects/rubyrrdtool/ (.gem)
 # gem list --local

 *** LOCAL GEMS ***

 hoe (1.8.2)
 rake (0.8.3)
 rubyforge (1.0.1)
 RubyRRDtool (0.6.0)


 But got other error:

 warning: RRD library is missing; cannot store metrics
 warning: RRD library is missing; cannot graph metrics
 warning: RRD library is missing; cannot store metrics
 warning: RRD library is missing; cannot graph metrics
 warning: RRD library is missing; cannot store metrics
 warning: RRD library is missing; cannot graph metrics
 err: Report rrdgraph failed: Could not find graphs for daily

 also, read:
 http://groups.google.com/group/puppet-users/browse_thread/thread/997c5ac71b29cde3/2cd751e3b3d595e5

 [EMAIL PROTECTED] ~]# ruby -rRRDtool -e 'puts :yep'
 ruby: no such file to load -- RRDtool (LoadError)
 [EMAIL PROTECTED] ~]# ln -s 
 /usr/lib/ruby/gems/1.8/gems/RubyRRDtool-0.6.0/RRDtool.so 
 /usr/lib/ruby/site_ruby/1.8/i386-linux/RRDtool.so
 [EMAIL PROTECTED] ~]# ruby -rRRDtool -e 'puts :yep'
 yep


 So now, test works for me.

 but did not solve the problem...
 warning: RRD library is missing; cannot store metrics
 warning: RRD library is missing; cannot graph metrics
 warning: RRD library is missing; cannot store metrics
 warning: RRD library is missing; cannot graph metrics
 warning: RRD library is missing; cannot store metrics
 warning: RRD library is missing; cannot graph metrics
 err: Report rrdgraph failed: Could not find graphs for daily


 Any ruby expert could help me?

I suggest you look a the puppetview module I have up on the puppetview
site and get the rrdtool I built for Centos form there also it should
solve the last of your problems.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[Puppet Users] Re: Adobe Reader Recipe

2008-11-06 Thread Evan Hisey

On Thu, Nov 6, 2008 at 10:04 AM, Loobster [EMAIL PROTECTED] wrote:

 I'm wondering if someone would like to share their Adobe Reader
 recipe.
 http://www.adobe.com/products/acrobat/readstep2.html

 OR something similar that does the following:

 Installs the software if the program does not exist or install the
 software if the version is lower than x.y.z.

 Thanks
 Karl

I just use the the adobe linux repo and use the package type to install it.

The repo RPM is :
http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm

I also do my flash plugin this way but I think the flash rpm is
broken, as I had to add the plugin link for the browser with puppet. I
have not checked the lo see what version is out now.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[Puppet Users] Re: wildcards in file type?

2008-11-06 Thread Evan Hisey

On Wed, Nov 5, 2008 at 6:19 PM, joe [EMAIL PROTECTED] wrote:

 I'm having a similar issue that that wiki entry does not directly
 address.

 I'm trying to do a subscribe on a file definition that is a directory.

 I have ensure = directory and recurse = true.

 I do not use puppet to source the files (they are on nfs shared to all
 servers that use them).

 Puppet will not restart a service subscribed to this file definition.
 It does not seem to look at whether the files in the directory have
 changed.

 How do others make such a scenario work?

 Thanks

Is puppet actually managing the directory? Unless puppet manages the
directory it can't know to handle a restart.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[Puppet Users] Re: Possible to maintain bad configs on the client?

2008-10-08 Thread Evan Hisey

On Wed, Oct 8, 2008 at 12:42 PM, Robert Rati [EMAIL PROTECTED] wrote:

 I have puppetmaster running on RHEL4, and 2 puppet clients running on
 RHEL5.  All machines are running puppet version is 24.4 installed from
 EPEL.  The issue is that some configurations seem to be unusable by the
 RHEL5 clients when the puppetmaster is running on RHEL4.  However, if I
 put those same configs on the RHEL5 system (serving a RHEL5 client) or
 an F8 setup (client/server) there is no problem.  In the logs on the
 client, I see:

 puppetd[10104]: Facts have changed; recompiling
 puppetd[10104]: Configuration could not be translated from yaml; using
 cached catalog

 Every time the client talks to the RHEL4 server, it thinks the facts
 have changed and need to be recompiled, and the configuration isn't
 usable by the client.

 Some of the configuration being pulled down are flat configuration
 files, whereas some are templates.  Most of the templates seem to be
 fine as do the flat files, but I have one template that I know causes
 this issue.  Is there a way to preserve the configuration the client is
 receiving from the server?  I've tried running puppet -vdto, but it
 didn't give me any information I didn't already have.  Any other debug tips?

Just off the top of my head, I would start by looking at the versions
of ruby and ruby ERB. Both FC8 and RHEL5 use newer versions of a lot
of libraries than RHEL4. This may very well cause the templates to be
parsed different enough between version to cause problems like this,
i.e: working when parsed by the newer libs, but not when parsed by the
older libs.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[Puppet Users] Re: How dangerous is...

2008-10-02 Thread Evan Hisey

On Thu, Oct 2, 2008 at 2:17 PM, dd-b [EMAIL PROTECTED] wrote:

 package { something: ensure = latest }  ?

 Do people mostly use it, mostly not use it, is it highly in dispute,
 or is there consensus?

It depends on your specific situation. I tend to just use present to
be sure the pacakge is installed and let the distro's  update-manager
keep it up to date.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[Puppet Users] refresh only for service type and notify across modules question

2008-09-17 Thread Evan Hisey

Is there a way to get the service type to only trigger if it is
notified or is a file it is subscribed to changes? In a related issue
what is the syntax for using notify across modules?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---



[Puppet Users] Multiple Service[named] resources not conflicting ??

2008-09-17 Thread Evan Hisey

As understand puppet I should not be able to have two service[named]
entries in the same compiled manifest. To me this means the following
should not work:

In module named/manifest/init.pp I have:
class named{
package{bind:
ensure = present,
}
service{named:
ensure = running,
enable = true,
hasstatus = true,
hasrestart = true,
}

}

And then in in module hpc/manifest/init.pp I have:
class hpc::named{
include named
service{named:
ensure = running,
}
file{named.conf.cluster:
path = /etc/named.conf,
source= puppet:///hpc/named.conf,
notify = Service[named],
 }
}

I randomly tried this expecting it to explode, while waiting for a
reply to notifying resources across modules, as I need HPC
File[named.conf.cluster] to tell Service[named] to reload. I am very
suprised this is working. can some explain why to me.

Evan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Puppet Users group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en
-~--~~~~--~~--~--~---