Re: [Puppet Users] How can i send a complete file from on agent to another agent......?

2015-11-23 Thread Matthew Burgess
What manages the file on client 1? If it's not currently Puppet, can Puppet be instructed to manage the file? If so, you can simply then get Puppet to serve the same file out to both agents. On 23 November 2015 at 07:48, wrote: > Any one can share code which take

Re: [Puppet Users] err: Could not retrieve catalog from remote server: getaddrinfo: Name or service not known

2015-10-19 Thread Matthew Burgess
On 19 October 2015 at 13:32, Wei Chen wrote: > ]# puppet agent --test > err: Could not retrieve catalog from remote server: getaddrinfo: Name or > service not known What Puppet master is your agent configured to try to contact in puppet.conf? Can it resolve the IP

Re: [Puppet Users] Mixing hiera and site.pp

2015-08-05 Thread Matthew Burgess
Hi Alexander, If you use the roles and profiles design pattern [0] then as suggested at [1], your profile class could look up the required parameters from hiera, do any validation required on it, then pass that data in as standard class parameters. Regards, Matt. [0]

Re: [Puppet Users] Virtual resources not refreshing, how to clean out and re-do?

2015-08-05 Thread Matthew Burgess
On 5 Aug 2015 19:10, Steve Wray st...@wtfast.com wrote: I have a problem where a virtual resource has, in an early run, got the wrong value. I've fixed the manifest so that the virtual resource gets the correct values and I've rerun Puppet on the node that populates the virtual resource. However

Re: [Puppet Users] hiera - multiple yaml backends

2015-02-09 Thread Matthew Burgess
On 9 February 2015 at 20:12, Brett Swift brettsw...@gmail.com wrote: I'm wondering if anyone has this unique use case. We're going to experiment by giving our ops team their own hieradata repository, and keep our internal repository separate. We have a similar requirement whereby our

Re: [Puppet Users] Puppet array merge failure?

2015-01-30 Thread Matthew Burgess
On 30 Jan 2015 14:09, leam hall leamh...@gmail.com wrote: :merge_behavior: deep See https://docs.puppetlabs.com/hiera/1/lookup_types.html#deep-merging-in-hiera--120. In particular you probably want 'deeper' not 'deep' behavior. Matt. -- You received this message because you are subscribed to

Re: [Puppet Users] Re: Ruby, YAML Hiera data

2014-07-23 Thread Matthew Burgess
On 23 July 2014 15:20, jcbollinger john.bollin...@stjude.org wrote: On Tuesday, July 22, 2014 10:20:29 AM UTC-5, Matthew Burgess wrote: Hi, It's probably best for you to not ask why we're doing the following, Cause if you told us, you'd have to kill us? Not at all :-) I just didn't

[Puppet Users] Ruby, YAML Hiera data

2014-07-22 Thread Matthew Burgess
Hi, It's probably best for you to not ask why we're doing the following, but here's what we're trying to achieve: We'd like to programmatically edit our Hiera data, and we're using the YAML backend. I can successfully load the correct YAML file and make the changes we require. However, we've

Re: [Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-18 Thread Matthew Burgess
On 18 Jun 2014 14:10, shlo.af...@gmail.com wrote: Hi, I still can make the ENC work on my puppet server. General: Puppet server: 3.3.1 Puppet agent: 2.7.25 The server run Passenger on Apache, so the puppetmaster run from apache and not by himself. I have in /etc/puppet/puppet.conf :

[Puppet Users] Overriding specific values within a Hiera hash

2014-05-02 Thread Matthew Burgess
Hi all, This is probably a real newbie question, but I'm having trouble overriding a value in Hiera that is defined in my common.yaml in a more specific role-based yaml file: common.yaml - lvm::volume_groups: rootvg: physical_volumes: - /dev/sda3 logical_volumes: root_vol:

Re: [Puppet Users] Overriding specific values within a Hiera hash

2014-05-02 Thread Matthew Burgess
On 2 May 2014 23:04, Andreas Ntaflos d...@pseudoterminal.org wrote: Sound like you want to install deep-merge (packaged by Puppetlabs for Debian as ruby-deep-merge and for RedHat as rubygem-deep-merge) on the Puppet master, set :merge_behavior: deeper in /etc/puppet/hiera.yaml (and/or

[Puppet Users] My custom fact is overriding another fact's value

2014-05-01 Thread Matthew Burgess
Hi all, This, to me, is really bizarre. Here's my code: Facter.add(hostname_app) do setcode do hostname_app = Facter.value(:hostname) hostname_app[5] = 'a' hostname_app end end Basically, our servers have 2 network cards, and we need to set up DNS for both of

Re: [Puppet Users] Re: My custom fact is overriding another fact's value

2014-05-01 Thread Matthew Burgess
2014 16:47, pho...@gmail.com wrote: On Thursday, May 1, 2014 6:07:29 AM UTC-6, Matthew Burgess wrote: Hi all, This, to me, is really bizarre. Here's my code: Facter.add(hostname_app) do setcode do hostname_app = Facter.value(:hostname) hostname_app[5

Re: [Puppet Users] variable scoping and templates

2014-04-30 Thread Matthew Burgess
We just ran into this too recently. From my investigation it looks like the syntax you quote above is for referencing Hiera values in Puppet manifests. For erb templates we ended up using scope.function_hiera () although I wonder now whether a scope.lookupvar () call would a) be better and b) be

