Re: [Puppet Users] Trigger apt-get update if packages are to be installed

2017-07-07 Thread Klavs Klavsen
Did you ever find a good solution to this? found stuff like this: https://blog.bluemalkin.net/puppet-trick-running-apt-get-update-only-when-needed/ - but thats really ugly -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from

[Puppet Users] Re: grafana

2016-12-09 Thread Klavs Klavsen
We do that.. look at http://docs.grafana.org/reference/scripting/ You can simply write a scripted dashboard and have your javascript check f.ex. for the existence of a mysql counter on the relevant host.. and then draw the graphs for "mysql" if the counters are there - and so on for all other

[Puppet Users] Re: New to Puppet :wanted more information of VM provisioning in puppet

2016-11-22 Thread Klavs Klavsen
lxd module for puppet can provision lxc 'vm's - and puppet-virt module can provision kvm's. But normally puppets place in the footchain - is NOT provisioning.. there are much better tools for this (razor etc.) - which then hands over OS system configuration to puppet. -- You received this

[Puppet Users] Re: Options for notifying external services in case of changing exported resources.

2016-03-22 Thread Klavs Klavsen
I configure monitoring by letting puppet create exported resources on all hosts (where my rules then figure out what to monitor).. and then I simply pull those resources on the monitor servers - which results in config files for the things to monitor. Works beautifully with nagios/icinga and

Re: [Puppet Users] user and service interdependencies

2015-12-17 Thread Klavs Klavsen
Someone should really create a ticket with a suggestion to fix it (with some examples of what this new option should fix) - and share it here - so everyone can watch the ticket and chime in (it's open source.. remember ;) -- You received this message because you are subscribed to the Google

[Puppet Users] Re: JBOSS module installation and Configuration through puppet

2015-10-29 Thread Klavs Klavsen
I just had to that.. I simply landed on creating an rpm - that packaged up the files.. so I could install jboss using yum.. much preferrable (and since I'm using licensed edition - puppet can't download it by itself anyways.. unless I placed it somewhere locally ofcourse). -- You received

[Puppet Users] Re: counting failures, success, and so on - giving wrong counts

2015-05-19 Thread Klavs Klavsen
I found a solution. adding --distinct (incl. start and end time, set to yesterday and today) - it works. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Puppet Users] counting failures, success, and so on - giving wrong counts

2015-05-18 Thread Klavs Klavsen
I'm trying to let puppetdb query the result of a puppet run, and then fetch the numbers of failures, successes, changes etc.. using this: curl -G 'http://localhost:8080/v3/aggregate-event-counts' --data-urlencode 'query=[=, certname, myhost.fqdn]' --data-urlencode

[Puppet Users] Re: export concat::fragments does not work

2014-10-06 Thread Klavs Klavsen
You must define the concat for /myfile as well on all servers. I've switched to file_concat for these things, and it helped me - and you might not need to define it with that module.. give it a whirl. concat module has several deficiencies which all seemed to be very well resolved by the

[Puppet Users] Re: how to require a md5sum before installing?

2014-02-16 Thread Klavs Klavsen
My solution to that, has been to use a packaging system. RPM etc. all check md5sum (and PGP check against upstream signature) - so I insist on rolling everything binary, on as packages, and use only 1 packaging system per host (ie. gems etc. get repackaged to rpm, deb or whatever). -- You

Re: [Puppet Users] What is the best replacement for Puppet Dashboard ?

2014-01-30 Thread Klavs Klavsen
I use puppetboard too - it's really great, and much lighter on the database. A big improvement on puppet-dashboard. Only one issue remains, that means I must keep my puppet-dashboard.. There's a bug in the puppetdb-terminus - so nodes which manifest fails compilation fails - does NOT get a

[Puppet Users] Re: Choo choo here comes the FOSDEM train

2014-01-19 Thread Klavs Klavsen
I'll be there as well.. saturday and sunday only though. (FiXion on irc) see http://blog.klavsen.info/ for a larger picture :) looking forward to seeing you there. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group

Re: [Puppet Users] Upgrading a .msi package through Puppet

