Re: [Puppet Users] GPS data & facter

2014-07-23 Thread Ciro Iriarte
El miércoles, 16 de julio de 2014 13:10:58 UTC-4, Salty Old Cowdawg escribió: > > Sounds like a job for a custom fact to me. > I'll take a look at that, thanks! -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group

Re: [Puppet Users] PE and VMWare Question

2014-07-23 Thread Pete Brown
Hi Dan. I think the puppetlabs cloud provisioner can spin up VMware instances. I think that is part of the toolkit that gets installed with enterprise. I know there has been a lot of work getting enterprise talking to VMware and I believe there is a section on it in the docs. Hope that helps. Pe

Re: [Puppet Users] Managing users using puppet

2014-07-23 Thread Garrett Honeycutt
On 7/23/14, 4:42 PM, huhm4n wrote: > I just want to audit the server, like if someone created the user > manually, then i'd know. How do i do that? > > On Wednesday, July 23, 2014 4:08:07 PM UTC-7, Ygor wrote: > > Use puppet to create new users. > > On Jul 23, 2014, at 6:09 PM, huhm4n

Re: [Puppet Users] Managing users using puppet

2014-07-23 Thread Dan White
Well answered. Thanks. > On Jul 23, 2014, at 8:02 PM, Xav Paice wrote: > >> On 24/07/14 11:42, huhm4n wrote: >> I just want to audit the server, like if someone created the user manually, >> then i'd know. How do i do that? > > Sounds like you're after something more like aide or Tripwire r

Re: [Puppet Users] Managing users using puppet

2014-07-23 Thread Xav Paice
On 24/07/14 11:42, huhm4n wrote: > I just want to audit the server, like if someone created the user > manually, then i'd know. How do i do that? Sounds like you're after something more like aide or Tripwire rather than a config management system. Each user is a resource, you could regularly run

Re: [Puppet Users] Managing users using puppet

2014-07-23 Thread huhm4n
I just want to audit the server, like if someone created the user manually, then i'd know. How do i do that? On Wednesday, July 23, 2014 4:08:07 PM UTC-7, Ygor wrote: > > Use puppet to create new users. > > On Jul 23, 2014, at 6:09 PM, huhm4n > > wrote: > > How do i make puppet notify me when n

[Puppet Users] Re: Banned from RHN due to exessive connections; would like opions on my solution.

2014-07-23 Thread Stack Kororā
Greetings! Thank you so much John. I just learned something new about Puppet. Utilizing inline_template is a heck of a lot easier then how I first attempted that variable substitution. I might have to go back and fix some of my older code later Here are a few other notes in response t

Re: [Puppet Users] Managing users using puppet

2014-07-23 Thread Dan White
Use puppet to create new users. > On Jul 23, 2014, at 6:09 PM, huhm4n wrote: > > How do i make puppet notify me when new users are created? Thanks in advance > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this gro

[Puppet Users] puppet md5 checksum changed

2014-07-23 Thread Lunixer
I have an entry for a file in a puppet manifest that checks file properties. One is the MD5 checksum. /etc/puppet/modules/Solaris/manifests/init.pp file {"/etc/logadm.conf": mode=>"644", owner=>"root", group=>"sys", checksum=>"md5", audit=>all; } Wed Jul 23 03:31:41 -0700 2014 /Stage[main]/Solari

[Puppet Users] puppet time stamp check

2014-07-23 Thread Lunixer
Greetings, I have an entry for a file in a puppet manifest that checks file properties. /etc/puppet/modules/Linux/manifests/init.pp file {"/etc/ld.so.conf": mode=>"644", owner=>"root", group=>"root", checksum=>"md5", audit=>all; } An admin patched the server and several file checksums changed. N

Re: [Puppet Users] puppetlabs-mysql

2014-07-23 Thread Hunter Haugen
The module is trying to read the cached password from /root/.my.cnf to connect, and since it's empty it tries with no password. (See https://github.com/puppetlabs/puppetlabs-mysql/blob/master/manifests/server/root_password.pp#L7-L19 for what puppet is doing with the root_password). You could creat

[Puppet Users] Re: mco ping --No responses received

