Re: [Puppet Users] Locally Written Puppet Module Does Not Dislay Version Number With: puppet module list

2014-09-19 Thread Nikola Petrov
Try changing the Mdoulfile instread of the metadata file. On 19 Sep 2014 04:35, "Allen Santora" wrote: > Greetings, > > (puppet-server-3.5.1 on CentOS 6.4) > > I'm writing my own nodejs manager in Puppet and I want to enforce a > version number > > I have generated the module skeleton with the co

Re: [Puppet Users] PuppetDB 2.1.0 final now available

2014-07-09 Thread Nikola Petrov
On Tue, Jul 08, 2014 at 06:38:53PM +0100, Ken Barber wrote: > ** Final Release ** > > PuppetDB 2.1.0 final - July 8th, 2014. > > PuppetDB 2.1.0 Downloads > > > Available in native package format in the release repositories at: > http://yum.puppetlabs.com and http://apt.p

Re: [Puppet Users] Extracting gzipped sql archive, importing and finally deleting

2014-06-11 Thread Nikola Petrov
On Fri, Jun 06, 2014 at 07:30:56AM -0700, Richie wrote: > > > I'm a little stuck with a puppet manifest due to the declarative nature of > things and it's taking some time for the concept to fully sink in so could > someone guide me in the right direction here (if this is the correct route > o

Re: [Puppet Users] Problem using Vagrant + Puppet

2014-05-21 Thread Nikola Petrov
On Tue, May 20, 2014 at 07:06:20AM -0700, Rafaella Keury wrote: > Hello, > I'm using Vagrant and i'm trying to use Puppet as a tool for provisioning > one of my virtual machines. > I created a folder named 'manifests' in the same directory of my > VagrantFile. Inside the 'manifests' folder I crea

Re: [Puppet Users] Slides TDD with puppet - puppetcamp paris yesterday

2014-04-17 Thread Nikola Petrov
:D. Too fast for da bears. On Thu, Apr 17, 2014 at 09:46:18AM +0200, Felix Frank wrote: > On 04/17/2014 09:06 AM, Nikola Petrov wrote: > > Of course we want to start using beaker for those kind of tests so we > > don't push crap on the bear metal(although it is not metal

Re: [Puppet Users] Slides TDD with puppet - puppetcamp paris yesterday

2014-04-17 Thread Nikola Petrov
On Tue, Apr 15, 2014 at 06:46:21AM -0700, Alexander Fortin wrote: > On Tuesday, April 15, 2014 1:10:05 PM UTC+2, Felix.Frank wrote: > > > > On 04/15/2014 09:25 AM, Nikola Petrov wrote: > > > I haven't used catalog-diff but I > > > am suspecting that it mig

Re: [Puppet Users] Slides TDD with puppet - puppetcamp paris yesterday

2014-04-15 Thread Nikola Petrov
On Mon, Apr 14, 2014 at 07:05:49AM -0700, Alexander Fortin wrote: > On Sunday, April 13, 2014 11:57:19 AM UTC+2, Johan De Wit wrote: > > > > I still am so surprised when asking who is doing some kind of 'testing', > > almost nobody raises is hand . > > > > Most people just don't' see the sens

Re: [Puppet Users] Books and resources for Test Driven Development for Puppet?

2014-03-28 Thread Nikola Petrov
Check out rspec-puppet home page then just get https://github.com/garethr/puppet-module-skeleton and you should be ready to go. The thing that was hidden at least for me were the resource testing types from http://serverspec.org/resource_types.html so look there too(some of them are used in the ske

Re: [Puppet Users] versioncmp.rb example

2014-03-21 Thread Nikola Petrov
Create a custom fact for the java version installed. There are some suggestions here https://groups.google.com/forum/#!topic/puppet-users/W67dvqS-GdU then you do something like the following: $new_version = versioncmp($::java_version, '1.5.0.3') ? { 1 => '1.7.1', default

Re: [Puppet Users] Announce: puppetdb-stencil 0.0.1

2014-03-20 Thread Nikola Petrov
This looks nice. Although I think that for the usecase you are presenting with nagios resources it will be much easier to use puppetdbquery[1]. The script you wrote might have other usecases. Nice work again :) -- Nikola On Thu, Mar 13, 2014 at 02:56:18PM -0700, Daniele Sluijters wrote: > Good n

Re: [Puppet Users] when a puppet exec resource contains several "single commands", puppet exec only fails if the last exec command fails

2014-03-11 Thread Nikola Petrov
Actually you can emulate what you want if you join the commands with &&. Something like the following: $command = "/bin/ls /doesnotexit; /bin/echo hello" exec { 'cool': command => join(split($command, '; '), " && "), } Note1: you will need https://github.com/puppetlabs/puppetlabs-stdlib for

Re: [Puppet Users] Versioned Deployment of Modules?

