[Puppet Users] puppet ssl bootstrap and cert requests

2024-04-26 Thread Bob Negri
over kill but we are trying to renew our certificates monthly. Also, we insert a OTP into the car_attributes.yaml file, and it is rather short lived. Thanks, Bob -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from

[Puppet Users] Puppet Agent 8 and Puppet Server 7 compatibility?

2023-08-05 Thread Bob Negri
Does anyone know if the puppet 8 agent can interact with a puppet 7 server/master and puppetdb? Thank you! -- 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 email to pupp

[Puppet Users] Binary file in eyaml breaking use of Deferred due to pson

2023-07-07 Thread Bob Negri
We were trying to migrate the secrets we store in eyaml to HashiCorp Vault and use vault_lookup with Deferred to retrieve them. My team owns the base profile. Turns out one of our business partners is storing a key tab binary file in eyaml and writing it out to the file system using the File res

[Puppet Users] Deferred, sprint, exec, and an exclamation point in the string

2023-06-09 Thread Bob Negri
I have been trying to replace my eyaml stored secret with a vault_lookup call to HashiCorp Vault. As far as I can tell, getting the password out of Vault is the easy part. The password has an exclamation point. I think the command I'm trying to execute via the exec resource type is getting mang

[Puppet Users] Re: Resource type exec, Deferred, and Vault

