[Puppet Users] Re: basic question about hiera

2015-07-09 Thread jcbollinger
On Wednesday, July 8, 2015 at 8:39:10 AM UTC-5, Albert Shih wrote: Hi, Very basic question about hiera file. I've hieradata/my_host.yaml I like at the end of my_host.yaml make something like include my_host_add.yaml is it possible ? No, at least not with HIera's

[Puppet Users] Re: Hiera auto binding

2015-07-09 Thread DJ
Thanks John, Luke for your suggestions. -- 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 view this discussion on the

[Puppet Users] Error: Could not set 'file' on ensure: Not a directory - /var/lib/puppet/lib/puppet/parser/functions

2015-07-09 Thread Kareem Galal
Hi, I have just downloaded the puppetlabs-stdlib forge module, and attempted to install it on one of my nodes, but I end up with the following errors on the client: Error: Could not set 'file' on ensure: Not a directory -

[Puppet Users] Puppet Server Web Console Stopped User Login

2015-07-09 Thread Kasun Mathotage
Hi All, I am maintaining two Puppet servers. it used to work fine. But suddenly, the web console stopped user from login. The error message was Unexpected response received from Google while validating credentials. We use our google accounts to login. Even for the admin user which is not a

[Puppet Users] Puppet server failing on invalid UTF-8 facts

2015-07-09 Thread giorgio
Hello, I'm having some issues after upgrading to Puppet 4. Basically on a puppet agent run I get this error: *Error: Could not retrieve catalog from remote server: Error 400 on SERVER: invalid byte sequence in UTF-8* I tracked it down, and found this HTTP request to be the cause of it 94

[Puppet Users] Re: basic question about hiera

2015-07-09 Thread DJ
are you saying those data is common for all hosts? then may be you can use common.yaml ? On Wednesday, 8 July 2015 19:09:10 UTC+5:30, Albert Shih wrote: Hi, Very basic question about hiera file. I've hieradata/my_host.yaml I like at the end of my_host.yaml make something like

[Puppet Users] Not delete temporary file.

2015-07-09 Thread Albert Shih
Hi Is they are any way to tell puppet agent NOT delete temporary file (like concat file etc..). I'm trying to debug some (still) not working module, I see puppet launch some command on temporary file (and failed), but just after that puppet agent clean those filesso I can check inside those

[Puppet Users] Re: How to call a module from another module

2015-07-09 Thread jcbollinger
On Wednesday, July 8, 2015 at 9:43:01 AM UTC-5, Hiranmoy Khan wrote: Hello, I am trying to call module A from module B if variable Y is false. And if module B executed successfully then variable var1 = true. But not sure about the syntax. You're not sure about the semantics. Most of

[Puppet Users] Re: basic question about hiera

2015-07-09 Thread Toky
You could use the data in my_host.yaml from multiple profiles/roles as long as you fullyqualify the data source. But to answer your hiera question, I do not think you can include another yaml file. -Miguel On Wednesday, July 8, 2015 at 9:39:10 AM UTC-4, Albert Shih wrote: Hi, Very basic

[Puppet Users] Re: basic question about hiera

2015-07-09 Thread Albert Shih
Le 09/07/2015 à 07:37:04-0700, DJ a écrit are you saying those data is common for all hosts? then may be you can use common.yaml ? Wellno I've a puppet master who « manage » almost every my server. But I still get lots of « thing » not manage by puppet, thing like networking hardware.

[Puppet Users] Re: Puppet MYSQL

2015-07-09 Thread Tomáš Krasničan
Hi, The problem is that puppet have no (root) access to mysql database. You have to fill root_password parameter or /root/.my.cnf. You're managing local mysql, puppet tries connect to local database (mysql -h localhost), so user host/permission host will allways be @localhost. --Tom On

[Puppet Users] Re: basic question about hiera

2015-07-09 Thread DJ
i did not understand your requirement clearly, if you have puppet agent running on all maachines then you can use facts to get hardware information and use that in hieara hierarchy to differentiate things. Regards, DJ -- You received this message because you are subscribed to the Google

[Puppet Users] Re: Puppet apply and send reports?

2015-07-09 Thread Louis Mayorga
Can you share your PE version? and also the /puppet/puppet.conf file on your puppet master? On Friday, June 14, 2013 at 11:17:42 AM UTC-4, Chris Lee wrote: I forgot to say thank you. The changes below worked perfectly. At first I tried them just by changing on command line. Using

Re: [Puppet Users] Re: hiera and puppet environments ( directory)

2015-07-09 Thread PAN dheepak kumar
Hi Rob, My bad..Issue with hiera datadir location ownership and permission. changed to puppet from root ownership. Hiera looks up working fine for puppet agent now.. Thanks On Thu, Jul 9, 2015 at 8:08 AM, PAN dheepak kumar dheepakz...@gmail.com wrote: Hi Rob. Thanks for the reply.

[Puppet Users] Re: Failed to upgrade a PuppetDB that runs into a non-standard directories

2015-07-09 Thread Wyatt Alt
Hey Benjamin, This is a config validation error. You have a webapps setting somewhere in your config directory. That's not a setting PuppetDB will use, and PDB will fail to start if it's present. Remove that setting and things should work fine. Wyatt On Thursday, July 9, 2015 at 8:50:15 AM

Re: [Puppet Users] Re: How to make service start depend on a file existing

2015-07-09 Thread Mark Kirkwood
On 09/07/15 01:25, jcbollinger wrote: On Tuesday, July 7, 2015 at 8:21:48 PM UTC-5, Mark Kirkwood wrote: I would like to prevent a service starting until a certain file exists. The wrinkle is that the file is not (directly) created by puppet. I'm thinking that I want to somehow

