Re: [Puppet Users] Module parameter handling

2016-03-02 Thread Hristo Mohamed
Look up on the create_resources function on the docs. If I undestood you correctly, you want to create all the users from your hash, with the user type at ONCE? If yes, this will do nicely :) Hristo On Wed, Mar 2, 2016 at 11:26 AM, Thomas Bendler wrote: > Hi @all, > > I write a module that crea

Re: [Puppet Users] Catalog compilation weirdness

2016-02-28 Thread Hristo Mohamed
I have seen the same type of error with a custom fact, that was failing to set the proper value for the variable(the variable was an array). Then the empty variable was used as a name for resource creation. Care to check for that in your manifests? Hristo On Feb 28, 2016 11:17 PM, "Robert Davidson

Re: [Puppet Users] downgrading package with puppet

2016-02-25 Thread Hristo Mohamed
Which provider are you using? Are you sure this version is available? Hristo On Thu, Feb 25, 2016 at 4:49 PM, tetlika wrote: > hi, I have a problem with puppet sw management > > when I do in puppet: > > package { "nginx" : > ensure => "1.8.1-1" > } > > the nginx version 1.8.1 is succes

Re: [Puppet Users] configuration not applying but getting notice: Finished catalog run in 0.02 seconds

2016-01-27 Thread Hristo Mohamed
*created file in test-sample/manifests/site.pp:* Rename it to sample/manifetsts.site.pp Cheers, Hristo On Wed, Jan 27, 2016 at 11:50 AM, kumar kittu wrote: > Hi, > > I am new to puppet and installed puppet standalone in my linux box. > I generated module with command:"puppet module generate t

Re: [Puppet Users] Facter - custom fact regex

2016-01-13 Thread Hristo Mohamed
Try : setcode { network } >From puppett docs: 1. A call to Facter.add('fact_name'), which determines the name of the fact 2. A setcode statement for simple resolutions, which is evaluated to determine the fact’s value. On Wed, Jan 13, 2016 at 12:42 AM, Mike Reed wrote: > Hello al

Re: [Puppet Users] send all puppet messages to rsyslog

2015-07-21 Thread Hristo Mohamed
For the puppet agent, you can always try tdis rsyslog syntax: if $programname == 'puppet-agent' then /var/log/puppet.log if $programname == 'puppet-agent' then ~ Same for the master process. On Tue, Jul 21, 2015 at 11:29 PM, eric odell wrote: > How to get all puppet agent/master logs to rsyslog

Re: [Puppet Users] Classes and hiera

2015-04-14 Thread Hristo Mohamed
protest: file1: logdir: '/tmp/' logfile: fred1 text: 'Alfredo1 was here' protest: file2: logdir: '/tmp/' logfile: fred2 text: 'Alfredo2 was here' This I believe is incorrect. protest: file1: logdir: '/tmp/' logfile: fred1 text: 'Alfredo1 was here' file2

Re: [Puppet Users] Puppet module

2015-02-14 Thread Hristo Mohamed
Have you considered reading the documentation? https://github.com/puppetlabs/puppetlabs-vcsrepo On Sat, Feb 14, 2015 at 5:37 PM, Bilal Ahmad wrote: > Trying to install the module vcsrepo with puppet, but really unsure how it > could be done. The commandline to install it is: > > puppet module in

Re: [Puppet Users] Dynamic / nested / setting a varible with / from a variable in puppet.

2015-01-22 Thread Hristo Mohamed
$var="blabla $var1" is the way so assign it. But in puppet, you cant reassign variables values in the same scope , so once you do: $envir = "${which_envir}", You cant upcase in the same variable name $envir = upcase($envir). Try $envir_upcase = upcase($evir) On Wed, Jan 21, 2015 at 11:24 PM, o