Re: [Puppet Users] scaning n/w and finding puppet agent

2014-09-29 Thread jcbollinger
On Saturday, September 27, 2014 12:48:01 PM UTC-5, Jason Antman wrote: Not built-in to puppet, but this should be trivial to do with nmap or a similar tool and a list of the nodes that *are* running puppet. No, not at all. With nmap you could probably identify nodes running the puppet

[Puppet Users] Re: err: Could not apply complete catalog: Found 1 dependency cycle:

2014-09-29 Thread jcbollinger
On Monday, September 29, 2014 5:28:18 AM UTC-5, omfg9899 wrote: Puppet Version : 2.7.25 So I don't get it at all.. snip err: Could not apply complete catalog: Found 1 dependency cycle: (Exec[chown_logdir] = Class[Jetty] = User[evolve] = Exec[chown_logdir]) Cycle graph written to

Re: [Puppet Users] Manage a single file (directory) from multiple modules

2014-09-25 Thread jcbollinger
On Wednesday, September 24, 2014 2:38:40 PM UTC-5, aar...@gmail.com wrote: Neil and John, You guys both agree on using individual files and I was thinking of how I could do this. If I have one file or three, it may not be a big deal to do individually, but some applications could need

[Puppet Users] Re: Custom facts and environments

2014-09-25 Thread jcbollinger
On Wednesday, September 24, 2014 8:44:19 AM UTC-5, JonY wrote: For a given node, the pluginsync process will sync plugins, including custom facts, from the modules in the modulepath of the environment to which that node belongs. So if my modulepath is /etc/puppet/modules - pluginsync

[Puppet Users] Re: Cannot set variables via Hiera for a module I've written

2014-09-25 Thread jcbollinger
On Wednesday, September 24, 2014 9:26:30 AM UTC-5, Danny Roberts wrote: On Wednesday, 24 September 2014 14:08:30 UTC+1, jcbollinger wrote: On Wednesday, September 24, 2014 5:57:45 AM UTC-5, Danny Roberts wrote: Hi Folks, I've started writing a module for zabbix monitoring (current

[Puppet Users] Re: Cannot set variables via Hiera for a module I've written

2014-09-24 Thread jcbollinger
On Wednesday, September 24, 2014 5:57:45 AM UTC-5, Danny Roberts wrote: Hi Folks, I've started writing a module for zabbix monitoring (current version here: https://github.com/kemra102/puppet-zabbix). I have a basic set-up to install the zabbix client using the module. There are some

Re: [Puppet Users] node definition too big in mutualized hosting context

2014-09-24 Thread jcbollinger
On Wednesday, September 24, 2014 3:48:23 AM UTC-5, MezcalitoSCOP grenoble wrote: Hi Jhon, Sorry, I just remark that I completely miss your answer a long time ago. Le vendredi 9 août 2013 15:54:35 UTC+2, jcbollinger a écrit : You can divide your resource declarations among multiple

[Puppet Users] Re: Custom facts and environments

2014-09-24 Thread jcbollinger
On Tuesday, September 23, 2014 7:30:40 AM UTC-5, JonY wrote: I'm attempting to make the jump to directory-based environments and am curious about what to do with custom facts. In my current config I've tried putting custom facts into a separate module as

Re: [Puppet Users] Manage a single file (directory) from multiple modules