2014-03-10 Thread Nikola Petrov
Look at http://docs.puppetlabs.com/guides/environment.html especially this part http://docs.puppetlabs.com/guides/environment.html#configuring-environments-on-the-puppet-master. You can specify different modules directories based on the environment and then put different version of base.pp dependin

Re: [Puppet Users] Any Puppet Labs alternatives to test-kitchen

2014-03-10 Thread Nikola Petrov
Look at https://github.com/puppetlabs/beaker although I am not using it myself so I cannot tell you if it is stable enough. -- Nikolavp On Sun, Mar 09, 2014 at 10:35:53AM -0700, Louis wrote: > Any Puppet Labs alternatives for ... > > https://github.com/test-kitchen/test-kitchen > > > -- > Yo

Re: [Puppet Users] Condition on class existence on agent

2014-02-27 Thread Nikola Petrov
On Thu, Feb 27, 2014 at 03:12:53AM -0800, zerozerouno...@gmail.com wrote: > On Thursday, February 27, 2014 8:52:04 AM UTC+1, nikolavp wrote: > > A specific example I think will be of much help. Some ideas: > > > > 1) Is "role B" just a more specific "role A" or they aren't so much > > related. Y

Re: [Puppet Users] Condition on class existence on agent

2014-02-26 Thread Nikola Petrov
On Wed, Feb 26, 2014 at 07:12:19AM -0800, zerozerouno...@gmail.com wrote: > On Wednesday, February 26, 2014 2:47:32 PM UTC+1, nikolavp wrote: > > > > What is the reason for the definition of those classes on the same host? > > > > That's because I have some more general "role A" to which some

Re: [Puppet Users] Condition on class existence on agent

2014-02-26 Thread Nikola Petrov
Hmm not sure what but there is something smelly here going on... What is the reason for the definition of those classes on the same host? Can't it just be a single class with a parameter moved to hiera or something else? My other suggestion would be to create a fact that changes the setting on the

Re: [Puppet Users] Puppet module template mentioned at contributor summit

2014-02-25 Thread Nikola Petrov
On Wed, Feb 05, 2014 at 06:38:24PM +0100, Gareth Rushgrove wrote: > This came up in discussion a couple of times at the Puppet contributor > summit at Config Management Camp in Gent over the last couple of days > so I thought I'd write up. > > A while ago I put together a pretty complete/opinionat

Re: [Puppet Users] Best practices: client/server VS Git

2014-02-25 Thread Nikola Petrov
On Thu, Feb 20, 2014 at 07:15:50AM -0800, Julien Deloubes wrote: > Hello there, > i'm actually learning Puppet in order to pass the exam. > I have no professional experience on the product yet, and wanting some > feedback from you professional devops. > For the moment i see 2 ways for Puppet to sy

Re: [Puppet Users] Let puppet configure your monitoring (here: nimsoft)

2014-02-25 Thread Nikola Petrov
I am not familiar with nimsoft but I will try to help anyways here - sorry if I am missing something but you can correct me. Let's say you want to monitor the oracle instance: First you specify the nimsoft_oracle_connection you already have written(as I saw from the readme in github) and then on t

Re: [Puppet Users] Use the same resource in two dependent classes

