[Puppet Users] Re: puppetdb API v2 is not working for me

2013-07-25 Thread watchman
dont worry about this. Chatted with two awesome guys in puppet IRC and got the solution. It was a puppetdb version issue. On Tuesday, July 16, 2013 12:30:41 PM UTC+10, watchman wrote: anybody got any similar experience, please help me. Or if anybody got any sql query to pull the details

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

2013-07-25 Thread watchman
dont worry about this. Chatted with two awesome guys in puppet IRC and got the solution. It was a puppetdb version issue. On Thursday, July 25, 2013 2:46:07 PM UTC+10, watchman wrote: Hello folks, Is there any way to see what are the resources exported by a node when using puppetdb and

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

2013-07-25 Thread yannig rousseau
Hi all, I have a few nodes which have deen decommissioned but still appear within my dashboard within the ureported section. I probably have forgot something but what ? My puppetmaster (rhel5.9) hosts the 3 roles : puppet-server-3.2.2, puppetdb-1.1.1, puppet-dashboard-1.2.22 The process 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] puppetlabs-ntp template discussion

2013-07-25 Thread Erik Dalén
On 13 July 2013 15:00, Ashley Penney apen...@gmail.com wrote: On Sat, Jul 13, 2013 at 7:15 AM, Erik Dalén erik.gustav.da...@gmail.comwrote: I've been missing a way to set which server(s) should be preferred. We generally include all our NTP servers in the config but prefer the one that is

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

2013-07-25 Thread yannig rousseau
Do you know if it's possible to lauch it from a script (maybe a sql request ?) On Thu, Jul 25, 2013 at 2:17 PM, Klavs Klavsen kl...@enableit.dk wrote: that job just removes reports for hosts - it does't remove the actual hosts. You need to pick the node in puppet-dashboard webinterface -

[Puppet Users] Re: operatingsystemrelease fact on windows

2013-07-25 Thread badgerious
Luis, This seems useful. I've never actually used any of the facts that return the numeric Windows version, but have used the named version (with my own fact). Since it looks like this piece of information is repeated in 3 facts, changing one to someone else seems like a good move. Eric --

[Puppet Users] Re: operatingsystemrelease fact on windows

2013-07-25 Thread badgerious
Luis, This seems useful. I've never actually used any of the facts that return the numeric Windows version, but have used the named version (with my own fact). Since it looks like the numeric version is repeated in 3 facts, changing one to something else seems like a good move. Eric -- You

Re: [Puppet Users] Re: puppetdb v2 node api

2013-07-25 Thread Ken Barber
You should be able to use 'curl' to access the API, there are some examples for /v2/nodes in the docs as a start ... and the rest of the end-points have similar examples: http://docs.puppetlabs.com/puppetdb/1.3/api/query/v2/nodes.html Also take a look at the general curl advice page:

[Puppet Users] File ownership wrong when using vcsrepo