2014-01-14 Thread Klavs Klavsen
I use: if ( $puppetversion != 3.3.1 ) { package { Puppet 3.3.1: source = software01\\autorepo\$\\Puppet\\puppet-3.3.1.msi, install_options = [ '/quiet', '/norestart','PUPPET_MASTER_SERVER=puppet.example.dk'] } } to ensure a specific version on all windows hosts. -- You

[Puppet Users] only subclasses can modify ?

2014-01-07 Thread Klavs Klavsen
I'm trying to modify certain users, created with by calling the define users::local. I tried to do it, by calling users::local::modify - but then puppet complains that only subclasses may modify.. :( What am I doing wrong here? Code: define users::local

[Puppet Users] Re: only subclasses can modify ?

2014-01-07 Thread Klavs Klavsen
but defines can't inherit it seems. The docs are a little vague, but they seem to indicate that only classes can inherit ( http://docs.puppetlabs.com/puppet/2.7/reference/lang_classes.html#inheritance ) -- You received this message because you are subscribed to the Google Groups Puppet Users

Re: [Puppet Users] only subclasses can modify ?

2014-01-07 Thread Klavs Klavsen
It seems defines can't inherit.. the docs are a bit vague, but they seem to indicate that only classes can inherit : http://docs.puppetlabs.com/puppet/2.7/reference/lang_classes.html#inheritance -- You received this message because you are subscribed to the Google Groups Puppet Users group.

[Puppet Users] Re: VMware and open source puppet

2013-12-05 Thread Klavs Klavsen
I believe vagrant has gotten vmware support - so one can use it to disperse vms in vmware esx servers. It's not a free extension though: http://www.vagrantup.com/vmware#learn-more But it's fairly simple powershell scripting to create vms - so one could rather easily write a powershell script,

[Puppet Users] Re: Puppet and Windows ACLs (Access Control Lists)

2013-10-28 Thread Klavs Klavsen
Den fredag den 25. oktober 2013 22.10.40 UTC+2 skrev Rob Reynolds: tl;dr: Windows manages permissions in a way that doesn't always translate well to mode. We're putting together a solution for this. Jump in the discussion. I wanted to get this conversation started. We've put a lot of

Re: [Puppet Users] Re: External Facts on Windows with Powershell

2013-10-15 Thread Klavs Klavsen
Ticket updated :) -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to

Re: [Puppet Users] Re: External Facts on Windows with Powershell

2013-10-14 Thread Klavs Klavsen
Also of note.. facts.d support is broken in windows 2003 :( (and it breaks puppet - so it won't even run) - see http://projects.puppetlabs.com/issues/22622 -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop

[Puppet Users] Re: Rootless Puppet

2013-10-11 Thread Klavs Klavsen
I know of several who have managed servers, but want to use Puppet to roll manage the applications they install, and whatelse they have been allowed to manage - but that will never be able to run puppet as root, since the OS is not their responsibility. Also - some of those, the managers of

[Puppet Users] Re: Rootless Puppet

2013-10-11 Thread Klavs Klavsen
Den fredag den 11. oktober 2013 14.12.32 UTC+2 skrev Klavs Klavsen: so it would be preferrable to be able to install root elsewhere Dooh - to install puppet elsewhere :) (ie. under /opt/puppet f.ex.) -- You received this message because you are subscribed to the Google Groups Puppet

Re: [Puppet Users] LogStash Book released

2013-10-09 Thread Klavs Klavsen
indepth kibana.. well wouldn't that mostly be elasticsearch in depth you'd need? and Kibana is such a moving target, that it would probably have changed majorly, before a book came out :) -- You received this message because you are subscribed to the Google Groups Puppet Users group. To

[Puppet Users] Re: Puppet dashboard stuck pending jobs - MySql Error: Incorrect string value

2013-10-07 Thread Klavs Klavsen
I've seen similar errors, and I found it easier to simply delete the reports where this happened.. unfortunately puppet-dashboard is not entirely bugfree, and unmaintained.. :( I'm hoping to replace puppet dashboard with https://github.com/nedap/puppetboard - but haven't had time to work on

[Puppet Users] Re: RFC: Default File Permissions

