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, ollies...@go
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
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"
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! 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
*** L
. . .
Thanks again!!
On Thu, Mar 22, 2012 at 7:52 PM, Gary Larizza 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
Friday, March 23, 2012, Guy Matz wrote:
> > Thanks, guys!
> >
> > Here's the relevant snippet from my manifest:
> > @common::mkuser {
> > 'root':
> > uid=> 0,
> > comment=> 'root',
> >
ned resource
> type is?
>
>
>
> On Fri, Mar 23, 2012 at 7:40 AM, Guy Matz 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
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:
:datadir:
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 puppet-users@googleg
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}
auth
luginsync = 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
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 wrote:
> On Fri, Jul 29, 2011 at 11:38 AM, Guy Matz wrote:
> > yeah, I got that set . . . yeah, I should have mentioned that the facts
> do
> > get
report = 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 wrote:
> No!!! facter
everyone!
On Fri, Jul 29, 2011 at 11:54 AM, Guy Matz 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 fa
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 wrote:
> Guys
> I made a custom fact using export;(export FACTER_envt=`hostname -s|cut
> -c 1-2`;) on puppet master,
Oh, wait . . . that fact exists solely as an environment variable? You
haven't put that code in a file for distribution? Then please ignore my
previous response. Sorry
On Fri, Aug 12, 2011 at 10:30 AM, newguy wrote:
> Guys
> I made a custom fact using export;(export FACTER_envt=`hostname -s|
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: Cou
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 do
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 rou
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 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 wrote:
&g
tead of writing a new type.
> On Sep 15, 2011 1:22 PM, "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
y
On Thu, Sep 15, 2011 at 6:50 PM, Adrien Thebo 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 wrote:
>
>> hi! Does anyone have any advice on debugging a new custom type?
>>
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 w
011 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 have any advice on debugging a new custom type?
> >
> > Any thoughts would be greatly appreciated . . .
> >
> >
Hi! I've got a requirement that a few users need to have the same username,
but different passwords on qa & prod server. The users are currently
defined as
@users which gets realized in an appropriate module, and I've been thinking
about splitting out the users I need to have realized in differen
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
Hey!! Did you ever get anywhere with this? If so, I'd love to bounce a
couple of things off of you. The lack of documentation for ParsedFile is
annoying . . .
thanks,
Guy
On Thu, Aug 4, 2011 at 9:35 PM, windowsrefund wrote:
> All,
>
> I'm working on a provider which uses ParsedFile and am run
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
t
undefined 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 figur
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 pas
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 wrote:
> We've only recently discovered that puppet ca
t 2:38 PM, Stefan Schulte <
stefan.schu...@taunusstein.net> wrote:
> On Wed, Nov 09, 2011 at 01: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 vncserve
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
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
pupp
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 bec
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
in a template.
Thanks so 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...@google
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+unsubscr...@googleg
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
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 wrote:
> I'd definitely be interested, but I'm only a junior admin. I have about 2
> years of experien
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 tim
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
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: /home/gmatz/Code/puppet/keys/p
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,
$redis_p
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',
$amqp
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 wrote:
>
> So I can't us
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 t
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 wrote:
> Not really a puppet question or a puppet answer
>
> man alias (bash command)
>
> You should be
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 I
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
wrote:
> If you still want to use *ssh_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=>
Sorry! Yes, accounts::account is a defined type! :-( Sorry . . .
Working now!! Thanks!!
On Mon, Feb 9, 2015 at 9:01 AM, jcbollinger
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 resource that is a
>> sub
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 wrote:
> Hi! I have a process that is controlled by daemon
figuration,
> monitor => $monitor,
> }
> }
>
>
> Op woensdag 1 april 2015 20:35:06 UTC+2 schreef guymatz:
>>
>> I've seen some folks say this should work:
>>
>> if defined(::class::subclass)
>>
>> but it doesn'
on,
> monitor => $monitor,
> }
> }
>
>
> Op woensdag 1 april 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 w
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
17
hristopher Wood 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, Gu
I *did* misunderstand! Thanks for pointing that out! Much better now!
On Wed, Apr 8, 2015 at 8:57 AM, jcbollinger
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 . . ol
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.
Anything?
Appreciated!
Guy
On Wed, Apr 8, 2015 at 5:58 PM, Guy Matz wrote:
> 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 d
Hi! I'm trying to disable yum repos using augeas and can't quite figure
out how to set enabled=0 for all repos in a yum file. I've got this:
augeas { 'disable all repos in CentOS Base':
context => '/files/etc/yum.repos.d/CentOS-Base.repo',
changes => [
'setm */enabled . 0'
]
ould be appreciated!
On Thu, Apr 16, 2015 at 9:21 AM, Guy Matz wrote:
> Hi! I'm trying to disable yum repos using augeas and can't quite figure
> out how to set enabled=0 for all repos in a yum file. I've got this:
>
> augeas { 'disable all repos in Cen
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 wrote:
> This works with augtool but not in puppet:
>
> augeas { 'disable all other repos in CentOS Base':
> context =
ine got added above the comment
under the gpgkey line . . .
I'm nitpicking here, I know!! Any suggestions?
Thanks so much for all of the help up to this point! ;-)
On Thu, Apr 16, 2015 at 12:15 PM, Guy Matz wrote:
> No, I was wrong . . that doesn't work with augtool. It seems to,
68 matches
Mail list logo