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

2016-02-19 Thread Denmat
tml#appendix-smart-parameter-defaults HTH Den > > -- > Warron French > > >> On Thu, Feb 18, 2016 at 4:41 PM, Denmat <tu2bg...@gmail.com> wrote: >> Here's what puppet docs say. >> https://docs.puppetlabs.com/puppet/latest/reference/modules_fundamentals.html#

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

2016-02-18 Thread Denmat
Here's what puppet docs say. https://docs.puppetlabs.com/puppet/latest/reference/modules_fundamentals.html#manifests One single .pp for complex modules are a nightmare. Better to separate into smaller chunks. > On 19 Feb 2016, at 07:51, warron.french wrote: > >

Re: [Puppet Users] Passing a generated variable inside a template...how?

2015-11-25 Thread Denmat
Sorry, ignore my suggestion. That won't work. > On 26 Nov 2015, at 06:57, Dayton Jones wrote: > > I'm writing a template to populate a file - easy enough... > > What I want is to to grab the list of interfaces, get the ip assigned to that > interface and then do a

Re: [Puppet Users] Passing a generated variable inside a template...how?

2015-11-25 Thread denmat
new to ruby/erb so > I'm not sure the correct way to pass a generated string to a function > within the same structure... > > On Wednesday, November 25, 2015 at 3:10:55 PM UTC-6, denmat wrote: >> >> Sorry, rushing around on trains. Try this: >> >> irb(main):0

Re: [Puppet Users] Passing a generated variable inside a template...how?

2015-11-25 Thread denmat
No, it is the same for the this test. You do need to have a resolvable IP address for each interface IP it finds or it will error. For example I had to add hostnames in my /etc/hosts file for my vagrant IPs (10.0.2.15, 172.28.128.5). That maybe the error you're seeing there, "cannot interpret as

Re: [Puppet Users] Passing a generated variable inside a template...how?

2015-11-25 Thread denmat
Sorry, rushing around on trains. Try this: irb(main):002:0> require 'resolv' => true irb(main):003:0> Resolv.new.getname('127.0.0.1') => "localhost" On Thu, Nov 26, 2015 at 7:54 AM, Denmat <tu2bg...@gmail.com> wrote: > Sorry, ignore my suggestion. That won't wor

Re: [Puppet Users] Passing a generated variable inside a template...how?

2015-11-25 Thread Denmat
> <%= @int_name = Resolv.new.getname @int_ip %> ?? Maybe this would work better as a custom fact though? HTH Den > On 26 Nov 2015, at 06:57, Dayton Jones wrote: > > I'm writing a template to populate a file - easy enough... > > What I want is to to grab the list of

Re: [Puppet Users] hiera-gpg, end of life.

2015-08-19 Thread Denmat
Thanks for going to the effort of providing it and making it available in the first place. Good job :) On 19 Aug 2015, at 19:44, Craig Dunn cr...@craigdunn.org wrote: Hi all, For anyone that is interested, I've decided to officially bring to an end the hiera-gpg[0] project and will not

Re: [Puppet Users] Top scope variables and hiera