2014-07-23 Thread huhm4n
can you cat the /etc/mcollective/server.cfg file? On Tuesday, July 22, 2014 11:03:19 PM UTC-7, vishal faldu wrote: > > Can some help me on this issues ? > > [root@pmaster ~]# mco ping > > > ping statistics > No responses received > > == > /etc/mcollecti

Re: [Puppet Users] Re: custom function to read inifile

2014-07-23 Thread Ritesh Nanda
Craig , i looked at that module puppetlabs-inifile, it allows to change the settings in ini file , i want to read/parse a ini file , assign a value to a variable. @henrik you were correct problem was with iniFile.load class . Now the functions looks like require_relative 'inifile' *This allows

[Puppet Users] Managing users using puppet

2014-07-23 Thread huhm4n
How do i make puppet notify me when new users are created? Thanks in advance -- 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...@googlegroup

[Puppet Users] Auditing users (AD+local) and groups

2014-07-23 Thread huhm4n
I'm trying to audit local users and groups in linux and ad,local users,groups on windows using puppet? I looked over, all i can find is to audit permission of file, service status, package installation and all..is there a a way i can get the list of users and have module to see if there is new

Re: [Puppet Users] Re: Passing undef as argument to classes & defines overrides default parameter

2014-07-23 Thread jcbollinger
On Wednesday, July 23, 2014 7:32:15 AM UTC-5, Cristian Falcas wrote: > > Hello all, > > Regarding my question with automated data binding. Here is how we set this > via the yaml backend: > > collectd::plugins::write_riemann::riemann_protocol: UDP > > We tried to use this with the json backend, b

Re: [Puppet Users] Puppet API for Unsigned Certs

2014-07-23 Thread Danny Roberts
In which cases I get this error: # curl -k -H 'Accept: s' https://puppet.mycompanyhosting.co.uk:8140/production/certificate_requests/all NilClass does not respond to to_multiple_s; can not intern multiple instances to text/plainr On Wednesday, 23 July 2014 21:16:57 UTC+1, Andy Parker wrote: > >

[Puppet Users] Re: custom function to read inifile

2014-07-23 Thread Craig Barr
Does this meet your use case? On Wednesday, 23 July 2014 07:36:45 UTC+10, Ritesh Nanda wrote: > > Hello , > > I was trying to write a custom function which would run on puppet master > take input a ini file , parse a section of that ini file and

Re: [Puppet Users] Puppet API for Unsigned Certs

2014-07-23 Thread Andy Parker
On Wed, Jul 23, 2014 at 11:40 AM, Danny Roberts < dannyroberts.perso...@googlemail.com> wrote: > Thanks that certainly sorts out the authentication problem. > > Turns out I'm using the wrong API call for what I require though. I'm > after the equivalent of running "puppet cert list" and not "puppe

Re: [Puppet Users] exported resources question

2014-07-23 Thread Andy Parker
On Wed, Jul 23, 2014 at 7:02 AM, Cristian Falcas wrote: > Hello, > > When are the exported resources exported and by whom? Are they send by the > agent at the end of the run or are written by the server after catalog > compilation? > > The exported resources are created as part of the catalog com

Re: [Puppet Users] Puppet API for Unsigned Certs

2014-07-23 Thread Danny Roberts
Thanks that certainly sorts out the authentication problem. Turns out I'm using the wrong API call for what I require though. I'm after the equivalent of running "puppet cert list" and not "puppet cert list --all" like the API call I was trying to do. I think http://docs.puppetlabs.com/guides/r

Re: [Puppet Users] Using hiera-data for a specific node

2014-07-23 Thread Matthias Viehweger
Am Mittwoch, 23. Juli 2014 19:13:47 UTC+2 schrieb Atom Powers: > > Is the value of "256" being resolved by puppet as a string? > That would cause your "is_integer" test to fail. > > Well, if that test fails, then my core problem - getting the data at all - is solved. I expect that the conversion

Re: [Puppet Users] Using hiera-data for a specific node

2014-07-23 Thread Atom Powers
Is the value of "256" being resolved by puppet as a string? That would cause your "is_integer" test to fail. On Wed, Jul 23, 2014 at 10:01 AM, Matthias Viehweger < m.viehwe...@heute-kaufen.de> wrote: > Hi list! > > I have a problem integrating puppet and hiera. > > Our puppet-master and all node

