Re: [Puppet Users] function that returns parameters from a webservice

2016-06-10 Thread Pearl Raj
Peter and Henrik, thanks for writing in. Let me explain the scenario once. We use puppet 3 with Hiera for appX application. But due to some internal issues (management, company policy), the team which supports the application (Support-appX) do not have access to Hiera and those who manages

[Puppet Users] Broken puppetdb

2016-06-10 Thread jdehnert
Greetings All, I decided to try and implement the puppetlabs-puppetdb and puppetlabs-postgres modules after I had both puppetdb and postgres installed and working on my puppet server. This was ill advised as it broke my working setup and no amount of re-configuring seems to be able to get

[Puppet Users] Re: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class

2016-06-10 Thread Luke Tinker
Looks to actually be an issue with selinux, im still looking into it as its not actually logging the issue, but setting selinux to permissive is resolving the problem, since this isn't a puppet issue i was barking up the wrong tree. On Tuesday, 7 June 2016 00:09:53 UTC+10, jcbollinger wrote: > >

Re: [Puppet Users] function that returns parameters from a webservice

2016-06-10 Thread Henrik Lindberg
On 10/06/16 17:53, Pearl Raj wrote: I am trying to write a module containing a function that returns parameters from a webservice - http://localhost:5000/app/api/nodes/node_id. This function should return a hash of configuration settings specific to that host. How do I do this? I am using puppet

Re: [Puppet Users] Unexpected behavior when using variable interpolation on a subkey in hiera

2016-06-10 Thread Henrik Lindberg
On 10/06/16 20:14, aru...@berkeley.edu wrote: Yikes. When I originally posted I cleaned up identifiable and I took away too much. I actually was passing everything through like I should. Since I deleted my test data from the original post, Here's the hiera data I am having trouble with:

Re: [Puppet Users] Unexpected behavior when using variable interpolation on a subkey in hiera

2016-06-10 Thread arusso
Yikes. When I originally posted I cleaned up identifiable and I took away too much. I actually was passing everything through like I should. Since I deleted my test data from the original post, Here's the hiera data I am having trouble with: ucb::mail::senders: "@%{::clientcert}": relay:

Re: [Puppet Users] function that returns parameters from a webservice

2016-06-10 Thread Peter Kristolaitis
You can write custom functions[1], but I don't think they can return a hash -- only a single value. This functionality is designed for things like calculating password hashes, etc, not generalized data lookup. This is probably also completely the wrong approach, in the Puppet model, if your

[Puppet Users] Augeas help

2016-06-10 Thread mike r
Hello, Im tryign to use Augeas in my manifest to manage /etc/fstab file specifically I want to make sure my /etc/fstab file has the following line /tmp /tmp nodev,noexec 0 0 Augeas syntax is like learning Chinese, Im trying to make my manifest figure out whether 1) /etc/fstab has a line

[Puppet Users] function that returns parameters from a webservice

2016-06-10 Thread Pearl Raj
I am trying to write a module containing a function that returns parameters from a webservice - http://localhost:5000/app/api/nodes/node_id. This function should return a hash of configuration settings specific to that host. How do I do this? I am using puppet 3.0. pseudo code is as follows

Re: [Puppet Users] Git Repo Strategy

2016-06-10 Thread Rich Burroughs
I'm assuming this could be done. We're talking about UNIX she'll commands and there's a way to do just about anything. But I can't imagine it being simple or fun to use. Like could you do Pull Requests on Github between these repos? Maybe, depending on how you set it up. People nowadays recommend

Re: [Puppet Users] Git Repo Strategy

2016-06-10 Thread Christopher Wood
On Fri, Jun 10, 2016 at 05:57:13AM -0700, Funsaized wrote: >Hello, > >I am relatively new to puppet and am trying to develop a good workflow in >conjunction with git/github to keep a better version control system. The >version of puppet that I am working with and has been

[Puppet Users] Git Repo Strategy

2016-06-10 Thread Funsaized
Hello, I am relatively new to puppet and am trying to develop a good workflow in conjunction with git/github to keep a better version control system. The version of puppet that I am working with and has been implemented is a bit dated, and using R10k and developing a puppetfile would be quite

Re: [Puppet Users] Conrol class order of execution

2016-06-10 Thread Lowe Schmidt
You can use the same operators to express dependencies between classes. -- Lowe Schmidt | +46 723 867 157 On 10 June 2016 at 15:08, Harish Kothuri wrote: > > > On Friday, June 10, 2016 at 6:29:27 PM UTC+5:30, Harish Kothuri wrote: >> >> Hi, >> >> Thanks for your reply.

Re: [Puppet Users] Conrol class order of execution

2016-06-10 Thread Harish Kothuri
On Friday, June 10, 2016 at 6:29:27 PM UTC+5:30, Harish Kothuri wrote: > > Hi, > > Thanks for your reply. > > I'm looking how to control the execution classes with different manifest > files. I'm aware and already controlling the order within the manifests. > > Thanks > > On Friday, June 10,

Re: [Puppet Users] Conrol class order of execution

2016-06-10 Thread Harish Kothuri
Hi, Thanks for your reply. I'm looking how to control the execution classes with different manifest files. I'm aware and already controlling the order within the manifests. Thanks On Friday, June 10, 2016 at 6:16:18 PM UTC+5:30, Lowe Schmidt wrote: > > You can use the relationships operators

Re: [Puppet Users] Conrol class order of execution

2016-06-10 Thread Lowe Schmidt
You can use the relationships operators described here here https://docs.puppet.com/puppet/latest/reference/lang_relationships.html -- Lowe Schmidt | +46 723 867 157 On 10 June 2016 at 14:05, Harish Kothuri wrote: > Hi, > > I have several classes attached to a host

[Puppet Users] Conrol class order of execution

2016-06-10 Thread Harish Kothuri
Hi, I have several classes attached to a host and i want to control the execution order the classes. Ex: i have a class which collect some custom facts and i want to execute this class after completion of all the other classes. Thanks -- You received this message because you are subscribed

Re: [Puppet Users] Re: Hiera, define, class, putting all together

2016-06-10 Thread Helmut Schneider
jcbollinger wrote: > > On Tuesday, June 7, 2016 at 8:02:24 AM UTC-5, Helmut Schneider wrote: > > > > jcbollinger wrote: > > > > > Without the case statement, how can I make sure that ubuntu only > > receives classes for ubuntu and not e.g. for Windows then? > > > > > > That is where

Re: [Puppet Users] mysql - granting permissions twith puppet

2016-06-10 Thread Lowe Schmidt
Can you show us the code that you've written for this? It looks quite straight forward when looking at this documentation https://github.com/puppetlabs/puppetlabs-mysql#mysql_grant -- Lowe Schmidt | +46 723 867 157 On 9 June 2016 at 23:19, kaustubh chaudhari wrote: > Hi

RE: [Puppet Users] Unexpected behavior when using variable interpolation on a subkey in hiera

2016-06-10 Thread Johan De Wit
Hi, running hiera from the command line, you have to provide the variables you use yourself like  hiera somekey clientcert=node.example.net Here is some reading https://puppet.com/blog/debugging-hiera  hth Johan -Original message- From: aru...@berkeley.edu