Re: [Puppet Users] erb question - can you "if val" in an "each do" statement?

2012-07-25 Thread earthgecko
Once again Stefan, thanks. That explanation makes sense. "The thing between <% and %> will be interpreted as ruby code but you mix > in erb syntax inside this ruby fragment. > I once read somewhere that erb was really flexible. I guess not that flexible :) Regards Gary -- You received this

[Puppet Users] Re: Custom providers/types correct location

2012-07-25 Thread David Campos
Excuse me, I did just type from my memory without an exact look to path :). The folder structure that happens to be deployed is the following: Glassfish dir PUPPET\CONFDIR\MODULES\GLASSFISH\LIB \---puppet +---provider | | asadmin.rb | | | +---application | |

Re: [Puppet Users] librarian-puppet vs git superproject?

2012-07-25 Thread Erik Dalén
On 24 July 2012 00:43, Ryan Bowlby wrote: > Can anyone comment on their experiences with librarian-puppet or using git > superproject with per puppet module repositories? We are in the midst of > determining which route is optimal for our environment. It seems like using > git superprojects would

[Puppet Users] Puppet master on Apache Passenger No such file or directory - config/environment.rb

2012-07-25 Thread banjer
Hi, I am trying to configure my puppet master to be served by Apache/Passenger. I was successful in getting puppet-dashboard to run under Apache/Passenger, but have been running into issues with puppet master. When I visit https://foo:8140 in my browser to test things out, I get: Ruby on Ra

Re: [Puppet Users] Re: how to scale puppet with F5 load balancer?

2012-07-25 Thread Matt
> > This was done because of #6663 security concerns, I think you can > modify the puppet keylength settings when generating keys. > > > Hi Nan, I was just highlighting the limitation of the F5 LTM in versions prior to 10.2 since the issue is annoying hard to troubleshoot and was the source

Re: [Puppet Users] Re: how to scale puppet with F5 load balancer?

2012-07-25 Thread Matt
Oh yeah one more thing, when generating the ssl certs it has to be on the puppet.conf at the [main] block because when the client generates its SSL cert it will generate the key at the default keylength as well which as stated causes a problem with client authentication because of the F5 limita

[Puppet Users] Re: Is modulename::parentclass::subclassname ok style?

2012-07-25 Thread llow...@oreillyauto.com
On Tuesday, July 24, 2012 10:25:12 PM UTC-5, Brian Gupta wrote: > > And is the following the best way to support this: (ie: will it be > supported for the foreseeable future.) > > $modulepath/modulename/manifests/parentclass/subclassname.pp the way > the autoloader supports this? > > Yes, thi

[Puppet Users] Re: Is modulename::parentclass::subclassname ok style?

2012-07-25 Thread jcbollinger
On Tuesday, July 24, 2012 10:25:12 PM UTC-5, Brian Gupta wrote: > > And is the following the best way to support this: (ie: will it be > supported for the foreseeable future.) > > $modulepath/modulename/manifests/parentclass/subclassname.pp the way > the autoloader supports this? > Yes. The

[Puppet Users] Re: Passing multiple arrays to define

