[Puppet Users] Re: puppet master on the internet

2013-04-29 Thread Klavs Klavsen
Well - as everything else - there can be security issues, where the SSL cert check won't help you: https://puppetlabs.com/security/cve/cve-2013-1640/ So you should definetely be careful - Puppet is very young, compared to apache, openssh and others that have been internetfacing for many, many

[Puppet Users] Sharing data between nodes with hiera

2013-04-29 Thread Luca Gioppo
I have this, I think common, situation: - NodeDB VM with MySQL - NodeApp VM with an application that uses the MySQL DB Obivuously both needs to have information on the DB (like user, DB name, etc.) Since DB will be created in the NodeDB by the MySQL module from puppetlabs and the app will just

Re: [Puppet Users] Re: Design pattern for exported resources from EC2 autoscaled instances

2013-04-29 Thread Keith Burdis
You should be able to cluster Tomcat without using multicast by having a static members list with TCP pings to check the cluster nodes. You could of course use exported resources to create the static members list. Not sure about Glassfish but I'd expect it to be possible to do something similar

Re: [Puppet Users] How do I check whether an imported resource has already been defined?

2013-04-29 Thread Patricia Jung
Am 26.04.2013 um 15:45 schrieb jcbollinger john.bollin...@stjude.org: Moreover, I think that this could probably be handled in a data-driven manner, especially if all the per-customer trees on node A are uniform, or at least characterized by a small number of fixed parameters. That is, you

[Puppet Users] hiera malformed format string - %S

2013-04-29 Thread Luca Gioppo
I'm trying to use hiera. The common.yaml is greg: db_type: mysql db_host: %{::domain} db_name: odaigreg db_user: odaigreg db_password: odaigreg1 db_tag: greg_db is_remote: true and the command hiera -c /etc/puppet/environments/production/hiera.yaml greg

[Puppet Users] checking puppet run status of node A during puppet run of node B

2013-04-29 Thread Schofield
I have some middleware where the successful configuration of node B is dependent on the successful configuration of node A. Node B must pull additional information from node A during its configuration. Is there any built in functionality in puppet for checking the completion status of other

[Puppet Users] Re: can puppet agent use 2 independent puppet master ?

2013-04-29 Thread jcbollinger
On Saturday, April 27, 2013 3:32:36 AM UTC-5, Alex Leonhardt wrote: Hi all, I havent seen a similar post, so thought I'd ask - Is it possible to make a puppet agent use 2 different puppet masters ? One agent is associated with one master. It cannot talk to two. In principle, you

[Puppet Users] Re: Create a file which lists all server names with a given environment variable

2013-04-29 Thread jcbollinger
On Friday, April 26, 2013 12:36:21 PM UTC-5, phundisk wrote: I am presuming that this is something I need to do with stored configs, but there might also be another way to do it. I am looking to create a file called /root/production.servers which will list all my production servers. All

[Puppet Users] Re: Learning puppet: how to use a module?

2013-04-29 Thread jcbollinger
On Sunday, April 28, 2013 4:40:01 AM UTC-5, Leonard Ehrenfried wrote: Hi, I'm currently learning puppet but I have come across something which I can't figure out from the docs. I have a rails app, which needs a few Ubuntu packages installed to work. Some of those come from a PPA, which

[Puppet Users] Re: hiera malformed format string - %S

2013-04-29 Thread Luca Gioppo
OK, solved!! The problem was the TAV character that notepad++ added to the hash. It seems that something in ruby does not like it (do not know ruby so...) If this is the correct behaviour there should be somewhere in the docs a warning for DO NOT USE TABS IN YAML file as it took quite asome

Re: [Puppet Users] checking puppet run status of node A during puppet run of node B

2013-04-29 Thread Keith Burdis
I don't believe there is any existing Puppet functionality that does this though the Capabilities armaturehttps://github.com/puppetlabs/armatures/blob/master/arm-6.capabilities/capabilities.md discusses a potential future solution. You might find

[Puppet Users] Re: Sharing data between nodes with hiera

2013-04-29 Thread jcbollinger
On Monday, April 29, 2013 2:12:54 AM UTC-5, Luca Gioppo wrote: I have this, I think common, situation: - NodeDB VM with MySQL - NodeApp VM with an application that uses the MySQL DB Obivuously both needs to have information on the DB (like user, DB name, etc.) Since DB will be created

[Puppet Users] Puppet Windows - Mapped Network Drive and Service Account

2013-04-29 Thread Kevin D
On Windows 2008 R2 SP1, after joining to the domain, there is an issue with a mapped network drive when Puppet agent runs by the LOCAL SYSTEM service account. Using dependency chaining, a near the beginning module is map-networkdrivez. The module execs a batch file that if Z:\ does not exist

Re: [Puppet Users] Microsoft dotNet Framework 4.0 (.net, .netfx, dotnetfx)

2013-04-29 Thread Kevin D
In order to resolve this limitation, I wrote a PowerShell script to install .NET 4. The script checks if the specified components (MSIs) are installed. If one or all of the components are missing, the script will perform a silent install of 'dotNetFx40_Full_x86_x64.exe'. -Kevin On Tuesday,

