Re: [Puppet Users] Hiera lookup in hiera lookup

2021-05-18 Thread Erwin Bogaard
gt; >> A nested lookup (like in your example) always returns a string. >> If you need arrays or hashes within a nested lookup you must use the >> alias function. >> >> hth, >> Martin >> >> On 18. May 2021, at 10:23, Erwin Bogaard wrote:

[Puppet Users] Hiera lookup in hiera lookup

2021-05-18 Thread Erwin Bogaard
Hi, I've been looking for this for a ling time, but can't find a definitive answer to my question: is it possible to use a lookup in a lookup? For example: aaa::bbb: "mvn:com.xxx.bus/xxx-features/%{lookup('xxx::apps::env_hash.%{lookup('xxx::apps::env')}.yyy.version')}/xml/features" Should lead

Re: [Puppet Users] "puppetserver ca migrate" error

2021-03-04 Thread Erwin Bogaard
from the new > location to the old location: > ln -sf /etc/puppetlabs/puppetserver/ca /etc/puppetlabs/puppet/ssl/ca > 4. restart the puppetserver service: > systemctl start puppetserver > > Let us know if you have any other issues. > > Thanks! > > On Fri,

Re: [Puppet Users] "puppetserver ca migrate" error

2021-02-26 Thread Erwin Bogaard
if you have an unusual networking setup, e.g. custom DNS > config, IPv6, etc. > I was not able to reproduce your issue on a first attempt, so it would > also be helpful to know which version of puppetserver you're running, what > OS platform you're running on, and which versio

[Puppet Users] "puppetserver ca migrate" error

2021-02-25 Thread Erwin Bogaard
Hi, I'm trying to solve the notofocation about "The cadir is currently configured to be inside the /etc/puppetlabs/puppet/ssl directory". When I follow the steps, and run: # puppetserver ca migrate --config /etc/puppetlabs/puppet/puppet.conf I get the message: "Puppetserver service is running

[Puppet Users] Re: epp conditionals not working, erb is

2015-11-04 Thread Erwin Bogaard
gt; > Are you access the variable $xxx_yyy will full puppet path? IE > $classname::xxx_yyy > > If not you need to pass the variable into the template like this. > > content => epp('module/template.epp', { 'xxx_yyy' => "$xxx_yyy"}), > > Hope

[Puppet Users] epp conditionals not working, erb is

2015-11-04 Thread Erwin Bogaard
As epp is the way to go, I'm trying to create all my new templates in epp-format. I have a problem with using conditionals, though. I have the following conditional in an epp template: ... <%- if $xxx_yyy == true { -%> // code here <%- } -%> ... When I apply this template with a defined type res

[Puppet Users] Re: How to manage SugarCRM config.php with Puppet?

2014-01-24 Thread Erwin Bogaard
Thanks for your suggestions. Hiera seemed the best solution, but it seems then you still have to manage the whole file. Not just parts. When I have some more time, I'm going to dive in Hiera, as is seems to be a good solution to other 'challenges' I have (and have solved badly, right now). For

Re: [Puppet Users] How to manage SugarCRM config.php with Puppet?

2014-01-21 Thread Erwin Bogaard
Sounds interesting. Checked it out, but it doesn't seem that SugarCRM's config.php supports xml. -- 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+un

Re: [Puppet Users] How to manage SugarCRM config.php with Puppet?

2014-01-20 Thread Erwin Bogaard
AM UTC+1, Pete wrote: > > Hi > > On 20 Jan 2014, at 7:34 am, Erwin Bogaard > > wrote: > > Hi, > > I'm looking into a way to manage the SugarCRM config.php (see partial > example below this message). This proposes several problems: > 1. The file is f

[Puppet Users] How to manage SugarCRM config.php with Puppet?

