[Puppet Users] Re: AWS OpsWorks announcement using Chef

2013-02-19 Thread Vaidas Jablonskis
It makes sense for Amazon to go with something like Chef, because it is more cloud oriented and it's easier to hack something up just to get it up and running quicker. Chef is more like shell scripting on steroids I would say, at least, that's how many people use it. On Tuesday, 19 February 201

Re: [Puppet Users] Re: PuppetDB API permissions

2013-02-15 Thread Vaidas Jablonskis
t; group. > To unsubscribe from this group and stop receiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. >

Re: [Puppet Users] Re: PuppetDB API permissions

2013-02-14 Thread Vaidas Jablonskis
On Thursday, 14 February 2013 16:37:01 UTC, Ken Barber wrote: > > > My biggest concern is that nodes can access other nodes resources stored > in > > PuppetDB, which effectively means that parameters like passwords and > other > > sensitive information is exposed. > > If the data is not expor

[Puppet Users] Re: roles, profiles, and hiera

2013-02-14 Thread Vaidas Jablonskis
Hi there, I was going to ask exact same questions too. I am also interested in how people solve these problems. On Wednesday, 13 February 2013 23:17:40 UTC, Chad Huneycutt wrote: > > I have been following the various blog posts about the roles and > profiles pattern for classifying hosts, and I

[Puppet Users] Re: PuppetDB API permissions

2013-02-13 Thread Vaidas Jablonskis
Hi Nick, My biggest concern is that nodes can access other nodes resources stored in PuppetDB, which effectively means that parameters like passwords and other sensitive information is exposed. I also wonder if PuppetDB has any sense of environments? What I mean, does it separate data in envir

[Puppet Users] Re: Daemonize puppet agent but disable periodic runs

2013-02-13 Thread Vaidas Jablonskis
You would have to run your agent daemon wiht '--no-client' parameter. See 'man puppet.conf'. On Wednesday, 13 February 2013 13:49:06 UTC, Andriy Yurchuk wrote: > > I need puppet agent daemon running because I need to access agent's REST > API (http://docs.puppetlabs.com/guides/rest_api.html#the-

[Puppet Users] Re: ruby gems versus yum install

2013-02-13 Thread Vaidas Jablonskis
Hi Oli, I strongly recommend packaging everything up. It makes your life a lot easier in the long term. Package systems like RPM with Yum give you a lot of benefits, like package verification, easy updates, dependency resolution across your system, easy way to uninstall packages etc. The other

Re: [Puppet Users] Refresh Exec resource from a File resource without source =>

2013-01-14 Thread Vaidas Jablonskis
Finished catalog run in 0.13 seconds > > # ./bin/puppet apply /tmp/zzz.pp > > Notice: Finished catalog run in 0.06 seconds > > > > Otherwise, you could always just notify on the package update. > > > > On Mon, Jan 14, 2013 at 6:09 PM, Vaidas Jablonskis >

[Puppet Users] Refresh Exec resource from a File resource without source =>