2014-02-18 Thread Nikola Petrov
On Tue, Feb 18, 2014 at 04:25:43AM -0800, zerozerouno...@gmail.com wrote: > On Tuesday, February 18, 2014 1:11:15 PM UTC+1, nikolavp wrote: > > > > class A { > > service {'myservice': > > ensure => 'started', > > } > > > > file { '/etc/default/myservice.conf': > >

Re: [Puppet Users] Use the same resource in two dependent classes

2014-02-18 Thread Nikola Petrov
Hi Marco, On Mon, Feb 17, 2014 at 03:41:14AM -0800, zerozerouno...@gmail.com wrote: > Hi, > I have this situation: > > Class A: contains a File resource, and a Service resource which requires > the File resource (the service needs to be restarted when the file changes). > > Class B: will be app

Re: [Puppet Users] Code coverage for puppet resources

2014-02-05 Thread Nikola Petrov
Bah!! I am waiting for this from months. Thanks so much! Now I will be able to actually measure my coverage and not blindly rely on proper TDD. -- Nikola On Sun, Jan 26, 2014 at 12:50:44PM +, Gareth Rushgrove wrote: > For anyone else who likes writing tests for their puppet manifests, > I'

Re: [Puppet Users] Dynamic Nagios Hostgroup members via collected resources?

2014-01-15 Thread Nikola Petrov
On Tue, Jan 14, 2014 at 08:57:08AM -0800, smalderma wrote: > Greetings All, > > I've referenced a few older discussions about nagios hostgroups and the > nagios_hostgroup resource. I admit I'm somewhat new to this game, so > please excuse my ignorance on the complexities. I'm looking for a way

Re: [Puppet Users] Re: logstash module to control service

2014-01-14 Thread Nikola Petrov
Not that it is related to puppet but you should check their wiki for example proper init scripts. I can remember there were systemd, upstart and normal systemv scripts for logstash. Also is there a reason why you are not using the official module. It suits our needs more than good and it is always

Re: [Puppet Users] Unpleasant puppetlabs experience

2013-12-12 Thread Nikola Petrov
On Sat, Dec 07, 2013 at 10:11:24AM +1300, xav wrote: > On Fri, 2013-12-06 at 11:31 -0500, Jerald Sheets wrote: > > > Please note that the exact same documentation is expected to be used > > for either and people spending crap-tons of money are expected to put > > up with the same issues. This is

Re: [Puppet Users] Create array from node facts

2013-11-22 Thread Nikola Petrov
Hi, take a look at this :). It should do exactly what you want. https://github.com/dalen/puppet-puppetdbquery -- Nikola On Thu, Nov 21, 2013 at 02:15:15PM -0800, JamieC wrote: > I'm looking of a way to create an array of IPs of puppet clients which are > currently assigned a certain class\modu

Re: [Puppet Users] Monitoring services

2013-11-01 Thread Nikola Petrov
You better use another tool for this that will "provision" your process. There are many examples for this: http://smarden.org/runit/ http://upstart.ubuntu.com/cookbook/ http://mmonit.com/monit/ maybe more. I am currently using upstart and it is maybe one of the easiest to setup and integrates wit

Re: [Puppet Users] puppet for deployment of Java apps

2013-08-27 Thread Nikola Petrov
I can only recommend a push based solution(puppet is a pull based). I like python so I use fabric[1] but I know that other shops(ruby based) use capistrano. If the DB will be the only precondition it might be ok to do this with puppet but for something more distributed a push based solution is far

Re: [Puppet Users] Puppet Nagios resources

2013-07-26 Thread Nikola Petrov
You can set Nagios_host { target => "/etc/nagios/conf.d/${::fqdn}.cfg", } somewhere in site.pp file; just make sure it is in the global scope. This is just defining a default parameter for the resource. Note that this is a bad practice as everything global -- Nikola On Mon, Jul 22, 2013

Re: [Puppet Users] Puppet, Yum, Cassandra, openjdk and --nodeps

2013-07-26 Thread Nikola Petrov
This is rather unfortunate. The only way that I can think of is to change the deb/rpm package and serve that on your own. We are using cassandra on some deployment too but force JAVA_HOME explicitly in configuration files to the oracle jdk -- Nikola On Wed, Jul 24, 2013 at 02:29:44PM -0700, P

Re: [Puppet Users] Welcome Cloudsmith to Puppet Labs!

2013-07-18 Thread Nikola Petrov
Glad to hear this is coming. I am currently not using Geppetto for speed considerations but I think that tools are lacking and Cloudsmith can really change that! -- Nikola On Wed, Jul 17, 2013 at 07:05:53PM -0700, Nigel Kersten wrote: > Some of you will already be familiar with Cloudsmith produc

Re: [Puppet Users] Delegation of responsability for SOME things

2013-07-11 Thread Nikola Petrov
Why don't you use some other tool for application deployment? This will make your life a lot easier! In my experience puppet is not the best option for application deployment because it uses "pull" based changes. In some usecases this is just not possible and a push based solution is far better. T

Re: [Puppet Users] Fwd: [Module team] Much ado about modules

2013-07-10 Thread Nikola Petrov
On Tue, Jul 09, 2013 at 09:23:39AM -0700, jcbollinger wrote: > > > On Monday, July 8, 2013 11:02:25 AM UTC-5, Ashley Penney wrote: > > > > > > This is definitely something we want to do and need to do. I've been a > > little hesitant to wade down into the whole "these are the specific > > para

Re: [Puppet Users] Parameterizing "puppet agent --test" with 'puppet agent $svn_branch --test"

2013-07-08 Thread Nikola Petrov
Now sure what you want to achieve here?!?!? If those are different modules or something you can move that as a variable in facter and then run the puppet agent by overriding the fact at runtime Something like this FACTER_MYENVPROPERTY="7.3" puppet agent -t FACTER_MYENVPROPERTY="trunk" puppet agen

Re: [Puppet Users] Re-create my.cnf when using Puppet MySQL module

2013-07-03 Thread Nikola Petrov
You can use custom settings that will be put in /etc/mysq/conf.d/ and will be included in you setup by overriding any setting in my.cnf. Here is an example from our setup: mysql::server::config{ 'my-cool-settings': settings => { 'mysqld'

Re: [Puppet Users] Puppet for Cassandra cluster automation

2013-07-03 Thread Nikola Petrov
I like to use fabric[1] for this. I always think that some things are better done with push tools like fabric instead of pull tools like puppet. Of course there are other tools that solve the same problem and are based on other languages - I just like python [1] http://docs.fabfile.org/en/latest/

Re: [Puppet Users] variables inside variable names

2013-07-03 Thread Nikola Petrov
I think that you are having a problem here because $java is not expanded/interpolated as a variable and the template solves it. You can safely use the fully qualified name and this should work: $java_home = ${java::jdk_1_7_u10::home} Of course if you want to use $java as a variable you will have

Re: [Puppet Users] Puppetmaster performance optimization/best practices?

2013-07-02 Thread Nikola Petrov
Start by setting up passenger. I am always amazed why people even start with mongrel for anything but debugging. The packages from puppetlabs are there and are stable. They will setup the whole thing for you - you just apt-get install or yum install them. Also I am not sure if you will get better

Re: [Puppet Users] Re: trying to get a 32-bit JVM on a 64-bit platform with Package provider

2013-06-24 Thread Nikola Petrov
Package['jdk'] { name => 'jdk.i1586' } will be a better option. Note that I wouldn't use inheritance here but a simple parameter for the package name and move that somewhere else like hiera(although I see that you are using puppet2.7) Inheritance is almost always not the right an

Re: [Puppet Users] puppet node deactivate

2013-06-21 Thread Nikola Petrov
Hi, What is the storage engine behind puppetdb? Can you please provide the hostname for the machine that wasn't deactivated. I can remember that I had some problems with hostnames that contained uppercase characters. -- Nikola On Thu, Jun 20, 2013 at 04:28:40PM -0700, David Kerr wrote: > Hello,

Re: [Puppet Users] Set environment variable that is visible to package installation

2013-06-20 Thread Nikola Petrov
You can get the environment variable from puppet.conf or if it is another variable, you can use facter. As long as you are controlling your packages you can check those after that. -- Nikola On Wed, Jun 19, 2013 at 10:08:46AM -0700, Kevin Lange wrote: > We have RPMs which requires an environment

Re: [Puppet Users] Re: installing carbon / passing PYTHONPATH to pip package provider?

2013-06-11 Thread Nikola Petrov
I also have some packages that were produced with fpm. Here is the script that I am using - https://gist.github.com/nikolavp/5755563 which was borrowed from a blog post I found on the net. You can of course change the versions if you want. Feel free to add dependency metadata to fpm when building

Re: [Puppet Users] Grouping hosts within environments

2013-05-31 Thread Nikola Petrov
Yes you can just tag them from there: accounts::users::accounts: sysadmin: ensure: present home: /home/sysadmin managehome: "true" shell: /bin/bash uid: 4000 gid: sysadmin comment: Systems Admin tags aren't special in any way - th

Re: [Puppet Users] Grouping hosts within environments

2013-05-30 Thread Nikola Petrov
You can always use tags with virtual resources of some sort. Let's say that user1 is in group app1, user2 and user3 are in group app2. You can "tag" those user accounts with that: user{'user1' ... tag => 'app1', } user {['user2', 'user3']: ... tag => '

Re: [Puppet Users] if word1 match so I replaced it with word2

2013-05-23 Thread Nikola Petrov
Hi On Wed, May 22, 2013 at 01:43:23PM -0700, Stan wrote: > Hi > > I would like to replace a word with another in a config file > > if word1 match so I replaced it with word2 > > I looked augeas but it does not seem to. > Can you please tell us the specific configuration format and maybe an ex

Re: [Puppet Users] How to trace an order of all execs ?

2013-05-23 Thread Nikola Petrov
Well you can run echo with the parameters in a wrapper script. I am not sure if puppet has support for this. Of course you can watch the order with --trace --debug but it might not give you the whole command parameter but just the exec title. If you can make those to match you will be ok with

Re: [Puppet Users] Rhel based distro and multiple package version installed

2013-05-20 Thread Nikola Petrov
You should really build packages of java/tomcat with fpm. It will save you so much time and hassle in the end. Want different versions of the same package you just have to name them with the package version - no problem. Let's assume that extract the java distribution in a directory named java-$(

Re: [Puppet Users] module namespace?

2013-05-20 Thread Nikola Petrov
Well we had that problem in the past. I now name my modules with a prefix for the company first letter so if I was working for puppetlabs then I would name the module pmysql. The thing is that most of the time I want convenient "wrappers" for the mysql module provided by puppetlabs or some third pa

Re: [Puppet Users] puppet in an appliance model?

2013-05-18 Thread Nikola Petrov
Hi, Using puppet in standalone mode with puppet apply from a cronjob will work without problems. The only thing that will be missing are exported resources. But you won't need those if this is a single machine. -- Nikola On Fri, May 17, 2013 at 03:52:11PM -0700, Vince Taluskie wrote: > Hey Folk

Re: [Puppet Users] Using puppet to install puppet modules

2013-05-15 Thread Nikola Petrov
I can second that. Not sure why puppetlabs decided to invent yet another package system with it's own problems and metadata definition and updates specifics -- Nikola On Fri, Apr 26, 2013 at 09:02:53AM -0400, Trevor Vaughan wrote: > I usually package the modules that I want in the native package

Re: [Puppet Users] What do YOU do to catch undefined variables

2013-05-13 Thread Nikola Petrov
in the current scope but I found that you also pay a price for that integration. There is no free lunch. -- Nikola On Fri, May 10, 2013 at 10:43:43PM +0200, David Schmitt wrote: > On 10.05.2013 17:08, Nikola Petrov wrote: > >+1 > > > >The vim plugin is the best you can find

Re: [Puppet Users] What do YOU do to catch undefined variables

2013-05-10 Thread Nikola Petrov
+1 The vim plugin is the best you can find if you are already proficient in vim somewhat. I use it in conjuction with https://github.com/SirVer/ultisnips and it can't be better. I found the eclipse too heavy for my needs(although I use it for java development where it shines) -- Nikola On Tue,

Re: [Puppet Users] Using Puppet to trigger a script when error occurs on log file

2013-05-10 Thread Nikola Petrov
You shouldn't search support for this in puppet but in something like monit, upstart or nagios handlers. Puppet isn't suitable for this task although it might be possible it will be hacky. -- Nikola On Tue, May 07, 2013 at 08:19:04AM -0700, Nicola Zanetti wrote: > Hello everyone, > I'm using Pu

Re: [Puppet Users] How to indicate multiple dependency?

2013-05-09 Thread Nikola Petrov
Are those packages defined in different files? If they are in the same file you can just do the following package {['pgk1', 'pkg2']: ensure => 'installed', } -> file { 'file1': ... } If they are in different files you maybe will be able to hack something with the "spaceship operator" but i

Re: [Puppet Users] [ANN] puppet-cleaner 0.2.0

2013-04-30 Thread Nikola Petrov
Looks good to me. I will try to integrate this with the vim puppet support. Nice work -- Nikolavp On Tue, Apr 30, 2013 at 5:51 PM, Gerardo Santana Gómez Garrido < gerardo.sant...@gmail.com> wrote: > Hi Chris, > > you're right. I've fixed the README.md. Thanks! > > El lunes, 29 de abril de 2013

Re: [Puppet Users] install multiple versions with gem provider

2013-04-15 Thread Nikola Petrov
Yes it is possible with defines. You also should include the version number in the name of the gem that is produced. This will allow you to install multiple version of the same package. If you give more info about your setup we might help you even more -- Nikola On Tue, Apr 09, 2013 at 07:03:36

Re: [Puppet Users] Coding style best practise

2013-04-04 Thread Nikola Petrov
Strangely enough, I lately started to move my params out of params classes and into the init class. I really prefer to have example::param1 in my hiera instead of the example::params::param1. Will be glad to hear what the params class actually buys you as a pattern. For me the params class makes m

Re: [Puppet Users] before and after not being honoured

2013-04-02 Thread Nikola Petrov
I think that this is because classes are not applied but are declared. Check the anchor pattern and declare that an puppet::start is declared before the file. I can give you more info when you actually give us the puppet class itself. You can find more info about the anchor pattern here http://pr

Re: [Puppet Users] calling_module vs module_name ?

2013-04-02 Thread Nikola Petrov
Calling module can serve you well if you have a reusable define that is defined in module that is not the same from the one that it is used in. I hope this makes sense... Most of the time I won't recommend this for a hierarchy as it can be hard to reason about it... Best, Nikola On Tue, Apr 02,

Re: [Puppet Users] Ruby (Rack) application could not be started

2013-04-02 Thread Nikola Petrov
Yep. Sometimes I even wonder why are people considering other options. By default I installed the packages from puppetlabs and I have forgotten about it. P.S. I even think that puppetDB should install with postgresql by default. It scales better debugging is much better and maintenance too. Best

Re: [Puppet Users] Confirming nodes and assigning classes in puppet dashboard

2013-03-29 Thread Nikola Petrov
You can look into foreman. I think that this is the best you can get for newbie maintenance support. -- Nikola ;) On Thu, Mar 28, 2013 at 05:18:55PM +0400, Max Lapshin wrote: > I want to setup puppet or chef, or whatever else to help deploy system to a > person, that doesn't know how to write t

Re: [Puppet Users] Rake tests for hiera

2013-03-28 Thread Nikola Petrov
pler test collection to implement. > > Does this paradigm not work for you? > > On Mar 27, 2013, at 7:13 AM, Nikola Petrov wrote: > > > +1 > > > > Last time I tried writing tests, I just gave up because we started using > > hiera > > > > -- &g

Re: [Puppet Users] Rake tests for hiera

2013-03-27 Thread Nikola Petrov
+1 Last time I tried writing tests, I just gave up because we started using hiera -- Nikola On Fri, Mar 22, 2013 at 06:26:09PM +0100, Maarten Thibaut (mthibaut) wrote: > Hi, > > I'm having a hard time figuring out how to make rake spec tests work > correctly with hiera and puppet 3. Should I

Re: [Puppet Users] Augeas lens dependency on valid config file parsing

2013-03-27 Thread Nikola Petrov
I think that this is mostly because of lens that are written this way. We shouldn't blame them that this is "poorly" written in my opinion. It is just more restrictive. Lens that I have written accept a regular expression as an identifier instead of listing them. Best, Nikola On Fri, Mar 22, 2013

Re: [Puppet Users] Discover SO of my nodes

2013-03-06 Thread Nikola Petrov
You have two options(that I am aware of): 1) https://puppetlabs.com/mcollective/introduction/ 2) you can query your storeconfig option(in my case puppetdb + postgre). -- Nikola On Tue, Mar 05, 2013 at 07:06:03AM -0800, Tiago Cruz wrote: > Hello all! > > Using puppet 2.7.9 and Dashboard, I can

Re: [Puppet Users] Puppet MySQL Module

2013-03-05 Thread Nikola Petrov
You can use the database_grant resource type. Here is an example: database_grant { "${user}@${::hostname}/${db}": privileges => ['select'], # anything you want require=> Database_user["${user}@${::hostname}"], } set the $user and $db variables to what you want ;) More information

Re: [Puppet Users] Glassfish automatic installation in Puppet

2013-02-26 Thread Nikola Petrov
t; > Thanks, > Jithin > > > > > > On Tue, Feb 26, 2013 at 3:01 PM, Nikola Petrov wrote: > > > Please run the command outside of puppet or run puppet with > > > > --debug --trace > > > > to see what failed. Error status code of

Re: [Puppet Users] Glassfish automatic installation in Puppet

2013-02-26 Thread Nikola Petrov
[0] at > /etc/puppetlabs/puppet/modules/vidispine/manifests/init.pp:17. > > Thanks, > Jithin > > > > On Tue, Feb 26, 2013 at 2:04 PM, Nikola Petrov wrote: > > > Not sure if this will help you at all but you can try the yes[1] > > command. > &

Re: [Puppet Users] Retrieving the name of the module where a define is used

2013-02-26 Thread Nikola Petrov
> > On Thu, Feb 21, 2013 at 09:20:57PM +0530, Francis Pereira wrote: > > > Thanks Nikola. I didn't know that variable exists. Is there a list of > > > all available variables somewhere ? > > > > > > ~Francis > > > > > > On Feb 21

Re: [Puppet Users] Glassfish automatic installation in Puppet

2013-02-26 Thread Nikola Petrov
Not sure if this will help you at all but you can try the yes[1] command. Try to change your exec to: exec { 'glassfishInstaExe': command => '/usr/bin/yes | /usr/bin/java -Xmx256m -jar /gx/mnt/software/Vidispine/Components/glassfish-installer-v2.1.1-b31g-linux.jar', cwd => '/gx/mnt/softw

Re: [Puppet Users] Retrieving the name of the module where a define is used

2013-02-25 Thread Nikola Petrov
of > all available variables somewhere ? > > ~Francis > > On Feb 21, 2013, at 8:49 PM, Nikola Petrov wrote: > > > Nikola > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe f

Re: [Puppet Users] Regd applying condition

2013-02-25 Thread Nikola Petrov
Check the creates in the exec documentation. It will make the exec type to execute as long as the file *doesn't*exist -- Nikola On Sun, Feb 24, 2013 at 11:04:16PM -0800, yarlagadda ramya wrote: > Hi all, > This is the class i have written for downloading and installing jdknow > i want to a

Re: [Puppet Users] Retrieving the name of the module where a define is used

2013-02-21 Thread Nikola Petrov
Try using the variable *caller_module_name* instead > file { "${cachedir}/${source}": > source => "puppet:///modules/${caller_module_name}/${source}", > > require => File[$cachedir], > } -- Nikola On Thu, Feb 21, 201

Re: [Puppet Users] Certificate nightmares

2013-02-11 Thread Nikola Petrov
I think this should be put somewhere in a wiki or the docs. /me referencing this email for future Best, Nikola On Fri, Feb 08, 2013 at 03:58:22PM -0800, Nick Fagerlund wrote: > If a brand new never-seen-before agent starts up, it goes like this: > > * Do I have a private key? Nope? Better gene

Re: [Puppet Users] Download and unzip to install a webapp

2013-02-11 Thread Nikola Petrov
I can advice you to use fmp[1] for this and build a native debian package for your distribution. The tool also supports rpm with the same configuration almost all the time(at least for me). I think that with fpm, you shouldn't *ever* use a zip again. I have a bunch of Makefiles that build my packa

Re: [Puppet Users] RFC: Default File Permissions

2013-02-08 Thread Nikola Petrov
I have seen this issue for sure many times. I always forget this and when I see it while running with --noop, I change the owner and the group on the file resource. I am +1 on fixing this to have a more deterministic behaviour Best, Nikola On Thu, Feb 07, 2013 at 05:48:58PM -0800, Josh Cooper wro

Re: [Puppet Users] Re: directory mode

2013-02-01 Thread Nikola Petrov
On Thu, Jan 31, 2013 at 05:58:55AM -0800, jcbollinger wrote: > > > On Thursday, January 31, 2013 1:11:25 AM UTC-6, Kubes wrote: > > > > Hello, > > > > I am trying to set all the directroes in the tree to 775 and files to 664 > > with Puppets fie resource. > > > > This woks fine with native chm

Re: [Puppet Users] Puppet service

2013-01-30 Thread Nikola Petrov
On Tue, Jan 29, 2013 at 07:21:06AM -0500, Mamta Garg wrote: > HI All, > > Can any anyone please help me with attached screenshot. > > Actually i am not able to lauch puppet dashboard and when i have tried to > running below command ,getting error. > > puppet resource service puppet ensure=runnin

Re: [Puppet Users] VMware investment in Puppet Labs

2013-01-24 Thread Nikola Petrov
On Wed, Jan 23, 2013 at 07:25:18AM -0800, Luke Kanies wrote: > Hi all, > > I'm proud to announce that VMware has invested $30 million in Puppet Labs: > > http://puppetlabs.com/blog/vmware-invests-30-million-in-puppet-labs/ > > This investment is about continuing to enable us to invest and grow,

Re: [Puppet Users] WebRick role

2013-01-08 Thread Nikola Petrov
On Tue, Jan 08, 2013 at 06:47:55AM -0800, jcbollinger wrote: > > > On Monday, January 7, 2013 11:44:00 AM UTC-6, Garrett Honeycutt wrote: > > > > > > Webrick is useful for doing a demo and learning about Puppet with a > > couple of nodes. It is not at all meant to scale and if you attempt to >

Re: [Puppet Users] Apply manifests on Puppet Managed Nodes from Puppet Master and appending to an existing file

2013-01-02 Thread Nikola Petrov
On Mon, Dec 31, 2012 at 08:51:55AM -0500, Adam Goucher wrote: > On 2012-12-31 7:21 AM, Sivaraman Viswanathan wrote: > > > >Hello All, > > > >I have written a manifest which will upgrade the JAVA to a recent > >version (ex: JDK 6u33 to JDK7) using exec type. The installation > >is nothing but untarr

Re: [Puppet Users] Re: How to manage puppet modules? git submodules? hg subrepositories? own solution?

2012-12-24 Thread Nikola Petrov
On Thu, Dec 20, 2012 at 01:28:04PM -0500, Mason Turner wrote: > We are still using svn, but looking on adapt this to git next year. > > This is a simplified view of our svn repo: > > - nodes > -- dev > --- trunk > --- tags > 20121220-121212 > -- prod > --- trunk > --- tags > - modules > -- a

Re: [Puppet Users] Question on modeling multiple services sharing configuration

2012-12-18 Thread Nikola Petrov
On Mon, Dec 17, 2012 at 10:47:36PM -0800, Roman Shaposhnik wrote: > On Mon, Dec 17, 2012 at 6:46 AM, Nikola Petrov wrote: > > You have a bunch of options for this if I understand you well. You can > > one of the following: > > > > * use augeas with virtual resources

Re: [Puppet Users] Question on modeling multiple services sharing configuration

2012-12-17 Thread Nikola Petrov
You have a bunch of options for this if I understand you well. You can one of the following: * use augeas with virtual resources * use the concat module * use the standard template function with multiple arguments; look at http://docs.puppetlabs.com/guides/templating.html and scroll down to "

Re: [Puppet Users] Help with PuppetDB

2012-12-10 Thread Nikola Petrov
On Fri, Dec 07, 2012 at 08:27:14AM -0800, Nishant Jain wrote: > Hello Everybody, >I am trying to install the puppetdb on the same > machine as am running my puppetmaster. > I am getting the following error when am trying to connect the agent: > > Error: Could not retri

Re: [Puppet Users] custom define type for array with 'case' argument pass to it

2012-12-06 Thread Nikola Petrov
You should consider using a good editor which will show those error for you. You can incorporate puppet-lint for example and it will spot most of the problems and warn you about the double quotes for performance and clarity reasons. Hope that helps :-) Best, Nikola On Wed, Dec 05, 2012 at 04:19:

Re: [Puppet Users] Use random value from an array in a template

2012-12-04 Thread Nikola Petrov
You should really think about this more closely. Imagine you had the *rand* function that gives you an integer from 1..3 now if you define $ipaddress = rand() in your manifest you will now generate a new ipaddress on each puppet agent run. If you want that we can tell you how to do it(I eve

Re: [Puppet Users] checking if DB populated

2012-12-03 Thread Nikola Petrov
I am using the following and it serves us well. Basically it makes sure that the importing is done and executes '&& touch semaphore' file. There are plans to put those into /var/lib/puppet/sql-snippets instead of in /opt but oh well it seems I am too lazy to go and move them on each server now...

Re: [Puppet Users] Puppet & Nagios/NRPE with Plugins...

2012-12-03 Thread Nikola Petrov
Well you can tell puppet to source a whole directory and put it somewhere for you. Here is an example from our nagios application specific manifest class app { #install the app package include app::install include base #generic nagios checks like memory, load, etc include nagios::targ

Re: [Puppet Users] Seeking some Puppet advice for a newbie (specifically Virtualmin/CSF related)

2012-12-01 Thread Nikola Petrov
You can actually install in a custom directory and build a package from that pretty easily. Look at directory provider from https://github.com/jordansissel/fpm on how to do that. Of course you will then want to tweak specific configuration options like IP address through puppet. Hope that helps :

Re: [Puppet Users] Puppet run failing

2012-11-14 Thread Nikola Petrov
On Wed, Nov 14, 2012 at 11:28:54PM -0800, Pradeep Chhetri wrote: > Hello Everyone > > I was getting the error which running > > $ sudo puppet agent -t > > err: Could not request certificate: Retrieved certificate does not match > private key; please remove certificate from server and regenerat

Re: [Puppet Users] Usage of puppet to deploy and configuration manage software patches

2012-11-09 Thread Nikola Petrov
On Fri, Nov 09, 2012 at 08:04:44AM -0800, Christian wrote: > I have some questions in terms of how to use puppet of configuration > management for software patches. My previous approach was it to create a > puppet module for each patch ... Like Patch1 includes (FileA, FileB, > FileC), Patch2 inc

Re: [Puppet Users] Re: puppetdb postgresql Connection refused

2012-11-05 Thread Nikola Petrov
On Mon, Nov 05, 2012 at 07:52:02AM -0800, linux@bami wrote: > Hi, > > we solved the problem. removed all files from /etc/puppetdb/ssl and > ran /usr/sbin/puppetdb-ssl-setup. > > Thanks for the support!! > > greetings > > Daniel > I am glad that you managed to solve it. Best, Nikola > Am Mo

Re: [Puppet Users] Re: puppetdb postgresql Connection refused

2012-11-05 Thread Nikola Petrov
On Mon, Nov 05, 2012 at 06:26:35AM -0800, linux@bami wrote: > Hi, > > so we figured out the first problem. > We had an alias puppetdb.fqdn which was pointing to out puppet dashboard > db. It seems that despite from the entry in the puppetdb.conf, puppet uses > puppetdb as database server. > > w

Re: [Puppet Users] Re: puppetdb postgresql Connection refused

2012-11-05 Thread Nikola Petrov
On Mon, Nov 05, 2012 at 05:36:39AM -0800, linux@bami wrote: > Hi Nikola, > > yes on the puppet master there ist a routes.yaml > > [root@lx1ml puppet]# cat routes.yaml > --- > master: > facts: > terminus: puppetdb > cache: yaml > > And the puppet agent -t runs fine on the puppetdb if we

Re: [Puppet Users] Re: puppetdb postgresql Connection refused

2012-11-05 Thread Nikola Petrov
On Mon, Nov 05, 2012 at 03:32:21AM -0800, linux@bami wrote: > Hi Nikola, > > thanks for the response! > > here are our configs: > > cat /etc/puppet/puppet.conf > > [main] > server = lx1ml.unix.lan > logdir = /var/log/puppet > rundir = /var/run/puppet > confdir = /app/puppet/etc

Re: [Puppet Users] puppetdb postgresql Connection refused

2012-11-05 Thread Nikola Petrov
On Mon, Nov 05, 2012 at 01:40:18AM -0800, linux@bami wrote: > Greetings, > > we are trying to setup puppetdb, nut our clients get the following error: > > Warning: Unable to fetch my node definition, but the agent run will > continue: > Warning: Error 400 on SERVER: Could not retrieve facts for

Re: [Puppet Users] Re: Really long puppet runs...

2012-11-02 Thread Nikola Petrov
Is there any particular reason that you are using an older master than the client. If not now it will pop up as a problem in the future. Why don't you just make the move? Best, Nikola On Fri, Nov 02, 2012 at 08:28:12AM -0700, llowder wrote: > Turns out it was a stray recurse => true > > On Frida

[Puppet Users] PuppetDB + PuppetMaster with Passanger

2012-10-24 Thread Nikola Petrov
Hi everyone, I am trying to configure a puppet master with a puppetdb for storeconfigs backend. I am using Ubuntu 12.10 and the packages from puppetlabs repository. The option I chose for the master is to use passanger as I am far more familiar with apache than with the ruby web servers that ar

Re: [Puppet Users] File optimizations

2012-10-22 Thread Nikola Petrov
On Mon, Oct 22, 2012 at 11:17:52PM +0200, Brice Figureau wrote: > On 23/10/12 01:39, Nikola Petrov wrote: > > On Mon, Oct 22, 2012 at 12:09:45PM -0700, Bostjan Skufca wrote: > >> Hi there, > >> > >> I'm running into slow catalog runs because of many fil

  1   2   >