[Puppet Users] Re: augeas to setm enabled=0 in yum repos?

2015-04-16 Thread Guy Matz
No, I was wrong . . that doesn't work with augtool. It seems to, but won't save . . . On Thu, Apr 16, 2015 at 12:00 PM, Guy Matz guym...@gmail.com wrote: This works with augtool but not in puppet: augeas { 'disable all other repos in CentOS Base': context = '/files/etc/yum.repos.d

[Puppet Users] Precedence Q: repos - packages

2015-04-08 Thread Guy Matz
Hi! I first used this sort of thing: stage { 'yum' : before = Stage['main'] } and tagged ll of my yumrepos with a stage of yum. This doesn't work so well for downloaded modules, so I'm thinking of using: Yumrepo | | - Package | | Is there a downside? Any recommendations? Thanks, Guy P.S. -

Re: [Puppet Users] facter: unordered hashes lead to changes

2015-04-08 Thread Guy Matz
I *did* misunderstand! Thanks for pointing that out! Much better now! On Wed, Apr 8, 2015 at 8:57 AM, jcbollinger john.bollin...@stjude.org wrote: On Tuesday, April 7, 2015 at 2:53:38 PM UTC-5, Guy Matz wrote: Ahhh!! The version of facter on my new servers is 2.4 . . old servers have

[Puppet Users] facter: unordered hashes lead to changes

2015-04-07 Thread Guy Matz
Hi! I'm seeing the following at the end of my puppet run: Notice: /Stage[main]/Mcollective::Server::Config::Factsource::Yaml/File[/etc/mcollective/facts.yaml]/content: --- /etc/mcollective/facts.yaml 2015-04-07 15:51:25.243758139 + +++ /tmp/puppet-file20150407-6557-wl0qx7-0 2015-04-07

Re: [Puppet Users] facter: unordered hashes lead to changes

2015-04-07 Thread Guy Matz
christopher_w...@pobox.com wrote: Sounds like this is set to true (over here I set it to false everywhere to take advantage of the non-string facts): https://docs.puppetlabs.com/references/latest/configuration.html#stringifyfacts On Tue, Apr 07, 2015 at 01:56:43PM -0400, Guy Matz wrote

Re: [Puppet Users] Re: How to check if a class is being used?

2015-04-02 Thread Guy Matz
2015 20:35:06 UTC+2 schreef guymatz: I've seen some folks say this should work: if defined(::class::subclass) but it doesn't seem to work for me. Again, any thoughts would be greatly appreciated! Regards, Guy On Wed, Apr 1, 2015 at 11:26 AM, Guy Matz guy...@gmail.com wrote: Hi! I have

Re: [Puppet Users] Re: How to check if a class is being used?

2015-04-02 Thread Guy Matz
20:35:06 UTC+2 schreef guymatz: I've seen some folks say this should work: if defined(::class::subclass) but it doesn't seem to work for me. Again, any thoughts would be greatly appreciated! Regards, Guy On Wed, Apr 1, 2015 at 11:26 AM, Guy Matz guy...@gmail.com wrote: Hi! I have

[Puppet Users] Fwd: How to check if a class is being used?

2015-04-01 Thread Guy Matz
Hi! I have a process that is controlled by daemontools on some servers, and by init on other (i know, i know) and I need a way to have a Service definition when daemontools is not in the run. I've tried this: unless defined(Class['daemontools']) { notify { 'I Do not see daemontools': }

[Puppet Users] How to check if a class is being used?

2015-04-01 Thread Guy Matz
Hi! I have a process that is controlled by daemontools on some servers, and by init on other (i know, i know) and I need a way to have a Service definition when daemontools is not in the run. I've tried this: unless defined(Class['daemontools']) { notify { 'I Do not see daemontools': }

[Puppet Users] Re: How to check if a class is being used?

2015-04-01 Thread Guy Matz
I've seen some folks say this should work: if defined(::class::subclass) but it doesn't seem to work for me. Again, any thoughts would be greatly appreciated! Regards, Guy On Wed, Apr 1, 2015 at 11:26 AM, Guy Matz guym...@gmail.com wrote: Hi! I have a process that is controlled

Re: [Puppet Users] Re: Requiring a subclass?

2015-02-09 Thread Guy Matz
Sorry! Yes, accounts::account is a defined type! :-( Sorry . . . Working now!! Thanks!! On Mon, Feb 9, 2015 at 9:01 AM, jcbollinger john.bollin...@stjude.org wrote: On Friday, February 6, 2015 at 3:45:30 PM UTC-6, guymatz wrote: Hello! Is there a way to set the dependency for a

[Puppet Users] Requiring a subclass?

2015-02-06 Thread Guy Matz
Hello! Is there a way to set the dependency for a resource that is a subclass? I have an accounts module, and within that is accounts::account which contains declarations to create user, group, etc. . . . I would like to do something like: file {'sdfdsf': contents = 'sdkfjdsf', owner=

Re: [Puppet Users] Re: camptocamp/grundics accounts module

2015-01-19 Thread Guy Matz
Mickaël, Thanks for the reply!! Is there an updated version of the module that you recommend I use? One other thing . . . where do you put the class block that pulls in the hiera data? Thanks a lot! Guy On Sun, Jan 18, 2015 at 1:23 AM, Mickaël Canévet mickael.cane...@gmail.com wrote: If you

[Puppet Users] camptocamp/grundics accounts module

2015-01-16 Thread Guy Matz
Is anyone using camptocamp or grundic's accounts module? I can't it working and am at my wit's end! my problem is with the ssh_authorized_key_title . . . I'm getting the error: Error 400 on SERVER: stack level too deep at /etc/puppet/modules/accounts/manifests/authorized_key.pp:35 But I think

[Puppet Users] facter external-dir

2014-12-24 Thread Guy Matz
Is there any way to get facter to return facts from /etc/facter/facts.d when not run as root? I would like to centralize my facts and not have to remember to add --external-dir when checking facts. Thank you all!! And Happy Holidays! -- You received this message because you are subscribed to

Re: [Puppet Users] Re: facter external-dir

2014-12-24 Thread Guy Matz
I guess if the answer had been more of a puppet answer, my question would have been more of a puppet question. :-) Sorry to bother. Thanks, Guy On Wed, Dec 24, 2014 at 12:42 PM, Craig White white.n...@gmail.com wrote: Not really a puppet question or a puppet answer man alias (bash command)

[Puppet Users] modern data pattern?

2014-12-17 Thread Guy Matz
Hi! I'm taking over someone's code and have found the following class signature - it's been abbreviated considerably; over 46 vars get used!!: class showapp ( $amqp_host, $amqp_password, $amqp_port, $amqp_user, . . . $queue_service_host, $queue_service_port, $redis_host,

Re: [Puppet Users] Re: modern data pattern?

2014-12-17 Thread Guy Matz
So I can't use a hash? I'm trying to make a general use parameterized class using a profile . . . Can I do something like this so I only have to pass in the service name that I want to configure from my node definition: class profiles::dropwizard ( $dw_service = 'dw_service_UNDEFINED',

Re: [Puppet Users] Re: modern data pattern?

2014-12-17 Thread Guy Matz
Working now! If I quote the hiera call I can get dynamic lookups: class profiles::dropwizard ( $dw_service = 'dw_service_UNDEFINED', $amqp_host = hiera(${dw_service}::amqp_host) ) Thanks! On Wed, Dec 17, 2014 at 4:48 PM, Guy Matz gm...@matz.org wrote: So I can't use a hash? I'm trying

[Puppet Users] Hiera has stopped working correctly!

2014-12-16 Thread Guy Matz
Hiera is not honoring my hierarchy :-( gmatz@bunnybear ~/Code/puppet $ cat hiera.yaml --- :hierarchy: *- %{::environment}* - common :backends: - eyaml - yaml :merge_behavior: deeper :eyaml: :datadir: /home/gmatz/Code/puppet/hieradata :pkcs7_private_key:

[Puppet Users] dynamically named variables?

2014-12-15 Thread Guy Matz
Hi! I have a parameterized class that accepts a few parameters, one of which I would like to use in the retrieval of hiera data, e.g. class foo ( $app_user = 'bar' ) { file { /etc/${app_user::etc_dir}: owner = 'root', group = 'root', mode= '0644 } so app_user should get

[Puppet Users] hiera Boolean values

2012-10-12 Thread Guy Matz
Hi! Sorry if this has already been discussed . . . I have a requirement to disallow root logins on my UK servers, but allow them on my US servers. I have an sshd_config template and am hoping to use hiera to get a Yes/No depending on the country. However It seems that hiera is having a hard

Re: [Puppet Users] Re: Job Listing - Linux Admin in Boulder, CO

2012-09-07 Thread Guy Matz
Hey! Sorry, I was away on vacation last week . . Are you in the Boulder area? Can you send a resume to guy.m...@markitserv.com? Thanks, Guy On Mon, Aug 27, 2012 at 2:09 PM, Michael Schmitt mscybe...@gmail.comwrote: I'd definitely be interested, but I'm only a junior admin. I have about 2

[Puppet Users] Job Listing - Linux Admin in Boulder, CO

2012-08-17 Thread Guy Matz
Anyone interested? Thanks, Guy guymatz at gmail -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to

[Puppet Users] Re: Job Listing - Linux Admin in Boulder, CO

2012-08-17 Thread Guy Matz
It's not a telecommute position. No relocation possible. Sorry for having not been explicit about that. And sorry for not giving more details earlier. The job is for a senior RedHat Linux DevOps, WWW Admin, NetApp, VMware, etc. Thanks, Guy On Fri, Aug 17, 2012 at 11:36 AM, Guy Matz guym

Re: [Puppet Users] hiera environmentss question

2012-05-03 Thread Guy Matz
Hmmm . . anyone have any idea why environment would not be getting interpolated? Cannot find datafile /etc/puppetlabs/puppet/%{environment}/hieradata/10-host/gmatzpupnode.yaml I have the following in my node's puppet.conf [agent] section: environment = default thanks again, Guy On Wed, May 2,

[Puppet Users] Recommended network module?

2012-05-03 Thread Guy Matz
Hi! There are a few network modules out there for managing network interfaces, routes, etc. Anyone recommend one over the others? Thanks -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to

[Puppet Users] hiera environmentss question

2012-05-02 Thread Guy Matz
Hi! I am using environments in my puppet setup, and would like to do the same for hiera. I used to have this sort of hierarchy: :hierarchy: - hosts/%{fqdn} - domain/%{domain} - whatever/%{some_fact} - common with a yaml datadir: :yaml:

Re: [Puppet Users] hiera installation problem

2012-03-23 Thread Guy Matz
...@puppetlabs.com wrote: On Thursday, March 22, 2012 at 1:13 PM, Guy Matz wrote: Hi! I think I've gone through the hiera install process correctly, but still getting: err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `empty?' for false:FalseClass at /etc

Re: [Puppet Users] hiera installation problem

2012-03-23 Thread Guy Matz
of the common::mkuser defined resource type is? On Fri, Mar 23, 2012 at 7:40 AM, Guy Matz gm...@matz.org wrote: No, that didn't do it . . . :-(What I have works on my test server, but not my prod server . . . Thanks again. On Fri, Mar 23, 2012 at 9:57 AM, Gary Larizza g...@puppetlabs.comwrote

[Puppet Users] hiera installation problem

2012-03-22 Thread Guy Matz
Hi! I think I've gone through the hiera install process correctly, but still getting: err: Could not retrieve catalog from remote server: Error 400 on SERVER: undefined method `empty?' for false:FalseClass at /etc/puppetlabs/puppet/modules/common/manifests/accounts.pp:27 on node # gem list ***

[Puppet Users] spaceship operator with a regex!?

2012-03-19 Thread Guy Matz
Hi! Anyone knoe if it's possible to realize resources with the spaceship operator checking for regex equality? Something like: User| group =~ /(qa|prod)/ | If not, anyone know of another way to do this sort of thing? Thanks a lot! Guy -- You received this message because you are subscribed

Re: [Puppet Users] custom fact issue

2012-03-16 Thread Guy Matz
Hi! Does the following do what you might expect? fact_name = 'noop' Facter.add(fact_name) do setcode do utc_hour = %x{/bin/date -u +%H}.chomp.to_i environment = Facter.value(:environment) #puts env = #{environment} if environment.match(test|dev|qa) result = false else

[Puppet Users] Handling unique cases

2012-02-22 Thread Guy Matz
Hello, Everybody! I need to allow my developers to run a special script on QA servers and nowhere else. I put this sort of thing in place: class app-server { packages: foo:; bar:; baz:; if $environment == 'qa' { file { 'a': content = ... } } which feels kinda kludgey

Re: [Puppet Users] Re: Template Help Please

2012-01-23 Thread Guy Matz
Is your issue resolved? It looks like you don't have the correct erb syntax in your loop *%=* scope.lookupvar('resolver::params::resolvers').split(/\s+/).each I think should be *%* scope.lookupvar('resolver::params::resolvers').split(/\s+/).each On Mon, Jan 23, 2012 at 4:00 PM,

[Puppet Users] Hiera - Any advice on getting started?

2012-01-13 Thread Guy Matz
my data is getting unwieldy . . . any advice on migrating to hiera? Thanks! -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to

Re: [Puppet Users] so close to getting new type to work!!

2011-11-10 Thread Guy Matz
lines, I guess! Thanks again . . . On Wed, Nov 9, 2011 at 3:48 PM, Stefan Schulte stefan.schu...@taunusstein.net wrote: On Wed, Nov 09, 2011 at 02:45:30PM -0500, Guy Matz wrote: Stefan, Right! I think. With a resource that looks like : vncserver { '92': username = 'athusr

[Puppet Users] so close to getting new type to work!!

2011-11-09 Thread Guy Matz
Hi! I am s close to getting my vncserver type to work; I have one last hurdle. There are two kinds of record lines in a vncserver config file, so I have two record_line definitions in my provider. Only one of them gets called, though! The one that has the same name, :parsed, as what I pass

Re: [Puppet Users] NFS clients - puppet hang when mount point

2011-11-09 Thread Guy Matz
OK. This may seem like a bad idea, but it's a workaround that has worked for me: I add the nfs server to the 127.0.0.1 entry of the hosts file which causes NFS to time out pretty immediately. :-\ On Wed, Nov 9, 2011 at 10:00 AM, madAndroid andrewsta...@gmail.com wrote: We've only recently

Re: [Puppet Users] so close to getting new type to work!!

2011-11-09 Thread Guy Matz
:08:37PM -0500, Guy Matz wrote: Hi! I am s close to getting my vncserver type to work; I have one last hurdle. There are two kinds of record lines in a vncserver config file, so I have two record_line definitions in my provider. Only one of them gets called, though! The one that has

Re: [Puppet Users] parsedfile help needed

2011-10-14 Thread Guy Matz
method `merge' for []:Array Thanks again, Guy On Fri, Oct 14, 2011 at 4:31 AM, Brice Figureau brice-pup...@daysofwonder.com wrote: Hi, On Thu, 2011-10-13 at 17:47 -0400, Guy Matz wrote: Thanks for the reply!! One more thing I can't quite figure out: How to get a new entry in my target file

Re: [Puppet Users] parsedfile help needed

2011-10-13 Thread Guy Matz
Thanks for the reply!! One more thing I can't quite figure out: How to get a new entry in my target file! I can parse, but an entry in manifests doesn't magically appear. Do I need to add something to my provider or type to get that to happen? Any help would be s appreciated; i'm getting

[Puppet Users] parsedfile help needed

2011-10-12 Thread Guy Matz
hi! I've seen it reported that there is no official doc for parsedfile; does anyone know if this is still true? I'm trying to make a new type and getting stuck on how parsedfile works . . . Any help would be appreciated: regarding the Puppet::Type.type(:newType).provide line: 1. What does the

Re: [Puppet Users] debugging new custom type

2011-09-20 Thread Guy Matz
Stefan, thanks again for your reply. I'm just trying to get something working, even if it doesn't actually do anything yet . . . On Mon, Sep 19, 2011 at 1:48 PM, Stefan Schulte stefan.schu...@taunusstein.net wrote: On Thu, Sep 15, 2011 at 04:22:45PM -0400, Guy Matz wrote: hi! Does anyone

Re: [Puppet Users] debugging new custom type

2011-09-20 Thread Guy Matz
...@taunusstein.net wrote: On Thu, Sep 15, 2011 at 04:22:45PM -0400, Guy Matz wrote: hi! Does anyone have any advice on debugging a new custom type? Any thoughts would be greatly appreciated . . . BTW, I'm getting the error: err: Could not retrieve catalog from remote server: Error 400

Re: [Puppet Users] debugging new custom type

2011-09-17 Thread Guy Matz
Adrien, Thanks for the reply. can you tell me what a pastebin is? Thanks, Guy On Thu, Sep 15, 2011 at 6:50 PM, Adrien Thebo adr...@puppetlabs.com wrote: Could you provide the output of puppet agent --trace in a pastebin to accompany this? On Thu, Sep 15, 2011 at 1:22 PM, Guy Matz gm

Re: [Puppet Users] debugging new custom type

2011-09-17 Thread Guy Matz
of writing a new type. On Sep 15, 2011 1:22 PM, Guy Matz gm...@matz.org wrote: hi! Does anyone have any advice on debugging a new custom type? Any thoughts would be greatly appreciated . . . BTW, I'm getting the error: err: Could not retrieve catalog from remote server: Error 400 on SERVER

Re: [Puppet Users] debugging new custom type

2011-09-17 Thread Guy Matz
...@puppetlabs.com wrote: Could you provide the output of puppet agent --trace in a pastebin to accompany this? On Thu, Sep 15, 2011 at 1:22 PM, Guy Matz gm...@matz.org wrote: hi! Does anyone have any advice on debugging a new custom type? Any thoughts would be greatly appreciated . . . BTW, I'm

[Puppet Users] debugging new custom type

2011-09-15 Thread Guy Matz
hi! Does anyone have any advice on debugging a new custom type? Any thoughts would be greatly appreciated . . . BTW, I'm getting the error: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not render to pson: undefined method `merge' for []:Array with some very

[Puppet Users] ruby functions in puppet DSL

2011-09-08 Thread Guy Matz
Sorry if this has been hashed out before, but I can't find an answer anywhere . . . I would like to use the ruby function upcase on a variable that gets set in my site.pp . . . do I really need to write a custom function for this? Does anyone have any code I can drop into my puppet code that

[Puppet Users] What came first, the user or the group?

2011-09-01 Thread Guy Matz
Hi, I have inherited some code to create users that doesn't work when removing users . . . it's listed below. It works for adding users, but when it comes to removing users I get: err: /Stage[main]/Common/Common::Mkuser[oshi.apen]/Group[oshi.apen]/ensure: change from present to absent failed:

Re: [Puppet Users] unable to distribute custom facts

2011-08-12 Thread Guy Matz
Where exactly is you fact? Is it in a module? My recent experience required placement of my facts in $modulepath/module/lib/facter . . . On Fri, Aug 12, 2011 at 10:30 AM, newguy aimanparv...@gmail.com wrote: Guys I made a custom fact using export;(export FACTER_envt=`hostname -s|cut -c

[Puppet Users] Another Custom Fact deployment problem

2011-07-29 Thread Guy Matz
Hi all, My facts work during testing, but not on deployment. Any help would be greatly appreciated. Fact in modules/ldap/lib/puppet/facter/nss_ldap.rb: fact_name = 'nss_ldap' Facter.add(fact_name) do setcode do auth_settings = %x{/usr/share/authconfig/authconfig.py --test}

Re: [Puppet Users] Another Custom Fact deployment problem

2011-07-29 Thread Guy Matz
- agent.conf pluginsync = true Craig On Jul 29, 2011, at 8:06 AM, Guy Matz wrote: Hi all, My facts work during testing, but not on deployment. Any help would be greatly appreciated. Fact in modules/ldap/lib/puppet/facter/nss_ldap.rb: fact_name = 'nss_ldap' Facter.add(fact_name

Re: [Puppet Users] Another Custom Fact deployment problem

2011-07-29 Thread Guy Matz
No!!! facter -p does *not* show my facts . . . what does that mean!? thank *you*! On Fri, Jul 29, 2011 at 11:42 AM, Nan Liu n...@puppetlabs.com wrote: On Fri, Jul 29, 2011 at 11:38 AM, Guy Matz gm...@matz.org wrote: yeah, I got that set . . . yeah, I should have mentioned that the facts

Re: [Puppet Users] Another Custom Fact deployment problem

2011-07-29 Thread Guy Matz
= true classfile = $vardir/classes.txt localconfig = $vardir/localconfig graph = true pluginsync = true Again, the fact is defined on the server in modules/ldap/lib/puppet/facter . . . Thanks again On Fri, Jul 29, 2011 at 11:48 AM, Guy Matz gm...@matz.org wrote: No!!! facter -p

Re: [Puppet Users] Another Custom Fact deployment problem

2011-07-29 Thread Guy Matz
everyone! On Fri, Jul 29, 2011 at 11:54 AM, Guy Matz gm...@matz.org wrote: hmm . . . my custom facts are in /var/opt/lib/pe-puppet/lib/puppet/facter, but if I put them in /var/opt/lib/pe-puppet/lib/facter they *do* show up in facter -p . . . does that mean I am packaging my facts incorrectly

[Puppet Users] special handling for template file with XML?

2011-06-16 Thread Guy Matz
hi, i get the following error when trying to use a template with XML in it: Could not parse for environment production: Syntax error at '' So I tried using the HTML codes for special chars but now get: Could not parse for environment production: Could not match lt;?xml anyone know if I need to

[Puppet Users] is ruby code allowed in puppet manifest?

2011-06-16 Thread Guy Matz
much, Guy Matz -- You received this message because you are subscribed to the Google Groups Puppet Users group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit

[Puppet Users] Testing, testing . . .

2011-06-10 Thread Guy Matz
Any of you folks have any good tests that you use to make sure a module has completed successfully? Any best practice suggestions? I looked around on the www but didn't see anything about this. Please point me in the right direction if I missed it. thanks, guy -- You received this message