2014-09-24 Thread jcbollinger
On Tuesday, September 23, 2014 6:35:53 PM UTC-5, Neil - Puppet List wrote: file { /System/Library/User Template/English.lproj/Library/Preferences/${source} : # the source is the file from the line directly below, this seems true as the correct files copy when I have only No its just

Re: [Puppet Users] Manage a single file (directory) from multiple modules

2014-09-23 Thread jcbollinger
On Monday, September 22, 2014 2:58:52 PM UTC-5, aar...@gmail.com wrote: Thanks Neil, In yours and Johns example you both have ${title} at the end of Preferences. When I tried this (after his post, I haven't tried your code yet), I ended up with a folder called Preferences/office_2011

Re: [Puppet Users] Manage a single file (directory) from multiple modules

2014-09-23 Thread jcbollinger
On Monday, September 22, 2014 4:51:38 PM UTC-5, aar...@gmail.com wrote: I did the following to see if it would work, and I got (for me anyway) a surprising result. It may be the source of some of my confusion and reason why I'm finding this so difficult. Note, I don't want to do this

[Puppet Users] Re: class/subclass relationship ordering and containment

2014-09-23 Thread jcbollinger
On Monday, September 22, 2014 11:18:55 AM UTC-5, Mike Reed wrote: Hey Nan and John, Thank you both for the replies and insight into my questions below; they are most helpful and very much appreciated. Based on your answers, I have few other questions that occurred to me: In response to

[Puppet Users] Re: Virtual users and group gids

2014-09-23 Thread jcbollinger
On Monday, September 22, 2014 6:36:32 PM UTC-5, Robert Davidson wrote: When creating users from hiera, it's simple enough to make them all virtual using create_resources and then realize them. This does leave me with a question, though. How do I make sure that the assorted groups

[Puppet Users] Re: Automatically cleaning up if a class/define is no longer used (related to purging unmanaged resources)

2014-09-23 Thread jcbollinger
On Monday, September 22, 2014 2:05:42 PM UTC-5, Vladimir Brik wrote: Here's roughly what I am thinking of doing (but I am wondering if there is a better way). site.pp: # this is in global area of site.pp. so that all nodes, whether they # use statlog or not include

Re: [Puppet Users] class/subclass relationship ordering and containment

2014-09-22 Thread jcbollinger
On Friday, September 19, 2014 7:37:57 PM UTC-5, Nan Liu wrote: TLDR summary: 1. include/require class does not provide containment. 2. anchor is just a empty resource for containment. 3. contain class provides containment without the need for anchor 4. contain may cause unnecessary

Re: [Puppet Users] Manage a single file (directory) from multiple modules

2014-09-22 Thread jcbollinger
On Saturday, September 20, 2014 2:33:34 PM UTC-5, aar...@gmail.com wrote: Thanks Neil, I am not sure I understand exactly what you mean, so I will post the code I have done for testing (I am using different paths, but the concept is the same as the original post). Here is the class

[Puppet Users] Re: Resource ordering of Execs not working as expected

2014-09-22 Thread jcbollinger
On Friday, September 19, 2014 12:59:34 PM UTC-5, Jake Lundberg wrote: Puppet 3.6.2 First, I understand that Execs try not to run multiple times if called many times by many resources and typically wait until they've all been collected from all resources Not exactly. Execs run at most

[Puppet Users] Re: Cross-module variables and mix-and-match with Hiera

2014-09-22 Thread jcbollinger
On Friday, September 19, 2014 3:45:17 PM UTC-5, Kimo Rosenbaum wrote: Hello, I'm using puppet 3 with roles (mostly), profiles, and Hiera. I have a profile setup (for pdxcat/collectd) to, amongst other things, hiera_array() for values [of localports] to pass on to

Re: [Puppet Users] Globally used parameter

2014-09-22 Thread jcbollinger
On Friday, September 19, 2014 2:25:34 PM UTC-5, Jose Luis Ledesma wrote: Using hiera is probably the best solution. So that would mean creating 'server' as an hiera item, and having each class that wanted it look it up as $server = hiera('server') That's basically the property file

Re: [Puppet Users] About the params pattern

2014-09-19 Thread jcbollinger
On Thursday, September 18, 2014 5:59:56 PM UTC-5, François Lafont wrote: Hi, Le 18/09/2014 16:40, jcbollinger a écrit : So, finally, is this way below a correct and good way to use the params pattern? - # Example

[Puppet Users] Re: Unable to do puppet apply nodes.pp

2014-09-19 Thread jcbollinger
On Thursday, September 18, 2014 6:22:22 PM UTC-5, Jürgen Hermann wrote: The Puppet file you pass to an apply is basically a full site.pp, so try adding a node default {…} around your resources. See https://github.com/jhermann/devpi-puppet/blob/master/site.pp#L31 for an example. No, a

[Puppet Users] Re: Example of how to use require with hiera?

2014-09-19 Thread jcbollinger
On Friday, September 19, 2014 6:45:43 AM UTC-5, Antoine Cotten wrote: Hi teknotus, I don't think that would work since you can not declare a Puppet resource in Hiera, you are limited to core types. In your case, Puppet would interpret File['somefile'] as a string, and File: somefile as

Re: [Puppet Users] Trouble with Facter

2014-09-18 Thread jcbollinger
On Thursday, September 18, 2014 4:36:16 AM UTC-5, Jonathan Gazeley wrote: On 17/09/14 17:29, Trevor Vaughan wrote: Ah, so looking at warranty.rb and then stdlib...puppet_vardir.rb, you may be missing this: begin require 'facter/util/puppet_settings' rescue LoadError = e

Re: [Puppet Users] About the params pattern

2014-09-18 Thread jcbollinger
On Wednesday, September 17, 2014 10:55:12 PM UTC-5, François Lafont wrote: Thank you for your answer. Le 17/09/2014 17:12, jcbollinger a écrit : class my_module ( $var1 = $my_module::params::var1, $var2 = $my_module::params::var2, ) inherits my_module::params

Re: [Puppet Users] Trouble with Facter

2014-09-18 Thread jcbollinger
On Thursday, September 18, 2014 9:26:12 AM UTC-5, Jonathan Gazeley wrote: On 18/09/14 14:27, jcbollinger wrote: 2) The get_data() function relies on the ::serialnumber fact. I am uncertain how that fact is computed, but maybe something changed that affected its result

Re: [Puppet Users] About the params pattern

2014-09-17 Thread jcbollinger
On Wednesday, September 17, 2014 3:15:44 AM UTC-5, François Lafont wrote: Le 17/09/2014 04:26, Sebastian Otaegui a écrit : As far as I know inner classes are an anti pattern(for the lack of a better term) Nested classes are poor form, but multiple classes in the same module are

Re: [Puppet Users] About the params pattern

2014-09-17 Thread jcbollinger
On Wednesday, September 17, 2014 6:22:52 AM UTC-5, François Lafont wrote: In fact, It's curious. I have made some tests with puppet 3.7.0 on Debian Wheezy and I can simply do this: class my_module::params { ## API of the module ## $var1 = default_value1 $var2 =

Re: [Puppet Users] [Error after after upgrading to 3.7] Evaluation Error: Illegal Resource Type expression, expected result to be a type name, or untitled Resource, got Type[Class]

2014-09-17 Thread jcbollinger
On Tuesday, September 16, 2014 12:26:24 PM UTC-5, Juan Sierra Pons wrote: Hi guys, From your comments I see that there are 2 issues here the parser and the anchor. For clarity shake I have deleted the anchor resources and Class defaults as I don't fully understand the purpose of if they

Re: [Puppet Users] hiera - default parameter values and design questions

2014-09-16 Thread jcbollinger
On Monday, September 15, 2014 10:19:35 AM UTC-5, Mike Reed wrote: @Xav, thanks for the information and pointers. I've added the 'default' value into my arrays and things are running smoothly now. I'm still a bit hazy on the resource ordering and how hiera by default, deals with applying

[Puppet Users] Re: Trouble with Facter

2014-09-16 Thread jcbollinger
On Tuesday, September 16, 2014 4:44:32 AM UTC-5, Jonathan Gazeley wrote: Overnight my Facter seems to reporting new errors. As far as I can see, neither Puppet, Facter, MCollective or the facts in question were updated, so I'm struggling to find a cause. The problem as exacerbated

[Puppet Users] Re: Trouble with Facter

2014-09-16 Thread jcbollinger
On Tuesday, September 16, 2014 4:44:32 AM UTC-5, Jonathan Gazeley wrote: Overnight my Facter seems to reporting new errors. As far as I can see, neither Puppet, Facter, MCollective or the facts in question were updated, so I'm struggling to find a cause. The problem as exacerbated

Re: [Puppet Users] Re: Using exported resources as data containers?

2014-09-15 Thread jcbollinger
On Wednesday, September 10, 2014 9:09:14 AM UTC-5, Matthew Pounsett wrote: On 10 September 2014 08:08, Daniel Siechniewicz dan...@siechniewicz.com javascript: wrote: Hi, This particular hiera backend, from what I understand, is extracting values from puppetdb on the fly, so you don't

Re: [Puppet Users] [Error after after upgrading to 3.7] Evaluation Error: Illegal Resource Type expression, expected result to be a type name, or untitled Resource, got Type[Class]

2014-09-15 Thread jcbollinger
On Monday, September 15, 2014 9:23:08 AM UTC-5, Henrik Lindberg wrote: On 2014-12-09 14:57, Juan Sierra Pons wrote: Hi, I am using a mix of the following two blog post: [1] A modern Puppet Master from scratch [2] Puppet Infrastructure After upgrading to 3.7 I am

[Puppet Users] Re: puppet is not reading my nodes manifest

2014-09-15 Thread jcbollinger
On Sunday, September 14, 2014 11:52:46 AM UTC-5, bluethundr wrote: Hey all, I just setup puppet 3.7.0 and foreman 1.6.0 on a new host. And I just learned about the new syntax replacing the include directive. I don't know what you are talking about. There is no new DSL syntax

[Puppet Users] Re: roles? paramaters? facts? with somebodys hacked puppet modules...

2014-09-05 Thread jcbollinger
On Thursday, September 4, 2014 11:27:31 PM UTC-5, Colin Kincaid Williams wrote: I have a hacked together class that somebody else wrote based on some wikimedia puppet scripts. I've been asked to set the JAVA_HEAP_MAX if the host is a resource manager. I'm trying to set the variable

Re: [Puppet Users] Challenge: who am i and what do i do

2014-09-05 Thread jcbollinger
On Thursday, September 4, 2014 5:50:43 PM UTC-5, Jason Antman wrote: Agreed with Atom... I generally think that this method is backwards. The system shouldn't tell Puppet what it wants to be; Puppet (possibly fed by some external data source(s)) should tell the system what to be. +1

[Puppet Users] Re: roles? paramaters? facts? with somebodys hacked puppet modules...

2014-09-05 Thread jcbollinger
On Friday, September 5, 2014 1:37:21 PM UTC-5, Colin Kincaid Williams wrote: I'm going to try your suggestion. Thanks for the response! I'm curious however if $rm_hosts is available where you suggest. I made no suggestion about where $rm_hosts is available in your code. You were

Re: [Puppet Users] Query with use of recurse

2014-09-04 Thread jcbollinger
On Wednesday, September 3, 2014 3:49:22 PM UTC-5, Balasubramaniam Natarajan wrote: On Tue, Sep 2, 2014 at 10:08 PM, Wil Cooley wco...@nakedape.cc javascript: wrote: No, recurse is only useful for copying directory to directory. What are you going to accomplish? Copying a source

[Puppet Users] Re: Call call multiple times

2014-09-04 Thread jcbollinger
On Wednesday, September 3, 2014 1:09:38 PM UTC-5, Juliano Resende wrote: Hi Folks, I have a doubt about call classes multiple times, i write a module to manage FTP users, but i can create only one user, because when i call the a second time i receive a error about duplicate instance

Re: [Puppet Users] 'inherits' in a defined type

2014-09-04 Thread jcbollinger
On Wednesday, September 3, 2014 9:05:20 AM UTC-5, Atom Powers wrote: You may need to define local versions of them that equal the param or default to the param. $var = $::class::params::var Note that the point of the pattern of inheriting params classes is only to ensure that the

[Puppet Users] Re: mysqld: unrecognized service

2014-09-04 Thread jcbollinger
On Wednesday, September 3, 2014 7:08:10 AM UTC-5, PorridgeBear wrote: With a very basic declaration for MySQL Server: class { '::mysql::server': root_password= 'foobar', override_options = { 'mysqld' = { 'max_connections' = '150' } } } I am receiving a number of errors

Re: [Puppet Users] Offline facts

2014-09-04 Thread jcbollinger
On Wednesday, September 3, 2014 11:32:54 AM UTC-5, Khoury wrote: Sorry for the delay Felix. Here's a specific example of a situation where the fact might return what I would consider useless information and I would want to revert back to a the value set previously: On OS X you can have

Re: [Puppet Users] Re: command to variable

2014-09-04 Thread jcbollinger
On Wednesday, September 3, 2014 4:10:11 PM UTC-5, Tamás PAPP wrote: On 09/03/2014 08:20 PM, jcbollinger wrote: There are several viable solutions. I would favor putting your users and groups under management, and keeping (user, group) relationships in your external data

[Puppet Users] Re: not able to sign the certificate of puppet master

2014-09-03 Thread jcbollinger
On Tuesday, September 2, 2014 8:55:15 AM UTC-5, Spriya wrote: Hi, I installed puppet using open source. when i tryied to run puppet agent -t it is throwing me error. puppet agent -t Warning: Unable to fetch my node definition, but the agent run will continue: Warning: getaddrinfo:

[Puppet Users] Re: hashes not hashes ?

2014-09-03 Thread jcbollinger
On Wednesday, September 3, 2014 4:31:11 AM UTC-5, Fabrice Bacchella wrote: I'm trying to send an hash to a template. I'm calling a type with : supervisord::program{'hadoop.namenode': ... environment = { JAVA_HOME = $javahome,

[Puppet Users] Re: command to variable

2014-09-03 Thread jcbollinger
On Wednesday, September 3, 2014 4:30:57 AM UTC-5, Tamás PAPP wrote: hi All, I have a manifest with this (the module was downloaded from github for generating known_hosts): define ...{ [...things...] ## Ensure that all files and execs get the correct user/group

[Puppet Users] Re: creating custom facts - general usage

2014-09-02 Thread jcbollinger
On Friday, August 29, 2014 5:05:01 PM UTC-5, Mike Reed wrote: Hello all, To start, I would like to thank you in advance for your responses. I'm attempting to create a custom fact that will determine the network location of a node, based on it's hostname. Ideally this would be run on a

Re: [Puppet Users] Puppet, HA Duplicate definitions

2014-09-02 Thread jcbollinger
On Friday, August 29, 2014 7:07:22 PM UTC-5, Wil Cooley wrote: On Fri, Aug 29, 2014 at 12:47 PM, Julien Pivotto roidel...@inuits.eu javascript: wrote: On Fri, Aug 29, 2014 at 06:37:19PM +0200, José Luis Ledesma wrote: If both nodes has to export the same resource ( same type/same

[Puppet Users] Re: Puppet agent loops and taking 100% of one CPU

2014-09-02 Thread jcbollinger
On Friday, August 29, 2014 9:59:12 AM UTC-5, pmorel wrote: Hello, Recently 3 puppet agents instances (on 3 different servers yet with quasi-similar configurations) started running at 100% on one CPU and thus they cannot listen to the master anymore. Nothing appears to be wrong in the

[Puppet Users] Re: create_resources with default parameters on top of yaml for onetime usage

2014-09-02 Thread jcbollinger
On Monday, September 1, 2014 4:54:31 AM UTC-5, yamaka...@gmail.com wrote: Hi guys, I'm looking for a solution to svn checkout a branch and directly config the branch modules using create_resources. My yaml would look like this I think for a one time checkout, which will grab all the

[Puppet Users] Re: Why does my Puppet Master randomly revoke my Agent's certificate?

2014-09-02 Thread jcbollinger
On Monday, September 1, 2014 5:57:58 PM UTC-5, Jason Oakley wrote: My servers were working fine, when I got this error: Inventory Could not retrieve facts from inventory service: SSL_connect returned=1 errno=0 state=SSLv3 read server session ticket A: sslv3 alert certificate revoked

[Puppet Users] Re: Switching modules files dynamicaly

2014-09-02 Thread jcbollinger
On Monday, September 1, 2014 4:28:08 AM UTC-5, Guy Meler wrote: Hey! I Need to swap modules dynamically on my puppet masters. Are you talking about updating modules with newer versions, or something more dynamic than that? If the latter, then there is likely a better way to achieve what

Re: [Puppet Users] Re: Puppet 'node data' when using common node_names?

2014-09-02 Thread jcbollinger
On Tuesday, September 2, 2014 11:14:27 AM UTC-5, Nigel Kersten wrote: On Wed, Aug 27, 2014 at 8:10 AM, jcbollinger john.bo...@stjude.org javascript: wrote: On Tuesday, August 26, 2014 6:24:57 PM UTC-5, Nigel Kersten wrote: [...] I am well aware of all the old hilarity

Re: [Puppet Users] Re: Puppet 'node data' when using common node_names?

2014-08-27 Thread jcbollinger
On Tuesday, August 26, 2014 6:24:57 PM UTC-5, Nigel Kersten wrote: On Tue, Aug 26, 2014 at 12:27 PM, Erik Dalén erik.gus...@gmail.com javascript: wrote: On 26 August 2014 20:22, jcbollinger john.bo...@stjude.org javascript: wrote: On Monday, August 25, 2014 11:13:40 AM UTC-5

Re: [Puppet Users] Order preference for defines

2014-08-27 Thread jcbollinger
On Wednesday, August 27, 2014 2:05:29 PM UTC-5, Christopher Wood wrote: Ordering! https://docs.puppetlabs.com/learning/ordering.html https://docs.puppetlabs.com/puppet/latest/reference/lang_relationships.html https://docs.puppetlabs.com/references/latest/metaparameter.html +1

Re: [Puppet Users] Re: Puppet 'node data' when using common node_names?

2014-08-26 Thread jcbollinger
On Monday, August 25, 2014 11:13:40 AM UTC-5, Matt W wrote: Comments inline Matt Wise Sr. Systems Architect Nextdoor.com On Mon, Aug 25, 2014 at 6:55 AM, jcbollinger john.bo...@stjude.org javascript: wrote: On Saturday, August 23, 2014 12:46:59 PM UTC-5, Matt W wrote

Re: [Puppet Users] puppet resource ordering/execution kungfu

2014-08-25 Thread jcbollinger
On Thursday, August 21, 2014 12:30:05 PM UTC-5, Wil Cooley wrote: On Aug 21, 2014 5:53 AM, jcbollinger john.bo...@stjude.org javascript: wrote: No new parameter, but you could also repackage your RPM so that it handles the permissions of /tmp itself. I suspect that would conflict

Re: [Puppet Users] Re: Puppet 'node data' when using common node_names?

2014-08-25 Thread jcbollinger
On Saturday, August 23, 2014 12:46:59 PM UTC-5, Matt W wrote: Will, Thanks for the response. I know its a bit of a unique model -- but when you think about it, it makes a decent amount of sense. We run hundreds of nodes that are fundamentally similar And therein is one of the key

Re: [Puppet Users] Cisco: No error, but no Applying

2014-08-25 Thread jcbollinger
On Friday, August 22, 2014 3:36:33 PM UTC-5, Nan Liu wrote: On Fri, Aug 22, 2014 at 12:10 PM, Nathan Brito natha...@gmail.com javascript: wrote: I'm trying to apply settings on a Cisco Catalyst 2960S through the puppet, but I can not. When I give the device #puppet verbose command,

[Puppet Users] Re: Confused Puppet Manifest ... Possible caching issue?

2014-08-25 Thread jcbollinger
On Friday, August 22, 2014 9:38:20 AM UTC-5, Matt W wrote: Even with the caching disabled, I think we ran into this again. Can one of the puppet-devs chime in here and let me know what might be going on? I am not among the Puppet developers, but I think I already touched on the likely

Re: [Puppet Users] puppet resource ordering/execution kungfu

2014-08-21 Thread jcbollinger
On Thursday, August 21, 2014 2:10:18 AM UTC-5, Stefan Wiederoder wrote: that´s the pattern I´m already using for a few other things, I was hoping there´s a cool new parameter to trigger a require only if necessary. No new parameter, but you could also repackage your RPM so that it handles

Re: [Puppet Users] Re: require broken with create_resources() ?

2014-08-21 Thread jcbollinger
On Wednesday, August 20, 2014 8:11:13 AM UTC-5, R.I. Pienaar wrote: It also works if you quote the 'Class[myclass]' so it should work if it comes from JSON or whatever Really? That's news to me. I wonder when that was added. John -- You received this message because you are

[Puppet Users] Re: Error 400: Could not find declared class (consistently)

2014-08-21 Thread jcbollinger
On Wednesday, August 20, 2014 8:13:56 AM UTC-5, Lutz Behnke wrote: Hi there, I am getting the following error on one of my client machines: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Could

[Puppet Users] Re: require broken with create_resources() ?

2014-08-20 Thread jcbollinger
On Wednesday, August 20, 2014 6:04:56 AM UTC-5, Vincent Miszczak wrote: Hello, I have a define like this : define application::install($root,$url,$user=root) { include git #Puppet wants a command to start with /something... $cmd=/bin/echo 1{ cd $root||mkdir $rootcd $root ; }git

Re: [Puppet Users] Re: If else statement if file exists

2014-08-20 Thread jcbollinger
On Tuesday, August 19, 2014 11:10:26 AM UTC-5, Yanis Guenane wrote: If your file `/volumes/vol1` could be managed by Puppet somehow, you could use if defined(File['/volumes/vol1']) as a condition. Not sure if it is possible in your case, Whether it's possible is irrelevant, because

[Puppet Users] Re: If else statement if file exists

2014-08-20 Thread jcbollinger
On Monday, August 18, 2014 4:45:23 PM UTC-5, Eugene Sapozhnikov wrote: I am trying to figure out a way to use a if statement to run multiple sets of commands depending if one file exists, but I am unable to find any good documented ways of doing this. Your main alternatives are: 1)

[Puppet Users] Re: Module with smart class parameter

2014-08-19 Thread jcbollinger
On Monday, August 18, 2014 4:32:50 PM UTC-5, huhm4n wrote: Hi, I am trying to create a module with smart class parameter. Actually, the simple one like user { $users: ensure = present, uid = $uid, gid = $gid, } I want to edit these functions via gui

[Puppet Users] Re: Cannot parse arrat into defined type

2014-08-18 Thread jcbollinger
On Saturday, August 16, 2014 2:22:40 AM UTC-5, Malintha Adikari wrote: Hi, I am using following puppet class *class myclass{ $foo = [{id = bar, ip = 1.1.1.1}, {id = baz, ip = 2.2.2.2}] map {$foo:} define map () { notify {$name['id']: } }}* But this gives me

[Puppet Users] Re: How can managed directory be updated after an rpm is upgraded?

2014-08-15 Thread jcbollinger
On Thursday, August 14, 2014 11:44:02 AM UTC-5, Tim Arnold wrote: I want to 'manage' the files in a certain directory ONLY if the rpm is updated. Why? If it is not only acceptable but *desired* that these files be managed during runs when the RPM is updated, then why is it not

Re: [Puppet Users] Re: puppet slow when ensuring user with groups in combination with winbind auth

2014-08-14 Thread jcbollinger
On Wednesday, August 13, 2014 10:34:30 PM UTC-5, Garrett Honeycutt wrote: I'm not familiar with winbind itself though your performance might improve by using nscd to cache the lookups. Although in principle a name service cache might help with the performance issue, the winbind docs say

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

2014-08-13 Thread jcbollinger
Hello Helmut, I am glad you have resolved your issue. I have recently been travelling, and hence not responsive to this list, but I feel compelled to observe that the problem turned out to be exactly what I said in my initial response it might be: In particular, I am inclined to guess that

[Puppet Users] Re: Exported resources applied on exporting host - EL7 only

2014-08-13 Thread jcbollinger
On Tuesday, August 12, 2014 12:49:27 PM UTC-5, treydock wrote: I have noticed a very strange problem on CentOS 7 nodes where they are collecting and/or applying their exported resources. I have a class called brazos::firewall that's used internally to export a firewall rule that is then

[Puppet Users] Re: puppet slow when ensuring user with groups in combination with winbind auth

2014-08-13 Thread jcbollinger
On Monday, August 11, 2014 8:50:36 AM UTC-5, Jan van Lith wrote: Hi, I am using winbind with winbind enum groups = yes on some of our servers. When ensuring a user that is local (and also in AD, so it has a lot of groups) the puppet run takes ages. Winbind process is taking a lot of

Re: [Puppet Users] Puppet/yum fails to install old packages

2014-08-13 Thread jcbollinger
On Friday, August 8, 2014 10:33:48 AM UTC-5, Mark Rosedale wrote: Hey Matthias, Thanks for the response. So I do see some additional information that may help. So it appears that puppet does successfully install postgresql and postgresql-server and postgres92, and that explains what

[Puppet Users] Re: Wrap class around define and use it as Require

2014-08-01 Thread jcbollinger
On Thursday, July 31, 2014 4:39:08 PM UTC-5, yamaka...@gmail.com wrote: HI John, Thanks! I had that class in my enable.pp and not in modules/enable/ssl.pp Is it not possible at all to place it in modules/enable.pp ? It is *possible* to put the class there, but you should not do so

Re: [Puppet Users] increasing frequency of puppet agent runs during initial deployment?

2014-07-31 Thread jcbollinger
On Wednesday, July 30, 2014 7:31:38 AM UTC-5, Jason Antman wrote: I've seen those environments. I've worked in them. A few host types in my current environment are like that. IT IS A BUG. The only valid reason for this is either a bug in your manifests/modules, or that things aren't

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

2014-07-31 Thread jcbollinger
On Thursday, July 31, 2014 2:43:42 AM UTC-5, Jose Luis Ledesma wrote: Hi, this doesn't work. You cannot have two resources with the same name: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Host[] is already declared in file

[Puppet Users] Re: Wrap class around define and use it as Require

2014-07-31 Thread jcbollinger
On Wednesday, July 30, 2014 7:30:20 PM UTC-5, yamaka...@gmail.com wrote: Hi Guys, I'm using an ENC to define all my nodes including some modules I want to load, I have the following class/define for this: class mymodule::modules::enable ( $enable_modules = undef ) {

[Puppet Users] Re: Wrap class around define and use it as Require

2014-07-31 Thread jcbollinger
On Wednesday, July 30, 2014 7:30:20 PM UTC-5, yamaka...@gmail.com wrote: mymodule::modules::enable{'modX': enable_modules = 'module'} In fact, not only must that not appear at top level (outside a starting-point manifest), it must not appear at all. mymodule::modules::enable is a class

[Puppet Users] Re: Wrap class around define and use it as Require

2014-07-31 Thread jcbollinger
I came back to look at this, and I'm really not following what you are trying to do for fall-back behavior. I suspect you have some misapprehensions that contribute both to your difficulty finding a solution to your problem, and to your difficulty explaining what you are trying to do.

[Puppet Users] Re: Wrap class around define and use it as Require

2014-07-31 Thread jcbollinger
On Thursday, July 31, 2014 3:51:37 PM UTC-5, yamaka...@gmail.com wrote: Hi John, Thanks so far! This is what I use now: class mypuppetmodule::modules::enable ( $enable_modules = undef ) { $modules_split = split($enable_modules, ',') enableModules {

[Puppet Users] Re: Manifest does work

2014-07-30 Thread jcbollinger
On Tuesday, July 29, 2014 3:28:27 PM UTC-5, Juliano Resende wrote: Hi, I'm beginner in puppet and i have a problem in implementation using puppet version 3.4.2, i setup the master and the agent, but the manifests does not apply on agent. [...] Debug: Using cached

[Puppet Users] Re: how to use conditional statements

2014-07-30 Thread jcbollinger
On Tuesday, July 29, 2014 7:58:32 AM UTC-5, Satish Katuru wrote: Hi Here is my flow: Stop service--copy required files from Master server--Start service Once this is done,I am taking a copy of files on Master Server and removing the files from original location. Why? It would be

[Puppet Users] Re: scheduling refresh event BEFORE dependent object

2014-07-29 Thread jcbollinger
On Monday, July 28, 2014 8:56:08 AM UTC-5, Dimitris Stafylarakis wrote: Hi people, thanks for your replies. My actual case is *run apt-get update before upgrading a package*. So I have packages in my own repository and I'm managing them through puppet on the production server. I want to

Re: [Puppet Users] increasing frequency of puppet agent runs during initial deployment?

2014-07-29 Thread jcbollinger
On Monday, July 28, 2014 2:20:33 PM UTC-5, Christopher Wood wrote: Before figuring out how to shorten the initial agent runs, I'd inquire why a full configuration takes several agent runs. +1 I have never seen or heard about an environment that *required* multiple Puppet runs to converge

Re: [Puppet Users] Could not retrieve information from environment production source

2014-07-28 Thread jcbollinger
On Saturday, July 26, 2014 3:51:44 PM UTC-5, Shawn Miller wrote: Mine is that way- /etc/puppet/modules/sudo/files/sudoers # cat modules/sudo/manifests/init.pp class sudo { package { sudo: ensure = present, } if $operatingsystem == Ubuntu { package { sudo-ldap: ensure = present,

[Puppet Users] Re: scheduling refresh event BEFORE dependent object

2014-07-25 Thread jcbollinger
On Thursday, July 24, 2014 10:42:34 AM UTC-5, Dimitris Stafylarakis wrote: Hi all, I have a question for the experts in the group: say there's an exec resource dependent on some other resource and refreshonly= true. As we know already, a change in the dependent resource will send a

[Puppet Users] Re: Banned from RHN due to exessive connections; would like opions on my solution.

2014-07-24 Thread jcbollinger
On Wednesday, July 23, 2014 6:26:00 PM UTC-5, Stack Kororā wrote: Greetings! Thank you so much John. I just learned something new about Puppet. Utilizing inline_template is a heck of a lot easier then how I first attempted that variable substitution. I might have to go back and fix some

Re: [Puppet Users] Banned from RHN due to exessive connections; would like opions on my solution.

2014-07-23 Thread jcbollinger
On Wednesday, July 23, 2014 6:59:19 AM UTC-5, Stack Kororā wrote: Greetings, I did try this but ran into issues in my testing when a package had dependencies. I don't remember what the problem was though...I should probably explore this a bit more. Yes, if you need to ensure 'purged'

[Puppet Users] Re: Banned from RHN due to exessive connections; would like opions on my solution.

2014-07-23 Thread jcbollinger
On Tuesday, July 22, 2014 7:37:30 PM UTC-5, Stack Kororā wrote: Greetings, In my multiple hundred servers, I have 10 that are Red Hat based. We recently brought them under the same management as the rest of the servers utilizing Puppet. Then we ran into issues because we were hitting RHN

[Puppet Users] Re: Ruby, YAML Hiera data

2014-07-23 Thread jcbollinger
On Tuesday, July 22, 2014 10:20:29 AM UTC-5, Matthew Burgess wrote: Hi, It's probably best for you to not ask why we're doing the following, Cause if you told us, you'd have to kill us? but here's what we're trying to achieve: We'd like to programmatically edit our Hiera data,

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

2014-07-23 Thread jcbollinger
On Wednesday, July 23, 2014 7:32:15 AM UTC-5, Cristian Falcas wrote: Hello all, Regarding my question with automated data binding. Here is how we set this via the yaml backend: collectd::plugins::write_riemann::riemann_protocol: UDP We tried to use this with the json backend, but this

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

2014-07-22 Thread jcbollinger
On Monday, July 21, 2014 9:39:39 AM UTC-5, David Schmitt wrote: On 2014-07-21 15:00, jcbollinger wrote: On Monday, July 21, 2014 12:00:35 AM UTC-5, Atom Powers wrote: I think you should be able to send json to the yaml backend and it will work. I did some testing

[Puppet Users] Re: Resource without reporting of change

2014-07-22 Thread jcbollinger
On Monday, July 21, 2014 9:20:59 AM UTC-5, Georg Brunmayr wrote: Hi folks, i work with puppet for some time now and usually find what i need to know but here my google skills fail... What i'm doing is roughly this: I have a pre and post stage where a node gets disabled in our build

[Puppet Users] Re: Strange exec behavior on windows

2014-07-22 Thread jcbollinger
On Tuesday, July 22, 2014 3:35:01 AM UTC-5, cko wrote: Hi everyone, I am running Puppet 3.6.2 on the affected Windows Server 2008 R2 node. First of all the manifest that I'm trying to use: * define static_route ($net,$netmask,$gw) * * {* * if $::kernel == 'Linux' * * {*

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

2014-07-21 Thread jcbollinger
On Monday, July 21, 2014 12:00:35 AM UTC-5, Atom Powers wrote: I think you should be able to send json to the yaml backend and it will work. I did some testing with hiera and had no problem with pure yaml, pure json, or a mix of the two. Yes, JSON is more or less a subset of YAML. I

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

2014-07-21 Thread jcbollinger
On Monday, July 21, 2014 1:28:11 AM UTC-5, David Schmitt wrote: On 2014-07-16 20:34, José Luis Ledesma wrote: I don't think this is true. Master compiles a catalog based on facts, it does not mind if there is a previous compilation with a complete list of different fact values.

[Puppet Users] Re: error. only root user can exec comands

2014-07-18 Thread jcbollinger
On Thursday, July 17, 2014 9:52:23 AM UTC-5, Supriya Uppalapati wrote: Hi, I am having an issue with exc statement. running through non-root user. *Error: Failed to apply catalog: Parameter user failed on Exec[extract p17071663_1036_Generic.zip]: Only root can execute commands as

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

2014-07-18 Thread jcbollinger
On Thursday, July 17, 2014 1:27:03 PM UTC-5, Cristian Falcas wrote: Hi, I have a postfix class with this init: class postfix ( $ensure = 'latest', $email_user = undef, $email_pass = undef, $smtp_endpoint = smtp.${::domain},

[Puppet Users] Re: user authentication with proxyserver

2014-07-18 Thread jcbollinger
On Friday, July 18, 2014 4:32:18 AM UTC-5, robert api wrote: Hi, i was trying to configure my client with a proxy that requires user authentication, upon looking through the configuration reference page, i only found the settings for proxy hostname/port. as long as the proxy server

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