2013-09-19 Thread Klavs Klavsen
This would be a GREAT benefit, and I for one, would definetely make it my File default :) source_permissions is a fine name for it. -- 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] Re: puppetdb - getting a list of specific facts for specific hosts?

2013-09-04 Thread Klavs Klavsen
Den tirsdag den 3. september 2013 20.09.19 UTC+2 skrev Ken Barber: Is it acceptable to do the search based on 'certname'? ie: curl -G 'http://localhost:8080/v2/facts' --data-urlencode 'query=[and,[~,certname,puppetdb?],[or,[=,name,ipaddress],[=,name,hostname]]]' Thank you - that

[Puppet Users] puppetdb - getting a list of specific facts for specific hosts?

2013-09-02 Thread Klavs Klavsen
I'm trying to query puppetdb for a list of hosts maching a certain regex (on hostname) and only returns 2 facts (ipaddress and hostname) I'm trying to follow: http://docs.puppetlabs.com/puppetdb/latest/api/query/tutorial.html and I'm not even quite sure, wether or not, I should use a facts or a

[Puppet Users] Re: puppetdb - getting a list of specific facts for specific hosts?

2013-09-02 Thread Klavs Klavsen
I also tried https://github.com/dalen/puppet-puppetdbquery - but that didn't really get me any closer :( -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to

[Puppet Users] Re: puppetdb - getting a list of specific facts for specific hosts?

2013-09-02 Thread Klavs Klavsen
This gives me the ipaddress (and hostname).. now to figure out how to filter on hostname regex.. 'query=[=, name, ipaddress]' -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send

[Puppet Users] Re: puppet-3.2.2 runs fine - but doesn't work. 2.7.22 works fine.

2013-08-14 Thread Klavs Klavsen
I switched to running webbrick instead of passenger - and it runs perfectly. I'll try to go through my passenger setup on other puppetmasters that run 3.x - and see if I can find any differences. -- You received this message because you are subscribed to the Google Groups Puppet Users group.

[Puppet Users] how to fix: Warning: calling Plugins.search with empty module path

2013-08-14 Thread Klavs Klavsen
Just setup Puppet 3.2.2 - with debug enabled in passenger, it complains about this: Warning: calling Plugins.search with empty module path and it does seem to not find any modules, nor plugins. how do I fix that warning? -- You received this message because you are subscribed to the Google

[Puppet Users] Re: introducing puppetboard 0.0.1

