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 Engineer On Wed, Jan 10, 2024

Re: [Puppet Users] using vault

2023-05-25 Thread Aaron Russo
d 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 > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > htt

[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
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, Nov 1, 2022 at 11:34 PM 'Dirk Hei

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

2022-11-01 Thread Aaron Russo
if 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 Russo

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

2022-10-31 Thread Aaron Russo
t, 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 manifest. > > However it feels like an anti-

[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]

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, Jun

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 <henrik.lindb...@puppet.com > wrote: > On 10/06/16 2

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

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

2013-02-04 Thread Aaron Russo
)).each do |ipaddress,port| -% backend_hostname%= backend -% = %= ipaddress % backend_port%= backend -% = %= port % backend_weight%= backend -% = 1 backend_data_directory%= backend -% = '/db/pg' backend_flag%= backend -% = 'ALLOW_TO_FAILOVER' % backend += 1 -% % end % Cheers, Aaron Russo IST

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

2013-02-04 Thread Aaron Russo
/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 subscribed to the Google Groups Puppet Users group

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...@berkeley.edu (XMPP

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

2012-12-19 Thread Aaron Russo
interested in using 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 for...@gmail.com wrote: In our

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

2012-12-06 Thread Aaron Russo
-receive_environments Cheers, Aaron Russo IST Infrastructure Services, Unix Group UC Berkeley On Thu, Dec 6, 2012 at 3:55 PM, Peter Brown rendhal...@gmail.com 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 then do

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

2012-10-03 Thread Aaron Russo
that it didn't turn out this way. However, I think the method of communicating to the community can be improved to compensate. And finally, thanks for all the work guys. Puppet is a fantastic product, and has a fantastic community behind it. Cheers, Aaron Russo Could you please file an issue

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 salty.cowd...@gmail.com wrote: Hi there, After seeing a tweet about puppet-lint I