Re: [Puppet Users] Template Help Please

2012-01-23 Thread Denmat
Hi, Is that variable declaration copied correctly? > $resolvers = "10.10.10.10 11.11.11.11.12.12.12.12" Should be > $resolvers = "10.10.10.10 11.11.11.11 12.12.12.12" what's that do for you? Cheers Den On 23/01/2012, at 22:57, "ollies...@googlemail.com" wrote: > Hello, > > I am trying to s

[Puppet Users] hash iteration with erb templates

2012-01-24 Thread denmat
Hi list, I'm trying to deploy a configuration file via a template (puppet 2.6.13). The problem is that I can't get my iteration right. You can check out the gist here: https://gist.github.com/1674234 But the code is like the following: $drbd_resource = { data_share1 => { 'node1.local' => ['192

[Puppet Users] Re: hash iteration with erb templates

2012-01-24 Thread denmat
Sorted. Thanks Kevin, https://gist.github.com/1674234 On Jan 25, 1:42 pm, denmat wrote: > Hi list, > > I'm trying to deploy a configuration file via a template (puppet 2.6.13). > > The problem is that I can't get my iteration right. > > You can check out the gi

Re: [Puppet Users] Puppet agents stop reporting after master runs out of disk space...

2012-01-27 Thread Denmat
Hi, Puppet's sister project, MCollective would do it. An alternative would be something like Rundeck. Den On 28/01/2012, at 3:52, Kyle Mallory wrote: > I am experiencing a curious event, and wondering if others have seen this... > As well, I have a question related to it. > > Today, I notice

Re: [Puppet Users] Can't use ${path} in file resource as its namevar?

2012-01-27 Thread Denmat
The errors are good at locating the source of your issues: err: /Stage[main]/Ldapclient::Config/File[/etc/nslcd.conf]: Could not evaluate: Could not retrieve information from environment production source(s) puppet:///modules/ldapclient/files/RH6/ldapclient::config at /etc/puppetlabs/puppet/modu

Re: [Puppet Users] How to create / update resources at puppetmaster without restarting puppetmaster

2012-02-02 Thread Denmat
Hi, You will need to provide more detail as to what you are doing. We have no idea what the following does: > testclass.pp or > testmanifest.rb Loosely speaking puppet will rescan files in /etc/puppet without the need to restart the master (depending on your version of puppet). Cheers Den O

Re: [Puppet Users] Having inheritance issues

2012-02-06 Thread Denmat
Hi, First you should be able to ditch your modules.pp file. You can set where puppet can read modules with the modulepath directive in puppet.conf on the server ([master] section) modulepath /etc/puppet/modules Next put import 'nodes.pp' in your site.pp. That should get you going. Den http

Re: [Puppet Users] Re: pass values to puppet-lvm

2012-02-07 Thread Denmat
And I kickstart and script (%post kickstart section) where possible but I'm going to look into the lvm module after finding it a couple of days ago - for partitions I don't plan on hosts I can't rebuild. HTH Den On 08/02/2012, at 1:00, jcbollinger wrote: > > > On Feb 6, 11:23 am, Luke wrot

Re: [Puppet Users] Could not set present on ensure: Read-only file system

2012-02-16 Thread Denmat
Hi, Is it a read only file system? > change from > purged to present failed: Could not set 'present on ensure: Read-only > file system - /tmp/puppet20120216-1063-18q7lsz-0 at > /tmp/vagrant-puppet/manifests/vagrant.pp:15 Try doing a remount on / with rw. Also check if you can do a manual inst

Re: [Puppet Users] How run a first command