Re: [Puppet Users] A file managed by puppet that is left alone if customized

2014-04-24 Thread Matthew Burgess
On 24 Apr 2014 18:21, Matthias Saou matth...@saou.eu wrote: On Thu, 24 Apr 2014 18:41:05 +0200 José Luis Ledesma joseluis.lede...@gmail.com wrote: Idk if i did understand correctly, but there is the replace parameter in the file resource that may help here. I think you've missed the

Re: [Puppet Users] Re: Copying files between nodes

2014-04-23 Thread Matthew Burgess
On 23 April 2014 17:49, warden radek.anton...@gmail.com wrote: Unfortunately I wanted exactly the rsync behavior, I do not have a copy of the file on the master (although, that might not be a bad idea to change the approach). ​Another approach might be to package the file(s) into a native

Re: [Puppet Users] Emergency Certificate Revocation Procedure

2014-04-08 Thread Matthew Burgess
On 8 Apr 2014 09:29, Tom t...@t0mb.net wrote: Hi, In light of the recently publicised vulnerability in OpenSSL versions provided on RHEL6/CentOS6 http://heartbleed.com/, do you have any recommendations on a procedure to regenerate new master certificates and then revoke, clean and re-sign all

Re: [Puppet Users] Duplicate hiera hashes in the same data source override instead of merge

2014-04-02 Thread Matthew Burgess
On 2 April 2014 08:47, Felix Frank felix.fr...@alumni.tu-berlin.de wrote: Yeah, sounds about right. Pardon my prejudice, but from your description I get the feeling that you are not employing hiera to the height of its strengths. You want your hierarchy to contain *data* for your nodes.

[Puppet Users] Duplicate hiera hashes in the same data source override instead of merge

2014-04-01 Thread Matthew Burgess
Hi folks, In my common.yaml file I have the following hiera hashes: system::packages: sshd: ensure: 'present' ... ... more stuff here ... system::packages: ntpd: ensure: 'present' I naively assumed that Hiera would merge those 2 hashes together, just as it does if

Re: [Puppet Users] Duplicate hiera hashes in the same data source override instead of merge

2014-04-01 Thread Matthew Burgess
felix.fr...@alumni.tu-berlin.de wrote: Hi, long story short: This is what the hiera_hash() function is for (as opposed to hiera()). HTH, Felix On 04/01/2014 06:15 PM, Matthew Burgess wrote: Hi folks, In my common.yaml file I have the following hiera hashes: system::packages

Re: [Puppet Users] Duplicate hiera hashes in the same data source override instead of merge

2014-04-01 Thread Matthew Burgess
Apologies for that last email; hiera_hash() is obviously doing *nearly* the right thing, as it *does* merge hashes across different levels of the hierarchy. It *doesn't* seem to be merging hashes within the same level of the hierarchy. Thanks, Matt. On 1 April 2014 17:35, Matthew Burgess

Re: [Puppet Users] Duplicate hiera hashes in the same data source override instead of merge

2014-04-01 Thread Matthew Burgess
17:59, Felix Frank felix.fr...@alumni.tu-berlin.de wrote: Hmm, so you have the same key multiple times in one yaml file? Why? On 04/01/2014 06:51 PM, Matthew Burgess wrote: Apologies for that last email; hiera_hash() is obviously doing *nearly* the right thing, as it *does* merge hashes

Re: [Puppet Users] Problem with custom facts and hiera

2014-03-11 Thread Matthew Burgess
On 11 Mar 2014 10:21, Dirk Heinrichs d...@recommind.com wrote: To me it looks like facter is reading the file containing the custom fact, while the agent does not. Puppet uses /etc/puppet/hiera.yaml (or /etc/puppetlabs/puppet/hiera.yaml for PE) not /etc/hiera.yaml. You could symlink them so

[Puppet Users] Why is the environment setting limited to alphanumeric characters only?

2014-02-19 Thread Matthew Burgess
Hi, Our infrastructure design has the environment that a server lives in embedded in its FQDN: hostname.seccomp-environment.local Where seccomp is the 'security compartment' (i.e. the kind of data it houses) and env is the environment name. I set my puppet.conf up so that 'environment =

Re: [Puppet Users] Re: checking is package is installed ?

2014-01-30 Thread Matthew Burgess
On 30 January 2014 15:41, Andreas Dvorak andreas.dvo...@gmail.com wrote: Hi, I think the explaination of Gareth is wrong. ​No, he's exactly right. And please be careful with your spelling...it's 'absent', not 'absend'. Your puppet manifests are not scripts/sets of instructions. They

Re: [Puppet Users] Re: Puppet Pro, 2nd edition - status directly from APress

