[Puppet Users] Re: Passing undef as argument to classes defines overrides default parameter

2014-07-17 Thread jcbollinger
On Wednesday, July 16, 2014 2:33:42 PM UTC-5, Cristian Falcas wrote: Hello, Does anybody know if the issue from https://projects.puppetlabs.com/issues/16221 was implemented after all? The issue tracker says it was. I haven't heard any other commentary or questions suggesting

Re: [Puppet Users] Best Practice - replacing /etc/passwd and +@netgroups

2014-07-17 Thread jcbollinger
On Wednesday, July 16, 2014 9:24:35 AM UTC-5, Betsy Schwartz wrote: Thank you! pam access may well be the right direction to go for us. I'm still sort of boggled that nobody seems to be using puppet for /etc/passwd. That always seemed to us to be the *first* thing we'd want to get

[Puppet Users] Re: Puppet module 'issue' with sysctl provider (augeasproviders)

2014-07-17 Thread jcbollinger
On Thursday, June 19, 2014 7:12:24 AM UTC-5, Stefan Heijmans wrote: with Puppet module and resources in 1 file; - sysctl resources are not set Your data indicate otherwise. - /etc/sysctl.conf updates from the rpm are there with Puppet module and resources in 2 files; - sysctl

[Puppet Users] Re: multiple VMs from a single node.pp file

2014-07-16 Thread jcbollinger
On Tuesday, July 15, 2014 2:09:57 PM UTC-5, randal cobb wrote: Hello, all... I have a scenario where all of our developers (spread geographically around the world) use a VMWare or VirtualBox VM on their local desktop to develop portions of a single product. I've seemed to inherit this

Re: [Puppet Users] multiple VMs from a single node.pp file

2014-07-16 Thread jcbollinger
On Tuesday, July 15, 2014 3:14:42 PM UTC-5, Peter Bukowinski wrote: On Jul 15, 2014, at 3:09 PM, randal cobb rco...@gmail.com javascript: wrote: No. Each vm/puppet agent needs a unique cert. That is incorrect. Agents absolutely may use the same cert. What they may not do is use

Re: [Puppet Users] The combined use of Ubuntu and CentOS

2014-07-15 Thread jcbollinger
On Monday, July 14, 2014 2:27:22 PM UTC-5, Hunter Haugen wrote: Yep, totally possible. The puppet master daemon is platform-agnostic and uses the information sent from the agent (via `facter`) to know how to compile the catalog. AND, the agent adapts to the tools provided by its host

Re: [Puppet Users] Re: duplicated resource with an exported resource

2014-07-15 Thread jcbollinger
On Monday, July 14, 2014 8:55:38 AM UTC-5, Kristof Willaert wrote: [snip] You will not be able to collect that resource on the node that exports it (you would again -- and rightfully -- get a duplicate resource complaint), but I think otherwise you should be ok. The documentation

[Puppet Users] Re: Duplicate declaration with nested create_resources

2014-07-15 Thread jcbollinger
On Monday, July 14, 2014 8:08:51 AM UTC-5, Joao Morais wrote: Em sexta-feira, 11 de julho de 2014 11h11min17s UTC-3, jcbollinger escreveu: So, I'm interpreting the hiera data as providing configuration details that, if present, apply to every 'myservice', at least as defaults

[Puppet Users] Re: duplicated resource with an exported resource

2014-07-14 Thread jcbollinger
On Saturday, July 12, 2014 6:05:35 AM UTC-5, Jose Luis Ledesma wrote: Hi all, I have found a problem setting up exported resources. The problem is that for every hosts I want to define in its /etc/hosts the primary ip, but I want to export a secondary ip with the same hostname that

Re: [Puppet Users] duplicated resource with an exported resource

2014-07-14 Thread jcbollinger
On Monday, July 14, 2014 5:22:13 AM UTC-5, Jose Luis Ledesma wrote: Hi, Shall this be a bug? Teorically a exported resource is not applied in the managed node if you don't collect it, so it should not collide with an applied resource. thoughs? I understand your argument, but it is

Re: [Puppet Users] Failed to find [host] via exec

2014-07-14 Thread jcbollinger
On Sunday, July 13, 2014 10:47:26 AM UTC-5, Taylor Leese wrote: The work around I went with is to just avoid the require 'puppet' line in my external node classifier so I can avoid this issue completely. I just ignore the first line of the YAML file in /var/lib/puppet/yaml/facts/ and do

[Puppet Users] Re: Duplicate declaration with nested create_resources

2014-07-11 Thread jcbollinger
On Thursday, July 10, 2014 9:03:14 AM UTC-5, Joao Morais wrote: Hello list, I have some services that may be duplicated in some machines. They are much like an Apache vhost. In order to remove details from my manifests, I moved the service names to ENC because they are

Re: [Puppet Users] Editing fstab with Augeas