2015-08-16 Thread Denmat
Hi, The way I see it you have two options. The hiera function like you said or a profile/parent class that you can use to do the lookup. class profile::provisioning ( $server { class {someclass: server = $server} more ... } Then common.yaml has only

Re: [Puppet Users] Re: Check service running with flag file

2015-06-11 Thread Denmat
Hi, May not be the best solution but you can specify the command to run when starting a service, you could use that instead. service {blah: start = 'test service blah start' } Alternatively you might want to put logic in the init file, into a facter value or some other way. Cheers

Re: [Puppet Users] Re: Hiera testing

2015-03-19 Thread Denmat
Yes, I think it's a good way to go, Alfredo. I would normally have a hierarchy like the following. - secrets (e-yaml-gpg) - nodes - environment - roles - common Gets by in most setups. You'll still need a site.pp file but in can just have: hiera_include('classes') (pretty sure that's the call,

Re: [Puppet Users] anifests can now be written in pure Ruby. Example please?

2015-03-14 Thread Denmat
As of 3.1 this functionality has been deprecated and replaced by 'future parser' in 3.2. See release notes for full detail. https://puppetlabs.com/blog/puppet-3-2-introduces-an-experimental-parser-and-new-iteration-features HTH Den On 14 Mar 2015, at 19:05, spare.sl...@gmail.com wrote:

Re: [Puppet Users] Is trusting the agents a bad thing?

2015-02-12 Thread Denmat
One thing to consider is using hiera e-yaml gpg based on certnames. You can put secrets (db passwords etc) here and they are matched to the SSL certname. In this configuration an attacker can change their role/profile but still cant access secrets for a particular node that doesn't match its

Re: [Puppet Users] Hi Team

2014-11-26 Thread Denmat
Hi, You need: puppet:///modules/... https://docs.puppetlabs.com/guides/file_serving.html for details. Den On 26 Nov 2014, at 17:43, Jegadeesh Kumar jegasm...@gmail.com wrote: source = puppet://modules/files/etc/motd -- You received this message because you are subscribed

Re: [Puppet Users] Error on puppet agent after upgrade to 3.7.1.

2014-11-08 Thread Denmat
Hmmm. Not sure but here's what I would do.. I would ensure all rpm packages and any gems relating to puppet and facter are uninstalled, then install again from whatever package manager you prefer. It feels like an unclean gem/rpm issue. Den On 9 Nov 2014, at 7:51, Schofield

Re: [Puppet Users] Re: creating hashes from other hashes

2014-11-07 Thread Denmat
You don't need to disable lint entirely, you could just disable that check condition. http://puppet-lint.com/checks/documentation/ Den On 8 Nov 2014, at 9:43, Tim Mooney tim.moo...@ndsu.edu wrote: In regard to: [Puppet Users] Re: creating hashes from other hashes, Luke...: Huh, at first

Re: [Puppet Users] Looking to Learn - mjhas::postfix

2014-10-11 Thread Denmat
Hi, That $::hostname is a fact. https://docs.puppetlabs.com/puppet/latest/reference/lang_facts_and_builtin_vars.html The $:: represents something in the top scope. https://docs.puppetlabs.com/puppet/latest/reference/lang_scope.html#top-scope It will resolve to the hostname of the node running

Re: [Puppet Users] puppet web serve is not working

2014-10-11 Thread Denmat
Hi, Firstly, you're using http rather than https - but in any case, don't expect any web pages to appear when you hit the url in your browser. You should try running your puppet agent against the master. I know you've said you have read the docs but PuppetLabs do offers great documentation.

Re: [Puppet Users] Multiple puppet agents with the same name

2014-10-07 Thread denmat
Hi, that depends on your manifest and if they need to talk to a puppet master or you are just doing a puppet apply (masterless). Have a look at the Vagrantfile docs on puppet provisioners and you may get inspired. Also you can pass in 'puppet_node' names and facts at run time (with a puppet

Re: [Puppet Users] Syntax error

2014-09-22 Thread Denmat
Hi, Try $config_file = 'value'. You need to assign the value. https://docs.puppetlabs.com/puppet/latest/reference/lang_conditional.html#case-statements Cheers Den On 22 Sep 2014, at 11:53, David Logan skrat...@gmail.com wrote: Syntax error at '='; expected '}' at /etc/puppet/modules/time

Re: [Puppet Users] [security] GPG signing key collision

2014-09-12 Thread Denmat
And they call themselves evil?? It's a slap in the face to evil doers everywhere ;) On 12 Sep 2014, at 7:49, Matthaus Owens matth...@puppetlabs.com wrote: and to evil32 for revoking their colliding key. But thanks for the heads up. -- You received this message because you are subscribed

Re: [Puppet Users] issue understanding site modules

2014-07-29 Thread Denmat
Okay, could be a couple of things here: Environments still require normal module layout. You have 'profile' set in manifests. Check modules section here: http://docs.puppetlabs.com/pe/latest/puppet_modules_manifests.html Also when using environments you have to set --environment test when

Re: [Puppet Users] issue understanding site modules

2014-07-28 Thread Denmat
You might like to read this: http://docs.puppetlabs.com/puppet/latest/reference/config_file_environment.html Also this: http://docs.puppetlabs.com/puppet/latest/reference/environments.html If you provide relevant puppet master puppet.conf and directory structure we may be able to help further.

Re: [Puppet Users] use client_data/catalog/fqdn.json for nagios check?

2014-07-22 Thread Denmat
This one from RIP works ok for me: https://github.com/ripienaar/monitoring-scripts/blob/master/puppet/check_puppet.rb On 23 Jul 2014, at 5:47, Atom Powers atom.pow...@gmail.com wrote: I use a script that checks if the puppet client is running and parses the lastrunreport for last run time

Re: [Puppet Users] Making a node use a different manifest

2014-07-06 Thread Denmat
Hi Roger, Yes you can copy the critical node configuration into the spare node's. However, it really does depend on what that critical node does and any special requirements it has. It may have services that might need to be managed across one by one. Or it may require one node to be shutdown

Re: [Puppet Users] Puppet 3.6.2 + Vagrant

2014-07-01 Thread Denmat
I've just been working with it and noticed that warning too. I believe it will require an update to puppet.rb in vagrant - and be patched to work with the older versions. Haven't looked too closely yet. Den On 1 Jul 2014, at 23:26, Sergey Arlashin sergeyarl.maill...@gmail.com wrote: Hi!

Re: [Puppet Users] Re: Question on directory environments and environment.conf - Puppet Version 3.6.2

2014-06-19 Thread Denmat
Hi Peter, This is master side only: http://docs.puppetlabs.com/puppet/latest/reference/environments.html On 19 Jun 2014, at 23:29, Peter pe...@ifoley.id.au wrote: Hi List, Does anyone have any suggestions on this? I was hoping that someone may have gotten it working or at least agree

Re: [Puppet Users] Hiera lookup bug?

2014-05-27 Thread Denmat
Stick it in quotes? On 27 May 2014, at 16:01, Dirk Heinrichs d...@recommind.com wrote: Hi, I'm facing a strange problem with Hiera, where a trailing 0 (zero) is cut off a value, for example: myclass::version: 1.10 resolves to 1.1 when the class is applied on an agent. The agent

Re: [Puppet Users] Re: rspec testing and viewing the catalogue it is testing

2014-05-07 Thread Denmat
Hi, You need to include the puppet logging in you rspec file. I can't remember what that is off the top of my head but I'm pretty sure this will help you along the way. http://www.ruempler.eu/2012/04/03/puppet-rspec-debugging/?mobile=1 On 8 May 2014, at 0:42, choffee chof...@gmail.com

Re: [Puppet Users] Need help optimizing our Puppet module

2014-04-07 Thread Denmat
Hi, And further to that I also did a quick skim and found you use augeas for a few resources that can probably be better executed with simpler resource types (I'm looking at you yumrepo). Augeas is costly from my understanding. Also to get a good view of where the costs are in your manifest

Re: [Puppet Users] Can't get puppetmaster working with passenger

2014-04-07 Thread Denmat
Hi, I'll see if I can answer this before my train hits the underground.. Check for gems and multiple versions of puppet. Run your puppetmaster without apache, ie, stop apache and run puppet master --no-daemonize --debug. Run your agent against that. Apache shouldn't be that much of an issue,

Re: [Puppet Users] Ordering between 2 create_resources in Puppet Manifests

2014-03-29 Thread Denmat
Hi, Yes there is at least one way. I have been using tags to achieve this like so: $default_a = { tag = 'do_a' } $some_hasha = hiera('a') $default_b = { tag = 'do_b' } $some_hashb = hiera('b') create_resource(resource_type, $some_hasha, $default_a) create_resource(resource_type, $some_hashb,

Re: [Puppet Users] How to apply template based on a string in a file

2014-02-14 Thread Denmat
Or place those values in hiera. On 15 Feb 2014, at 0:12, Johan De Wit jo...@open-future.be wrote: If you need information from the client, then you should think 'facter'. Or you could write a custom fact, or use external facts.

Re: [Puppet Users] puppet random notification confusion

2014-02-10 Thread Denmat
Hi, Puppet doesn't run in any specific order unless you tell it to. Look at http://docs.puppetlabs.com/learning/ordering.html for the learning series. Basically you can use 'require' declarations to get order: file {'/tmp/thing': require = File['/tmp/that'] ... } This says, the 'thing'

Re: [Puppet Users] File.exists? validation failure when trying to create file in same catalogue

2014-02-05 Thread Denmat
Hi, What's the code on that line? On 6 Feb 2014, at 4:04, Gavin Williams fatmc...@gmail.com wrote: /home/vagrant/modules/glassfish/manifests/create_domain.pp:41 -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group

Re: [Puppet Users] puppet jobs list?

2014-02-03 Thread Denmat
The puppet list allows you to posts jobs to the list. You needs to include [JOBS] in the subject line so people who aren't looking can skip it. On 4 Feb 2014, at 0:20, Jason Antman ja...@jasonantman.com wrote: Thanks to both Chris and Peter for their tips/advice. I'm familiar with the

Re: [Puppet Users] Weird Error From Running Puppet

2013-11-21 Thread Denmat
Two things, look at disabling detailed-exitcodes and use --hiera_conf to declare the path to the hiera.yaml file. That should get you further. Den On 22 Nov 2013, at 3:43, MM wilddog.c.1...@gmail.com wrote: So I had this confuse error message when running puppet via Vagrant puppet

Re: [Puppet Users] puppet: access to a portion of modules?

2013-11-12 Thread Denmat
Hi, Take a look at r10k. https://github.com/adrienthebo/r10k Den On 13 Nov 2013, at 4:02, dkoleary dkole...@olearycomputers.com wrote: Hey; This may be more appropriate to the git group but, I suspect people here would have run into similar situations more than the git users have.

Re: [Puppet Users] hiera config oddness

2013-09-30 Thread Denmat
Hi, It isn't finding the file name declared as your hostname. Two things here I would suggest. 1. Use certname instead of hostname. Hostname can easily be changed but certname a little harder. 2. Use puppet master --no-daemonize --debug (on the master) and look for the hiera log output. In

Re: [Puppet Users] Issue with starting puppetmaster service

2013-09-23 Thread Denmat
Hi, Start puppet master in --nodaemonize mode puppet master --nodaemonize --verbose (or --debug) That might give you an idea of your problems. Den On 23/09/2013, at 3:32, V vijaybat...@gmail.com wrote: HI I have installed puppet on a RHEL 6.x machine. When I try to start the puppet

Re: [Puppet Users] One node and several environments

2013-09-23 Thread Denmat
Hi, In this case I would call puppet from cron and pass the environment var there. There maybe better alternatives. Den On 24/09/2013, at 4:03, kay kay kay.d...@gmail.com wrote: I would like to use additional puppet environment for fast response configuration and run it every minute. For

Re: [Puppet Users] Custom Fact undefined in manifests

2013-09-11 Thread Denmat
Hi, Do you have stdlib module installed? http://puppetlabs.com/blog/module-of-the-week-puppetlabsstdlib-puppetlabs-standard-library-part-3 On 12/09/2013, at 1:12, David Thompson dthomp...@waisman.wisc.edu wrote: On 9/11/13 8:54 AM, jcbollinger wrote: Lack of response? This is a volunteer

Re: [Puppet Users] Custom Fact undefined in manifests

2013-09-10 Thread Denmat
Hi, That looks a weird way of using facts. In my opinion that kind of detail should be in your puppet code, not your fact code. What I would push out as facts are things like: v_ntp__ntp_conf=default And then use puppet code to manage the 'if $::v_ntp...' (Notice top scope there for the

Re: [Puppet Users] manage puppet modules, but not all of them

2013-09-09 Thread Denmat
I believe the librarian can manage a specified directory. You can add that directory to your module path in your puppet.conf. That help? On 09/09/2013, at 22:02, Jason Antman ja...@jasonantman.com wrote: We currently have one git repository for our modules/ directory, which is mostly

Re: [Puppet Users] Error on tried to used this module in development environment.

2013-09-09 Thread Denmat
Is pentaho in a different module path on the two environments? Is the code exactly the same or does it contain extra code for the environments that doesn't compile? On 10/09/2013, at 0:14, Eduardo Terzella eterze...@gmail.com wrote: Error 400 on SERVER: Could not find class pentaho for

[Puppet Users] JOB: San Bruno, Systems Administrator - Aconex Ltd

2013-09-05 Thread denmat
Hi all, We are currently looking for a Systems Administrator (Linux and a tiny bit of Windows (MSSQL)). Our clients are large building developers that use our product for document storage and workflows. Main deal is supporting that you will be supporting the main application (JAVA) and doing

Re: [Puppet Users] Passenger-Rack error 500: no such file to load -- rack

2013-08-12 Thread Denmat
Hi, Try loading rack in the ruby irb console. The other thing is depending on your version of puppet an passenger you will need a particular rack version. Do a gem list and see if you have more than one rack gem installed and remove any that may have been recently upgraded. Can be a bit

Re: [Puppet Users] Puppet (v3.2.x) Performance

2013-08-12 Thread Denmat
Hi, Run --debug --evaltrace on the agent run and check the output. It will give you an idea of what is taking time. But sounds networky - dns? Den On 13/08/2013, at 2:05, Tony McMahon tony.mcma...@gmail.com wrote: Hi - I'm new to puppet, but I'm managing to use it to keep ~130 linux

Re: [Puppet Users] Re: puppet fails to install some packages but succeed if I do a manual apt-get update --fix-missing. using puppetlabs/apt module

2013-08-04 Thread Denmat
Did you see this in the log? Stage[main]//Apt::Builddep[python-imaging]/Exec[apt-builddep-python-imaging]/returns: E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? [0m Who are you running it as? Den On 04/08/2013, at 21:31, Alon Nisser alonis...@gmail.com wrote:

Re: [Puppet Users] Re: How to apply puppet manifests toa remote host?

2013-06-21 Thread Denmat
Hi, You're describing puppet 'masterless'. Depending on the complexity of your code (use of stored configs for example) you should be able to apply a manifest with 'puppet apply' on your laptop. You may have to change your existing manifest to make it more useable without a master but there

Re: [Puppet Users] Apply a specific manifest on agent

2013-06-20 Thread Denmat
Hi, depending on your code you can look at a few options. When an agent connects to the puppet master you can supply a --tag var that you can then inspect and make changes in your code paths. The other thing you can do is add --environment and use the environment features that puppet has to

Re: [Puppet Users] Pushing file updates - taking a long time

2013-06-19 Thread Denmat
Well depending on what your code looks like I would say; Install packages - unlikely Restart services - more likely. Notifies or subscribes to config files may or may not restart services - depends really..what you doin? Den On 19/06/2013, at 8:13, KC1987 kcrumpto...@gmail.com wrote: Hi.

Re: [Puppet Users] Can't find source of Removing mount errors

2013-06-13 Thread denmat
Hi, You sure that a grep for 'mount' through your manifest finds nothing? Looks a bit odd to me. Den On Thu, Jun 13, 2013 at 5:26 AM, Brandon bwmetc...@gmail.com wrote: I'm maintaining part of a rather large puppet config and at a loss to figure out where the following errors are coming

Re: [Puppet Users] Tidy on puppet 2.7.18 not working

2013-06-12 Thread denmat
http://docs.puppetlabs.com/references/latest/type.html#tidy The default is atime, maybe you could try mtime? tidy {delete_old_yaml: path = /var/lib/puppet/reports, age= '1w', type = 'mtime', recurse = true, matches = [*.yaml], } Your filesystem might be set to noatime - you can

Re: [Puppet Users] Newbie Question: How to push/pull from other servers

2013-05-24 Thread denmat
Hi Dan, so first you will need to layout your puppet directories like so: . ├── manifests │ └── site.pp └── modules └── my_module ├── files │ └── my_file ├── manifests │ └── init.pp └── templates └── a_template.erb In site.pp above

Re: [Puppet Users] new user help

2013-05-22 Thread Denmat
Hi Dan, You are more than welcome to post here. You will also find there have been loads of questions already asked and answered on this list - so the archives are a wealth of knowledge too. Things to help: Try to break down the things you are having trouble with into a simple test case.

Re: [Puppet Users] Problem creating user with Puppet

2013-05-21 Thread Denmat
Hi, That should work. Can you provide a bit more info? Versions of puppet and Ubuntu. Can you also provide the output from your run with --debug? Make sure the user is removed before you run again. Cheers Den On 21/05/2013, at 22:39, dusan.dorde...@clavistechnology.com wrote: Hi, I am

Re: [Puppet Users] Copy script from source - run it - delete it again

2013-05-19 Thread Denmat
Hmm, this? exec { /root/get_phantomjs.sh rm -f /root/get_phantomjs.sh: Maybe? Den On 19/05/2013, at 21:01, flip flipk...@gmail.com wrote: Hi, i want to deploy a build script, run it and delete if afterwards. To deploy and run, i use this: file { /root/get_phantomjs.sh:

Re: [Puppet Users] Puppet 3.2.0-0.1rc2.el6 SSL problem

2013-05-15 Thread Denmat
So can't help you specifically here, but if you take httpd/passenger out of the picture does it work as expected(ie, stop httpd and run the puppet master --no-daemonize --verbose)? Cheers Den On 16/05/2013, at 0:28, Mike S szymanski...@gmail.com wrote: I am having an issue adding new clients

Re: [Puppet Users] puppet/hiera - how to debug errors ?

2013-05-15 Thread denmat
? On Wednesday, May 15, 2013 6:29:45 AM UTC+1, denmat wrote: Funny this should come up as I got the same error just today. Incorrect YAML file was the culprit. Error is non-descriptive though. This will help you find the file. for i in `find ./ -name *.yaml` ;do echo $i ; ruby -e require 'yaml

Re: [Puppet Users] Is it possible to compile puppet script to pure Ruby or other languages.

2013-05-14 Thread Denmat
Hi, Compile to other languages? No. Compile to pure ruby? No. Use masterless? Yes. However, it is not the same as using the master - exported resources won't work, but things like hiera will still work. Google returns many write ups on the matter. Cheers, Den On 14/05/2013, at 13:28,

Re: [Puppet Users] puppet/hiera - how to debug errors ?

2013-05-14 Thread Denmat
What's on that line? On 14/05/2013, at 22:02, przemol p@cmcmarkets.com wrote: etc/puppet/environments/env1/manifests/site.pp:2 on -- 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

Re: [Puppet Users] puppet/hiera - how to debug errors ?

2013-05-14 Thread denmat
, May 14, 2013 at 11:59 PM, przemol p@cmcmarkets.com wrote: I have included it in my first post: /etc/puppet/environments/env1/ **manifests/site.pp node default { hiera_include ( classes, [] ) } On Tuesday, May 14, 2013 2:45:02 PM UTC+1, denmat wrote: What's on that line

Re: [Puppet Users] Puppet, git security

2013-05-14 Thread Denmat
I haven't worked out a pure git way but Jenkins, git export, rsync are a good solid combo :) On 15/05/2013, at 14:51, devzero2000 pinto.e...@gmail.com wrote: Sorry for the top posting. Imho, i think this is a question that could be asked on the git mailing list. Best 2013/5/15, Alex

Re: [Puppet Users] Support for transactions

2013-05-07 Thread Denmat
Hi, No, puppet is not transactionable. There is also no simple way to do it in puppet and running noop first is no guarantee that the run will succeed. Version control may help you out to 'roll back' but it would be messy depending on changes. Traditional methods of snapshoting disk or

Re: [Puppet Users] Re: Installing packages on windows - fail :(

2013-05-02 Thread Denmat
Sorry, I don't do much windows so can't be of much help but how does running the install command from the windows command line go? Does that install okay? Den On 03/05/2013, at 0:08, Klavs Klavsen kl...@enableit.dk wrote: On windows server 2008 - it works perfectly. Den torsdag den 2. maj

Re: [Puppet Users] Problems relocating $confdir on Puppet Master

2013-05-02 Thread Denmat
Well that kinda makes sense for the top scope variable on the master to return like that. Your options would be like any other fact/var you want to query on the client, no? Den On 02/05/2013, at 22:38, Dan White y...@comcast.net wrote: Reference:

Re: [Puppet Users] puppet 3 and hiera debugging

2013-04-30 Thread Denmat
Hi, Run the master in no-daemonize and debug. You will see how it searches through your hierarchy that way. Also you can use the command line on the master to query hiera. See puppet docs for details. Cheers, Den On 01/05/2013, at 2:46, lth lthar...@gmail.com wrote: I'm using puppet 3.1

Re: [Puppet Users] using a test within an if in a manifest

2013-04-28 Thread Denmat
Hi, No, not directly. Compilation takes place on the master and so that is where these tests would run. What you need is a fact or use an exec. The fact will tell the master what the client has; an exec will run on the client where the test will execute. Cheers, Den On 26/04/2013, at 3:50,

Re: [Puppet Users] How to reference a class in site.pp without creating a module?

2013-04-21 Thread Denmat
Hi Max, Making the module directory structure is pretty easy and will serve you well as you develop your manifest. mkdir -p /etc/puppet/manifests/jdk/manifests Then copy your jdk class into init.pp in that new directory. Alternatively you can add the import clause into site.pp to find your

Re: [Puppet Users] syntax checking nodes, don't allow global scope

2013-03-12 Thread Denmat
Hi, None that I know of - its the same as putting includes in site.pp. Education and review are your best bet. Den (That said, very verbose rspec tests may pick it up for very specific cases - but it would be a bit of work.) On 12/03/2013, at 23:31, Rudy Gevaert rudy.geva...@gmail.com

Re: [Puppet Users] Puppet dynamically handle ssl registration re-registration

2013-02-26 Thread Denmat
You could try the ruby gem uuid. That would give you a reasonably unique cert name. You would then run a scan/probe to verify current certs against current nodes and remove unused certs from the master. The nodes are just rebuilt with a new uuid and register. Wouldn't worry about SSL dir

Re: [Puppet Users] issue storing facts values in mysql on puppet master 3.0.2

2013-02-08 Thread Denmat
Hi, Couple of questions: What version of puppet? What section of the puppet conf do you have those options declared (should be in [master])? Den On 08/02/2013, at 20:24, Heena rush2h...@gmail.com wrote: inventory_active_record -- You received this message because you are subscribed to the

Re: [Puppet Users] Installing cloudprovisioner on windows

2013-01-16 Thread Denmat
Hi, I believe that this is supposed to be installed on the puppet master - and since you can't run puppet master on windows you are out of luck. Sorry, Den On 16/01/2013, at 11:21, PuppetUser srinivas.ry...@gmail.com wrote: So give me any other solution to install cloud provisioner tool to

Re: [Puppet Users] How to increase performance of managed directories?

2013-01-09 Thread Denmat
Smaller directories? :) But seriously Puppet sucks at distributing large directories (you should see posts to the list going back years on this topic). If you look at the file type resource docs (http://docs.puppetlabs.com/references/stable/type.html#file)you can see you can change the

Re: [Puppet Users] Re: razor hang

2013-01-07 Thread Denmat
Hi, It's a bit hard to answer your problem because your issues appear more complex than you have described. For the record I've used the PuppetLab module on github to install Razor previously and it works. It does require access to the Internet however. That leads me to the question, what is

Re: [Puppet Users] passenger-3.0.18 command(s) setting env variables to run commands anywhere.

2013-01-07 Thread Denmat
Hi, Options are as follows: set your $PATH. PATH=$PATH:yourpath/bin Add a path to a file in your /etc/profile.d/somefilename Symlink binaries to /usr/local/bin If you use the RPM provided by stealthmonkeys (not the cannabis site ;) ) it will do this for you. Cheers Den On 08/01/2013, at

Re: [Puppet Users] Using puppet to upgrade a package (e.g. php 5.4)

2013-01-07 Thread Denmat
Hi, You can use a yum makecache exec and require it in your php package section (or whatever relies on that repo). I've previously put all my repo calls in a 'stage' that ran before 'main' stage (see puppet docs for details). That worked well for local repo mirrors - was a slow down for

Re: [Puppet Users] Configuration is not applied notice: Finished catalog run in 0.01 seconds

2013-01-03 Thread Denmat
Hi, First thing I would is check where I think this node is declared and stick a notify there to spit out a message on the run. node nodename { notify {some message and maybe a $var or $::fact } Then use that same kind of message to trace through your code and find out the path your node

Re: [Puppet Users] How do I check content of a file in puppet

2012-12-27 Thread Denmat
Hi, Couldn't he run --noop as a scanner for hosts out of compliance and then when one is found, run normal puppet run (obviously you don't have to run in noop and just run normal runs and monitor reports). That way management can see that non compliant host are being made compliant ( a much

Re: [Puppet Users] Puppet Master Console not accessibel on EC2 instance.

2012-12-19 Thread Denmat
Hi, That address won't resolve very nicely. What is the publicly resolvable address for your node? Have you allowed 443 in your security groups to your node? HTH, Den On 19/12/2012, at 9:11, lalit jangra lalit.j.jan...@gmail.com wrote: Hi, I have an RHEL based EC2 instance where i have

Re: [Puppet Users] Template in site.pp

2012-12-19 Thread denmat
Hi, I'm pretty sure there is a template directory config option in puppet conf which would default to /var/lib/puppet/templates (you'll need to verify this because I can't at the moment). If so you should be able to pass that on the command line like so, puppet agent --templatedir path options

Re: [Puppet Users] Puppet client runs outside of office hours

2012-12-11 Thread DenMat Gone
Cron would be your best bet. You can manage cron jobs via puppet. kdo k...@hampels.com.au wrote: anyone have any smart ideas around scheduling puppet client runs during specific times ? such as outside of office hours ? any options that can be set in the puppet.conf for example ? -- You

Re: [Puppet Users] Reload fact variable during run

2012-11-07 Thread Denmat
Hi, Not from within puppet but there are external ways (ssh, MCollective ). From them you can schedule action. You can run puppet again (as compilation is done on the master not the client). The facts are sent to the master at the start of the run and puppet can't do anything with them

Re: [Puppet Users] Puppet Meetup Australia (Melbourne, Sydney, Brisbane)

2012-11-04 Thread Denmat
I would be glad to meetup in Melb. On 05/11/2012, at 9:58, Stephen Johnson step...@puppetlabs.com wrote: Hi I currently in Australia, as im the instructor on the Puppet Fundamentals * courses in Melbourne, Sydney and Brisbane and just wondered if anyone fancied meeting up and talking

Re: [Puppet Users] Connection Timed Out updating node on 3g mobile broadband device

2012-10-25 Thread Denmat
Interesting setup. Sometimes providers block uncommon ports. Can you get to 8140 over your 3/4g? If not, try running on 443 (change puppet.conf or apache ports). If none of these work check the docs for timeout settings (can't remember of hand). Den On 26/10/2012, at 3:55, Steve

Re: [Puppet Users] Error 403 on SERVER: Forbidden request: (HOSTNAME) access to (path_to_file) [find] authenticated at line 73 at /etc/puppet/modules/nginx/manifests/init.pp:97

2012-10-08 Thread Denmat
While Craig maybe right, are you sure it's not a typo? Are you trying to find a file in the mymodule module or in nginx module? Normally you would try to keep files required by a module in the module that calls them. Den On 09/10/2012, at 5:11, Craig White craig.wh...@ttiltd.com wrote:

Re: [Puppet Users] puppetlabs-java ?

2012-09-27 Thread Denmat
Yes, unpack the bin and set up a repo or use exec's to download, unpack and install - easier to setup a repo though. Den On 28/09/2012, at 0:06, Carsten Øland Madsen carsten.ol...@gmail.com wrote: In a node I have (centos): class { 'java': distribution = 'jdk' } And when I run it I get:

[Puppet Users] rspec testing - what am I missing?

2012-09-20 Thread denmat
Hi all, There is something amiss with what I am doing. I believe the following should work. puppetlabs_spec_helper (0.3.0) rspec (2.11.0) rspec-core (2.11.1) rspec-expectations (2.11.2) rspec-mocks (2.11.1) rspec-puppet (0.1.4) . ├── manifests │   └── init.pp ├── Rakefile └── spec ├──

Re: [Puppet Users] Machines not using local mirror

2012-09-19 Thread Denmat
Hi, Cobbler can put the desired repo in /etc/yum.repo.d - but I have in the past explicitly cleared that directory (from the cobbler post install (kickstart really)) and managed the repos via puppet only. First thing puppet did was install the right repo. It was the cleanest way I found.

Re: [Puppet Users] Hadoop format using puppet

2012-09-19 Thread Denmat
filesystem! So your test would always pass. So maybe a format and touching a file in the hdfs would work? Sorry don't work with Hadoop any more so cant test. You can have a look at the following: https://github.com/denmat/hadoop_in_a_box That was last approach (can't remember how I did it off hand

Re: [Puppet Users] nodes including modules that are not assigned in the site.pp file

2012-09-13 Thread Denmat
Hi, Is tomcat6 included elsewhere in your manifest? Can you grep for 'include tomcat6' and check? Cheers, Den On 14/09/2012, at 4:17, PaulS paul_spe...@hotmail.com wrote: This is my /etc/puppet/manifests/site.pp Can anyone see why nodes

Re: WG: [Puppet Users] AW: Issue with large directory content

2012-09-13 Thread Denmat
Hi, Not sure if I can help but just have couple of questions. How long does it take to do a 'find' on the directory or a 'stat'? Have you tried running the client with --verbose --debug --evaltrace --summarize? Are you trying to set any permissions inside that directory elsewhere in the

[Puppet Users] [Job Listing]: Infrastructure Systems Engineer - San Franscisco

2012-09-06 Thread denmat
Hi people, here is a job that we have open in the US. *First I want to stress:* *You must be a US Citizens to be eligible to apply.* The official description is below, but here is my take on it. We run Linux where possible, but we have some Windows servers where needed. We use Puppet and

[Puppet Users] Re: [Job Listing]: Infrastructure Systems Engineer - San Franscisco

2012-09-06 Thread denmat
On Friday, September 7, 2012 11:02:54 AM UTC+10, denmat wrote: Hi people, here is a job that we have open in the US. *First I want to stress:* *You must be a US Citizens to be eligible to apply.* The official description is below, but here is my take on it. We run Linux where possible

Re: [Puppet Users] Install rubygem package in order to use with library

2012-08-23 Thread Denmat
', api_host = $api_host, require = Package['librubix-puppet-ruby1.8'] } On Aug 22, 2012, at 1:07 AM, Denmat wrote: Hi See inline: On 21/08/2012, at 23:14, Sergey V. Arlashin sergey...@gmail.com wrote: Hello! I have a custom function which requires a ruby gem which I have

Re: [Puppet Users] Install rubygem package in order to use with library

2012-08-21 Thread Denmat
Hi See inline: On 21/08/2012, at 23:14, Sergey V. Arlashin sergey...@gmail.com wrote: Hello! I have a custom function which requires a ruby gem which I have in my deb-repository. If the package is installed beforehand manually the function works well. But if I want to install the

Re: [Puppet Users] Class Naming Convention

2012-08-17 Thread Denmat
On 17/08/2012, at 17:19, Douglas Garstang doug.garst...@gmail.com wrote: On Thu, Aug 16, 2012 at 11:34 PM, Garrett Honeycutt garr...@puppetlabs.com wrote: On 8/16/12 10:44 PM, Douglas Garstang wrote: So, this has always puzzled me a bit. By convention, init.pp contains one class, named the

Re: [Puppet Users] Re: Hiera unable to retrieve the value

2012-08-17 Thread denmat
, linuxbsdfreak wrote: Hi, The default value works when i set the value in common.yaml. Strange part is why isnt hiera find the value in the hierarchy, since i want to override the default value according to a facter fact. Regards, Kevin On Friday, August 17, 2012 2:57:03 AM UTC+2, denmat wrote: Hi

Re: [Puppet Users] Re: Hiera unable to retrieve the value

2012-08-16 Thread denmat
Hi, Can't see anything that stands out in the quick glance, but here's how you can dig further: Use --debug on your puppet run and you'll get an output of what hiera is going through. Second, use notify to print out the variables you are trying to access, making sure they match with what hiera

  1   2   3   4   >