2014-01-14 Thread Matthew Burgess
On 24 December 2013 22:04, Spencer Krum krum.spen...@gmail.com wrote: Hello, I am one of the Authors of Pro Puppet. I'm glad to hear that everyone is trying to buy the book. I'm sorry that its taken so long to get it written, then even longer to get the book to all of you. I have a couple

Re: [Puppet Users] Re: Puppet Pro, 2nd edition - status directly from APress

2014-01-14 Thread Matthew Burgess
On 14 January 2014 22:03, Matthew Burgess matthew.2.burg...@gmail.comwrote: ​ http://www.amazon.co.uk/Pro-Puppet-Edition-Professional-Apress/dp/1430260408/ ​ still shows a ship date of 31st March 2014. Is this just a mistake on their part? (I'm in the UK, hence looking at their UK site

Re: [Puppet Users] help dependency packages

2013-12-08 Thread Matthew Burgess
On 7 December 2013 02:29, Rafael Tomelin rafael.tome...@gmail.com wrote: Hi, Which option do I use to force installation of dependencies of a package? What operating system are you using? The ability for dependencies to be installed automatically depends on the underlying provider on your

Re: [Puppet Users] Re: set password to never expire for a user

2013-11-25 Thread Matthew Burgess
On 25 November 2013 21:58, Stuart Cracraft smcracr...@gmail.com wrote: puppet describe user shows password_max_age can be set to a big number which represents days to expiration for the given user. Unfortunately, it doesn't also say something like infinite for forever... chage(1) says:

Re: [Puppet Users] Re: set password to never expire for a user

2013-11-25 Thread Matthew Burgess
On 25 November 2013 23:00, Stuart Cracraft smcracr...@gmail.com wrote: Notes with ++ inlined. On Monday, November 25, 2013 2:58:41 PM UTC-8, Matthew Burgess wrote: On 25 November 2013 21:58, Stuart Cracraft smcra...@gmail.com wrote: puppet describe user shows password_max_age can be set

Re: [Puppet Users] Re: set password to never expire for a user

2013-11-25 Thread Matthew Burgess
On 25 November 2013 23:11, Stuart Cracraft smcracr...@me.com wrote: I have direction to use puppet rather than the OS and exec... Not quite sure I understand. Are you saying that you can write puppet manifests to make all kinds of changes but you're not allowed to run 'chage -l user' to

Re: [Puppet Users] ports, protocols, and directionality

2013-11-19 Thread Matthew Burgess
On 19 November 2013 04:32, Stuart Cracraft smcracr...@me.com wrote: There are more ports, no? No, that's it. Unless you add to the mix things like puppetdb, where you'd need the puppetdb and postresql ports opening up, dependent on where in your infrastructure you place those services.

Re: [Puppet Users] Yum Related Versioning Issue

2013-11-19 Thread Matthew Burgess
On 19 November 2013 09:48, Richie Rees richard.ree...@gmail.com wrote: Hi All, Come to borrow some of your collective wisdom again, Seeing a problem installing an rpm using a fairly basic class on a RHEL 5 box using yum as the provider, I am seeing the following error message :- *Error:

Re: [Puppet Users] Puppet check ntpd change

2013-10-22 Thread Matthew Burgess
On 21 October 2013 22:54, Tony Caffe anth...@woboinc.com wrote: Now when I run puppet agent on these 2 specific vms, it looks fine and completes, updates whatever. I assume by that, you mean that the puppet agent run completes without issues, and that the NTP configuration looks as you would

Re: [Puppet Users] installing package giving error

2013-10-18 Thread Matthew Burgess
On 18 October 2013 08:04, kampy narasimha1...@gmail.com wrote: Hi all, I am new to puppet. i just started exploring. when i am trying install a package it is giving the below error *$ puppet apply nmap.pp err: /Stage[main]/Nmap/Package[nmap]/ensure: change from purged to present failed:

Re: [Puppet Users] Re: Resolving/ Expanding module puppet:/// URI in exec line

2013-09-12 Thread Matthew Burgess
On 11 September 2013 23:55, slafreni...@b-e-f.org wrote: Ed, I am having trouble unzipping any tarball via Puppet. So I installed your module to see how you might have done it. It runs, it creates the javapath and copies the file... but I get the same error that I get on my modules... can I

Re: [Puppet Users] Puppet under HA Environment

2013-09-03 Thread Matthew Burgess
On 2 September 2013 17:01, Stuart Cracraft smcracr...@me.com wrote: How can this be randomized within a range? I don't think it can; it suffers from the same issue as splay does, which I explained in some detail last week. My fear is that all the boxes will request at a similar some day,

Re: [Puppet Users] Puppet under HA Environment

2013-08-30 Thread Matthew Burgess
In your situation, I'd be tempted to not run the puppet agent in daemon mode at all so that you can retain full control of when the agents will check in. I can't see how the splay option will help avoid concurrent checkins: Imagine HA node 1 is rebooted for whatever reason and comes back up at

Re: [Puppet Users] Puppet under HA Environment

2013-08-30 Thread Matthew Burgess
On 30 August 2013 10:42, Matthew Burgess matthew.2.burg...@gmail.comwrote: So, instead of running puppet in daemon mode, I'd look to use something like mcollective to control when the agents check in with the master. You could of course just set up a cron job on each host, ensuring