2014-07-09 Thread jcbollinger
On Tuesday, July 8, 2014 10:22:41 AM UTC-5, Kim Scarborough wrote: Hmm. I don't believe mount will do what I want, as every server has different NFS mounts I need to modify. Can I say modify every NFS mount so that it's nosuid without actually specifying the mountpoints? No, you cannot

[Puppet Users] Re: Puppet uses catalog of node B for node A

2014-07-09 Thread jcbollinger
On Wednesday, July 9, 2014 3:08:58 AM UTC-5, Helmut Rickel wrote: Hello, I installed puppet 2.6.17, 3.4.3 and finally 3.6.2 on SLES 11 SP1 or SLES 11 SP3 and always ran in this problem: Puppet is using the wrong catalog on some nodes. I can run „puppet agent –t“ many times on node A

[Puppet Users] Re: delete files from Master server

2014-07-08 Thread jcbollinger
On Tuesday, July 8, 2014 4:05:48 AM UTC-5, Satish Katuru wrote: Hi , My intention is to deleted the files from Master server once the deployment is over on agent machines. How can i achieve this? Once I execute *puppet agent -t *deployment will be done on agent machine.After this I

[Puppet Users] Re: Regarding Puppet Agent process on Agent Machine

2014-07-08 Thread jcbollinger
On Tuesday, July 8, 2014 3:47:25 AM UTC-5, Satish Katuru wrote: Hi, I linked both Master and Agent machines.But I am unable to see the Agent process on Agent machine. Can we have the Agent process on the Agent machine? I used below command to get the latest code puppet agent -t

[Puppet Users] Re: Package install from a URL

2014-07-08 Thread jcbollinger
On Monday, July 7, 2014 3:54:50 PM UTC-5, Jonathan Rose wrote: I tried fiddling around with a puppet module I am writing to install RPM's both from repository as well as local resources (e.g. http) and tried the advise noted by David Caro, but I'm still getting error messages: Skipping.

[Puppet Users] Re: Execute commands on puppet master