2012-07-25 Thread jcbollinger
On Tuesday, July 24, 2012 10:35:45 AM UTC-5, Jist Anidiot wrote: > > > > On Tuesday, July 24, 2012 9:31:39 AM UTC-4, jcbollinger wrote: >> >> [...] >> define mything () { >> # $name == $title == the version >> >> $user_and_version = split($name, ':') >> $user = $user_and_version[0] >> $ve

[Puppet Users] Re: Adding resource parameters in inheritence

2012-07-25 Thread jcbollinger
On Tuesday, July 24, 2012 9:17:40 AM UTC-5, olli...@googlemail.com wrote: > > > There is nothing related to this in the debug logs of a run the notify was > put in originally to make sure the class was called which is was. The only > thing in this is that the catalog run completes without error

[Puppet Users] librarian-puppet

2012-07-25 Thread llow...@oreillyauto.com
I've heard this project mentioned a few times and I have found the projects site on github. Is there information available on how to setup the repos that it would pull from (layout etc)? The boxes I would be using this on do not have access to the Puppet Forge but this project looks like it wou

[Puppet Users] Re: Passing multiple arrays to define

2012-07-25 Thread Jist Anidiot
On Wednesday, July 25, 2012 9:29:18 AM UTC-4, jcbollinger wrote: > > > > Something is very strange with that. It is routine practice for > definition bodies to set local variables, and for such definitions to be > instantiated multiple times. Among other things, it is sometimes used to > mangl

Re: [Puppet Users] Method across providers for the same type

2012-07-25 Thread Jeff McCune
On Tue, Jul 24, 2012 at 9:54 AM, ZJE wrote: > I'm still a little confused - is there an example of a type/provider where > this is done correctly? > Thanks! > Not that I know of. You could be the first! =) What's confusing you? As a basic example, here is the initial change set that migrates

[Puppet Users] Purge-like ability for the augeas type?

2012-07-25 Thread Trevor Vaughan
I've been searching around but haven't found a way to do something like a purge with augeas. If you have a file such as [iniheader] entry1 (managed by puppet) entry2 (not managed by puppet) And you want to add 'entry3' as well as removing anything not managed by puppet in that subsection then yo

Re: [Puppet Users] Purge-like ability for the augeas type?

2012-07-25 Thread Dominic Cleal
On 25/07/12 16:01, Trevor Vaughan wrote: > I've been searching around but haven't found a way to do something > like a purge with augeas. > > If you have a file such as > > [iniheader] > entry1 (managed by puppet) > entry2 (not managed by puppet) > > And you want to add 'entry3' as well as remov

[Puppet Users] How to acgieve Inter-Node Dependencies with Puppet?

2012-07-25 Thread ashrith
Hey guys, I am getting started with puppet and started writing some modules which include client-server installation model. I was wondering if there is any possibility of acheving inter-node dependencies using puppet for example: Say, I have dependency between starting servcies on two nodes. Fir

[Puppet Users] can't get custom restart to work on a windows service

2012-07-25 Thread Dan McManus
Hi! I am encountering something that I am not sure is a bug or not, so I thought I'd post a question. Running Puppet 2.7.18 on Windows 2003. Basically, what I want to do is manage nsclient++ on windows. I am able to manage the files just fine, but restarting doesn't work because of bug 13489<

[Puppet Users] Pass arguments from puppetmaster to client

2012-07-25 Thread Swapnil Mankar
I have a puppet master running on 1 node and a puppet client running on another node. I am trying to execute a shell script on the client from the puppet master. The issue is that the script is interactive and expects a couple of inputs initially from the user on the command line. Is there a wa

[Puppet Users] cwd dot folders

2012-07-25 Thread Nikolaos Hatzopoulos
Hi, I am trying to exec { myexectest: path=> "/bin:/usr/bin:/usr/sbin", cwd => "/home/user/.ssh", command =>"echo test > test.txt", onlyif => "test -f test.txt" } it doesnt work any clues why? I think it cannot change directory to a DOT directory please HE

[Puppet Users] manifest variable with sed - problem

2012-07-25 Thread Markus Rekkenbeil
Hello, i have a problem in my sudo manifest file, because in the variable $name comes sometimes usernames like user.lastname, but i need for sudo (includedir */etc/sudoers.d/*) file names with no dots (like user_lastname). I need a new variable, where is the dots change by underscores. My fir

Re: [Puppet Users] manifest variable with sed - problem

2012-07-25 Thread Christopher Wood
On Wed, Jul 25, 2012 at 08:47:14AM -0700, Markus Rekkenbeil wrote: > Hello, > > i have a problem in my sudo manifest file, because in the variable $name > comes sometimes usernames like user.lastname, but i need for sudo > (includedir /etc/sudoers.d/) file names with no dots (like user_lastnam

Re: [Puppet Users] cwd dot folders

2012-07-25 Thread Christopher Wood
On Tue, Jul 24, 2012 at 05:16:01PM -0700, Nikolaos Hatzopoulos wrote: >Hi, > >I am trying to >exec { myexectest: >    path    => "/bin:/usr/bin:/usr/sbin", >    cwd => "/home/user/.ssh", >    command =>"echo test > test.txt", >    onlyif   => "test -f te

Re: [Puppet Users] cwd dot folders

2012-07-25 Thread Hai Tao
I have set up inventory service to save my client's fact, as [master] facts_terminus = inventory_active_record dblocation = {sqlite file path (sqlite only)} dbadapter = {sqlite3|mysql|postgresql|oracle_enhanced} dbname = {database name (all but sqlite)} dbuser = {database user

[Puppet Users] inventory service vs stored config (conflicts?)

2012-07-25 Thread Hai Tao
I have set up inventory service to save my client's fact, as [master] facts_terminus = inventory_active_record dblocation = {sqlite file path (sqlite only)} dbadapter = {sqlite3|mysql|postgresql|oracle_enhanced} dbname = {database name (all but sqlite)} dbuser = {database user

RE: [Puppet Users] manifest variable with sed - problem

2012-07-25 Thread Kinzel, David
>From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] >On Behalf Of Christopher Wood [snip] >You could use an inline template to run the substitution via ruby. Example: > >$java_home = inline_template('<%= /jre-([0-9])u([0-9]+)/.match(name); p = >"/opt/jre1." + $1 + ".0_" +

Re: [Puppet Users] cwd dot folders

2012-07-25 Thread Nikolaos Hatzopoulos
no it is working I made a mistake I kind of confused with test command for: test -e /folder/file does not work on my centos box it needs cwd to the folder --Nikos On Wednesday, July 25, 2012 9:07:49 AM UTC-7, Christopher Wood wrote: > > On Tue, Jul 24, 2012 at 05:16:01PM -0700, Nikolaos Hatzopou

Re: [Puppet Users] cwd dot folders

2012-07-25 Thread Nikolaos Hatzopoulos
this is working: exec { myexectest: path=> "/bin:/usr/bin:/usr/sbin", cwd => "/home/user/.ssh", command =>"echo test > test.txt", unless => "test -e test.txt" } the idea was if a file does not exist just execute something I don't if there is a better way of

Re: [Puppet Users] manifest variable with sed - problem

2012-07-25 Thread Christopher Wood
On Wed, Jul 25, 2012 at 04:43:31PM +, Kinzel, David wrote: > >From: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] > >On Behalf Of Christopher Wood > > [snip] > > >You could use an inline template to run the substitution via ruby. Example: > > > >$java_home = inline_temp

[Puppet Users] export a file from a node to another node

2012-07-25 Thread Nikolaos Hatzopoulos
So let's say you have two nodes node1 and node2 node1 has a text file with one line saying in /etc/mynode.txt: node1 how you receive this information and pass it to node2 using puppet? --Nikos -- You received this message because you are subscribed to the Google Groups "Puppet Users" group.

Re: [Puppet Users] can't get custom restart to work on a windows service

2012-07-25 Thread Josh Cooper
Hi Dan, On Tue, Jul 24, 2012 at 4:00 PM, Dan McManus wrote: > > Basically, what I want to do is manage nsclient++ on windows. I am able to > manage the files just fine, but restarting doesn't work because of bug 13489. I'd recommend trying out the latest version of puppet 2.7.x, directly from g

Re: [Puppet Users] inventory service vs stored config (conflicts?)

2012-07-25 Thread Justin Stoller
they will conflict you should definitely look into puppetdb as a more scalable solution than the active_record terminus for both inventory service and storeconfigs storedconfigs stores resources from your puppet manifests and inventory service stores facts. - Justin sorry for the top post On

Re: [Puppet Users] inventory service vs stored config (conflicts?)

2012-07-25 Thread Hai Tao
storeconfig also store facts, as I can see from the table list after I configured stored config: +--+ | Tables_in_puppet | +--+ | fact_names | | fact_values | | hosts| | inventory_facts | | inventory_nodes | | param_names | | param_val

Re: [Puppet Users] Purge-like ability for the augeas type?

2012-07-25 Thread Trevor Vaughan
Hi Dominic, Yeah, multiple augeas resources is the problem. The comment is a reasonable idea but I think it'll be more work than just falling back to concat. Thanks, Trevor On Wed, Jul 25, 2012 at 11:35 AM, Dominic Cleal wrote: > On 25/07/12 16:01, Trevor Vaughan wrote: >> I've been searching

Re: [Puppet Users] inventory service vs stored config (conflicts?)

2012-07-25 Thread Justin Stoller
On Wed, Jul 25, 2012 at 11:08 AM, Hai Tao wrote: > storeconfig also store facts, as I can see from the table list after > I configured stored config: > > +--+ > | Tables_in_puppet | > +--+ > | fact_names | > | fact_values | > | hosts| > | inv

[Puppet Users] Re: Puppet master on Apache Passenger No such file or directory - config/environment.rb

2012-07-25 Thread banjer
I solved it. My puppetmaster and puppet-dashboard apache configs were conflicting. Looks like it was related to RackBaseURI and RailsBaseURI. Under VirtualHost definition in /etc/httpd/conf.d/puppetmaster.conf I added: RackBaseURI / Under VirtualHost definition in /etc/httpd/conf.d/dashboa

Re: [Puppet Users] Method across providers for the same type

2012-07-25 Thread ZJE
On Wednesday, July 25, 2012 9:57:20 AM UTC-5, Jeff McCune wrote: > > On Tue, Jul 24, 2012 at 9:54 AM, ZJE wrote: > >> I'm still a little confused - is there an example of a type/provider >> where this is done correctly? >> Thanks! >> > > Not that I know of. You could be the first! =) > > What's

Re: [Puppet Users] librarian-puppet vs git superproject?

2012-07-25 Thread Dan Bode
On Mon, Jul 23, 2012 at 8:43 PM, Dan Bode wrote: > > > On Mon, Jul 23, 2012 at 3:43 PM, Ryan Bowlby wrote: > >> Can anyone comment on their experiences with librarian-puppet or using >> git superproject with per puppet module repositories? > > > I tried using git submodules for a long time. I fo

[Puppet Users] Re: export a file from a node to another node

2012-07-25 Thread jcbollinger
On Wednesday, July 25, 2012 12:05:50 PM UTC-5, Nikolaos Hatzopoulos wrote: > > So let's say you have two nodes > node1 and node2 > > node1 has a text file with one line saying in /etc/mynode.txt: > > node1 > > how you receive this information and pass it to node2 using puppet? > The standard me

[Puppet Users] Re: Pass arguments from puppetmaster to client

2012-07-25 Thread jcbollinger
On Tuesday, July 24, 2012 4:38:12 PM UTC-5, Swapnil Mankar wrote: > > I have a puppet master running on 1 node and a puppet client running on > another node. I am trying to execute a shell script on the client from the > puppet master. The issue is that the script is interactive and expects a

Re: [Puppet Users] inventory service vs stored config (conflicts?)

2012-07-25 Thread Hai Tao
what if I need to install foreman, which uses stored config, right? Can foreman use the puppetDB as its database? On Wed, Jul 25, 2012 at 11:33 AM, Justin Stoller wrote: > On Wed, Jul 25, 2012 at 11:08 AM, Hai Tao wrote: >> storeconfig also store facts, as I can see from the table list after >>

[Puppet Users] Re: Passing multiple arrays to define

2012-07-25 Thread jcbollinger
On Wednesday, July 25, 2012 9:55:36 AM UTC-5, Jist Anidiot wrote: > > On Wednesday, July 25, 2012 9:29:18 AM UTC-4, jcbollinger wrote: >> >> >> >> Something is very strange with that. It is routine practice for >> definition bodies to set local variables, and for such definitions to be >> inst

Re: [Puppet Users] Re: export a file from a node to another node

2012-07-25 Thread Nikolaos Hatzopoulos
so we define that file would be exported from node1 like: @@file { "etc/mynode.txt:": content => "${mycontent}" } and on the node2 File <| |>> ?? I want only the info from node1 not from all nodes that means I have to group the nodes for the specific action? who it works here? I am pretty new

[Puppet Users] which version of rails should we use?

2012-07-25 Thread Hai Tao
Hi, when I run "gem install rails", it will install the latest version, 3.2.6, and will also install its dependencies, such as acitverecord 3.2.6. However, this version has a lot of bugs (which is actually from puppet), such as "Error 400 on SERVER: stack level too deep". so, what version shoul

Re: [Puppet Users] cwd dot folders

2012-07-25 Thread Denmat
Check out the "creates" meta parameter. http://docs.puppetlabs.com/references/latest/type.html#exec Den On 26/07/2012, at 2:58, Nikolaos Hatzopoulos wrote: > this is working: > > exec { myexectest: > path=> "/bin:/usr/bin:/usr/sbin", > cwd => "/home/user/.ssh", > co

[Puppet Users] a complete solution for puppet

2012-07-25 Thread Hai Tao
Hi, I notice that many components of puppet do not scale well and are not intended for large environment. For example, stored config and inventory service. In order to scale, we need to use puppetDB, right? Another example is the webrick, and which should be replaced by a decent web server such as

Re: [Puppet Users] a complete solution for puppet

2012-07-25 Thread Christopher Wood
Sounds like you should be talking to your managers about buying Puppet Enterprise. On Wed, Jul 25, 2012 at 02:00:37PM -0700, Hai Tao wrote: > Hi, > > I notice that many components of puppet do not scale well and are not > intended for large environment. For example, stored config and > inventory

Re: [Puppet Users] cwd dot folders

2012-07-25 Thread Nikolaos Hatzopoulos
Yeap that works also exec { myexectest: path=> "/bin:/usr/bin:/usr/sbin", cwd => "/home/user/.ssh", creates=> "/home/user/.ssh/test.txt" command =>"echo test > test.txt", } it needs the absolute path on creates --Nikos On Wed, Jul 25, 2012 at

Re: [Puppet Users] which version of rails should we use?

2012-07-25 Thread Ramin K
On 7/25/2012 1:50 PM, Hai Tao wrote: Hi, when I run "gem install rails", it will install the latest version, 3.2.6, and will also install its dependencies, such as acitverecord 3.2.6. However, this version has a lot of bugs (which is actually from puppet), such as "Error 400 on SERVER: stack le

Re: [Puppet Users] a complete solution for puppet

2012-07-25 Thread Hai Tao
I see. so it is on purpose to make it not easy to use so the enterprise can be sold? :) On Wed, Jul 25, 2012 at 2:02 PM, Christopher Wood wrote: > Sounds like you should be talking to your managers about buying Puppet > Enterprise. > > On Wed, Jul 25, 2012 at 02:00:37PM -0700, Hai Tao wrote: >>

Re: [Puppet Users] a complete solution for puppet

2012-07-25 Thread Stefan Schulte
On Wed, Jul 25, 2012 at 02:00:37PM -0700, Hai Tao wrote: > Hi, > [...] > > My question is why the designer of puppet did not consider this and > integrate everything into a complete solution at the beginning, rather > than having us have to reconfigure everything by hand. Who will use > puppet if

Re: [Puppet Users] a complete solution for puppet

2012-07-25 Thread Christopher Wood
On Wed, Jul 25, 2012 at 02:20:17PM -0700, Hai Tao wrote: > I see. so it is on purpose to make it not easy to use so the > enterprise can be sold? :) There are different skill levels at different tasks in the enterprise space, and it is legitimate that some organizations are better off with a pref

[Puppet Users] why enterprise puppet does not use stored config and puppetdb

2012-07-25 Thread Hai Tao
I just installed PE, and notice that it does not use either stored config nor puppetdb. It uses the activerecord to store facts in a mysql db. Why puppetlabs let us to use these but they do not use them in their enterprise version? Thanks. Hai T. -- You received this message because you are s

[Puppet Users] puppetlabs-nginx & dashboard parameters

2012-07-25 Thread LeonB
I would like to set the nx_daemon_user variable using puppet-dashboard but I can't get it to work. Is this even possible? If I this in my own module: class { 'nginx::params': nx_daemon_user => 'master.pp'; } class { 'nginx': } I get the message: "Invalid parameter nx_daemon_u

Re: [Puppet Users] why enterprise puppet does not use stored config and puppetdb

2012-07-25 Thread James A. Peltier
- Original Message - | I just installed PE, and notice that it does not use either stored | config nor puppetdb. It uses the activerecord to store facts in a | mysql db. | | Why puppetlabs let us to use these but they do not use them in their | enterprise version? | | | Thanks. | | Hai

[Puppet Users] Schema of dependency tree?

2012-07-25 Thread Jakov Sosic
Hi Is it possible to somehow list or view dependency tree of the classes, packages, services, and other resources for some host? I would like to polish my setup so that the first puppet finishes everything. Right now I have problems that I have to have 2 or 3 conncurent runs after installati

Re: [Puppet Users] Schema of dependency tree?

2012-07-25 Thread James A. Peltier
- Original Message - | Hi | | Is it possible to somehow list or view dependency tree of the | classes, | packages, services, and other resources for some host? | | I would like to polish my setup so that the first puppet finishes | everything. Right now I have problems that I have to have

Re: [Puppet Users] a complete solution for puppet

2012-07-25 Thread Jakov Sosic
On 07/25/2012 11:20 PM, Hai Tao wrote: I see. so it is on purpose to make it not easy to use so the enterprise can be sold? :) If you don't know how to migrate puppet to passenger (either on nginx or apache), then I don't understand how come that you are able to configure your machines throug

Re: [Puppet Users] a complete solution for puppet

2012-07-25 Thread Jakov Sosic
On 07/25/2012 11:25 PM, Stefan Schulte wrote: You probably want Puppet Enterprise as it comes with one installer for all these dependencies http://puppetlabs.com/puppet/faq/ Is it a bundle with everything prepackaged? Or does it use system's httpd for example? I hate bundles :D -- Jakov

Re: [Puppet Users] inventory service vs stored config (conflicts?)

2012-07-25 Thread Ohad Levy
On Wed, Jul 25, 2012 at 11:19 PM, Hai Tao wrote: > what if I need to install foreman, which uses stored config, right? > Can foreman use the puppetDB as its database? > foreman doesnt really need store configs, see http://theforeman.org/projects/foreman/wiki/Puppet_Facts Ohad > > On Wed, Jul 2