[Puppet Users] puppetlabs-mysql

2014-07-23 Thread David Kindle
based on the below script - My mysql instance has a password of foo already. I want this script to use my root password to create a new db and assign a user with privileges to that db. What is wrong with this code? Is this trying to SET the root pass vs just using it to execute the commands?

[Puppet Users] Using hiera-data for a specific node

2014-07-23 Thread Matthias Viehweger
Hi list! I have a problem integrating puppet and hiera. Our puppet-master and all nodes are running puppet 3.6.2. On the master, hiera version 1.3.4 is installed. I want to use some hiera-data in a class depending on the node. To be less abstract, I have this class: class memcached::server{

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

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

[Puppet Users] how to comment and uncomment lines in a file using puppet

2014-07-23 Thread Supriya Uppalapati
Hi, I am trying the uncomment the lines in a file using augeas in puppet. But it is not commenting those lines. Here is the code which I have writen, *augeas { "bash_profile":context => "/home/infauser/.bash_profile", changes => [ "set #comment 'export INFA_CODEPAGENAM

[Puppet Users] Re: Help getting started with tomcat

2014-07-23 Thread Pallavi Jain
Hello I am getting similar issue with my Jboss module, I have checked the permissions and all the files are accessible to puppet master. Also my module is in the module path of puppet master. This same module use to work earlier. When I test using puppet agent --test --verbose --master

Re: [Puppet Users] PE and VMWare Question

2014-07-23 Thread Dan White
Better any response than none ! Thanks. Does anyone know what BFM (Black Magic, voodoo, mondo-juju) is necessary to connect the two ? “Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us.” (Bill Waterson: Calvin

Re: [Puppet Users] Re: Puppet module for Windows 2012 SNMP Service

2014-07-23 Thread Matt Shields
Hmm, ok. Guess it's time to figure out how WinRM works and if Puppet can configure it. Matt On Wed, Jul 23, 2014 at 5:22 AM, Paul Tötterman wrote: > Does anyone have a module or example puppet code for turning on SNMP >> server and setting the community on a Windows 2012 server? >> > > I thin

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

2014-07-23 Thread jcbollinger
On Tuesday, July 22, 2014 10:20:29 AM UTC-5, Matthew Burgess wrote: > > Hi, > > It's probably best for you to not ask why we're doing the following, > Cause if you told us, you'd have to kill us? > but here's what we're trying to achieve: > > We'd like to programmatically edit our Hiera

Re: [Puppet Users] custom function to read inifile

2014-07-23 Thread Henrik Lindberg
On 2014-22-07 23:36, Ritesh Nanda wrote: Hello , I was trying to write a custom function which would run on puppet master take input a ini file , parse a section of that ini file and assign its value to a variable .. Something like $test = iniread('example.ini', 'Program', 'path') This would a

[Puppet Users] Integrating Puppet and VMware vCloud Application Director

2014-07-23 Thread Craig Barr
I'm looking for anyone with experience integrating VMware vCloud Application Director and Puppet. How did you find it? Were there any particular challenges and/or triumphs? One such challenge I have encountered is with the Application Director "update" phase. The VMware tool, lets you register

[Puppet Users] exported resources question

2014-07-23 Thread Cristian Falcas
Hello, When are the exported resources exported and by whom? Are they send by the agent at the end of the run or are written by the server after catalog compilation? Best regards, Cristian Falcas -- You received this message because you are subscribed to the Google Groups "Puppet Users" group.

[Puppet Users] Re: How to install Tomcat

2014-07-23 Thread Craig Barr
You could start by downloading and trying out one of the Puppet Modules for Tomcat as listed at https://forge.puppetlabs.com/modules?utf-8=%E2%9C%93&sort=rank&q=tomcat For information on installing Puppet Modules from Forge see http://docs.puppetlabs.com/puppet/latest/reference/modules_installi

[Puppet Users] Re: Banned from RHN due to exessive connections; would like opions on my solution.

2014-07-23 Thread jcbollinger
On Tuesday, July 22, 2014 7:37:30 PM UTC-5, Stack Kororā wrote: > > Greetings, > > In my multiple hundred servers, I have <10 that are Red Hat based. We > recently brought them under the same management as the rest of the servers > utilizing Puppet. Then we ran into issues because we were hitti

[Puppet Users] Enterprise Validation Installer - DNS resolution

2014-07-23 Thread Paul Sanders
Hello All, I am trying to install the latest version of Puppet Enterprise on Ubuntu 14.04 from the official installer from the Ubuntu site. I have installed the .deb, and ran puppet-enterprise-installer and chose to use the web interface on port 3000 to run through the configuration. I run th

[Puppet Users] Re: PE and VMWare Question

2014-07-23 Thread Craig Barr
I'm probably be a late off the mark on responding to this but better late then never I guess. VMware vCloud (formerly vFabric) Application Director integrates with the Puppet Master. It will register any newly created VMs with the master and is able to apply a certain configuration profile in P

[Puppet Users] mco ping --No responses received

2014-07-23 Thread vishal faldu
Can some help me on this issues ? [root@pmaster ~]# mco ping ping statistics No responses received == /etc/mcollective/server.cfg main_collective = mcollective collectives = mcollective libdir = /usr/libexec/mcollective logfile = /var/log/mcollective.l

Re: [Puppet Users] Banned from RHN due to exessive connections; would like opions on my solution.

2014-07-23 Thread jcbollinger
On Wednesday, July 23, 2014 6:59:19 AM UTC-5, Stack Kororā wrote: > > Greetings, > > I did try this but ran into issues in my testing when a package had > dependencies. I don't remember what the problem was though...I should > probably explore this a bit more. > > Yes, if you need to ensure 'p

Re: [Puppet Users] Re: Passing undef as argument to classes & defines overrides default parameter

2014-07-23 Thread Cristian Falcas
Hello all, Regarding my question with automated data binding. Here is how we set this via the yaml backend: collectd::plugins::write_riemann::riemann_protocol: UDP We tried to use this with the json backend, but this never gets populated in the class: {"collectd": {"plugins": {"write_riemann

Re: [Puppet Users] Banned from RHN due to exessive connections; would like opions on my solution.

2014-07-23 Thread Stack Kororā
On Wednesday, July 23, 2014 3:38:26 AM UTC-5, mawi wrote: > > Hi Stack, > > Not sure if this is doable for you, but maybe you can create a schedule to > schedule your RedHat package removals. > > http://docs.puppetlabs.com/references/latest/type.html#schedule > > For example create a schedule to

Re: [Puppet Users] Banned from RHN due to exessive connections; would like opions on my solution.

2014-07-23 Thread Stack Kororā
Greetings, I did try this but ran into issues in my testing when a package had dependencies. I don't remember what the problem was though...I should probably explore this a bit more. Thanks! On Wednesday, July 23, 2014 1:37:41 AM UTC-5, Jose Luis Ledesma wrote: > > Hi, > > I dont know if it wi

[Puppet Users] Re: Puppet module for Windows 2012 SNMP Service

2014-07-23 Thread Paul Tötterman
> > Does anyone have a module or example puppet code for turning on SNMP > server and setting the community on a Windows 2012 server? > I think SNMP on Windows 2012 is deprecated: http://technet.microsoft.com/en-us/library/hh831568 Cheers, Paul -- You received this message because you are s

Re: [Puppet Users] Banned from RHN due to exessive connections; would like opions on my solution.

2014-07-23 Thread Martin Willemsma
Hi Stack, Not sure if this is doable for you, but maybe you can create a schedule to schedule your RedHat package removals. http://docs.puppetlabs.com/references/latest/type.html#schedule For example create a schedule to run this once a day, or not more than x times a day and set the package res

Re: [Puppet Users] Puppet API for Unsigned Certs

2014-07-23 Thread Martin Alfke
Hi Danny, look into puppet auth.conf You need to allow the requesting server access to certificate_status. hth, Martin On 22 Jul 2014, at 22:20, Danny Roberts wrote: > I'm trying to use the Puppet API in our monitoring to check for and alert on > any unsigned certificates that might be wait