Re: [Puppet Users] Puppet master concurrency

2013-07-29 Thread Matthew Burgess
On 29 July 2013 11:52, Jonathan Gazeley jonathan.gaze...@bristol.ac.ukwrote: I'd like to know how to increase the number of simultaneous runs the puppetmaster can handle because as we keep increasing the number of nodes in our network we wil surely run into problems. Hi Jonathan, If you're

Re: [Puppet Users] where do I configure 'max pool size'?

2013-07-13 Thread Matthew Burgess
On 13 July 2013 16:18, Steve Wray stevedw...@gmail.com wrote: Getting this error; The max pool size is currently 5; consider increasing it using MySQL. Surprisingly, I haven't been able to find exactly where I make the configuration change that Puppet suggests. Any clues? Just

Re: [Puppet Users] What's the benefit of Virtual Resources?

2013-07-12 Thread Matthew Burgess
On 12 July 2013 15:45, Christian Flamm christian.le.fl...@gmail.com wrote: My question: How is that different, more convenient or more flexible than extracting that admin user into its own module? I guess the main advantage is one of containing the knowledge of that user into the thing that

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-11 Thread Matthew Burgess
On 11 July 2013 20:28, Dan White y...@comcast.net wrote: Excellent. I will see what I can do to contribute a run-it-by-cron option to the module, since I already do that. As far as the large time differences, there are multiple references out there to a line at the top of ntp.conf as

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-11 Thread Matthew Burgess
On 11 July 2013 20:59, Ashley Penney ashley.pen...@puppetlabs.com wrote: In the new code we set panic based on $is_virtual by default, so it sets panic to false for virtual and true for physical. Indeed you do; I guess next time I take part in a discussion I should look at *all* the code

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-10 Thread Matthew Burgess
On 10 July 2013 18:57, Ashley Penney ashley.pen...@puppetlabs.com wrote: Hi guys, As I mentioned in a previous email I've refactored ntp and released a 1.0.0 release candidate. There's one outstanding flaw remaining that's bothering me and I wanted to solicit opinions on the list. We

Re: [Puppet Users] Re: File directive