2014-07-08 Thread jcbollinger
On Monday, July 7, 2014 4:26:47 AM UTC-5, shashank sinha wrote: Hello, I am working on some project where I need to execute scp command on puppet master to copy files from some external server to module/files/* each time when puppet agent pull request received to master.I want something

[Puppet Users] Re: Apt: Execute sources before builddep

2014-07-07 Thread jcbollinger
On Saturday, July 5, 2014 9:22:38 PM UTC-5, David Mohl wrote: Hello, I am scratching my head on this one. For a project, I need to compile a package from source that depends on a apt source package. Since I am managing package sources with puppet, I need apt-get builddep to be executed

Re: [Puppet Users] Making a node use a different manifest

2014-07-07 Thread jcbollinger
On Monday, July 7, 2014 8:01:18 AM UTC-5, Roger Sherman wrote: Hi Den, and thank you for the response. There is some data that will need to be rsynced, but mostly it's drawing from mysql nodes, and not storing or creating data itself. One issue, though, that I wonder if just copying and

Re: [Puppet Users] My hiera entries parse incorrectly

2014-07-07 Thread jcbollinger
On Monday, July 7, 2014 9:18:07 AM UTC-5, Marc Whittaker wrote: Thanks for the suggestions Rich. I did try double quotes and the result if the same so still no progress. Yours is neither a single-quoted nor a double-quoted value. It is an unquoted value with a single quotes somewhere in

[Puppet Users] Re: how to force an error

2014-07-03 Thread jcbollinger
On Thursday, July 3, 2014 5:21:33 AM UTC-5, Jose Luis Ledesma wrote: Hi, Does exist some way to force a error while applying the catalog? We need to check some facts vs configuration and force an error if doesnt' match, so we could have a report from the node in the puppetdb with the

[Puppet Users] Re: rpm exits 0 on scriptlet failure

2014-07-03 Thread jcbollinger
On Wednesday, July 2, 2014 9:51:10 AM UTC-5, Raul Macian wrote: I have a problem that starts to make me think that puppet is not usable to install packages. I will explain: That's a whopper of a claim. Don't let any of the thousands of people who do use Puppet to install packages hear

[Puppet Users] Re: Service start and stop

2014-07-03 Thread jcbollinger
On Wednesday, July 2, 2014 8:33:08 AM UTC-5, Satish Katuru wrote: Hi, Please see my init.pp file. First I am stopping the Jboss server and then deleting few folders,copying files and then trying to start the service. When I place file copy statements it is not working. With out file

[Puppet Users] Re: How to handle java home in module?

2014-07-02 Thread jcbollinger
On Wednesday, July 2, 2014 5:06:46 AM UTC-5, Gavin Williams wrote: Morning all I'm currently working on a module[1] to support installation and configuration of Apache Karaf[2], a Java OSGi container... I've got most of the installation piece sorted, and am starting to work on the

[Puppet Users] Re: Puppetlabs Firewall

2014-07-02 Thread jcbollinger
On Tuesday, July 1, 2014 9:30:57 AM UTC-5, Danny Roberts wrote: I am using the Puppetlabs firewall module to manage our firewall. All servers get our core ruleset: *[...]*This worked perfectly when I spun up a server with no role (and therefore no extra rules. However when I spun up

[Puppet Users] Re: issue in generating password sha-512 hash for centos

2014-07-01 Thread jcbollinger
On Tuesday, July 1, 2014 5:44:17 AM UTC-5, Suresh P wrote: Hi, user_password=test123 pass = generate('/bin/sh, '-c', python -c 'import crypt;print crypt.crypt('$user_password','\$6\$mpouwk')'|tr -d '\n' ), In above case i'm not able to generate sha-512 password hash. Of course

Re: [Puppet Users] Stop and Start Services running on Puppet Master or Agent Machine

2014-07-01 Thread jcbollinger
On Tuesday, July 1, 2014 3:32:12 AM UTC-5, Satish Katuru wrote: Yes,the folder is present in the Agent machine.The thing is in the Master Server it is unable to locate the Source file itself. Not necessarily. The master is unable to *read* the file, but that does not necessarily mean it

[Puppet Users] Re: Delete file under dynamic folder ?

2014-06-30 Thread jcbollinger
On Friday, June 27, 2014 3:40:29 AM UTC-5, Jérémy D wrote: Hello, I need delete file : /usr/lib/zsh/4.3.17/zsh/newuser.so But version will change and i don't find how to for this scenario file { /usr/lib/zsh/??/zsh/newuser.so: ensure = absent, require =

Re: [Puppet Users] Stop and Start Services running on Puppet Master or Agent Machine

2014-06-30 Thread jcbollinger
On Monday, June 30, 2014 7:06:22 AM UTC-5, Satish Katuru wrote: Hi Brain, Here is the detailed steps: *Error: /Stage[main]/Httpd/File[/etc/puppet/modules/hello.txt]: Could not evaluate: Could not retrieve information from environment production source(s)

[Puppet Users] Re: Resource: destroy before create?

2014-06-30 Thread jcbollinger
On Friday, June 27, 2014 3:45:49 AM UTC-5, Andreas Schuster wrote: Hi all, i have written a own resource type to manage Interfaces, ipaddresses and mor on Solaris systems. I also enabled purging for the ipaddress resources to destroy no longer included ipaddresses in a catalogue

[Puppet Users] Re: 2-3 unlisted incompatible change to array slices?

2014-06-26 Thread jcbollinger
On Wednesday, June 25, 2014 4:44:27 PM UTC-5, mpou...@afilias.info wrote: While migrating our local modules from puppet 2 to puppet 3 I think I've found a backwards-incompatible change that's not listed in the release notes. I'd like to verify that what I'm seeing is expected, and make

[Puppet Users] Re: Error 400 on SERVER: Could not find data item wls_jdk_version in any Hiera data file and no default supplied at /etc/puppetlabs/puppet/environments/testing/modules/weblogic_esb/mani

2014-06-26 Thread jcbollinger
On Wednesday, June 25, 2014 3:31:10 PM UTC-5, Supriya Uppalapati wrote: It's very hard to follow your YAML because it has been viciously munged by your mailer. Maybe the unmunged form is ok. I'd be inclined to suspect the data hierarchy set out in your hiera.yaml, or the location of the

[Puppet Users] Re: What is the execution order in a manifest file

2014-06-26 Thread jcbollinger
On Wednesday, June 25, 2014 7:04:16 AM UTC-5, Malintha Adikari wrote: When I execute this manifest what is the order of the above 3 elements execution. I have noticed the they are executed in mixed order. No, they're not. Declarations in any manifest are processed to-to-bottom,

[Puppet Users] Re: resources type and different providers

2014-06-26 Thread jcbollinger
On Thursday, June 26, 2014 9:25:44 AM UTC-5, Cristian Falcas wrote: Hello, I'm trying to make a new provider for the firewall type ( for amazon security groups ). But I'm trying to use both providers inside the catalog: some rules I need for iptables only (for ex. nat rules), others

Re: [Puppet Users] Re: apache module class order issue with ENC

2014-06-25 Thread jcbollinger
On Tuesday, June 24, 2014 9:49:19 AM UTC-5, treydock wrote: I was a bit vague in my report initially, will try to clarify. The error about undefined method = for :undef is due to using version 1.0.1 of the module which did not have the fix for MODULES-910. The fact the value was :undef

[Puppet Users] Re: Is there a way to use ruby commands inside puppet manifest

2014-06-25 Thread jcbollinger
On Tuesday, June 24, 2014 6:14:00 AM UTC-5, Malintha Adikari wrote: Hi, I have faced a blocker in my manifests. I am using external facters and I use those external facters inside my templates ( after parsing it to xml ). I want to do the same thing in my manifets as I want to get some

[Puppet Users] Re: Rethinking Puppet modules

2014-06-24 Thread jcbollinger
on these matters. I might be obsessive about modules, but I think that it's here where we play the most important game on user code reusability. On Friday, June 20, 2014 5:04:28 PM UTC+2, jcbollinger wrote: I have never accepted the premise that reusable as applied to Puppet modules has to mean

Re: [Puppet Users] Re: Rethinking Puppet modules

2014-06-24 Thread jcbollinger
On Monday, June 23, 2014 10:52:48 AM UTC-5, Alessandro Franceschi wrote: On Friday, June 20, 2014 8:01:49 PM UTC+2, Trevor Vaughan wrote: +1 to everything that John has said. While many Forge modules are not useful to me out of the box, I have had good luck modifying them to meet my

[Puppet Users] Re: Hiera lookup failure on nested array - undefined method `[]' for nil:NilClass

2014-06-24 Thread jcbollinger
On Monday, June 23, 2014 7:29:59 AM UTC-5, Rob Shand wrote: Hi All, So this was working on a Puppet Enterprise 3.2 puppet master but when testing on a 3.4 Puppet Master I'm getting the following failure 'undefined method `[]' for nil:NilClass' . So I know that this is telling me it's

[Puppet Users] Re: Upgraded a legacy system's agent -- getting funky errors

2014-06-23 Thread jcbollinger
On Friday, June 20, 2014 9:44:59 AM UTC-5, Salty Old Cowdawg wrote: Just after upgrading one of my legacy systems with a new puppet agent I noticed the agent wasn't running any more. Running the agent in test mode I see: Error: Could not create resources for managing Puppet's files and

[Puppet Users] Re: apache module class order issue with ENC

2014-06-23 Thread jcbollinger
On Sunday, June 22, 2014 12:43:20 AM UTC-5, treydock wrote: I'm attempting to use puppetlabs-apache with all my classes defined via Foreman (1.5.1) with Puppet 3.4.3. Servers are all CentOS 6.5. With puppetlabs-apache-1.0.1 when I applied both the apache class and apache::mod::ssl class

Re: [Puppet Users] Re: Setting file level ACL

2014-06-20 Thread jcbollinger
On Thursday, June 19, 2014 8:43:23 AM UTC-5, Rob Reynolds wrote: John, Please vote/comment on this issue: https://tickets.puppetlabs.com/browse/MODULES-962 I may do so, but I suppose you meant to say Dennis -- the person who called this thread back from the dead. John -- You

[Puppet Users] Re: Rethinking Puppet modules

2014-06-20 Thread jcbollinger
On Thursday, June 19, 2014 11:09:22 AM UTC-5, Alessandro Franceschi wrote: Hi all, I've written a blog post with my opinions on the current modules ecosystem: http://www.example42.com/2014/05/31/rethinking-modules-part-1/ The post talks about : What are the reusability features a module

Re: [Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-19 Thread jcbollinger
On Thursday, June 19, 2014 2:48:19 AM UTC-5, shlo@gmail.com wrote: *It's work. * It was spelling problem, I change it now to: *node_terminus = exec. * Good. And it work when 'external_nodes =' with or without the ' /usr/bin/env

[Puppet Users] Re: Connection timed out - connect(2) when using puppet module

2014-06-18 Thread jcbollinger
On Wednesday, June 18, 2014 12:14:21 AM UTC-5, Torsten Kleiber wrote: Am Dienstag, 17. Juni 2014 15:03:20 UTC+2 schrieb jcbollinger: You mean you have set these in your puppet.conf or in your environment? If the former then which one (file system path) and which section? Are you

[Puppet Users] Re: Open puppet port(s) to the internet

2014-06-18 Thread jcbollinger
On Tuesday, June 17, 2014 12:19:08 PM UTC-5, jmp242 wrote: I probably don't really understand much about how puppet connects to the clients, but is there a big security risk about opening it up to the internet so laptops can get their configuration... If it's safe enough for any value of

Re: [Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-18 Thread jcbollinger
On Wednesday, June 18, 2014 8:10:38 AM UTC-5, shlo@gmail.com wrote: Hi, I still can make the ENC work on my puppet server. General: Puppet server: 3.3.1 Puppet agent: 2.7.25 That's a potential problem, but not likely the one you're currently fighting. The master provides as much

[Puppet Users] Re: Connection timed out - connect(2) when using puppet module

2014-06-17 Thread jcbollinger
On Tuesday, June 17, 2014 4:46:47 AM UTC-5, Torsten Kleiber wrote: Have nobody a hint? I have set http_proxy and https_proxy. You mean you have set these in your puppet.conf or in your environment? If the former then which one (file system path) and which section? Are you running as

[Puppet Users] Re: Large files over puppet

2014-06-17 Thread jcbollinger
On Tuesday, June 17, 2014 3:45:57 AM UTC-5, Félix Barbeira wrote: I always heard that serve large files over puppet is a bad practice. But...I guess it depends of what you consider a large file. Everyone agree that serve for example a 25MB file over puppet it's definitely not

[Puppet Users] Re: Puppet new deployment questions - deployment patterns, sensitivity to network errors, and certificate headaches.

2014-06-17 Thread jcbollinger
On Monday, June 16, 2014 2:33:12 PM UTC-5, Stephen Morton wrote: I've got some newbie puppet questions. My team has a tremendous amount of linux/computer knowledge, but we're new to Puppet. We recently started using puppet to manage some 100 servers. Their configs are all pretty similar

Re: [Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-17 Thread jcbollinger
On Tuesday, June 17, 2014 8:19:59 AM UTC-5, shlo@gmail.com wrote: I read the documentation. I send yesterday example of my perl ENC code and the output. I'm sending them again: #!/usr/bin/perl -w use strict; use YAML qw(Dump); my $hostname = shift || die No

Re: [Puppet Users] trying to install jdk1.7 using rpm in a different directory

2014-06-11 Thread jcbollinger
On Wednesday, June 11, 2014 7:03:16 AM UTC-5, Supriya Uppalapati wrote: Hi, The answer for installing java using rpm in different locations is class java_rpm { $version = 'jdk-7u25-linux-x64.rpm' package { $version: provider = rpm, #exec {$version: install_options =

[Puppet Users] Re: Help: OpenSource Puppet DB install on RedHat 6

2014-06-11 Thread jcbollinger
On Tuesday, June 10, 2014 3:18:23 PM UTC-5, GregC wrote: I cannot get around the problem of connecting my Puppet Master 3.6 to PuppetDB 2.0.1 THis is the opensource version. I installed the puppet and puppetdb from rpm packages. I continually get this error: Warning: Unable to

[Puppet Users] Re: Puppet + hiera file backend problem

2014-06-10 Thread jcbollinger
On Tuesday, June 10, 2014 2:37:42 AM UTC-5, Christian Charpentier wrote: I have a file accounts.victorbuckservices.com.conf and not an .erb template. Actually, it probably *is* a trivial ERB template, even though it was not written as one. As long as it does not contain the

Re: [Puppet Users] Problems with starting service

2014-06-09 Thread jcbollinger
On Friday, March 16, 2012 4:09:25 AM UTC-5, Luis Festas Matos wrote: Hi Gary, I'm trying to start sshd. But the command to start sshd is service ssh start at least on the prompt line. If I change it to 'sshd' on the params class it gives me the following error: err:

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

2014-06-09 Thread jcbollinger
On Friday, June 6, 2014 9:30:56 AM UTC-5, 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 of

Re: [Puppet Users] How to create different types from the same hiera data

2014-06-05 Thread jcbollinger
On Wednesday, June 4, 2014 10:34:11 AM UTC-5, Vadym Chepkov wrote: On Wednesday, June 4, 2014 9:52:44 AM UTC-4, Felix.Frank wrote: Hi, On 06/04/2014 03:32 PM, Vadym Chepkov wrote: File[ensure=directory] - Mount[type=nfs,ensure=mounted] Is this possible or I have to maintain two

[Puppet Users] Re: unable to execute shell script through non root user

2014-06-05 Thread jcbollinger
On Wednesday, June 4, 2014 10:33:55 AM UTC-5, Supriya Uppalapati wrote: Hi, I am trying to run shell script through non root user in puppet facts. Here is my code. * $cat cis_rhel6_check.rbrequire 'facter'* *Facter.add(cis_rhel6_check) do setcode do %x[ sh

Re: [Puppet Users] what is actually undefined method 'include?' for nil:NilClass on node error?

2014-06-05 Thread jcbollinger
On Thursday, June 5, 2014 5:47:44 AM UTC-5, Sans wrote: No such ENC (other than Hiera). There is also no static node declaration in Puppet; that comes from Hiera. But again, rest of the 50-odd nodes are running just fine the very same way. The exception is being thrown by this

[Puppet Users] Re: Connection refused on cloned host

2014-06-05 Thread jcbollinger
On Thursday, June 5, 2014 7:10:50 AM UTC-5, Harold Thurnstein wrote: Hi, I have just cloned a VM and on the cloned VM I have changed the hostname and ip address. I have cleaned out /etc/puppet/ssl on the host, run a puppetca --clean 'new hostname' and have restarted the puppet master on

Re: [Puppet Users] puppetdb puppet-terminus and updated ruby version

2014-06-05 Thread jcbollinger
On Thursday, June 5, 2014 10:37:46 AM UTC-5, JuanBrein wrote: I see, it is a gap in the installation though... For a non-recommended installation path. I mean you can install ruby through RVM, ... but you shouldn't ... then puppet as a gem, ... but you shouldn't ... but

[Puppet Users] Re: Controlling the order of stop/starts on refresh between dependent services.

2014-06-03 Thread jcbollinger
On Monday, June 2, 2014 5:04:55 PM UTC-5, Paul Gale wrote: Hi, Using Puppet v2.7.25. I have two services that have a refresh dependency between them, namely: Service['foo'] ~ Service['bar'] This equates to: stop/start 'foo' then stop/start 'bar', whenever 'foo' is refreshed.

[Puppet Users] Re: Puppet dashborad ENC script output blank

2014-06-03 Thread jcbollinger
On Monday, June 2, 2014 3:12:39 PM UTC-5, Satish Patel wrote: No, I didn't define any class in Dashbaord... I thought ENC script will feed those classes in Dashbaord web interface You have it backward. The classes shown in Dashboard are about using Dashboard as an ENC to assign classes

Re: [Puppet Users] Re: Conditional Creates Attribute

2014-06-03 Thread jcbollinger
On Monday, June 2, 2014 9:05:55 AM UTC-5, Henrik Lindberg wrote: On 2014-29-05 19:59, jcbollinger wrote: You want creates = undef for that approach (no quotes). That's an affirmative declaration of not specifying any value, even an empty one, for the given parameter

Re: [Puppet Users] params.pp/inheritance/defaults/hiera/hiera functions?

2014-06-02 Thread jcbollinger
On Friday, May 30, 2014 8:48:18 AM UTC-5, Brian Mathis wrote: It sounds like you need to read through these: http://garylarizza.com/blog/2014/02/17/puppet-workflow-part-1/ http://garylarizza.com/blog/2014/02/17/puppet-workflow-part-2/ I don't see why you'd want to remove parameters

Re: [Puppet Users] params.pp/inheritance/defaults/hiera/hiera functions?

2014-06-02 Thread jcbollinger
On Saturday, May 31, 2014 4:46:58 PM UTC-5, Robin Bowes wrote: I think the most important thing is to not hardcode hiera() functions in modules. That gives the flexibility for the users of the modules to either rely on automatic parameter lookup (APL) or explicitly pass in the

Re: [Puppet Users] Puppet 3.4.3 - Ruby in ERB

2014-06-02 Thread jcbollinger
On Friday, May 30, 2014 5:10:57 PM UTC-5, Mike Delaney wrote: bucket and @bucket are two different variables. The main change in ERB templates between 2.7 and 3.x was deprecating the use of non-class variables to pass information from the calling scope into the template. Perhaps you got

Re: [Puppet Users] what is actually undefined method 'include?' for nil:NilClass on node error?

2014-06-02 Thread jcbollinger
On Saturday, May 31, 2014 2:53:52 PM UTC-5, Sans wrote: Good catch Ellison; I haven't noticed that but nope, nothing unusual from facter on the affected node. Now running puppet agent -tv with certificate cleared from both master and agent yields these: notice: Starting Puppet master

Re: [Puppet Users] Using Hiera to Populate Defined Type in Puppet 3.6

2014-06-02 Thread jcbollinger
On Thursday, May 29, 2014 2:39:15 PM UTC-5, Brian Wilkins wrote: Solved it using this tip.. it's odd but it works: http://serverfault.com/a/538877/26514 That's odd only inasmuch as the original problem in that serverfault question was different from yours. The OP was trying to achieve a

Re: [Puppet Users] is there any any wat to create directoryies using hiera

2014-05-29 Thread jcbollinger
On Wednesday, May 28, 2014 10:24:25 AM UTC-5, Jeremy wrote: On 28.05.2014 11:03, Supriya Uppalapati wrote: Hi, I have created directories in puppet/manifests/init.pp more init.pp class createdirectory { file { [ /u01/app/,/u01/oracle, /u01/oracle/product, ]: ensure =

[Puppet Users] Re: Custom Fact Help? Works in ruby, but not facter...

2014-05-29 Thread jcbollinger
On Wednesday, May 28, 2014 9:16:47 AM UTC-5, smalderma wrote: Hi, I'm working on custom fact that uses Facter::Util::Resolution.exec to run a command that returns output I want to parse with regex. If I write up a ruby shell script like: #!/usr/bin/ruby out = `command` out =

[Puppet Users] Re: Implicit conversion of string to integer error with ec2_userdata

2014-05-29 Thread jcbollinger
On Tuesday, May 27, 2014 2:26:51 PM UTC-5, mhoey wrote: I recently installed a puppet 3.4.3 puppetmaster. I am working on a project to convert all of our manifests over from 2.7 to 3.4.3. While trying to run a master/agent setup on the puppetmaster itself, I am getting the following

[Puppet Users] Re: Setting mountpoints as immutable

2014-05-29 Thread jcbollinger
On Tuesday, May 27, 2014 3:04:50 PM UTC-5, nix wrote: I would like puppet be able to set the immutable attribute on selected directory mount points before mounting on CentOS. That's not gonna happen unless you can be certain that Puppet will run only when there isn't yet anything

[Puppet Users] Re: Conditional Creates Attribute

2014-05-29 Thread jcbollinger
On Thursday, May 29, 2014 9:23:54 AM UTC-5, Mark McFate wrote: I'm probably going about this all wrong, but I have an instance where I've employed a Puppet module and need to *sometimes* add a creates attribute to one of the exec's defined there. My code (below) is probably all wrong,

[Puppet Users] Re: EC2 autoscaling reusing hostnames

2014-05-28 Thread jcbollinger
On Tuesday, May 27, 2014 6:23:41 AM UTC-5, Hugh Cole-Baker wrote: Am I missing a configuration option in the manual to somehow disable SSL certificate validation? Does everybody add a cron job to their puppet master to stop the puppetmaster daemon and blow away its SSL directory then

[Puppet Users] Re: Puppet and Dpkg Locks ...

2014-05-27 Thread jcbollinger
On Friday, May 23, 2014 9:01:26 PM UTC-5, Matt W wrote: When you have hundreds of hosts and run Puppet every 30 mins (splayed across the hour), it seems that you end up running into various 'dpkg' locks fairly randomly and at a surprisingly high occurrence (once or twice a day at least).

Re: [Puppet Users] Re: using storeconfigs and exported resources

2014-05-27 Thread jcbollinger
On Friday, May 23, 2014 3:37:33 PM UTC-5, Ritesh Nanda wrote: Hi John, Thanks for reply again . *That totally does not make sense. I'm not sure exactly how you would apply a pre-compiled catalog to a random machine.* This setup would leverage vmware appdirector and integration with

Re: [Puppet Users] Puppet 3.6.1 Virtual Packages, and unrelated facts questions...

2014-05-27 Thread jcbollinger
On Friday, May 23, 2014 2:37:16 PM UTC-5, Rob Reynolds wrote: On Fri, May 23, 2014 at 12:00 PM, Kylo Ginsberg ky...@puppetlabs.comjavascript: wrote: On Fri, May 23, 2014 at 2:58 AM, Paul Seymour paul.s...@ig.comjavascript: wrote: +1 - let's file a bug report.

Re: [Puppet Users] template and scope

2014-05-27 Thread jcbollinger
On Tuesday, May 27, 2014 6:53:29 AM UTC-5, Felix.Frank wrote: On 05/26/2014 06:40 PM, Fabrice Bacchella wrote: Is that normal that params1 is part of the context in both case, but not param2 ? Ugh. Scope semantics. It *does* seem a little weird. Here's my take: I don't think it's

Re: [Puppet Users] template and scope

2014-05-27 Thread jcbollinger
On Tuesday, May 27, 2014 9:40:57 AM UTC-5, jcbollinger wrote: [...] Puppet does not have nested scopes. I confess that that's a bit of a simplification (see the docs I linked previously), but certainly the code presented does not create any scope nesting other than global / local. John

[Puppet Users] Re: Patterns for building configs using hashes arrays

2014-05-27 Thread jcbollinger
On Sunday, May 25, 2014 6:16:28 PM UTC-5, Jesse Cotton wrote: I am new to puppet and decided to really get my feet wet by writing a duplicity module (https://github.com/JCotton1123/puppet-duplicity.git). I am struggling to deal with the fact that variables are immutable and cannot be

Re: [Puppet Users] Re: using storeconfigs and exported resources

2014-05-23 Thread jcbollinger
On Thursday, May 22, 2014 11:17:48 AM UTC-5, Ritesh Nanda wrote: Hello John, Thanks for your reply , sorry for providing less information . I am working on developing websphere multi-node deployment module From the (little) code you provided, I infer that you are using the term module

Re: [Puppet Users] Puppet Resources overridden using Hiera

2014-05-22 Thread jcbollinger
On Thursday, May 22, 2014 2:44:06 AM UTC-5, Danny Roberts wrote: That's been a great help. I have been able to use the config you presented to create user's defined in Hiera. I am just trying to expand upon that. Currently I do a: --- users: jane.doe The value 'jane.doe' is

[Puppet Users] Re: using storeconfigs and exported resources

2014-05-22 Thread jcbollinger
On Wednesday, May 21, 2014 3:27:32 PM UTC-5, Ritesh Nanda wrote: Hello , I am designing a multi-node deployment env with Puppet. Ok. Scenario i have is once one machine is created it will have its hostname allocated dynamically , Ok. that hostname has to be used by

[Puppet Users] Re: Craig Dunn's Roles/Profiles/Components Conflicts

2014-05-21 Thread jcbollinger
On Tuesday, May 20, 2014 12:54:15 PM UTC-5, Jesse Cotton wrote: Understood. However without creating a custom fact, I am not aware of a way to say 'apache::keepalive = 1' only applies when a node has the profile 'profile::apache_phpfpm'. There is no good way to say that to Puppet. It

Re: [Puppet Users] Re: Yumrepo resource flapping

2014-05-21 Thread jcbollinger
On Tuesday, May 20, 2014 12:45:45 PM UTC-5, DjE wrote: I agree with you about this potential conflict, but it's a default RedHat configuration with rhsm, and it does not manage exactly the same thing. Puppet enable the rhel-6-server-optional-rpms which is not by enabled default, and we

Re: [Puppet Users] Re: Yumrepo resource flapping

2014-05-21 Thread jcbollinger
On Tuesday, May 20, 2014 4:24:01 PM UTC-5, Johan De Wit wrote: the yumrepo resource creates a *.repo file for every resource. Yes, if the repo definition does not already exist. If it does exist then Puppet manages it in whatever file contains it. Or it should do, and used to do. I

Re: [Puppet Users] Puppet Resources overridden using Hiera

2014-05-21 Thread jcbollinger
On Wednesday, May 21, 2014 1:58:22 PM UTC-5, Danny Roberts wrote: For some reason my Puppet install doesn't like that: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at 'users'; expected ')' at /etc/puppet/modules/company/manifests/sshkeys.pp:1 on

[Puppet Users] Re: On code organization and the deprecation of include

2014-05-21 Thread jcbollinger
On Wednesday, May 21, 2014 10:45:03 AM UTC-5, Andre Nathan wrote: what can I do about the nodes? The new feature of setting the manifest to a directory does not support subdirectories. Will I be forced to have all my nodes in the same directory and then rely on file names for

Re: [Puppet Users] On code organization and the deprecation of include

2014-05-21 Thread jcbollinger
On Wednesday, May 21, 2014 11:44:43 AM UTC-5, Andre Nathan wrote: On Wednesday, May 21, 2014 1:14:31 PM UTC-3, Garrett Honeycutt wrote: Your usage of a base node that other nodes inherit is an anti-pattern though and will cause you grief as you grow. Why is it an anti-pattern? Isn't

Re: [Puppet Users] Re: Apply class fail from hiera

2014-05-20 Thread jcbollinger
On Monday, May 19, 2014 9:18:37 AM UTC-5, mike wrote: Hi, I try configure the NTP Hiera class ( http://docs.puppetlabs.com/hiera/1/complete_example.html) and run ok and i dont have any errors in my node client. I believe that my error is a some problem with the MySQL configuration Hiera

[Puppet Users] Re: Retrieve resource names of a given type without using the filesystem

2014-05-20 Thread jcbollinger
On Tuesday, May 20, 2014 2:41:41 AM UTC-5, Bruno Bieth wrote: I'd like to do something like this define mytype() {} define delete_mytype() {} mytype { 'a': } mytype { 'b': } mytype { 'c': } $existing_mytypes = # something from facter # but this doesn't work $wanted_mytypes =

[Puppet Users] Re: Yumrepo resource flapping

2014-05-20 Thread jcbollinger
On Tuesday, May 20, 2014 3:38:51 AM UTC-5, DjE wrote: Hi all, We find that the yumrepo resource is flapping on RedHat 6 Enterprise with the redhat.repo file since Puppet 3.4.x version (due to a change about attribute content control) We have updated with the latest Puppet 3.6 server

[Puppet Users] Re: ${name} returns class name instead of resource namevar

2014-05-20 Thread jcbollinger
On Tuesday, May 20, 2014 5:36:40 AM UTC-5, Francis Pereira wrote: When using a custom resource to deploy java $name is not the name of the resource but the name of the class in the below mentioned example java::setup { ${myapplication::params::app_username}-jdk_7u51: ...

Re: [Puppet Users] Facts can override variables set by puppet master

2014-05-20 Thread jcbollinger
On Tuesday, May 20, 2014 6:02:17 AM UTC-5, Boyan Tabakov wrote: Hi, On Mon May 19 16:39:25 2014, jcbollinger wrote: On Monday, May 19, 2014 6:06:45 AM UTC-5, Boyan Tabakov wrote: Hi, The variable I want to access is not defined in a module/class. It's

Re: [Puppet Users] Facts can override variables set by puppet master

2014-05-20 Thread jcbollinger
On Tuesday, May 20, 2014 7:36:31 AM UTC-5, Henrik Lindberg wrote: This suggests a design that is somewhat inside-out, the idea is that what is *in* the environment defines what you want, not that you inside the environment make decisions based on the name of the environment. Agreed,

Re: [Puppet Users] Facts can override variables set by puppet master

2014-05-20 Thread jcbollinger
On Tuesday, May 20, 2014 6:55:31 AM UTC-5, Jose Luis Ledesma wrote: But, who can run puppet? I mean, most puppet configurations needs root, so if someone malicious is a root which is the point of being able to cheat the environment? He can do whatever wants. Yes, generally speaking, if

[Puppet Users] Re: Creating a config file dynamically based on the group membership of a node

2014-05-20 Thread jcbollinger
On Monday, May 19, 2014 2:39:47 AM UTC-5, Grant Street wrote: Hi First time poster to this forum. I'm in the process of doing a pilot to convert a cfengine v2 install to puppet. I was wondering if any one had any ideas on the following. I have machines that can be in any

Re: [Puppet Users] puppet class require fails depending on declaration order

2014-05-20 Thread jcbollinger
On Monday, May 19, 2014 6:48:36 AM UTC-5, David Portabella wrote: so, one specific example, someone (not me) implemented a class tomcat with parameters port and ssl_port. I want to use that class, and I want that the ssl_port is always port + 1 (I don't want this to be

<    4   5   6   7   8   9   10   11   12   13   >