2013-08-07 Thread Klavs Klavsen
It seems very cool. Thank you for sharing. One thing that I would be missing, before being able to switch (as gathered from screenshots - I haven't tested it yet :) - is the overview of failed, unreported and unresponsive hosts. Also - there would need to be a way to query this - just as I

[Puppet Users] puppet-3.2.2 server not working - my 2.7.22 does

2013-08-07 Thread Klavs Klavsen
Hi, I've setup a new puppet 3.2.2 server - next to my current 2.7.22 server. When I connect with a client against it (changed puppet.conf to use the new server), then it removes facts and all (and runs no rules) - but it doesn't complain anywhere - not on the new puppetmaster either :( I'm

[Puppet Users] Re: Add a public ssh key form node A to authorized keys on node B

2013-08-06 Thread Klavs Klavsen
What I did, was to simply write my own fact, that reads the id_rsa.pub file - and then in the manifest, I simply check if that fact is != - and if so - do @@ssh_authorized_key.. with the public key - and collect that where I want it. I have several webservers - which all need to have a key (I

[Puppet Users] Re: is there any way to see what are the resources exported by a node?

2013-07-25 Thread Klavs Klavsen
would you mind sharing your solution - for the benefit of others who may find your question by googleing - and can't really find the answer in the irc conversation you had? :) -- You received this message because you are subscribed to the Google Groups Puppet Users group. To

[Puppet Users] Re: Decomission node process (puppet / puppetdb / dashboard)

2013-07-25 Thread Klavs Klavsen
that job just removes reports for hosts - it does't remove the actual hosts. You need to pick the node in puppet-dashboard webinterface - and choose delete (upper right corner) -- You received this message because you are subscribed to the Google Groups Puppet Users group. To

[Puppet Users] Re: How do I set global noop?

2013-07-25 Thread Klavs Klavsen
well - perhaps you can put noop = true or something in puppet.conf on the clients ? -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: [Puppet Users] Re: Perform action when exported resources change

2013-07-23 Thread Klavs Klavsen
Den mandag den 22. juli 2013 08.58.32 UTC+2 skrev George Brown: Hi Sneha, This is for a GPFS (IBM parallel file system) cluster. When a new client is added it needs to be added by an node that is already part of the cluster. I'm trying to automate this through puppet E.g. node80 has

[Puppet Users] Re: dashboard groups

2013-07-15 Thread Klavs Klavsen
Den onsdag den 10. juli 2013 12.32.07 UTC+2 skrev Salty Old Cowdawg: Is there a global variable (or variables) that get set when a group gets defined in dashboard? What I'm trying to do is in a template have a conditional such that if a host is in one group do this and if not in that

[Puppet Users] multiple masters and CA's - what's the issue?

2013-07-10 Thread Klavs Klavsen
Hi, I've just setup a new secondary master - following http://docs.puppetlabs.com/guides/scaling_multiple_masters.html Nice docu. Much easier than when I first did it (with 0.24 :) One thing I'm wondering about, is why there can be ONLY 1 CA ? is it because of the CRL ? I was thinking of

[Puppet Users] how do you update packages on windows?

2013-07-04 Thread Klavs Klavsen
Hi guys, Currently the windows package provider does not support versions (like ensure = 1.2.3). Even though most packages set a DisplayVersion key in the registry - so the version is often available. Now I need to upgrade my puppet clients from v3.1.1 to v3.2.3-rc1 (to get facts.d support

[Puppet Users] Re: Need help with python msi install on windows

2013-05-22 Thread Klavs Klavsen
Try: class python::install { package { 'python': ensure = installed, source = example.com \\software\\python\\python-2.7.3.amd64.msi, install_options = [ { 'INSTALLDIR' = 'C:\python27' }, { 'ALLUSERS' = '1' } ], } } p.s. with

[Puppet Users] Re: PuppetDB database tunning

2013-05-22 Thread Klavs Klavsen
http://docs.puppetlabs.com/puppetdb/1.3/maintain_and_tune.html Den onsdag den 22. maj 2013 09.56.36 UTC+2 skrev Heriyanto: Hi, I've been use puppetdb about 6 months ago, and now the database more than 6gigs Is that any way to recycle database? the data on database more than 30days

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

2013-05-14 Thread Klavs Klavsen
I switched to the winxp edition - and sflow now installs perfectly. I edited path to NSCP - to be EXACTLY the same as I use for sflow agent msi - and now it works too - atleast on win2003/x86 machines. Haven't had time to test on win2008. One odd thing - I'musing a path like this - which

[Puppet Users] define and exported resources - giving wrong template content

2013-05-08 Thread Klavs Klavsen
Hi, I have an odd problem - I have a define, as an exported resource. when puppet creates them on the central gdash host - it creates them with the correct (client) hostname (f.ex. cat /var/www/gdash/graph_templates/dashboards/hosts/p-web01/dash.yaml) - but the content has the central gdash

[Puppet Users] deleting nodes in puppet-dashboard makes it hang

2013-05-08 Thread Klavs Klavsen
Hi, I have 51 clients in puppet-dashboard – and when I tell it to delete a node – it simply hangs forever. If I try to just open / on the puppet-dashboard website – I get a proxy timeout (I have apache in front). I end up having to kill webrick and start it again – with the node NOT being

[Puppet Users] Re: Puppet Dashboard 1.2.23 issue deleting node

2013-05-07 Thread Klavs Klavsen
Found out anything about why this is ? Any fix ? deleting a node hangs puppet-dashboard here :( - I have to restart to get it up again. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and stop receiving emails

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

2013-05-03 Thread Klavs Klavsen
Den fredag den 3. maj 2013 00.22.29 UTC+2 skrev 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? Yup - works just fine. The fact that the same paths work fine on windows

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

2013-05-02 Thread Klavs Klavsen
Hi guys, I'm trying to make puppet install packages on windows. It will install exe files just fine - but msi files won't be installed. They fail consistently :( I've tried both having the files on a central directory - and give an UNC path to it, and with a file resource, putting the file in

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

2013-05-02 Thread Klavs Klavsen
On windows server 2008 - it works perfectly. Den torsdag den 2. maj 2013 15.41.35 UTC+2 skrev Klavs Klavsen: Hi guys, I'm trying to make puppet install packages on windows. It will install exe files just fine - but msi files won't be installed. They fail consistently :( I've tried both

[Puppet Users] Re: how do you test and release puppet changes?

2013-05-02 Thread Klavs Klavsen
I've heard of some, who use mcollective to order a test-run on all nodes, against an environment - with --noop - and then they watch puppet-dashboard for nodes that had changes (which ofcourse weren't actually done - because of --noop). I was thinking of doing exactly that - and then

[Puppet Users] Re: puppet master on the internet

2013-04-29 Thread Klavs Klavsen
Well - as everything else - there can be security issues, where the SSL cert check won't help you: https://puppetlabs.com/security/cve/cve-2013-1640/ So you should definetely be careful - Puppet is very young, compared to apache, openssh and others that have been internetfacing for many, many

[Puppet Users] Re: Nagios Module Facter Lib 'mountpoints.rb' Causing Windows Clients to Not Operate Properly

2013-04-10 Thread Klavs Klavsen
I think it's: ENV[PATH]=/bin:/sbin:/usr/bin:/usr/sbin That gives you problems. don't set ENV['PATH'].. if you really need to set path (the path set there is unnecessary AFAIK), you can set it with the with_env function. So the ENV.. setting. (it is inherited to all other facts and puppet

[Puppet Users] Re: replacing mkdir -p

2013-04-09 Thread Klavs Klavsen
pls. post if you upload it to the forge or somewhere else.. would definetely be interested in getting rid of mkdir -p :) Den tirsdag den 9. april 2013 18.56.33 UTC+2 skrev Mike Power: I'll see if I can open source the component I wrote and upload it to puppet forge. In this way the open

[Puppet Users] Re: What's your hiera tree look like?

2013-03-25 Thread Klavs Klavsen
I use Netgroups (with LDAP as backend) to group my nodes. Netgroups is an old NIS thing, which works beautifully. You can group hosts, and each netgroup, can contain other netgroups, users or hosts. This way, a host can be a member of several netgroups - and I use netgroup membership to

[Puppet Users] Re: Custom type and provider development

2013-03-21 Thread Klavs Klavsen
Did you get any further with the installutil provider? It sounds really interesting - I myself is trying to automate install of PerfTab (a .net application).. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and

[Puppet Users] Re: how to customize hiera lookups per node?

2013-03-18 Thread Klavs Klavsen
I solved this issue, by using netgroups (in LDAP) - which is loaded into puppet, by a script which is run by external_nodes setting (it just provides parameters - no actual nodes). This way, a server can have multiple roles (by being in multiple netgroups). Unfortunately hiera can't

[Puppet Users] puppetdb startup fail - after move of datadir

2012-12-19 Thread Klavs Klavsen
My puppetdb fails with this message: java -jar /usr/share/puppetdb/puppetdb.jar services -c /etc/puppetdb/conf.d/config.ini java.io.EOFException: null at java.io.DataInputStream.readInt (DataInputStream.java:392) org.apache.kahadb.util.SequenceSet$Marshaller.readPayload

[Puppet Users] ensuring puppet version - Ubuntu problem

2009-03-20 Thread Klavs Klavsen
Hi, I've setup puppet to install apache2 version 2.2.9-7 (which isn't available to the client). Puppet installs apache-2.2.8-1ubuntu0.3. Isn't it suppose to fail instead, when I've defined a version it can't install? This is my apache2 class: class apache2 { $packagelist = [apache2] package {

[Puppet Users] Re: ensuring puppet version - Ubuntu problem

2009-03-20 Thread Klavs Klavsen
I found that according to a comment in the apt provider, it does not yet support enforcing versions :( I guess I'll have to implement it, if I really need it :) On 20 Mar., 15:32, Klavs Klavsen kl...@enableit.dk wrote: Hi, I've setup puppet to install apache2 version 2.2.9-7 (which isn't