2013-06-21 Thread Matthew Burgess
On 21 June 2013 07:04, Roman Alekseev rs.aleks...@gmail.com wrote: Is the module below correct? class nginx { if defined(Package['nginx']) { file { /tmp/puppet-nginx.sh: ensure = present, owner = root,

Re: [Puppet Users] File directive

2013-06-20 Thread Matthew Burgess
On 20 June 2013 14:49, Roman Alekseev rs.aleks...@gmail.com wrote: What about a facter something like this: # nginx.rb Facter.add(nginx) do setcode do Facter::Util::Resolution.exec(**'/usr/bin/dpkg -l | /bin/grep -c nginx') end end A fact for something like that seems a bit

Re: [Puppet Users] PuppetDB 1.3/ HSQLDB vs Postgres

2013-05-28 Thread Matthew Burgess
http://docs.puppetlabs.com/puppetdb/latest/scaling_recommendations.html has a few points regarding the pros/cons of each of the DB backends for puppetDB. Regards, Matt. On Sat, May 25, 2013 at 6:09 PM, Worker Bee beeworke...@gmail.com wrote: Hi everyone; I was just wondering if anyone has

Re: [Puppet Users] Re: attention Puppet Experts: can i run puppet master and agent on same server

2013-05-28 Thread Matthew Burgess
On 28 May 2013 15:48, Ripunjay Godhani ripunj...@gmail.com wrote: Hi Stan Thanks for your quick support , tell me how can i get started.. i haven't yet installed puppet on my machine any instructions would be greatly appreciated PuppetLabs provide some pretty comprehensive documentation at

Re: [Puppet Users] Re: runinterval - is it seconds or minutes? Docs are incomplete!

2013-05-28 Thread Matthew Burgess
On 28 May 2013 21:42, Tim Schaefer asysarchit...@gmail.com wrote: Puppet docs are the last place I look not the first place, and that's my annoyance with the documentation. That just sounds...odd. Where would you expect to find things documented, if not in the documentation? Anyway I did

Re: [Puppet Users] Trouble with file in module 'source = puppet://...'

2013-05-21 Thread Matthew Burgess
Hi Charly, I think you're just missing a 3rd '/' in your source, i.e. it should be: puppet:///modules/websitemodule/${conf_file}/etc/apache2/sites-available/ www.example.com Here, 'puppet://' is the protocol and the next '/' is for the root of the puppet file server. Regards, Matt. On Tue,

Re: [Puppet Users] Puppet catalog transfer often gets truncated (Could not intern from pson: error)

2013-04-22 Thread Matthew Burgess
On Mon, Apr 22, 2013 at 4:56 PM, Jeff B jeffb.l...@gmail.com wrote: I've been hitting this issue for a long time. well over a year and I guess it's time to start pushing it to try to find the root cause. I've seen this reported several times in the past but I've never seen a resolution found

Re: [Puppet Users] Nodes Could not retrieve catalog from remote server: execution expired

2013-04-01 Thread Matthew Burgess
On Mon, Apr 1, 2013 at 5:24 PM, iamauser tapas.sara...@gmail.com wrote: Do you have a pointer to the docs for using puppetmaster behind Apache ? Sure. The official docs are at http://docs.puppetlabs.com/guides/passenger.html. Regards, Matt. -- You received this message because you are

Re: [Puppet Users] Nodes Could not retrieve catalog from remote server: execution expired

2013-03-29 Thread Matthew Burgess
On Wed, Mar 27, 2013 at 8:39 PM, iamauser tapas.sara...@gmail.com wrote: Almost 4-5% of the total number of nodes are not receiving catalog from the master on an hourly run. We have about 250 nodes. The nodes that are receiving this error are rather random. The hourly cron happens almost at

Re: [Puppet Users] Inherit two classes?

2013-03-18 Thread Matthew Burgess
On Mon, Mar 18, 2013 at 7:48 PM, JamieC jamiecresse...@googlemail.com wrote: Is it possible to define that website requires these additions? Such as; class website inherits httpd, mysqld { ... } Yes. Try: class website { ... require = Class['httpd', 'mysqld'] } I personally prefer

Re: [Puppet Users] Puppet and mobile OS

2013-03-13 Thread Matthew Burgess
On Wed, Mar 13, 2013 at 10:50 AM, bernard.gran...@morpho.com bernard.gran...@morpho.com wrote: Hi, Is there a puppet agent available for Android or IPhone ? I very much doubt it. You'd have to have ports of Ruby and Facter, available, and probably a bunch of other stuff too. How many phones

Re: [Puppet Users] Puppet and mobile OS

2013-03-13 Thread Matthew Burgess
On Wed, Mar 13, 2013 at 1:14 PM, GRANIER Bernard (MORPHO) bernard.gran...@morpho.com wrote: Hi, Thanks for your answer and I hope that I do not hijacked a thread. My company sells a product, and a part of this product may be used on mobile and classical computers. We look to use for

Re: [Puppet Users] Error: stack level too deep

2013-03-12 Thread Matthew Burgess
On Mon, Mar 11, 2013 at 9:25 PM, Luca Gioppo lucagio...@gmail.com wrote: I'm running a previously working set of modules with the Puppet master version 3.1.0-rc2. I'm getting the Error: stack level too deep On a complete hunch, what version of activerecord or the other active* Ruby modules

Re: [Puppet Users] Shorten require list

2013-03-12 Thread Matthew Burgess
On Tue, Mar 12, 2013 at 10:45 AM, ge...@timble.net wrote: Hi, I have an Exec which requires a lot of packages (15-20): Exec { 'name': ... require = [ Package['first'], Package['second'], Package['third'], ... ] } Is there a way to shorten this list and make it easier to read? 15-20

Re: [Puppet Users] How we can mangae Puppet node Automatic updates

2013-02-28 Thread Matthew Burgess
On Thu, Feb 28, 2013 at 3:18 PM, Jithin Xavier jithin.xavi...@gmail.com wrote: Hi All, Puppet node is automatically updating every 30 minutes,Is there anyway to update that time span? Yes, this is set in the agent's puppet.conf file:

Re: [Puppet Users] Intermittent Erorr 400 on Server messages

2013-02-27 Thread Matthew Burgess
On Tue, Feb 26, 2013 at 5:48 PM, Jagga Soorma jagg...@gmail.com wrote: Thanks for your response Matthew. I will try to enable apache/mod_passenger with puppet and see if that helps. Would I need to change anything on the clients in order to make this change on the puppet master? No, the

Re: [Puppet Users] Intermittent Erorr 400 on Server messages

2013-02-26 Thread Matthew Burgess
On Mon, Feb 25, 2013 at 9:03 PM, Jagga Soorma jagg...@gmail.com wrote: Hi Guys, I am running puppet server version 3.0.2-1 on a RHEL 5.8 virtual machine with about 110 clients. I am seeing intermittent errors with my clients that are failing with the following error messages: Intermittent

Re: [Puppet Users] getting notrun to 0 error

2013-02-13 Thread Matthew Burgess
On Wed, Feb 13, 2013 at 5:46 AM, yarlagadda ramya rams.15...@gmail.com wrote: Hi all, I wrote a manifest for downloading linux.x64_11gR2_database_1of2.zip and copying that to another directory and unzipping there..its getting downloaded but copying and unzipping is not happening..am getting

Re: [Puppet Users] how to check whether a linux process is running?

2013-02-13 Thread Matthew Burgess
On Wed, Feb 13, 2013 at 3:53 AM, oliver zhang oliver.x.zh...@gmail.com wrote: Hi Everyone, I'm new to puppet. How do I do this in puppet: if process A is running, do nothing. else mount share and install package A I couldn't find any reference about this. Thanks. In addition to what

Re: [Puppet Users] ruby gems versus yum install

2013-02-13 Thread Matthew Burgess
On Wed, Feb 13, 2013 at 3:07 PM, vioilly oliverle...@gmail.com wrote: Hi, We are trying to determine the best way to install puppet using passenger. Is it best to install passenger via yum by making an RPM package or using ruby gems? What are the main gotchas using either? I'd definitely

Re: [Puppet Users] Unable to resolve notrun to 0 error

2013-02-12 Thread Matthew Burgess
On Tue, Feb 12, 2013 at 6:30 AM, yarlagadda ramya rams.15...@gmail.com wrote: err: /Stage[main]//Exec[copy_unzip]/returns: change from notrun to 0 failed: /usr/bin/unzip -C /db/oracle unzip /db/linux.x64_11gR2_database_1of2.zip returned 9 instead of one of [0] at

Re: [Puppet Users] Resource ordering problem...

2013-01-31 Thread Matthew Burgess
On Thu, Jan 31, 2013 at 5:52 PM, Gavin Williams fatmc...@gmail.com wrote: Afternoon all I'm sure this is probably a nice n easy one, but I can't work it out for the life of me... Anyhow, I've got the following code: # Load db yaml data $db_details =

Re: [Puppet Users] Ordering The path to be followed in installing JBOSS-AS-7.1.1

2013-01-30 Thread Matthew Burgess
On Wed, Jan 30, 2013 at 8:24 AM, yarlagadda ramya rams.15...@gmail.com wrote: $software = /app/tcs/puppetdemo/software $server = /app/tcs/puppetdemo/server $URL = http://192.168.24.171:8080/softwares/jboss-as-7.1.1.Final.tar.gz; exec{/usr/bin/wget $URL: cwd =$software, } exec{/bin/chmod

Re: [Puppet Users] 'before' and 'require' not working as I expect

2013-01-24 Thread Matthew Burgess
On Thu, Jan 24, 2013 at 2:49 PM, jg4...@bristol.ac.uk wrote: This occurs even with the before = Yumrepo['atomic'] and require = Package['atomic-release'] lines in place, which is not what I expect. Am I missing a subtlety? I'd be tempted to remove the 'before' parameter to the package;

Re: [Puppet Users] 'before' and 'require' not working as I expect

2013-01-24 Thread Matthew Burgess
On Thu, Jan 24, 2013 at 3:30 PM, Jonathan Gazeley jonathan.gaze...@bristol.ac.uk wrote: On 24/01/13 15:18, Matthew Burgess wrote: On Thu, Jan 24, 2013 at 2:49 PM, jg4...@bristol.ac.uk wrote: This occurs even with the before = Yumrepo['atomic'] and require = Package['atomic-release'] lines

Re: [Puppet Users] Difficulty debugging crashing PuppetDB

2013-01-09 Thread Matthew Burgess
On Wed, Jan 9, 2013 at 1:37 AM, Cody Robertson codyhawkh...@gmail.com wrote: Hello! How is everyone this splendid evening? I've recently migrated to the latest Puppet and PuppetDB (using the build in database) however I'm noticing PuppetDB keeps crashing without any errors that I can find in

Re: [Puppet Users] Puppet and installing packages from source

2013-01-02 Thread Matthew Burgess
On Wed, Jan 2, 2013 at 9:32 AM, magic...@gmail.com wrote: Hello Everyone, I'm looking for a way to install packages from source via puppet, I was able to locate maybe 5 posts on this subject which is very strange, as I would expect people to still use ./configure with their own customized

Re: [Puppet Users] Re: Reg : Error in puppet agent in Windows

2012-12-20 Thread Matthew Burgess
On Thu, Dec 20, 2012 at 9:36 AM, krishna bhaskara rao krishna...@gmail.com wrote: Hi Matt, While executing the command puppet agent --server test.puppetmaster.com --debug in puppet agent on Windows I am getting mentioned exception. I generally dislike specifying the server on the command

Re: [Puppet Users] Re: Reg : Error in puppet agent in Windows

2012-12-20 Thread Matthew Burgess
On Thu, Dec 20, 2012 at 12:17 PM, krishna bhaskara rao krishna...@gmail.com wrote: Hi Matt, I have configured hostname of the master in hosts file as below in windows agent. 10.248.113.198 test.master.internal puppetmaster and added an entry

Re: [Puppet Users] Re: Reg : Error in puppet agent in Windows

2012-12-20 Thread Matthew Burgess
On Thu, Dec 20, 2012 at 2:06 PM, jcbollinger john.bollin...@stjude.org wrote: Now where did I see that before? :-) Ha, I thought you'd mentioned it before, but gmail's stupid interface (I always blame my tools!) meant I skimmed straight past it when I was double-checking) :-) Cheers, Matt.