2013-01-14 Thread Vaidas Jablonskis
Hi Guys, My manifest code looks pretty much like below: exec { 'sync-business-logic': path => "/usr/bin:/bin:${bl_path}", cwd => $bl_path, command => 'sync-bl.pl', refreshonly => true, subscribe => File[$sync_bl_files], } file { $syn

Re: [Puppet Users] Re: hiera default values for a variable

2012-12-05 Thread Vaidas Jablonskis
On Wednesday, 5 December 2012 02:10:00 UTC, Pete wrote: > > On 4 December 2012 21:17, Vaidas Jablonskis > > wrote: > >> Yes, it is that simple. > > > I gave it a go just after I sent my email and it works like a charm. > > > The other way of doing (some

Re: [Puppet Users] Re: hiera default values for a variable

2012-12-04 Thread Vaidas Jablonskis
x27;myvar' inside the class, then you should have it as 'foo::myvar' in hiera data files. Hope this helps. -- Vaidas On Tuesday, 4 December 2012 00:00:21 UTC, Pete wrote: > > On 3 December 2012 22:38, Vaidas Jablonskis > > wrote: > >> Hi Pete, >> &

[Puppet Users] Re: hiera default values for a variable

2012-12-03 Thread Vaidas Jablonskis
Hi Pete, It depends on what version of puppet you use. If you use 3.x, then it has hiera built-in. So it's very simple to write classes which are compatible with v2.7 or v3.x versions. I normally write something like this: class foo( $parameter = undef, ) {...} What that means is that puppe

[Puppet Users] Re: Hiera tool and hiera-puppet returns different data

2012-12-02 Thread Vaidas Jablonskis
x27;common = foo' - 'common2 = foo2' On Sunday, 2 December 2012 21:03:49 UTC, Vaidas Jablonskis wrote: > > See my issue report, I updated it with my finding. It seems to be a bug. -- You received this message because you are subscribed to the Google Groups "Puppet Users&qu

[Puppet Users] Re: Hiera tool and hiera-puppet returns different data

2012-12-02 Thread Vaidas Jablonskis
See my issue report, I updated it with my finding. It seems to be a bug. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/QHF75o_kCMIJ. To post to this group

[Puppet Users] Re: Hiera tool and hiera-puppet returns different data

2012-12-02 Thread Vaidas Jablonskis
Opened up an issue report: http://projects.puppetlabs.com/issues/17896 -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/a96yvzSdAWYJ. To post to this group,

[Puppet Users] Re: Hiera tool and hiera-puppet returns different data

2012-12-02 Thread Vaidas Jablonskis
Adding my hiera.yaml content: # cat /etc/puppet/hiera.yaml --- :hierarchy: - %{environment}/nodes/%{fqdn} - %{environment}/roles/%{role} - %{environment}/common :backends: - yaml #- puppet :yaml: :datadir: '/etc/puppet/hieradata' :puppet: :datasource: 'data' -- You received thi

[Puppet Users] Hiera tool and hiera-puppet returns different data

2012-12-02 Thread Vaidas Jablonskis
Hi People, I came across an issue where hiera command line tool returns a different data to what puppet3.0 builtin hiera does. When I say different data, I mean hiera tool returns an array of items collected throughout the hierarchy, while hiera_array() called from within a manifest returns an

[Puppet Users] [Hiera]: How to solve a yaml files getting large issue?

2012-11-29 Thread Vaidas Jablonskis
Hi People, I use Puppet 3.0 with Hiera using Yaml backend. Everything works great. I am getting to a point where my yaml files a becoming really large, for instance '%{environment}/roles/myapp.yaml' is pretty huge, over a hundred of lines. So it's getting tricky to manage huge files. It contain

[Puppet Users] Re: 2 package resources for the same package installation in two differents modules caused errors

2012-11-06 Thread Vaidas Jablonskis
What I normally do is I create a virtual @package resource which installs php5 for example within say "apache" class and then I realize the virtual resource within the same "apache" class. Please, if you intend to write generic and reusable modules so other people can use, STOP putting hardcode

Re: [Puppet Users] How do you manage SSL/TLS certificates and private keys?

2012-11-06 Thread Vaidas Jablonskis
tself? What would be the best practice in this case? Thanks On Tuesday, 6 November 2012 15:28:39 UTC, Matt Zagrabelny wrote: > > On Tue, Nov 6, 2012 at 7:29 AM, Vaidas Jablonskis > > > wrote: > > Hi People, > > > > I would like some insight from you on

[Puppet Users] How do you manage SSL/TLS certificates and private keys?

2012-11-06 Thread Vaidas Jablonskis
Hi People, I would like some insight from you on how to easily manage SSL certs/keys. My puppet infrastructure is pretty straight forward: puppet3+puppetdb+hiera+hiera-gpg. I am in the process of writing tons of modules, which are pretty general modules with no hardcoded dependencies between t

[Puppet Users] Exclude or disable a class in Hiera (yaml backend)

2012-10-24 Thread Vaidas Jablonskis
Hi People, Let's imagine a scenario where I have multiple nodes, a very simple hierarchy: - nodes/%{fqdn} - roles/%{role} - common So what I am trying to achieve is for instance a class 'foo' is always included in 'common.yaml' and all the nodes will have that class included by default, bu

[Puppet Users] Re: Where do you store sensitive files with puppet+git approach?

2012-10-01 Thread Vaidas Jablonskis
> converted into templates so that only the necessary strings are included > in > > gpg. If we really needed to distribute full files I would probably > build a > > separate directory tree backed by its own repository for this. It's just > > never been necessary

[Puppet Users] Where do you store sensitive files with puppet+git approach?

2012-10-01 Thread Vaidas Jablonskis
Hi People, I have a quick question, which hopefully you will have an answer to. I am slowly moving towards puppet and git with multiple branches for different environments. Things are going pretty well, but now I have a small issue. The question is where should I store sensitive files, for ins

Re: [Puppet Users] hiera() variables with the same name lookup in different modules

2012-09-21 Thread Vaidas Jablonskis
It does! Thanks a lot. Simple, but powerful. On Friday, 21 September 2012 12:21:42 UTC+1, R.I. Pienaar wrote: > > > > - Original Message - > > From: "Vaidas Jablonskis" > > > To: puppet...@googlegroups.com > > Sent: Friday, September 21, 2

[Puppet Users] hiera() variables with the same name lookup in different modules

2012-09-21 Thread Vaidas Jablonskis
Hi poeple, I seem to have a slight issue with Hiera. Let's say I have a number or different modules and they have multiple variables, but some of the variables have the same name like other modules. For instance $password variable in module "foo" and $password variable in module "bar". How can