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
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. -
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
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
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
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
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
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': }
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': }
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
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
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=
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
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
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
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)
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,
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',
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
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:
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
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
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
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
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
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,
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
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:
...@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
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
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
***
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
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
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
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,
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
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
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
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
: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
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
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
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
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
...@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
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
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
...@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
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
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
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:
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
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}
- 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
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
= 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
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
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
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
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
60 matches
Mail list logo