2014-01-19 Thread Erwin Bogaard
Hi, I'm looking into a way to manage the SugarCRM config.php (see partial example below this message). This proposes several problems: 1. The file is full of arrays and arrays-in-arrays (So I think Augeas is useless, as far as I understand it) 2. Not all config.php's contain the same arrays and/

[Puppet Users] Re: Passing an array of user groups to a define

2012-11-09 Thread Erwin Bogaard
ot; in the user resource which will concatenate > the values together... remove the quotes and all should be well.. > > On Friday, November 9, 2012 5:19:31 AM UTC-8, Erwin Bogaard wrote: >> >> As I try to get some flexibility in the creation of users, I switched to >> a d

[Puppet Users] Passing an array of user groups to a define

2012-11-09 Thread Erwin Bogaard
As I try to get some flexibility in the creation of users, I switched to a define. problem is, I can't pass an array of user groups anymore. This either results in - wrong group creation: group1,group1group2,group2 (see that group1 and group2 are concatenated in the middle, undefined group) - er

[Puppet Users] Re: Apply multiple defines in sequence

2012-11-05 Thread Erwin Bogaard
intermediate Puppet user, I've again learned a lot about writing some nice manifests and getting things done the way I want to. On Thursday, November 1, 2012 3:27:10 PM UTC+1, Erwin Bogaard wrote: > > I'm having trouble getting the following scenario to work: > - I have two defines,

[Puppet Users] Re: Apply multiple defines in sequence

2012-11-05 Thread Erwin Bogaard
After my previous post, I did some more thinking and reasearch. What do you think about: - using an if/else-conditional. Would that work? - using virtual resources? would that work? On Monday, November 5, 2012 9:17:11 PM UTC+1, Erwin Bogaard wrote: > > As I'm in over my head, let&#

[Puppet Users] Re: Apply multiple defines in sequence

2012-11-05 Thread Erwin Bogaard
27;dbname1', mysql_pwd=> 'password1'; sugar::definitions_sug_wp { 'node2': sugar_admin => 'text1', sugar_pwd=> 'password2', mysql_dbname => 'dbname2', mysql_pwd=> 'passwor

[Puppet Users] Re: Apply multiple defines in sequence

2012-11-05 Thread Erwin Bogaard
h is easy to to with defines. So all instances have unique resources, hence the choice for defines, not classes. Does this help you help me? On Thursday, November 1, 2012 3:27:10 PM UTC+1, Erwin Bogaard wrote: > > I'm having trouble getting the following scenario to work: > - I

[Puppet Users] Re: Apply multiple defines in sequence

2012-11-02 Thread Erwin Bogaard
n I would like to apply only the sugar-define to node1 and both defines to node2, when only declaring node2 once. I hope this makes things clearer, but as you said, maybe I'm using the wrong words (or jargon) for the right things. On Friday, November 2, 2012 3:14:50 PM UTC+1, jcbollinge

[Puppet Users] Re: Apply multiple defines in sequence

2012-11-02 Thread Erwin Bogaard
As there is no response, maybe some extra info: For classes I use 'inherits' to apply multiple classes to one resource. For defines I can't find a similar technique. Is there one? On Thursday, November 1, 2012 3:30:52 PM UTC+1, Erwin Bogaard wrote: > > In retrospect: a bett

[Puppet Users] Re: Apply multiple defines in sequence

2012-11-01 Thread Erwin Bogaard
In retrospect: a better subject would have been 'Apply multiple defines to one resource'. But as far as I can see, there is no way to change a subject On Thursday, November 1, 2012 3:27:10 PM UTC+1, Erwin Bogaard wrote: > > I'm having trouble getting the following scenari

[Puppet Users] Apply multiple defines in sequence

2012-11-01 Thread Erwin Bogaard
I'm having trouble getting the following scenario to work: - I have two defines, for example 'sugar' and 'wordpress'. - Some nodes need to have both applied, others only sugar. - Because you can't use the same resource twice (not that I want to), I can't figure out how to apply two separate define