Re: [Puppet Users] How to only apply my manifests to certain classes?

2012-12-20 Thread Matthew Burgess
On Thu, Dec 20, 2012 at 4:11 PM, Steve Button steve.but...@gmail.com wrote: Hi, I've written a new resolv class, but I only want it to get pushed out (for instance) UAT servers for now. Or perhaps just servers which have apache installed, or just the ones which are part of project xyz.

Re: [Puppet Users] Re: Reg : Error in puppet agent in Windows

2012-12-20 Thread Matthew Burgess
On Thu, Dec 20, 2012 at 4:48 PM, krishna bhaskara rao krishna...@gmail.com wrote: Hi Matt, I have nodes.pp as node basenode { } node 'test.master.com' inherits basenode { } site.pp as import 'nodes' node 'test.agent.com' { } Have you just obfuscated those due to posting on a mailing

Re: [Puppet Users] Re: Reg : Error in puppet agent in Windows

2012-12-19 Thread Matthew Burgess
On Wed, Dec 19, 2012 at 5:23 PM, krishna bhaskara rao krishna...@gmail.com wrote: Hi John, Thank you for your response. But why should I create site.pp in agent node(Windows). As my understanding, site.pp should be in puppet master server it self and it will execute the catalog in agent

Re: [Puppet Users] New Puppet User: Issues with pre-commit script