2013-07-25 Thread dusan . dordevic
Hi, I created few puppet modules that pulls some Ruby code from various repos. All modules are identical: class reponame { vcsrepo { '/var/hg/repos/reponame': ensure = present, provider = hg, source =

[Puppet Users] Re: Creating Users and Hashing it's password.

2013-07-25 Thread Joey Stevense
You could also use the built in sha1 function to let puppet generate the hashed version for you. Like this: user {'sysop': #uid = 500, #groups = 'admin', comment= 'Sysop', ensure

[Puppet Users] including classes

2013-07-25 Thread foomatty
I've been rewriting our modules as and when to the more fashionable parameterised structure. Running Puppet 3.x : our modules would look like node 'bigEndian' { include app1::install, app2::install } class app1::install { include/require nodejs ...app stuff.. } class app2::install {

[Puppet Users] No reports in foreman

2013-07-25 Thread Andreas Dvorak
Dear all I am trying to set up reports in foreman, but foreman tells me to configure it. What am I doing wrong? I have on the puppet master: /var/lib/puppet/reports/foreman.rb with $foreman_url=http://rh6-puppet-master Do I need the port? /etc/puppet/puppet.conf with in [main] reports =

Re: [Puppet Users] including classes

2013-07-25 Thread Matt
Okay, I searched the group (duh!) and seen that this has been covered multiple times already. On 25 July 2013 08:14, fooma...@gmail.com wrote: I've been rewriting our modules as and when to the more fashionable parameterised structure. Running Puppet 3.x : our modules would look like node

[Puppet Users] Heria, Facts, and Puppet

2013-07-25 Thread chengkai liang
So something doesn't look right for me when running puppet apply -e 'include ...' for looking heria via facter fact. I have hiera configure as this, :backends: - yaml :hierarchy: - common - '%{env_name}' :yaml: :datadir: /var/lib/hiera/data and, a file

[Puppet Users] Re: Installing MSI failed with errror: The network name cannot be found.

2013-07-25 Thread tinu
Hello Josh Thank you for your answers. I changed the $msi_install_dir = 'C:\\Program Files\\System Center Operations Manager 2007' to C:\\Program Files\\System Center Operations Manager 2007, and the $msi_logfile to C:\\ProgramData\\PuppetLabs\\puppet\\var\\log\\$msi_package_name.log Result

[Puppet Users] open source Puppet 3 cannot compile catalog on newly built Puppetmaster

2013-07-25 Thread GregC
Following the instructions from puppetlabs for yum install on Red Hat 6, no problems When I try to run a puppet test I get the following error, there are no manifest on the system at this time. [root@puppetmaster3:/etc/puppet/manifests]# puppet --version 3.2.3

[Puppet Users] How can I read registry values?

2013-07-25 Thread tinu
I should read the values of some registry keys like 'HKLM\SOFTWARE\Puppet\WCM\Initial_Setup'. How can I do this? Thanx Tinu -- 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: node_aws installation problem

2013-07-25 Thread shivaraj mathrubai
I just installed the enterprise version and it installed all the dependencies required and works like a charm ! On Wednesday, 24 July 2013 16:15:17 UTC+1, Piotr Jasiulewicz wrote: Hi, found some of your entries looking around Shivaraj, have you found out the cause of this issue on your

Re: [Puppet Users] How can I read registry values?

2013-07-25 Thread Rob Reynolds
There is the registry module ( http://forge.puppetlabs.com/puppetlabs/registry) although it doesn't appear to let you read a value in the registry. -- Rob Reynolds Developer, Puppet Labs *Join us at PuppetConf 2013, August 22-23 in San Francisco - * http://bit.ly/pupconf13* **Register now and

[Puppet Users] Re: Passenger with Puppet 3.0, problems running under

2013-07-25 Thread Jim Toth
As I recall, if the config.ru itself isn't owned by the puppet user, we'll get similar errors from Passenger (spewing out an HTML error page, which the agents then unhelpfully log). It might be something else -- given that it's HTML, you might want to just go to https://your puppet server:8140

[Puppet Users] Re: node_aws installation problem

2013-07-25 Thread Piotr Jasiulewicz
Is puppet enterprise free also? Not sure I would get consent from my boss... it's a bit sad that the provisioning project looks totally neglected by puppet labs. -- You received this message because you are subscribed to the Google Groups Puppet Users group. To unsubscribe from this group and

Re: [Puppet Users] Re: Not collecting exported resources without storeconfigs

2013-07-25 Thread Larry Long
Hi Ken: Yes, I most definitely restarted HTTPd since I have it running over Passenger. Although, I do see that when I make changes to puppet.conf it reloads according to /var/log/messages. My puppetdb version is 1.3.2-1. I do have puppetdb-terminus installed via RPM like puppetdb. Here is my

[Puppet Users] Re: No reports in foreman

2013-07-25 Thread Larry Long
I have my foreman running over Passenger, but if you are using the default webrick, you need to specify the port. The default is 3000. On Thursday, July 25, 2013 8:04:47 AM UTC-4, Andreas Dvorak wrote: Dear all I am trying to set up reports in foreman, but foreman tells me to

[Puppet Users] Re: Heria, Facts, and Puppet

2013-07-25 Thread Ellison Marks
Not sure exactly, but in general you want common to be searched last, as hiera by default bails when it finds an answer, so your hierarchy in the conf file is backwards. You'd want the env_name fact above common. On Thursday, July 25, 2013 7:27:26 AM UTC-7, chengkai liang wrote: So something

Re: [Puppet Users] How can I read registry values?

2013-07-25 Thread Josh Cooper
Hi Tinu, On Thu, Jul 25, 2013 at 8:04 AM, tinu tinu.walt...@gmail.com wrote: I should read the values of some registry keys like 'HKLM\SOFTWARE\Puppet\WCM\Initial_Setup'. How can I do this? Thanx Tinu -- You received this message because you are subscribed to the Google Groups

Re: [Puppet Users] open source Puppet 3 cannot compile catalog on newly built Puppetmaster

2013-07-25 Thread Josh Cooper
On Thu, Jul 25, 2013 at 7:54 AM, GregC greg.caldwe...@gmail.com wrote: Following the instructions from puppetlabs for yum install on Red Hat 6, no problems When I try to run a puppet test I get the following error, there are no manifest on the system at this time.

Re: [Puppet Users] Re: Installing MSI failed with errror: The network name cannot be found.

2013-07-25 Thread Josh Cooper
Hi Tinu, On Thu, Jul 25, 2013 at 7:44 AM, tinu tinu.walt...@gmail.com wrote: Hello Josh Thank you for your answers. I changed the $msi_install_dir = 'C:\\Program Files\\System Center Operations Manager 2007' to C:\\Program Files\\System Center Operations Manager 2007, and the

[Puppet Users] Sysadmin Day is tomorrow! We're doing a webinar on Flash in the enterprise. You can win passes to PuppetConf 2013!

2013-07-25 Thread Josh Folland
Hey Everyone, First time posting in the Puppet community, so I hope I'm not breaking any rules (I did take a quick look at the Community Guidelines pagehttp://docs.puppetlabs.com/community/community_guidelines.html). As many of you already know, tomorrow is July 26th, also known in some

[Puppet Users] Re: Not collecting exported resources without storeconfigs

2013-07-25 Thread Larry Long
Maybe an issue with puppetdb? I see some weirdness, although no apparent errors on it. On Wednesday, July 24, 2013 11:57:17 PM UTC-4, Larry Long wrote: # cat /etc/redhat-release CentOS release 6.4 (Final) # puppet --version 3.2.3 # rpm -q puppetdb puppetdb-1.3.2-1.el6.noarch I am now

Re: [Puppet Users] Re: 3.2.2 on CentOS 6.3, and Did not receive certificate

2013-07-25 Thread Forrie
Having read through more threads, I ran across an article that pointed out the permissions and ownership of config.ru needed to be owned by puppet:puppet. I changed this and now everything is working. I'm royally annoyed, because nowhere in these logs (either via Puppet or Passenger) was

[Puppet Users] Re: Not collecting exported resources without storeconfigs

2013-07-25 Thread Larry Long
Apparently it is ignoring the settings in my puppet.conf: # puppet config --verbose --debug print|grep storeconfig async_storeconfigs = false storeconfigs = false storeconfigs_backend = active_record thin_storeconfigs = false Researching more! On Wednesday, July 24, 2013 11:57:17 PM UTC-4,

[Puppet Users] large file (45M) sometimes truncated while using puppet:/// for transfers

2013-07-25 Thread Matt Schurenko
Having a strange issue that just surfaced yesterday. We have a 45Mb file that sometimes does not transfer fully. The upshot is when puppet goes to install the file (in this case it's a .deb pkg) dpkg complains with: Debug: Executing '/usr/bin/dpkg --force-confold -i

Re: [Puppet Users] creating a (mac) package from a known good source + local patches

2013-07-25 Thread Clay Caviness
Thanks, Moses. I'll update our internal build process to use this method. Also, FYI, I created https://github.com/puppetlabs/packaging/pull/171 to update the apple task to use pkgbuild instead of PackageMaker (since that was easier than trying to find and install packagemaker...) On Wed, Jul

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

2013-07-25 Thread Manoj
The actual problem is explained in the link in my first message and it was caused by an older version(0.9.0-1puppetlabs1) of puppetdb. I installed puppetdb through modules and was hopping that it would install the latest version(1.3.2). Thar was the reason I was trying the v2 query. Then later I

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

2013-07-25 Thread Sam Morrison
Yeah but then when we push out noop = true in puppet.conf how do we then push out noop = false via puppet if they're all in noop. Managing on the server is the only way to do it in a safe and scalable way (we have 500+ nodes) On Thu, Jul 25, 2013 at 10:18 PM, Klavs Klavsen kl...@enableit.dk

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

2013-07-25 Thread John Warburton
On 25 July 2013 22:54, yannig rousseau yrouss...@keremma.net wrote: Do you know if it's possible to lauch it from a script (maybe a sql request ?) rake --silent node:del name=deleteme RAILS_ENV=production I also run a job each day to tidy up the database: # Purged nodes leave behind

Re: [Puppet Users] creating a (mac) package from a known good source + local patches

2013-07-25 Thread Moses Mendoza
Hi Clay, Thanks for the patch! We'll take a look. Switching over to pkgbuild has been on the list for awhile. Cheers, Moses On Thu, Jul 25, 2013 at 3:45 PM, Clay Caviness ccavin...@gmail.com wrote: Thanks, Moses. I'll update our internal build process to use this method. Also, FYI, I

[Puppet Users] Re: Not collecting exported resources without storeconfigs

2013-07-25 Thread Larry Long
Well, it seems puppet config print is useless as it is incorrect with most values it shows. I know storeconfigs are up and running and I think its going to puppetdb. I am still having issues with my mod. On Wednesday, July 24, 2013 11:57:17 PM UTC-4, Larry Long wrote: # cat