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 file from client side and send

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 address of the hostname? i.e.

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" 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 when it is i

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] http://www.craigdunn.org/20

Re: [Puppet Users] PuppetDB Installation:

2015-04-21 Thread Matthew Burgess
Hi Bibhudatta, For small-scale installations, you can probably get away with it being on the same host as your Puppet Master. For larger installations you probably want to put it on a separate host, and that host should be managed via a Puppet Agent. Your Puppet Master should also have a Puppet

Re: [Puppet Users] hiera - multiple yaml backends

2015-02-09 Thread Matthew Burgess
On 9 February 2015 at 20:12, Brett Swift 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 infrastructure team (hand

Re: [Puppet Users] Puppet array merge failure?

2015-01-30 Thread Matthew Burgess
On 30 Jan 2015 14:09, "leam hall" 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 the Google Gro

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

2014-07-23 Thread Matthew Burgess
On 23 July 2014 15:20, jcbollinger 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

[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 hi

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, 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 : > [master] >

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

2014-05-02 Thread Matthew Burgess
On 2 May 2014 23:04, Andreas Ntaflos 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 /etc/hiera.yaml) and

[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] Re: My custom fact is overriding another fact's value

2014-05-01 Thread Matthew Burgess
ks! Matt On 1 May 2014 16:47, 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 >> setcod

[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 i

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 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" wrote: > > On Thu, 24 Apr 2014 18:41:05 +0200 > José Luis Ledesma 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 important bit, like I did initially

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

2014-04-23 Thread Matthew Burgess
On 23 April 2014 17:49, warden 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 package format for yo

Re: [Puppet Users] Emergency Certificate Revocation Procedure

2014-04-08 Thread Matthew Burgess
On 8 Apr 2014 09:29, "Tom" 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 client S

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 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. While it's possible to > map al

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

2014-04-01 Thread Matthew Burgess
On 1 April 2014 17:59, Felix Frank 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* mer

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 Bu

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

2014-04-01 Thread Matthew Burgess
On 1 April 2014 17:17, Felix Frank 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.yam

[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 the

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

2014-03-11 Thread Matthew Burgess
On 11 Mar 2014 10:21, "Dirk Heinrichs" 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 that the hiera com

[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 = sc-env1

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

2014-01-30 Thread Matthew Burgess
On 30 January 2014 15:41, Andreas Dvorak 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 define what end-state you

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 wrote: > > ​ > > 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] Re: Puppet Pro, 2nd edition - status directly from APress

2014-01-14 Thread Matthew Burgess
On 24 December 2013 22:04, Spencer Krum 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 responses: > > 1

Re: [Puppet Users] help dependency packages

2013-12-08 Thread Matthew Burgess
On 7 December 2013 02:29, Rafael Tomelin 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 OS. For example, on Red

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 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 ' to *report* what the state

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 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 wrote: >> >>> >>> puppet describe user >>> &g

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 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: "Passin

Re: [Puppet Users] Yum Related Versioning Issue

2013-11-19 Thread Matthew Burgess
On 19 November 2013 09:48, Richie Rees 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: Could not update: F

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

2013-11-19 Thread Matthew Burgess
On 19 November 2013 04:32, Stuart Cracraft 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. Regards, Matt. --

Re: [Puppet Users] Puppet check ntpd change

2013-10-22 Thread Matthew Burgess
On 21 October 2013 22:54, Tony Caffe 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 expect it to

Re: [Puppet Users] installing package giving error

2013-10-18 Thread Matthew Burgess
On 18 October 2013 08:04, kampy 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: Execution of '/us

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

2013-09-12 Thread Matthew Burgess
On 11 September 2013 23:55, 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 please ask how yo

Re: [Puppet Users] Puppet under HA Environment

2013-09-03 Thread Matthew Burgess
On 2 September 2013 17:01, Stuart Cracraft 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, by chance >

Re: [Puppet Users] Puppet under HA Environment

2013-08-30 Thread Matthew Burgess
On 30 August 2013 10:42, Matthew Burgess wrote: > > 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 they check in a

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 12

Re: [Puppet Users] Puppet master concurrency

2013-07-29 Thread Matthew Burgess
On 29 July 2013 11:52, Jonathan Gazeley wrote: > > 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 not already running your

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

2013-07-13 Thread Matthew Burgess
On 13 July 2013 16:18, Steve Wray 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 add/change the foll

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

2013-07-12 Thread Matthew Burgess
On 12 July 2013 15:45, Christian Flamm 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 needs to know about it.

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-11 Thread Matthew Burgess
On 11 July 2013 20:59, Ashley Penney 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 involved, and not just skim

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-11 Thread Matthew Burgess
On 11 July 2013 20:28, Dan White 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 follows: > > tin

Re: [Puppet Users] puppetlabs-ntp template discussion

2013-07-10 Thread Matthew Burgess
On 10 July 2013 18:57, Ashley Penney 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 currently > maintain a temp

Re: [Puppet Users] Re: File directive

2013-06-21 Thread Matthew Burgess
On 21 June 2013 07:04, Roman Alekseev 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 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 over th

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 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 find the snippet of

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 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 http://docs.

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 wrote: > Hi everyone; > > I was just wondering if anyone has any opinion/informa

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 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 for this exact p

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 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 subscribed to the Googl

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 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 > the same time. Is ther

Re: [Puppet Users] Inherit two classes?

2013-03-18 Thread Matthew Burgess
On Mon, Mar 18, 2013 at 7:48 PM, JamieC 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 more fine-grained depe

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) 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 deployment tool on cl

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 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 do you have that you nee

Re: [Puppet Users] Shorten require list

2013-03-12 Thread Matthew Burgess
On Tue, Mar 12, 2013 at 10:45 AM, 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 packa

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 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 are you running?

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 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: http://docs.puppetlabs.com/references/3.1.latest/configuration.html#runinterval

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 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 clients' configurat

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 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 errors with a

Re: [Puppet Users] ruby gems versus yum install

2013-02-13 Thread Matthew Burgess
On Wed, Feb 13, 2013 at 3:07 PM, vioilly 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 recommend RPMs (or i

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 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 Paul says, t

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

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 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 > /root/learning-manifests/installzip1.pp:13 > n

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

2013-01-31 Thread Matthew Burgess
On Thu, Jan 31, 2013 at 5:52 PM, Gavin Williams 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 = loadyaml('/etc/puppet/data/databases.yaml') > >

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 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] Disable Cron Script using puppet resource

2013-01-26 Thread Matthew Burgess
On Sat, Jan 26, 2013 at 8:28 PM, Corey Osman wrote: > How can I disable / enable a cron job using puppet resource cron? >From http://docs.puppetlabs.com/references/3.0.latest/type.html#cron, it looks like 'ensure => absent' will disable it (remove the crontab entry) and 'ensure => present' will e

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 wrote: > On 24/01/13 15:18, Matthew Burgess wrote: >> >> On Thu, Jan 24, 2013 at 2:49 PM, wrote: >> >>> This occurs even with the before => Yumrepo['atomic'] and require = > >>> Packag

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, 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; declare the dependen

Re: [Puppet Users] Difficulty debugging crashing PuppetDB

2013-01-09 Thread Matthew Burgess
On Wed, Jan 9, 2013 at 1:37 AM, Cody Robertson 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 the logs. I've ran

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

2013-01-02 Thread Matthew Burgess
On Wed, Jan 2, 2013 at 9:32 AM, 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 options. > For e

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 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 list? Your

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 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. Depending on the size a

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 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. -- You received this mes

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 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 "server=test.master.internal" in agent

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 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 line. What does th

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 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 node. > > Can you

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 wrote: > Thanks for your reply Matthew. I changed that line to the following: > > /usr/bin/puppet parser validate $tmpfile >> /tmp/puppet-val.log > 2>&1 > > Here is what the log is capturing (problem with the environment?): > > -- > simran@sh

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 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 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 process running

Re: [Puppet Users] Simultaneous Client updates

2012-11-30 Thread Matthew Burgess
On Fri, Nov 30, 2012 at 4:34 PM, GordonJB 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 http://docs.puppetlabs.com/guides/passenger.html#apache-configuration-for-puppet-024

Re: [Puppet Users] Simultaneous Client updates

2012-11-30 Thread Matthew Burgess
On Fri, Nov 30, 2012 at 3:03 PM, GordonJB 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 > puppet2246 1 0

Re: [Puppet Users] Simultaneous Client updates

2012-11-30 Thread Matthew Burgess
utput of 'ps' whilst an agent checks in (you can 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 Fri

Re: [Puppet Users] Simultaneous Client updates

2012-11-30 Thread Matthew Burgess
On Fri, Nov 30, 2012 at 11:29 AM, GordonJB 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 Nov29 ?00

Re: [Puppet Users] Simultaneous Client updates

2012-11-29 Thread Matthew Burgess
On Thu, Nov 29, 2012 at 4:44 PM, GordonJB 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 covered; Can you con

Re: [Puppet Users] Simultaneous Client updates

2012-11-29 Thread Matthew Burgess
On Thu, Nov 29, 2012 at 4:15 PM, GordonJB 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 configuration, or should

Re: [Puppet Users] Simultaneous Client updates

2012-11-29 Thread Matthew Burgess
On Thu, Nov 29, 2012 at 3:35 PM, GordonJB 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. > > Through a combinat

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 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 or class that trig

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 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 wrote: >> > Yup, I get the same error: >> > >> > /usr/bin/ruby: symbol

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 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 upgrading to 3.0 > and wil

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:09 PM, Alaric wrote: > Yup, I get the same error: > > /usr/bin/ruby: symbol lookup error: > /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/json/ext/parser.so: undefined > symbol: RSTRING_PTR > > > My one thought is that maybe my version stdlib is old... I checked and it's

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

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 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 > in it and

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 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 an own repo, > that mak

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 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 (because it > takes too

Re: [Puppet Users] File header including timestamp

2012-11-07 Thread Matthew Burgess
On Wed, Nov 7, 2012 at 2:00 PM, j4m3s 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 > <%= Time.now().to_s()

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 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 #10354 (http:

  1   2   >