Re: [Puppet Users] Re: How to make service start depend on a file existing

2015-07-09 Thread Mark Kirkwood
On 09/07/15 02:26, Gerard Kok wrote: You could create a custom fact that returns the desired state of the service, based on the existence of the file, and then use the value of that fact in the service declaration. For example, like so: The custom fact: | Facter.add(:state_of_the_service)do

[Puppet Users] How to create hadoop directory vi puppet script.

2015-07-09 Thread Ayyanar
1. exec { /home/haas: #command = /usr/hdp/current/hadoop-yarn-nodemanager/sbin/yarn-daemon.sh stop resourcemanager, command = hadoop fs -mkdir -p /apps/hive/warehouse, user = haas } Note: my site.pp file contain this code. while executing this command facing validation issue.

[Puppet Users] Re: Puppet, ENC, Foreman, Hiera. Best way for coexistence?

2015-07-09 Thread DJ
Hello, I am using option 3 for my infra, but i do include classes to foreman hostgroups and using data from Hiera. i am trying to use Hiera for my infrastructure modules and puppet smart classes for my application team's modules as it has better permission model to control things and users

Re: [Puppet Users] Re: Hiera auto binding

2015-07-09 Thread Luke Bigum
Hi DJ, In general the more Hiera calls you make the slower your manifests will compile. However, the difference between 1 and 10 is negligible, between 1 and a 1000 you might loose a few seconds. If you use hiera-gpg it will take a little longer (hiera-eyaml should be faster), and if you add

Re: [Puppet Users] Re: Hiera auto binding

2015-07-09 Thread Luke Bigum
Woops, an amendment to look up the 'data' parameter of class 'foo' in Hiera: # hiera -c /etc/puppet/hiera.yaml -y /var/lib/puppet/yaml/facts/nodename.domain.yaml environment=production foo::data - Original Message - From: Luke Bigum luke.bi...@lmax.com To: puppet-users@googlegroups.com

Re: [Puppet Users] Hiera auto binding

2015-07-09 Thread Angel L. Mateo
El 08/07/15 a las 17:57, DJ escribió: Hello, i was reading this doc http://garylarizza.com/blog/2014/10/24/puppet-workflows-4-using-hiera-in-anger; which says it's not good idea to use Hiera auto binding feature, can you guys suggest if you are using this feature and you have noticed any

[Puppet Users] Puppet MYSQL

2015-07-09 Thread Sergiu Cornea
Good morning Puppeters I have a question regarding Puppetlabs Mysql module. I am trying to create a DB, however, I am giving the root password but when I run Puppet it is complaining saying that Access denied for user 'root'@'localhost' (using password: NO). My question is that how do I

[Puppet Users] Re: Hiera auto binding

2015-07-09 Thread jcbollinger
On Wednesday, July 8, 2015 at 10:57:44 AM UTC-5, DJ wrote: Hello, i was reading this doc http://garylarizza.com/blog/2014/10/24/puppet-workflows-4-using-hiera-in-anger; which says it's not good idea to use Hiera auto binding feature, can you guys suggest if you are using this feature

[Puppet Users] Re: basic question about hiera

2015-07-09 Thread Albert Shih
Le 09/07/2015 à 10:55:50-0700, DJ a écrit i did not understand your requirement clearly, if you have puppet agent running on all maachines then you can use facts to get hardware information and use that in hieara hierarchy to differentiate things. No puppet agent didn't work on the

[Puppet Users] Failed to upgrade a PuppetDB that runs into a non-standard directories

2015-07-09 Thread Benjamin Parmentier
Hi, I actually have a PuppetDB 2.2.2 that runs without any problems into a non standard directories : /SERVICES/puppetdb/{conf,logs,tmp,var} I also use a custom script to start/stop PuppetDB. I extract the command to start puppetdb from the init-script : /usr/bin/java -Xmx192m

[Puppet Users] Update facts without applying catalog.

2015-07-09 Thread Sergii Alieksanov
Hello! Is it possible to force puppet agent to send facts to master (puppetdb) while it is locked (puppet agent --disable) or run in --noop mode? The reason to have such feature is pretty simple: having up-to-date node specs with puppet agent in locked state. Thanks! Cheers, Sergii -- You

[Puppet Users] [ANN] puppetlabs-puppetdb module v5.0.0 released

2015-07-09 Thread AJ Roetker
“puppetlabs-puppetdb” v5.0.0 has been released! https://github.com/puppetlabs/puppetlabs-puppetdb/blob/5.0.0/CHANGELOG v5.0.0 - 2015/07/09 This is a major release to provide default support for PuppetDB 3.0.0, so lots of changes have been introduced. Ensure you read the upgrade guide provided

[Puppet Users] Announce: PuppetDB 3.0 has been released!

2015-07-09 Thread Wyatt Alt
PuppetDB 3.0.0 - July 9, 2015 PuppetDB 3.0.0 Downloads Available in native package format as part of Puppet Collection 1 (PC1). More information on the PC1 repositories is available here: http://bit.ly/1HQJDNb Binary tarball: http://downloads.puppetlabs.com/puppetdb/

Re: [Puppet Users] where is PC1 for Debian Jessie?

2015-07-09 Thread Felix Frank
On 07/07/2015 09:33 PM, Melissa Stone wrote: ... W: Failed to fetch http://apt.puppetlabs.com/dists/jessie/Release Unable to find expected entry 'PC1/source/Sources' in Release file (Wrong sources.list entry or malformed file) The release package for jessie has been