[Puppet Users] Re: hiera malformed format string - %S

2013-04-29 Thread Ellison Marks
Tabs are not allowed as indentation in yaml. They are allowed as whitespace. http://www.yaml.org/spec/1.2/spec.html#id2775170 http://www.yaml.org/spec/1.2/spec.html#id2777534 On Monday, April 29, 2013 7:07:55 AM UTC-7, Luca Gioppo wrote: OK, solved!! The problem was the TAV character that

[Puppet Users] Re: How do I automagically remove old versions of jar files?

2013-04-29 Thread Larry Fast
Thank you all. Yes, tidy should be exactly what I need. -- 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+unsubscr...@googlegroups.com. To post to

Re: [Puppet Users] Hiera error in Puppet: undefined method `empty?'

2013-04-29 Thread Felix Frank
Hi John, this is me replying late because I can't thrawl the list that often. On 04/22/2013 10:53 PM, John George wrote: The error message indicates to me that the lookup from Hiera is failing. How so? Anyway, first debugging steps: 1. Does the error disappear when you set $lookup = 'foo'

Re: [Puppet Users] Re: Hiera error in Puppet: undefined method `empty?'

2013-04-29 Thread Felix Frank
Oh, didn't see that at first. Way to go! On 04/22/2013 11:55 PM, John George wrote: I just figured out the error. The keyring had the wrong ownership permissions! I guess writing out the problem can help figure out the issue. Hope this will help someone else save time and effort. -- You

Re: [Puppet Users] ppg: Scheduled rollouts and dashboard with git in decentralized setup

2013-04-29 Thread Felix Frank
Interesting. It seems nicely thought out, but I stumbled here, reading: On 04/23/2013 11:22 PM, Martin Langhoff wrote: I am less certain of this part, and input will be specially valuable here. ppg pullapply will... - apply changes locally, capture stderr/stdout, perhaps more info that

[Puppet Users] Re: Sharing data between nodes with hiera

2013-04-29 Thread Luca Gioppo
I'm new of hiera and I was thinking that it was possible to declare hiera variables just linked to nodes or classes. Indeed the option of getting the data using the hiera() function allows for a common.yaml file to host the global information and thus will follow your suggestion on having

[Puppet Users] Re: hiera malformed format string - %S

2013-04-29 Thread Luca Gioppo
This happens when one doesn't study all specs around :D Thanks. Luca -- 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+unsubscr...@googlegroups.com.

Re: [Puppet Users] Help me with overriding define resource

2013-04-29 Thread Felix Frank
John, you're such a tease ;-) While I mostly agree with the points you're making (as so often), I feel that this thread is incomplete without giving an example of the syntactically correct implementation of the original idea. Note that this approach has a number of issues and should usually be

[Puppet Users] What's my syntax problem: Could not match 'c:/tmp' ?

2013-04-29 Thread Larry Fast
I assume I have a syntax problem of some kind. I created a class file and puppet complains on line 4. If I remove that block of code it complains about the next block. What silly little mistake have I made? The error reported for the code example below is: Could not match ‘george’,

[Puppet Users] [ANN] puppet-cleaner 0.2.0

2013-04-29 Thread Gerardo Santana Gómez Garrido
This release was tested successfully with puppet 3. puppet-cleaner is a set of tools that helps you keep your manifests compliant with the style guide. Website: https://github.com/santana/puppet-cleaner/ How to install: sudo gem install puppet-cleaner -- You received this message because

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

2013-04-29 Thread Chris Hirsch
On 4/29/13 7:43 PM, Gerardo Santana Gómez Garrido wrote: This release was tested successfully with puppet 3. If I understand correctly this should be compatible with puppet 3 so you may want to update your Requirements as it says it's 2.7.11 only. Thank for the work I'll be checking this out

[Puppet Users] rspec-puppet testing with puppet $::settings

2013-04-29 Thread Simon Piette
Hi all, Let's say I have this in a manifest: file { ${::settings::vardir}/files: ensure = directory } And I want to test it in the catalog using: it { should create_file('/var/lib/puppet/files') } It won't work because an mktemp directory is made for vardir for each catalogue. The catalogue

[Puppet Users] High Availability of Puppet server for separate geographical location

2013-04-29 Thread shyam sundar Keshari
Hi Team, I have to configure puppet server in Primary-Secondary mode for 2 distributed location . Site A is already running 1 Puppet server .Now I need to configure another puppet secondary server at site B ,so that all client at location B ,only connect to that server .And site A puppet client

[Puppet Users] augeas

2013-04-29 Thread Stanislas LEVEAU
Hello I use augeas to replace a value in a config file: example (this example is good) : /etc/ssh/sshd_config file LogLevel INFO class ssh::redhat { augeas { sshd_config: context = /files/etc/ssh/sshd_config, changes = [ set LogLevel VERBOSE, ], notify = Service[sshd], } This