2012-02-17 Thread Denmat
Hi, There are at least two simple options for you: require => Or before => > package { "build-essential": ensure => "installed", require => Exec[ 'apt-get > -y update'] There are other ordering methods too. I suggest you start here for some good examples. http://docs.puppetlabs.com/learnin

Re: [Puppet Users] Puppet condition based on variable.

2012-03-01 Thread Denmat
Hi, That is a string you are checking in the has_variable not a Boolean. So if you put 'true' or 'false' they both pull the var into existence. So as far as I recall, you got two options. Try declaring the var like so: $mysqlsrv = true Or you run the template like this: > <% if has_variable?

Re: [Puppet Users] Puppet condition based on variable.

2012-03-01 Thread Denmat
Right, didn't properly read your original post. You're declaring this in node.pp. Where are you declaring the template call? Can you paste how you are doing this so we can see? http://docs.puppetlabs.com/learning/templates.html#some-simple-erb In that link puppetlabs talk about the scopes of v

Re: [Puppet Users] Puppet condition based on variable.

2012-03-02 Thread denmat
Here is an example using inline templates. Should describe how you can do it. class myclass { } class myclass::config { $myvar = "this is class text" } class myclass::template { include myclass::config $myvar = $myclass::config::myvar $mytemplate = inline_template(" Here is some text.

Re: [Puppet Users] cross module require

2012-03-02 Thread denmat
HI, have you tried including the mounts module in your application.pp? include mounts::mount1 Either there or in your node definition should do it. Cheers, Den On Fri, Mar 2, 2012 at 9:39 PM, Peter Horvath wrote: > Hello, > > I have 2 modules and 1 modul has a resource type in a class which >

Re: [Puppet Users] Automatic Puppet deployment over a cluster

2012-03-02 Thread Denmat
Hi, No, puppet won't install and configure itself. However you can provision puppet onto your cluster at build time and configure it at that time. We use cobbler to provision machines with the required software and initial configuration. Foreman is another option here. On an existing small clu

Re: [Puppet Users] Duplicate definition + parameterized classes + class scope

2012-03-05 Thread Denmat
Hi, Here's what the docs say: "Okay, we can pass parameters into classes now and change their behavior. Great! But classes are still always singletons; you can’t declare more than one copy and get two different sets of behavior simultaneously. And you’ll eventually want to do that! What if you

Re: [Puppet Users] Setting password hash for virtual users?

2012-03-06 Thread Denmat
Hi, Most likely you need to have ruby-shadow installed on the client. Den On 07/03/2012, at 12:11, Dominik Zyla wrote: > On Wednesday, 7 March 2012 at 01:38, Forrie wrote: >> I read that this doesn't always work on every OS. However, I'm on >> RHEL, and from what I'm reading the following shou

Re: [Puppet Users] template/files - ignoring lines

2012-03-14 Thread Denmat
Hi, That depends on what you have available to you to test for. You can use 'if' statements and other ruby conditional statements in your template which can test values of variables and make appropriate decisions. You might like to provide a bit more info on what you are trying to do? Den On

Re: [Puppet Users] Use of regular expressions

2012-03-14 Thread Denmat
Hi, This is the sort of thing I would use hiera for. It may not match your workflow but I would create a yaml file with details for the portals like so: Portals: ID_Centro: path: /var/. owner: ... Then you could use create_resource to apply the resource. $my_list = hiera('portal

Re: [Puppet Users] node inheritance

2012-03-15 Thread Denmat
Hi, Further to that, it is most likely going to be that you have either an include or import statement for the web class. Grep through your manifest and find out if you have included them in base or app stuff. Den On 16/03/2012, at 5:10, Dan White wrote: > More details would help. > This is

Re: [Puppet Users] Re: template/files - ignoring lines

2012-03-15 Thread Denmat
Hi Bruno, We need to be clear what you want. Are you trying to make changes 'on the fly' to an existing file or are you trying to produce a file and contents from puppet? Using templates overwrites the content of existing files, as does using source =>. So what you can do is the following. c

[Puppet Users] Cloud provisioning

2012-03-19 Thread Denmat
Hi list, Quick general question, what's the current best way to deploy to an Amazon VPC (without VPN to central puppet master)? Deliberately vague to get wide results :) Has anyone got good posts on this? TIA Den -- You received this message because you are subscribed to the Google Groups "

Re: [Puppet Users] Cloud provisioning

2012-03-19 Thread Denmat
public subnet, or even run a foreman "smart-proxy" puppet > proxy in a public VPC subnet, that your other VPC nodes can accces. > > (Let me know if any of these sound appealing and I can get you more info. Or > at least point you in the right direction.) > > -Bria

Re: [Puppet Users] high-level module organization

2012-03-20 Thread Denmat
Hi, For common files that aren't easily grouped I currently manage them is a base module that everyone gets. They get their own class or define and are called like so: class blah { Include base base::sysctl {"vm.swappiness": value => 10 } } Cheers, Den On 21/03/2012, at 4:35, Sco

Re: [Puppet Users] Puppet Agent Cert request issues

2012-03-21 Thread Denmat
Hi mrT Can you provide the error you receive? Another easy way to test what's going on is to run the master and agent in --no-daemonize mode (stop existing master and agent and add that to the command line with verbose and debug). Also, what version and OS are you running? So a quick run down

Re: [Puppet Users] Re: Puppet Agent Cert request issues

2012-03-21 Thread Denmat
master than > client > > is there an EASY way to upgrade the master to 2.7.10 > > > On Mar 21, 1:18 pm, Denmat wrote: >> Hi mrT >> >> Can you provide the error you receive? >> >> Another easy way to test what's going on is to run the mast

Re: [Puppet Users] Re: Puppet Agent Cert request issues

2012-03-21 Thread Denmat
th the way it works though. Cheers Den On 22/03/2012, at 10:02, MrT wrote: > I should have clarified I am running the 10 user version of PE 2.0 if > that makes a difference > > On Mar 21, 2:33 pm, Denmat wrote: >> Okay, sorry might have lead you down the wrong path a

Re: [Puppet Users] default "notify" directive for files in a directory

2012-03-23 Thread Denmat
Hi Matt, No, not like that. You can group all these files under a module for that service and inside the class for configuring those files create a default. class blah::service { service {'blah': .} } class blah::files { File { notify => Service['blah'] } file {'/etc/path/file

Re: [Puppet Users] Empty node definition mysteriously runs yum class!

2012-03-28 Thread Denmat
Hi, Grep your manifest for all 'yum' references (modules and manifest directories). If that doesn't show up anything please provide more detail on your manifests. Den On 29/03/2012, at 7:00, Ryan Bowlby wrote: > I'm having an issue where every single puppet node included our yum > class as pa

Re: [Puppet Users] Could not load confine test 'operatingsystem': cannot load such file -- puppet/provider/confine/operatingsystem

2012-03-28 Thread Denmat
Hi, Is that a ruby 1.9.1 and 1.9.3 issue? Did you upgrade ruby on the host? Den On 29/03/2012, at 7:07, lth wrote: > Hello, > > I'm having some trouble. I keep getting the following warnings when > trying to run: > > $ puppet master --no-daemonize > /usr/local/build/puppet-bundle/vendor/gem

Re: [Puppet Users] apt-get update before package installations

2012-03-30 Thread Denmat
Hi Gino, The good news with a work in progress is that you can start all over again ;) What you are trying to call is a define: http://docs.puppetlabs.com/learning/definedtypes.html http://docs.puppetlabs.com/guides/language_guide.html#resource-collections I would also take a look at this: htt

Re: [Puppet Users] "certificate verify failed" - but clocks are in sync

2012-03-30 Thread Denmat
Try using fully qualified domain name. vm1.blah.com The server name needs to match the certificate. What you can do is remove all your ssl puppet dirs (usually /var/lib/puppet/ssl) and set certname in your puppet.conf to be what you call the hosts instead of using dns names. ie: on master: [mai

Re: [Puppet Users] PuppetMaster doesn't trust Puppet Agent on the same host

2012-04-02 Thread Denmat
Hi, What happens if you move certname to [main] instead? Cheers, Den On 03/04/2012, at 1:27, Jcduss wrote: > Dear All, > > I've got troubles with my puppet master which doesn't trust its own > agent working on the same machine. This master has already about 50 > clients running on differents

Re: [Puppet Users] Puppet Beginners: New list suggestion?

2012-04-02 Thread Denmat
How about a 'serverfault' or 'stackoverflow' or the like site? One of the issues I find is that previous answers are lost in mail lists and hard to search for. IRC isn't much help for searching previous answers either. -1 for separate lists. Den On 03/04/2012, at 14:30, Michael Stahnke wrote:

Re: [Puppet Users] file resource

2012-04-16 Thread Denmat
Hi, Use > file { "/opt/tarball_name-${version}.tar.gz" : You then declare that with $version = 1.2.3 See http://docs.puppetlabs.com/learning/variables.html for fuller explanation. Den On 17/04/2012, at 7:32, Eslam Mamdouh wrote: > Hi All, > i'd like to define a file resource that transf

Re: [Puppet Users] Re: Case statements in a file directive

2012-04-17 Thread Denmat
>/(i386|i586|i686/) => should be >/(i386|i586|i686)/ => shouldn't it? Den On 18/04/2012, at 9:01, Forrie wrote: > So, it's choking on this still at the line with the conditional: > > Apr 17 18:58:17 test-system puppet-agent[7590]: Could not retrieve > catalog f

Re: [Puppet Users] access variables from calling ressource

2012-04-19 Thread Denmat
Hi, This should work: $res = ['test1','test2'] > example::ressource { $res: } with the caveat that I can't see your code or how you get your vars. Have tried Hiera? Makes these things relatively simple. Den On 20/04/2012, at 1:23, Andreas Paul wrote: > I need to create a XML file for our N

Re: [Puppet Users] Using puppet for release management?

2012-04-20 Thread Denmat
Hell yeah! It's even good to get developers to think about how an application is managed during the life cycle of the application. Have a look at this and you'll get the idea of how we do it: http://puppetlabs.com/blog/git-workflow-and-puppet-environments On 20/04/2012, at 13:05, "Will S. G."

Re: [Puppet Users] Installing Jenkins with Puppet fails to import GPG key

2012-04-25 Thread Denmat
Hi, The way that i import my keys is to set the gpg key for the yum repo like so: yumrepo { "jenkins": baseurl => "http://pkg.jenkins-ci.org/redhat";, descr=> "Jenkins", enabled => 1, gpgcheck => 1, gpgkey => "http://pk

Re: [Puppet Users] Installing Jenkins with Puppet fails to import GPG key

2012-04-26 Thread denmat
catalog run in 10.20 seconds $ rpm -qa |grep jenkins jenkins-1.461-1.1.noarch That's what I meant. You shouldn't need to import the key as it should check against the public key in the url (if you where installing via rpm that might be different and will probably require the local import - h

Re: [Puppet Users] Installing Jenkins with Puppet fails to import GPG key

2012-04-26 Thread denmat
that if it is 'assumed yes', yum will automatically accept the public key via the url - I don't know why Jenkins is different - but it appears to install a new repo file and try to import the pubkey again on install - maybe this confuses yum? Just speculating - not going to investiga

Re: [Puppet Users] Require => Package from a different server

2012-04-30 Thread Denmat
Hi, To my knowledge there is no simple way. I know there has been talk of this previously on the list so you can search that for other answers. That said a possibility is that you can have a custom fact that checks for an open port on the server. If it responds set it to true. There are obvious

Re: [Puppet Users] Re: Conditional directory creation

2012-05-01 Thread Denmat
Hi, can't see anything wrong off the top of my head except you use an import statement instead of an include. http://docs.puppetlabs.com/guides/language_guide.html#importing-manifests Have you tried testing for a string like 'false'? Just to see if something odd not going on. >> $mode = '755

Re: [Puppet Users] Re: Conditional directory creation

2012-05-01 Thread denmat
ile is not created. In my quick testing it appeared to work, but may not be exactly suitable for your env. That help? Den On Wed, May 2, 2012 at 1:03 AM, Peter Horvath wrote: > Hey Den, thanks for the answer > > I changed the import to include it was just a leftover when for some reas

Re: [Puppet Users] automatic load of node definition file

2012-05-02 Thread Denmat
Hi, >> load host.fqdn.pp to find a node it will search hostname and fqdn but not hostname.fqdn. This all sounds like a lot of work to me. How do you intend to manage changes that effect 300 nodes? What I do is that I create a custom that assigns a role to certain node types. I then have a ro

Re: [Puppet Users] newb here

2012-05-03 Thread Denmat
Hi, Yes puppet can used to ensure your nodes are at a certain 'state'. The state being the same configuration and package level. You can use puppet to change the state across your nodes. If I was starting out in your position I would look at 'foreman'. It can build out systems and maintain th

Re: [Puppet Users] Re: What is "Could not intern from pson" error??

2012-05-06 Thread Denmat
Hi, Can you describe your setup a bit more for us? Versions, distros, apache/passenger, that kind of thing. You could try running puppetmaster in the foreground and see if that helps you get closer to a solution. puppet master --no-daemonize --verbose (or --debug) Then get a client to poll i

Re: AW: [Puppet Users] Re: What is "Could not intern from pson" error??

2012-05-07 Thread Denmat
for the > advise on running puppetmaster in the foreground - trying that now. Cheers!! > > > On Monday, May 7, 2012 6:58:39 AM UTC+1, denmat wrote: > Hi, > > Can you describe your setup a bit more for us? Versions, distros, > apache/passenger, that kind of thing. >

Re: [Puppet Users] Puppetmaster with apache/passenger on SL6

2012-05-13 Thread Denmat
Hi, Have you still got your puppetmaster service running? Don't need that running when using httpd and passenger. Den On 13/05/2012, at 21:07, Sans wrote: > Dear experts, > > Since I've moved my puppetmaster form SL5 (Scientific Linux) to SL6 with > SELinux on, I'm facing loads of trouble

Re: [Puppet Users] modifying file(s) on the fly

2012-05-22 Thread Denmat
Hi, I think templates would be easier to manage in this setup. http://docs.puppetlabs.com/learning/templates.html It will give good flexibility. It the way I have managed my ganglia setup. Cheers, Den On 22/05/2012, at 7:33, Sans wrote: > Dear all, > > I'm trying to figure out how to do th

Re: [Puppet Users] modifying file(s) on the fly

2012-05-22 Thread Denmat
I did think about using template one point. > So, do you generate the entire file using "template"? For us, it's just a few > lines to change in the default gmod.conf file. > > cheers, > San > > > On Tuesday, May 22, 2012 9:02:59 AM UTC+1, denmat wrote:

Re: [Puppet Users] puppetmaster fails to start

2012-05-23 Thread Denmat
Hi, Common culprits are rack and activerecord. Can't remember the versions to target off the top of my head, but try first downgrading activerecord. Cheers Den On 23/05/2012, at 18:04, Oren Marmor wrote: > Hi all. > i have puppet 2.6.8 + passenger installed on centos 5.6 server > for some o

Re: [Puppet Users] Installing Jenkins with Puppet fails to import GPG key

2012-05-23 Thread Denmat
Well dug Dan :) On 24/05/2012, at 3:27, Dan Carley wrote: > On 27 April 2012 06:15, denmat wrote: > Normally what happens is that if it is 'assumed yes', yum will > automatically accept the public key via the url - I don't know why > Jenkins is different - but it ap

Re: [Puppet Users] Re: Augeas & Arrays

2012-05-29 Thread Denmat
Hi Steve, I believe he meant that you pass your array directly to the defined type: > class test ($tport) { > fwport{ $fport: } > } > define fwport { > $fport = $name > augeas{$fport: > context => "/files/etc/sysconfig/iptables/table", I hope that gives you the idea. Regards, Den

Re: [Puppet Users] Thoughts on job listings?

2012-05-31 Thread Denmat
Having been a job poster I got to say +1. but +1+1 to RIP's idea 2. On 31/05/2012, at 10:47, Gonzalo Servat wrote: > On Thu, May 31, 2012 at 7:13 AM, R.I.Pienaar wrote: > > job postings from community members looking for themselves/their employers > with clear direct to employer contact infor

[Puppet Users] node yaml files on master

2012-06-04 Thread denmat
Hi all, Can anyone tell me what config setting generates the yaml output in / var/lib/puppet/yaml/node? I'm getting output in /var/lib/puppet/yaml/facts but not node. This is puppet v3.rc2 and I've specified report = true all over the place but nothing is being produced (except of course in /var

[Puppet Users] Re: node yaml files on master

2012-06-04 Thread denmat
milar in output but haven't diff'd against it. Den On Jun 4, 8:35 pm, denmat wrote: > Hi all, > > Can anyone tell me what config setting generates the yaml output in / > var/lib/puppet/yaml/node? > > I'm getting output in /var/lib/puppet/yaml/facts but not no

Re: [Puppet Users] Re: node yaml files on master

2012-06-04 Thread denmat
3:48 AM, denmat wrote: >> Think I might be already answering my own question but it appears that >> this is a change in v3 - have downgraded to v2.7 and it appears. > > In Puppet 2.7 this is handled by the save method called on the node > instance of Puppet::Node::Yaml wh

Re: [Puppet Users] mysql or postgresql

2012-06-04 Thread Denmat
Hi, You should checkout puppetdb which currently locks you into PostgreSQL. Docs here: http://docs.puppetlabs.com/#puppetdbpuppetdb09 It's new so may be buggy - though I haven't seen any reports on this (haven't looked ;) ) Den On 05/06/2012, at 4:05, akaroot wrote: > Hi! > Which database

Re: [Puppet Users] How should I run/start puppetmaster using Apache/Passenger??

2012-06-11 Thread Denmat
Hi, Do you actually have an apache vhost configured for the puppet master? The doco here is pretty clear on what is needed: http://docs.puppetlabs.com/guides/passenger.html Have a look at the file here for an example of what the vhost should look like: https://github.com/puppetlabs/puppet/blob/m

Re: [Puppet Users] How should I run/start puppetmaster using Apache/Passenger??

2012-06-12 Thread denmat
Hi San, Do you still have your httpd puppet master vhost listening on the non standard port? That is fine, as long as you configure your clients like has been mentioned before. Puppet clients will try to reach port 8140 unless you specify otherwise. In your config.ru you can see how passenger cal

Re: [Puppet Users] can we avoid notify/subscribe firing on a mode change?

2012-06-18 Thread Denmat
Okay back to the original problem. It's become a bit hard to follow. Without code change to puppet you're stumped. But without knowing your systems a combination of package based deployments and excluding mode or owner maybe will get you by? But with puppet code change, would a way of doing wha

Re: [Puppet Users] Facter facts updated at start of puppet run only?

2012-06-22 Thread Denmat
On 22/06/2012, at 21:27, Felix Frank wrote: > Hi, > > On 06/21/2012 07:25 PM, Zach wrote: >> Hi all, >> >> I use a custom fact to determine and build custom reports on the version >> of certain packages on a system. If the package is updated, the fact is >> not updated during that run, false

Re: [Puppet Users] Installing hiera

2012-06-22 Thread Denmat
Hi, Try opening irb and seeing if you can require hiera. $ irb require 'rubygems' require 'hiera' (should return true) Then at least you'll know if your gem is installed properly. Den On 23/06/2012, at 5:25, "llow...@oreillyauto.com" wrote: > My puppet master is behind a proxy and unable t

Re: [Puppet Users] New Puppet Setup

2012-06-25 Thread Denmat
Hi Munna, You can find those packages in the EPEL repository. See http://fedoraproject.org/wiki/EPEL. Den On 25/06/2012, at 17:34, Munna S <19.mu...@gmail.com> wrote: > Team, > > I am trying to setup new Puppet master server on Centos 5.4. I am getting the > below error which running yum in

Re: [Puppet Users] hiera questions

2012-06-28 Thread Denmat
You need your custom fact script in: /lib/facter/

Re: [Puppet Users] Off Topic: Passenger / Ruby on Rails for the N00b

2012-06-28 Thread Denmat
Hi, Comments inline. On 28/06/2012, at 23:22, Dan White wrote: > I have successfully set up an Apache/Passenger/Puppet(Master)-2.7.x on a RHEL > 5 server and I now have some questions about what I have here. > > In my work environment, I am part of a team of admins supporting a collection >

Re: [Puppet Users] Execute a shell script residing in puppet master

2012-06-28 Thread Denmat
On 28/06/2012, at 21:24, kalaniS wrote: > I'm a newbie to puppet and have been trying to execute a shell script > residing in puppet master machine in a puppet agent, with no luck so > far. Would appreciate any ideas on how to do this. > It does depend on what you mean, can you clarify further

Re: [Puppet Users] Re: hostname not match error

2012-07-02 Thread Denmat
Hi, Make sure the puppet user can change perms on that directory. Also, if still having trouble, paste your version number and puppet.confs. Cheers Den On 03/07/2012, at 3:20, tas wrote: > okay. it looks like by uncommenting "server = puppet" from the auto conf > file, it stops complaining

Re: [Puppet Users] Re: PuppetCA not signing Certificate-Requests

2011-06-20 Thread Denmat
Hi, If you are using the standard webrick server that comes puppetmasterd then you will find it doesn't scale very well. Check out the scaling puppet docs on the puppetlabs site for your options. Cheers, Deb On 20/06/2011, at 22:18, markus wrote: > I'm not sure whether it is a problem with t

Re: [Puppet Users] confused about file ensure/require

2011-06-21 Thread Denmat
Check your source declaration. > source => "puppet:///modules/ntp/files/${conf_file}", If your files are in modules/ntp/files you don't include that in your source declaration > source => "puppet:///modules/ntp/${conf_file}", http://docs.puppetlabs.com/guides/file_serving.html Cheers, Den On

Re: [Puppet Users] Re: facter + ssh = tput errors

2011-06-23 Thread Denmat
Hi, Haven't tested but what does ssh -t server2 give you? Cheers Den On 24/06/2011, at 7:51, josbal wrote: > No one has seen this issue before? > > On Jun 23, 3:08 pm, josbal wrote: >> Hi Guys, >> >> Not sure if this issue is a facter one or not, but thought i might >> post here to see

Re: [Puppet Users] Turn off client autoupdate

2011-06-24 Thread Denmat
Hi, You're looking for something like this. http://docs.puppetlabs.com/mcollective/index.html On 24/06/2011, at 8:07, sergey wrote: > By default puppet node connects to server periodically and looks if there is > something execute. I'm wondering is it possible to make puppet clients not > co

Re: [Puppet Users] Custom facts - chicken or the egg

2011-06-24 Thread Denmat
Hi, What I do is a little different for zmanda. I have a fact that looks for a local release file that contains the version number installed. If that file doesn't exist then it returns 0.0.0. The version file is created after the successful install. I thought the gem provider was anyway? Can'

Re: [Puppet Users] puppet autosign by VLAN IP

2011-07-01 Thread Denmat
Hi, I'm pretty sure the signing can only reference the cert name in the SSL certificate. Cheers, Den On 01/07/2011, at 4:12, hyzhang wrote: > Hi, > > Can puppet autosign work by giving vlan IP instead of domain? > > For example, in the autosign.conf file, instead of using > *.mydomain.org

Re: [Puppet Users] proposed syntax: order { }

2011-07-05 Thread Denmat
I like it. You could also call the class like we do with stages: class { c: ordered => strict, stage => main } This could influence the way block[x] -> block[y] is called. It would make determining order and troubleshooting clearer. Anyway, put up a feature request and I'll vote for it. Chee

Re: [Puppet Users] err: Could not retrieve catalog from remote server: certificate verify failed

2011-07-11 Thread Denmat
Hi, Yep it could be. Does --server 'puppet' resolve to the puppet master? For SSL to work you need the following: * port 8140 open * certnames to valid and matching DNS resolution (or what is specified in puppet.conf if declared). * clock to be synced. Use openssl s_client to verify and resolv

Re: [Puppet Users] all classes applied to every node

2011-07-11 Thread Denmat
Hi, Sounds like they are being included somewhere in your manifest. I've had similar issues when one of my tests was failing, eg: if $something { include someclass } else { include otherclass } You can try to look at the --graph option to see if that helps track it down. See the FAQ for more

Re: [Puppet Users] Re: A Question about mixing Puppet with other things

2011-07-12 Thread Denmat
Okay I'll have a stab at some differences for you and some similarities. Cobbler is written in python and foreman in ruby like puppet. They each do a similar kind of thing with a similar tool set; dns, pxe, dhcp. Each have a gui. Cobbler only recently included debian support in their main line a

Re: [Puppet Users] Moving config to an ENC

2011-07-12 Thread Denmat
Hi, is 'something::other' valid in yaml? Cheers Den On 13/07/2011, at 3:43, Justin Lambert wrote: > I have just gotten to playing with this and am doing something wrong, > probably very basic. > > On the puppetmaster (which for my testing is also the client) I have > create_resources.rb in /v

Re: [Puppet Users] Best way to create a repo, looking for advice and tips

2011-07-13 Thread Denmat
Hi, Not sure I completely understand what you're after but i'll try to give an answer (from a red hat perspective). Yes you can set up a repo that you point puppet clients at. yumrepo allows you to describe that. Yes you can use the yum tool createrepo to create a yum repo from a bunch of rp

[Puppet Users] Re: ruby DSL and calling defines.

2011-07-18 Thread denmat
2.6.9, if it helps :) On Jul 18, 12:44 pm, tu2bg...@gmail.com wrote: > Hi all, > > Wonder if there is a quick answer to the following question: > > What I am trying to do is use the ymllookup function to get a list of php   > ini values to set. > > php_ini: > engine: On > short_open_tag: On > asp_

Re: [Puppet Users] Control the sequence of module execution

2011-07-18 Thread Denmat
Hi, You can use the following: require statements "require => Class[blah]" Ordering in your classes Resource[blah] -> resource[blat] Stages class {blah: stage => pre } class {blat: stage => post} But you mileage may vary depending on what you are doing. Cheers, Den On 19/07/2011, at 12

Re: [Puppet Users] Puppet Newbie

2011-08-05 Thread Denmat
Hi, You can use facts supplied by facter to do the following (assuming you want to do this for host with hostname host1). > puppet:///files/configuration_files/${hostname}/mystuff/test.sh', You can also assign variables easily like: $host = 'host1' And then use $host in your source statement.

Re: [Puppet Users] Variable scope when having node inheritance

2011-08-05 Thread Denmat
Hi, You setting sudoenv to default in the default node. That is not overridden by subsequent node declarations. If you are using 2.6 and above I would pass a parameter to the sudoers class. > class sudoers::config (env = 'default') { > file { "/etc/sudoers": >ensure => file, >owner =>

Re: [Puppet Users] Re: Variable scope when having node inheritance

2011-08-05 Thread Denmat
l; in > my server-defaults node definition, but puppet gave me a duplicate > error on include. > > I'm running 2.6.4 on both server and client side. > > Regards > Thomas > > On Aug 5, 10:09 am, Denmat wrote: >> Hi, >> >> You setting sudoenv

Re: [Puppet Users] autosigning not working

2011-08-05 Thread Denmat
Hi, This should answer your questions: http://docs.puppetlabs.com/guides/configuring.html#autosignconf You can only specify subdomains, not globs like you are trying to do. Cheers, Den On 06/08/2011, at 5:33, newguy wrote: > Hi guys I want to auto sign the clients coming in, in my autosign.c

Re: [Puppet Users] resuable module patterns

2011-08-07 Thread Denmat
Hi, You might like to have a base packages module that contains a 'build-essentials' class (or whatever title you like). Then include it and reference the package in your ruby/python modules. include 'basepackages::build-essentials' ... require => Package['build-essentials'] ... That help?

Re: [Puppet Users] Workaround to "Provider groupadd does not support features manages_members" ?

2011-08-07 Thread Denmat
Hi, Not to clear on your situation but the following is available to you. Manage your jbossd groups in LDAP. That will be easiest. Create a posix ldap group and add users as your members, remembering to keep your uids and gids standard. The other option is to duplicate the users in the manife

Re: [Puppet Users] Run Stages Behavior

2011-08-09 Thread Denmat
Hi, That's not the behaviour that I see. You must be calling that class in a base class or are you using import statements, which I believe can cause such issues. Cheers, Den On 10/08/2011, at 9:24, Matthew Barker wrote: > Greetings, > > Using the puppet version included in the base debian s

Re: [Puppet Users] Nagios hostgroups

2011-08-15 Thread Denmat
Hi, http://docs.puppetlabs.com/guides/exported_resources.html You will need to include more detail for further help, like version of puppet and a snippet of how you are realizing them. Do any other exported resources work in your manifest? Cheers, Den On 16/08/2011, at 2:08, key...@gmail.com w

Re: [Puppet Users] Notify/Require in config tests

2011-08-15 Thread Denmat
Hi, A couple of ways come to mind. Use the 'before' metaparameter in your configtest exec. You can use ordering syntax '->' between your resources, see http://docs.puppetlabs.com/guides/language_guide.html#chaining-resources See this for a complete overview: http://docs.puppetlabs.com/learnin

Re: [Puppet Users] Circular RPM dependencies...

2011-08-19 Thread Denmat
Hi, Haven't tested but can you try: > package{"aspell-en": ensure => absent, } -> > package{"aspell":ensure => absent, } and see if you can order it. You might also get luck from 'before => ' Cheers, Den On 19/08/2011, at 8:56, Jakov Sosic wrote: > Hi. > > I encountered a following probl

Re: [Puppet Users] Fighting with private keys and puppet master on Debian Squeeze

2011-08-20 Thread Denmat
Hi, Are you calling the puppet run with the '--server ' parameter? With SSL you basically need the following: * working DNS * clocks in sync * correct certnames To help solve SSL issues also use 'openssl s_client' to test connections, check certnames and other errors. This is a definitive

Re: [Puppet Users] Re: Controlling order of execution

2011-08-20 Thread Denmat
Hi, No, you can only declare the state of a resource once. It can't be present and absent at the same time. Den On 21/08/2011, at 8:50, Brian Troutwine wrote: > PEBKAC, all. > > My images were already tainted with 01proxy, so it existed before the > installation of the apt-cacher. Question:

Re: [Puppet Users] Fighting with private keys and puppet master on Debian Squeeze

2011-08-20 Thread Denmat
9:04, Brian Troutwine wrote: > On Sat, Aug 20, 2011 at 6:18 PM, Denmat wrote: > Hi, > > Are you calling the puppet run with the '--server ' parameter? > > Default is 'puppet', no? In any event, using --server or not has no effect. > > With SSL y

Re: [Puppet Users] Re: Controlling order of execution

2011-08-20 Thread Denmat
ild > fails in an obscure manner. Do you suggest that it be a poor idea to include > such pre-conditions in the language? > > On Sat, Aug 20, 2011 at 7:23 PM, Denmat wrote: > Hi, > > No, you can only declare the state of a resource once. It can't be present > an

Re: [Puppet Users] err: Could not run Puppet configuration client: execution expired

2011-08-22 Thread Denmat
Hi, Puppet running the standard webrick server is not very good at file serving. http://docs.puppetlabs.com/#tuning-and-scaling That link provides some recommended options. Cheers, Den On 23/08/2011, at 15:06, Steven wrote: > I am new to using puppet and having trouble when updating an agent

Re: [Puppet Users] has class been included

2011-08-24 Thread Denmat
Hi, You could try passing a parameter to your foo class from the node def. class foo (bar) { if $bar == 'rar' { } } node node1 inherits rar { class {foo: bar => rar } } That work for you? Den On 24/08/2011, at 21:48, David W Cennting wrote: > I am hoping someone can give me a pointer in

Re: [Puppet Users] Requiring types in other classes

2011-08-24 Thread Denmat
Hi, Underscore instead of dash? Den On 24/08/2011, at 22:56, Jonathan Gazeley wrote: > On 24/08/11 11:13, Martin Alfke wrote: >> On 08/24/2011 11:54 AM, Jonathan Gazeley wrote: >>> Hi, >>> >>> Sorry if this is a basic question, but I can't find the answer in the >>> docs. I know about fully-

  1   2   3   4   >