Re: [Puppet Users] IF statement using custom fact does not work

2024-01-10 Thread Aaron Russo
If $facts['versionrepokubelocal'] is an integer I don't think your comparison will work. Try: ``` if $facts['versionrepokubelocal'] != 2 { notify { "Upgrading repository version": }type here } ``` -- Aaron Russo (He/Him/His) PIXAR | Lead Systems Enginee

Re: [Puppet Users] using vault

2023-05-25 Thread Aaron Russo
ecipient, please delete the e-mail and any >> attachments and notify us immediately. >> >> -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To unsubscribe from this group and stop receiving emails from it, send an

[Puppet Users] Re: get secrets from vault

2023-03-02 Thread Aaron Russo
Don't you need a Deferred call to read into the hash, since it's a Deferred? We use a Deferred inline_epp to do this: ``` $test = Deferred('vault_lookup::lookup', ["secret/data/test", 'https://examplevault.com:8200']) node default { notify { 'example': message => Deferred('inline_epp', ['<

Re: [Puppet Users] Hiera 5 and Deferred / Sensitive

2022-11-02 Thread Aaron Russo
ionality in hiera. What I've done is similar to petems-hiera_vault except I return a Deferred function to perform the vault_lookup::lookup on the agent side rather than perform the vault lookup on the server side. Thanks, Aaron -- Aaron Russo (He/Him/His) PIXAR | Senior Systems Engineer On Tue

Re: [Puppet Users] Hiera 5 and Deferred / Sensitive

2022-10-31 Thread Aaron Russo
it is the only value being interpolated. I was then able to use that value as desired, provided whatever was consuming the value accepted (and unwrapped) the Sensitive[String] that was returned from the Deferred function. Cheers, Aaron On Monday, October 31, 2022 at 1:00:25 PM UTC-7 Aaron

Re: [Puppet Users] Hiera 5 and Deferred / Sensitive

2022-10-31 Thread Aaron Russo
e changes in Hiera/Puppet, this part may not be possible? Anyone have experience with this? On Fri, Oct 21, 2022 at 2:28 PM Aaron Russo wrote: > We're using the vault_lookup[1] module to retrieve secrets from Vault via > mTLS. It works fairly well when grabbing secrets within a manif

[Puppet Users] Hiera 5 and Deferred / Sensitive

2022-10-21 Thread Aaron Russo
We're using the vault_lookup[1] module to retrieve secrets from Vault via mTLS. It works fairly well when grabbing secrets within a manifest. However it feels like an anti-pattern by forcing lookups into our manifests when we want to keep that in Hiera. I found a previous related thread[2] wher

Re: [Puppet Users] Unexpected behavior when using variable interpolation on a subkey in hiera

2016-06-13 Thread Aaron Russo
Hi Henrik, I traced down the issue, and it's actually not hiera. The problem is actually the version of hiera-eyaml backend we are running. Updating from 2.0.0 -> 2.1.0 appears to resolve the issue. Thanks for your help, Aaron Russo Platforms and Infrastructure UC Berkeley, IST On Mon

Re: [Puppet Users] Unexpected behavior when using variable interpolation on a subkey in hiera

2016-06-13 Thread Aaron Russo
Hi Henrik, Yes, hiera_hash is doing it as well. That's what led me down the road to debugging directly with Hiera. Aaron Russo Platforms and Infrastructure UC Berkeley, IST On Fri, Jun 10, 2016 at 6:37 PM, Henrik Lindberg wrote: > On 10/06/16 20:14, aru...@berkeley.edu wrote: > >

Re: [Puppet Users] Puppet 3.7 Directory Environments and Vagrant Configuration

2014-10-02 Thread Aaron Russo
Hey Brendan, I did notice you aren't setting environmentpath in the config section in your gist. Maybe try setting environmentpath in vagrant? See below for what I would try. @@ -31,6 +31,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| puppet.options = "--config /vagrant/puppet

Re: [Puppet Users] Is it possible to generate a sequence in a template?

2013-02-04 Thread Aaron Russo
you had: link: https://gist.github.com/arusso23/4712284 (I'm on 3.0.1 btw) Cheers, Aaron Russo IST Infrastructure Services, Unix Group UC Berkeley --- Desk: 510-643-5550Mobile: 510-206-1532 IM: aru...@berkeley.edu (XMPP/Jabber) -- You received this message because you are subs

Re: [Puppet Users] How do I generate a sequence number in a template

2013-02-04 Thread Aaron Russo
lt;%= port %> backend_weight<%= backend -%> = 1 backend_data_directory<%= backend -%> = '/db/pg' backend_flag<%= backend -%> = 'ALLOW_TO_FAILOVER' <% backend += 1 -%> <% end %> Cheers, Aaron Russo IST Infrastructure Services, Unix Group UC Berkeley ---

Re: [Puppet Users] Hostname wildcards in module

2012-12-27 Thread Aaron Russo
I think you might have an error in your regex. In particular, it looks like you're missing a '.', so /^uklab*$/ should probably be /^uklab.*$/ Cheers, Aaron Russo IST Infrastructure Services, Unix Group UC Berkeley --- Desk: 510-643-5550Mobile: 510-206-1532 IM: aru...@ber

Re: [Puppet Users] Web interface to Facter information, system config reporting?

2012-12-19 Thread Aaron Russo
g it, feel free to email me off-list. Cheers, Aaron Russo IST Infrastructure Services, Unix Group UC Berkeley --- Desk: 510-643-5550Mobile: 510-206-1532 IM: aru...@berkeley.edu (XMPP/Jabber) On Wed, Dec 19, 2012 at 11:27 AM, Forrie wrote: > In our department, we recently bought an in

Re: [Puppet Users] Having puppetmaster checkout manifests from subversion

2012-12-06 Thread Aaron Russo
ter/puppet/post-receive_environments Cheers, Aaron Russo IST Infrastructure Services, Unix Group UC Berkeley On Thu, Dec 6, 2012 at 3:55 PM, Peter Brown wrote: > Hi Thomas, > > About the only way I can see that working is if you setup a cron job on > the puppet master that updates the svn and the

Re: [Puppet Users] Puppet 2.7 v 3.0 in the PuppetLabs yum repo

2012-10-03 Thread Aaron Russo
version of puppet (so that users of 2.6.x, 2.7.x and 3.0.x could continue to receive the latest and greatest for their version). But I also don't have to manage the thing, so I respect that it didn't turn out this way. However, I think the method of communicating to the community can be i

Re: [Puppet Users] puppet-lint crashes and burns

2012-07-11 Thread Aaron Russo
Had this exact same problem last night. String.starts_with? wasn't introduced until Ruby 1.8.7. Make sure you have Ruby 1.8.7 or greater installed. Regards, Aaron On Jul 11, 2012, at 7:11 AM, Peter Berghold wrote: Hi there, After seeing a tweet about puppet-lint I went ahead and installed p