2023-06-09 Thread Bob Negri
Answer is, it seems to work with Deferred('sprint', ['Password: %s', $db_password]. There are issues around special characters in the password string, like and exclamation point. On Thursday, June 8, 2023 at 7:28:41 AM UTC-5 Bob Negri wrote: > Is it possible to use Defer

[Puppet Users] Resource type exec, Deferred, and Vault

2023-06-08 Thread Bob Negri
Is it possible to use Deferred with the command in resource type exec? The code we are trying to replace to use a Vault secret has an gpg key as a passed in secret. I saw a code example in Ben Ford's blog post. notify { 'vault server debugging': # Defer interpolation to runtime after the value

[Puppet Users] Has anyone used hiera-eyaml-gkms (https://github.com/craigwatson/hiera-eyaml-gkms) sucessfully?

2022-12-12 Thread Bob Belnap
l exist if it doesn't work with puppetserver? More likely, I'm doing something wrong. Is anyone using gkms eyaml with puppet? Any ideas about how this might be setup without installing with puppetserver gem? Am I missing something obvious? Thanks for any ideas or condolence

Re: [Puppet Users] PuppetDB and PostgreSQL 12 errors

2020-09-18 Thread Bob Negri
So 4 hrs might not be big enough? (Looks like the person who did the update did not check the documents.) Trying the new settings now. On Thursday, September 17, 2020 at 6:27:29 PM UTC-5 zachar...@puppet.com wrote: > On Thu, Sep 17, 2020 at 8:12 AM Bob Negri wrote: > >> We rece

[Puppet Users] PuppetDB and PostgreSQL 12 errors

2020-09-17 Thread Bob Negri
We recently updated our PuppetDB servers to PuppetDB 6.12.0 and PostgreSQL 12. Started getting these errors: ERROR: relation "resource_events_20200917z" does not exist at character 13 ERROR: relation "resource_events_20200917z" already exists ERROR: deadlock detected ERROR: could not serializ

[Puppet Users] PuppetDB 6.12.0 and Postgresql 12: ERROR: relation "reports_20200916z" does not exist at character 13

2020-09-17 Thread Bob Negri
n, code_id, noop_pending, certname, metrics, job_id ) VALUES ( $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22 ) RETURNING * Thanks, Bob -- You received this message because you are subscribed to the Google Groups "Puppet Users" g

Re: [Puppet Users] Re: [ACTION] Changes to release package links

2019-05-15 Thread Bob Vincent
First sign of breakage: https://tickets.puppetlabs.com/browse/BKR-1590 Fixed here: https://github.com/puppetlabs/beaker-puppet/pull/113 On Monday, May 6, 2019 at 6:16:25 PM UTC-4, Molly Waggett wrote: > > Hey folks, > > REMINDER that the repository path changes* will take effect next week, on >

Re: [Puppet Users] Problems testing branching using rspec-puppet with hiera

2019-04-17 Thread Bob Vincent
Thanks for the reference. Note that RuboCop had a problem with the style; I'll push a patch presently. On Wednesday, February 17, 2016 at 10:30:06 AM UTC-5, Trevor Vaughan wrote: > > Hi Joseph, > > You can see how we do it in SIMP using this reference spec_helper.rb > https://github.com/simp/p

Re: [Puppet Users] Need help for configuring / migrating from Puppet 3.8 to Puppet 6.x

2019-04-17 Thread Bob Vincent
eiving emails from it, send an > email to puppet-users+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/9e64de29-f7c9-4c51-996f-41aec7843911%40googlegroups.com > <https://groups.google.com/d/msgid/p

[Puppet Users] Re: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5

2017-02-14 Thread Bob
Being that I have followed the default structure this time the following worked fine for me direct from the above link - --- version: 5 defaults: datadir: data data_hash: yaml_data hierarchy: - name: "Nodes" path: "nodes/%{trusted.certname}.yaml" # Putting a JSON level between YAML

[Puppet Users] Re: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5

2017-02-14 Thread Bob
I found that although that fixed my error, I got no data. Turns out this is because you need a hiera.yaml in each environment folder with the datadir specified to that environment (if you are using a hieradata folder specific to each environment. I also needed to change puppet.conf and add envi

[Puppet Users] Re: Puppet reporting

2017-02-14 Thread Bob
I use puppetdb along with pupperboard, gives a really nice interface and works with puppet 3+4 Also can be puppet'd itself. On Friday, February 10, 2017 at 3:13:24 AM UTC+13, devops...@gmail.com wrote: > > Hi Everyone, > > I want to report the puppet change events across nodes to a central > s

[Puppet Users] Re: Use of 'hiera.yaml' version 3 is deprecated. It should be converted to version 5

2017-02-14 Thread Bob
The spec appears to be here - https://docs.puppet.com/puppet/4.9/lookup_quick.html On Wednesday, February 8, 2017 at 8:37:32 AM UTC+13, Joshua Schaeffer wrote: > > Okay I see that they are actually preparing to release Puppet 4.9.2 which > is supposed to fix these issues. Does this mean they wil

[Puppet Users] Re: Convert Floating point to integer

2015-05-14 Thread Bob Vergeer
Thanks, John. I didn't have another purpose for the shm_size variable. Wasn't using the mount because I'm a rookie and still learning. Bob On Thursday, May 14, 2015 at 10:13:13 AM UTC-4, jcbollinger wrote: > > > > On Wednesday, May 13, 2015 at 2:55:03 PM UTC-5, B

[Puppet Users] Convert Floating point to integer

2015-05-13 Thread Bob Vergeer
hm_sizeM 0 0' Thanks, Bob -- 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 email to puppet-users+unsubscr...@googlegroups.com. To view this disc

[Puppet Users] Converring floating point to integer

2015-05-13 Thread Bob Vergeer
It seems that this should be easy but I just can't seem to figure it out. The goal is to calculate memory size for a /dev/shm entry in the fstab and add an 'M' to the resulting variable. Something like $shm = $memorysize_mb - 1024 file_line { 'shm': line => 'non -- You received this mes

[Puppet Users] Custom fact working, but not on the puppetmaster

2014-04-15 Thread Bob Hoekstra
This has me confused - please advise. Using open source puppet on AWS instances. Info is dumped into user-data at creation of the instances, and a custom fact reads this so that puppet can configure the instance depending on the content. So far so good. The fact: # cat /etc/puppet/modules/usefu

[Puppet Users] Re: Baffled by variable scope problem

2013-10-24 Thread Bob Jones
On Thursday, October 24, 2013 9:27:58 AM UTC-4, jcbollinger wrote: > > > > On Wednesday, October 23, 2013 10:07:37 AM UTC-5, Bob Jones wrote: >> >> Hello all. I have been banging my head against this problem and I cannot >> for the life of me determine what is

[Puppet Users] Re: Baffled by variable scope problem

2013-10-24 Thread Bob Jones
I guess I'm not the only one stumped by this problem. :) Bob On Wednesday, October 23, 2013 11:07:37 AM UTC-4, Bob Jones wrote: > > Hello all. I have been banging my head against this problem and I cannot > for the life of me determine what is wrong. We are running Puppet v3.2

[Puppet Users] Baffled by variable scope problem

2013-10-23 Thread Bob Jones
anges are out of the question (no matter how much I might like to make them). Any and all help would be greatly appreciated! Thanks, Bob -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group

Re: [Puppet Users] Unable to set MySQL root password

2013-04-04 Thread Bob
MySQL was purged before running puppet script with command: apt-get purge mysql\* So I can't input root password as it's fresh install. четверг, 4 апреля 2013 г., 18:52:15 UTC+5 пользователь Felix.Frank написал: > On 04/04/2013 03:48 PM, Bob wrote: > > notice: /Stage[main]

Re: [Puppet Users] Unable to set MySQL root password

2013-04-04 Thread Bob
st took a peek at the code. Note that you need to specify the > old_root_password if one is set, otherwise puppet cannot modify the > system. > > What's the output of a puppet agent run? > > Regards, > Felix > > On 04/04/2013 02:33 PM, Bob wrote:

[Puppet Users] Unable to set MySQL root password

2013-04-04 Thread Bob
Hi, Using this module https://forge.puppetlabs.com/puppetlabs/mysql as described on documentation: class { 'mysql::server': config_hash => { 'root_password' => 'foo' } } But, couldn't set password after logging getting error: Access denied for user 'root'@'localhost' (using password: YES)

[Puppet Users] Puppet lock files on Opensuse 12.1

2012-06-20 Thread Bob
is a trivial 1-line fix, which is to edit the startup scripts /etc/init.d/puppetmasterd and /etc/init.d/puppet, replacing the lockfile location with one in /var/run/puppet. Is this the case, or does some other component expect the lock file to be in that hard-coded place? Regards, Bob

Re: [Puppet Users] How to add Ubuntu PPA repository (with signing key)?

2012-04-12 Thread Bob
ld do something useful, i.e. import the key from the puppet server Then the administrator would install trusted keys on the Puppet server and they would be automatically distributed to clients. I may well be missing something here, so I am happy to be corrected if i am wrong Bob On Tuesday, 8 Dec

[Puppet Users] Re: Do I need a fact for this?

2012-03-09 Thread Bob Rontomskin
On Thursday, 8 March 2012 15:38:57 UTC+1, jcbollinger wrote: > > > > On Mar 7, 10:24 am, Bob Rontomskin wrote: > > Hello group, > > > > I have a Tomcat class which takes a java package name as a parameter. > > The parameter looks like openjdk-1.2.3 or

[Puppet Users] Do I need a fact for this?

2012-03-07 Thread Bob Rontomskin
Hello group, I have a Tomcat class which takes a java package name as a parameter. The parameter looks like openjdk-1.2.3 or sunjava-2.3.4. The purpose of the parameter is that it sets a configuration option in the Tomcat configuration to tell it which java binary to use. I need to determine whi

[Puppet Users] Use of function_defined in custom function

2011-10-04 Thread Bob
t;/service/puppet/ resource[@name='#{@rname}']/attribute") { |subelement| @aname = subelement.attributes["name"] @avalue = subelement.get_text.to_s myresource[@rname][@aname] = @avalue } if not function_defined("#{@rtype}[#{@rname}]"

[Puppet Users] IPv6 issue

2011-07-21 Thread Bob
Hi, I run puppetmaster on a machine accessible by both ipv4 and ipv6. bindaddress in puppet.conf is "::" Puppet version: Client (debian squeeze): 2.6.2-5 Server (ubuntu 10.10): 2.6.1 When I try to run puppetd --test from my IPv4 only client, I get the following error message: Could not retrieve

[Puppet Users] Re: Problem with usage of arrays

2011-07-18 Thread Bob
I know it's a ugly hack, but this saved me: $myarray = ['1', '2', '3'] $var0 = inline_template("<%=myarray.split(',')[0]%>") $var1 = inline_template("<%=myarray.split(',')[1]%>") -- Bob -- You received this

Re: [Puppet Users] puppet and cpan

2010-08-15 Thread Bob Walker
life eaiser. http://github.com/miyagawa/cpanminus -- bob walker buses should be purple and bendy -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@googlegroups.com. To unsubscribe

[Puppet Users] using puppet ssl certs for other applications

2010-08-06 Thread Bob Belnap
vantages I see: * It saves me from having to maintain my own separate CA system. * I don't have to store sensitive certs/keys in manifests Is anyone else doing this? Is it a good idea? What are the potential pitfalls? --Bob -- You received this message because you are subscribed to the Goo

Re: [Puppet Users] inheriting ssh_authorized_key

2010-03-13 Thread Bob Belnap
Thanks Pete! I owe you a beer. Using defines this way works much better. And, for my issue with adding options, it's just a matter of passing in the options to the define, then using: ssh_keys::bob{"repo": options => "command=\"svnserve -t --tunnel-user=bob\"

Re: [Puppet Users] inheriting ssh_authorized_key

2010-03-13 Thread Bob Belnap
Correction: "seems to work as expected" :) overriding name gets it to the "repo" user, but does not keep in other places. Looks like I'm back to using variables. Thanks for the tip. --Bob -- You received this message because you are subscribed to the Google Groups

Re: [Puppet Users] inheriting ssh_authorized_key

2010-03-13 Thread Bob Belnap
Alan, You just reminded me that the name has to be unique. It turns out it will work when inherited, but you have to override the name as well. This works as expected: class repobob inherits ssh_keys::all::bob { Ssh_authorized_key[bob] { user=> &q

[Puppet Users] inheriting ssh_authorized_key

2010-03-12 Thread Bob Belnap
Hello, I'm trying to reuse an ssh_authorized_key, but I'm having some problems. There was a recent thread about using the same key for different users, but I didn't see any resolution there. My issue is a bit different. I'm currently using this key: class ssh_keys:

[Puppet Users] Grouping a set of hosts

2009-11-25 Thread Bob
Hello All, I just joined this group and am not sure this question has been answered before. How do you apply configuration changes to a set of hosts? I know this works, but was looking for a more elegant method. node host1,host2,host3{ include . } Thanks in advance.