2012-12-15 Thread Matthew Burgess
On Fri, Dec 14, 2012 at 5:42 PM, Jagga Soorma jagg...@gmail.com wrote: Thanks for your reply Matthew. I changed that line to the following: /usr/bin/puppet parser validate $tmpfile /tmp/puppet-val.log 21 Here is what the log is capturing (problem with the environment?): --

Re: [Puppet Users] New Puppet User: Issues with pre-commit script

2012-12-14 Thread Matthew Burgess
On Fri, Dec 14, 2012 at 2:00 AM, Jagga Soorma jagg...@gmail.com wrote: #!/bin/bash REPOS=$1 TXN=$2 tmpfile=$(mktemp) export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin for file in $(svnlook changed -t $TXN $REPOS | awk '/^[^D].*\.pp$/ {print $2}') do

Re: [Puppet Users] Puppet module restart puppet client or not?

2012-12-13 Thread Matthew Burgess
On Thu, Dec 13, 2012 at 12:41 AM, Ugo Bellavance u...@lubik.ca wrote: I guess maybe I should ask to the Foreman group, but I was mostly wondering whether it was a good idea or not to restart puppet when changing puppet.conf. I think it would be a bad idea not to. Otherwise you've got a

Re: [Puppet Users] Simultaneous Client updates

2012-11-30 Thread Matthew Burgess
On Fri, Nov 30, 2012 at 11:29 AM, GordonJB g.bonth...@gmail.com wrote: 1) I didn't think so, but looking in my ps, I have the following: puppet 17826 1 1 03:27 ?00:04:37 master www-data 18614 1350 0 Nov29 ?00:00:00 /usr/sbin/apache2 -k start root 18626 1350 0

Re: [Puppet Users] Simultaneous Client updates

2012-11-30 Thread Matthew Burgess
trigger this by running 'puppet agent --test'). Depending on your Passenger settings, you should see a 'master' process appear, then disappear again once the agent is has completed its run. Regards, Matt. On Friday, 30 November 2012 12:02:06 UTC, Matthew Burgess wrote: On Fri, Nov 30, 2012

Re: [Puppet Users] Simultaneous Client updates

2012-11-30 Thread Matthew Burgess
On Fri, Nov 30, 2012 at 3:03 PM, GordonJB g.bonth...@gmail.com wrote: I am, but there were standalone processes I'm not sure how to kill and disable. I've currently got (from ps -ef | grep puppet): root 1296 1 0 11:34 ?00:00:13 /usr/bin/ruby /usr/bin/puppet agent puppet

Re: [Puppet Users] Simultaneous Client updates

2012-11-30 Thread Matthew Burgess
On Fri, Nov 30, 2012 at 4:34 PM, GordonJB g.bonth...@gmail.com wrote: Also, 'lsof -i :8140' returned nothing. OK, let's start there then. You should have an /etc/httpd/conf.d/puppetmaster.conf that looks somewhat like the one at

Re: [Puppet Users] Simultaneous Client updates

2012-11-29 Thread Matthew Burgess
On Thu, Nov 29, 2012 at 3:35 PM, GordonJB g.bonth...@gmail.com wrote: Hi all, I'm currently getting a lot of update failures showing up with no logs in the dashboard. This happens for about half of our 28 nodes, about once an hour. When re-run half an hour later, everything seems fine.

Re: [Puppet Users] Simultaneous Client updates

2012-11-29 Thread Matthew Burgess
On Thu, Nov 29, 2012 at 4:15 PM, GordonJB g.bonth...@gmail.com wrote: I believe I've set up Apache/Passenger correctly, yes. Running passenger-status shows 12 processes running under the /usr/share/puppet/rack/puppetmasterd domain. Would setting up cron jobs be on top of this passenger

Re: [Puppet Users] Simultaneous Client updates

2012-11-29 Thread Matthew Burgess
On Thu, Nov 29, 2012 at 4:44 PM, GordonJB g.bonth...@gmail.com wrote: storeconfigs is not enabled on the master. Just realised I probably should have mentioned versions, I'm on master nodes 3.0.1 and dashboard is 1.2.12. Hmm, OK then. Just so as the let's not assume anything base is

Re: [Puppet Users] Puppet 3.0 Puppet labs repo package problem on rhel5

2012-11-28 Thread Matthew Burgess
On Tue, Nov 27, 2012 at 3:53 PM, Alaric paxindust...@gmail.com wrote: Swing and a miss... even after verifying and manually removing any gems, and any cached gems, reinstalling effected packages and verifying, I still get the same error... Are you able to reduce this down to a specific module

Re: [Puppet Users] passenger used in puppet 3.0?

2012-11-27 Thread Matthew Burgess
On Tue, Nov 27, 2012 at 2:27 PM, Dominic James dominicrja...@gmail.com wrote: Question: on my current puppet setup 2.7.3-0 rhel 6.2 centos - passenger is used to provide the throughput for the heavy delivery that puppet could not do by itself, was this fix in version 3.0 puppet? I will be

Re: [Puppet Users] Puppet 3.0 Puppet labs repo package problem on rhel5

2012-11-27 Thread Matthew Burgess
On Tue, Nov 27, 2012 at 2:45 PM, jcbollinger john.bollin...@stjude.org wrote: On Tuesday, November 27, 2012 8:27:37 AM UTC-6, Matthew Burgess wrote: On Tue, Nov 27, 2012 at 2:09 PM, Alaric paxind...@gmail.com wrote: Yup, I get the same error: /usr/bin/ruby: symbol lookup error: /usr

Re: [Puppet Users] Re: Seeking some Puppet advice for a newbie (specifically Virtualmin/CSF related)

2012-11-21 Thread Matthew Burgess
On Tue, Nov 20, 2012 at 9:37 PM, Jakov Sosic jso...@srce.hr wrote: On 11/20/2012 03:12 PM, Matthew Burgess wrote: This can be mitigated, of course, by using 'ensure=installed', but then that means upgrades are painful. Why? You can always use cexec or mcollective with some kind of custom

Re: [Puppet Users] Re: Seeking some Puppet advice for a newbie (specifically Virtualmin/CSF related)

2012-11-20 Thread Matthew Burgess
On Tue, Nov 20, 2012 at 10:40 AM, Laurence Cope amitywebsoluti...@gmail.com wrote: So does that mean I still have to manually setup server and install what I need, then just use Puppet to keep them all configured the way I want them? So I would still copy my virtual servers to create a new one

Re: [Puppet Users] Re: Seeking some Puppet advice for a newbie (specifically Virtualmin/CSF related)

2012-11-20 Thread Matthew Burgess
On Tue, Nov 20, 2012 at 1:54 PM, Laurence Cope amitywebsoluti...@gmail.com wrote: you will need to create your own Yum repository, have Puppet configure yum to make use of that repo, then create a manifest that installs the package. Ah right... this bit helps a lot. never thought of creating

Re: [Puppet Users] Exception for one server on a basic setup

2012-11-20 Thread Matthew Burgess
On Tue, Nov 20, 2012 at 1:06 PM, Ugo Bellavance u...@lubik.ca wrote: However, I would need to push a different file to my NTP servers (the puppet://$puppet_server/files/ntp.conf) are for clients. How can I do that? Can I simply declare my two servers in a node declaration and set a variable

Re: [Puppet Users] File header including timestamp

2012-11-07 Thread Matthew Burgess
On Wed, Nov 7, 2012 at 2:00 PM, j4m3s mrfell...@gmail.com wrote: I have noticed that if I create a hosts file entry using the host {} type, a header is added to teh top of the file showing when it was last updated. I'm wondering if it is possible something similar in a template? Calling %=

Re: [Puppet Users] Re: Managing home directory on Windows

2012-11-06 Thread Matthew Burgess
On Tue, Nov 6, 2012 at 8:46 PM, Josh Cooper j...@puppetlabs.com wrote: Historic behavior, at least for some providers, was to create the homedir upon user creation, but not to remove it upon user removal. I'm not sure how we got from historic behavior to now, or the reasons behind it. So

Re: [Puppet Users] Static IP assignment

2012-10-17 Thread Matthew Burgess
On Wed, Oct 17, 2012 at 3:13 PM, GordonJB g.bonth...@gmail.com wrote: I have a server which we're running a lot of VM's on, including a Puppet master and various nodes under puppet management. When we add new VM's with VSphere, the new nodes have dynamic IP's. What we're looking to do is have

Re: [Puppet Users] Static IP assignment

2012-10-17 Thread Matthew Burgess
On Wed, Oct 17, 2012 at 3:49 PM, GordonJB g.bonth...@gmail.com wrote: So I take it that when the new VM announces itself to the network, it will go off to the DHCP server and pick a static IP if there is one defined already for it's MAC address in a config file somewhere? Yes, that's correct.

Re: [Puppet Users] Setting up Java on Windows

2012-10-16 Thread Matthew Burgess
On Tue, Oct 16, 2012 at 5:45 AM, wukong wicked.wuk...@gmail.com wrote: Also is there a way to do this as silent install? Here is my manifest. package {java : ensure = installed, provider = windows, source = C:/Manifests/installables/jdk-6u35-windows-i586.exe, } Launching

  1   2   >