This should work in all versions of Ruby (YMMV)
'foo.bar.baz'.each_byte.map{|x| x}.join.to_i % 64511 + 1024
Trevor
On Wed, May 18, 2016 at 7:37 PM, p wrote:
> I'm doing this instead:
> module Puppet::Parser::Functions
> newfunction(:ip_port, :type => :rvalue) do |args|
> require 'zlib'
>
Hey;
To put this in perspective, I'm a sysadmin, not a developer. While I've
used git for a couple of years, until today, I could easily count the
number of times I issued a 'git branch' command.
I'm practicing setting up a new puppet 4 server and, after some research,
I've got various enviro
Hi all,
We're currently on PE 3.8.4.
We need to be able to manage sudoers permissions with Puppet, but control
things so sudoers permissions can only be granted within a specific module.
So permissions could be included via 'include foo::bar' from anywhere, but
the actual sudoers permissions u
I'm doing this instead:
module Puppet::Parser::Functions
newfunction(:ip_port, :type => :rvalue) do |args|
require 'zlib'
Zlib.crc32(args[0]) % 64511 + 1024
end
end
On Wednesday, May 18, 2016 at 10:16:19 AM UTC-7, p wrote:
>
> Any suggestions on how I can get the hash of the string
That's excellent news Matthaus. Thanks.
Op woensdag 18 mei 2016 20:04:18 UTC+2 schreef Matthaus Litteken:
>
> Martijn,
> Yes, there is a plan for releasing Xenial packages. There are puppetserver
> and puppetdb releases tentatively planned for tomorrow that will contain
> Xenial support.
>
>
--
Daniel,
Which version of Puppet are you seeing this on?
On Wed, May 18, 2016 at 2:33 PM, Daniel Urist wrote:
> I have been using the yo61 logrotate module from puppetforge (
> https://forge.puppet.com/yo61/logrotate), which seems to be the most
> popular, but it recently stopped working, with ma
I have been using the yo61 logrotate module from puppetforge (
https://forge.puppet.com/yo61/logrotate), which seems to be the most
popular, but it recently stopped working, with many errors about undefined
parameters.
The issue seems to be the use of the string 'undef' as a default value; for
exa
Harish,
The reason for that is the resources returned by puppet resource come from
the RAL, rather than PuppetDB. If you were to declare puppet resources with
the content included in your paste, then they would show up in PuppetDB.
PuppetDB will only include version information on package resourc
Hi Wyatt,
Thanks for your quick reply !
I do get some response for /v3/resources/Package , but it does not contain
any information about software's installed on node and it's versions.
My data of interest is similar to following ( I got this from node when i
issue *"puppet resource package"*)
Hey Harish,
Your issue could be that trailing backslash. PuppetDB is likely
interpretting it as a query for all resources with type "" (i.e empty
string).
You should be able to get all package resources with
/v3/resources/Package, and you can restrict that to a given node with
curl -X GET
Hi Ken,
Thanks for your reply.
I got the resource and catalog endpoints working after changing the confdir
ownership with " sudo chown -R puppet:puppet `sudo puppet config print
confdir`".
Now, i just need to get the resource list for all machines or for a
specific machine. I can't seem to fi
Martijn,
Yes, there is a plan for releasing Xenial packages. There are puppetserver
and puppetdb releases tentatively planned for tomorrow that will contain
Xenial support.
On Wed, May 18, 2016 at 7:23 AM, Martijn wrote:
> I'm setting up a new Puppet 4 Server and wanted to start from the newest
I'm about to spec a new machine for our Xenial puppet server and I'd like
to install Xenial on it rather than Trusty, so any info on when their will
be a full Xenial setup would be really helpful.
Thanks,
Kay
On Wednesday, May 18, 2016 at 9:23:59 AM UTC-5, Martijn wrote:
>
> I'm setting up a
Any suggestions on how I can get the hash of the string content itself so I
can get this function to work? I really just don't want to manage ports
anymore.
On Wednesday, May 18, 2016 at 7:35:55 AM UTC-7, Trevor Vaughan wrote:
>
> Hi Peter,
>
> Object.hash in Ruby provides the hash of the Object
Thanks, Trevor. I did and as you had predicted they are different.
On Wednesday, May 18, 2016 at 7:35:55 AM UTC-7, Trevor Vaughan wrote:
>
> Hi Peter,
>
> Object.hash in Ruby provides the hash of the Object ID, not a consistent
> cryptographic hash of the string provided.
>
> Try it in two differ
Hey;
Never mind, I got it. Based on advice from a knowledgeable source, I
changed the 'volatile' file directory in the puppetserver configs. I had
to have the [agent] stanza pointing to the same location. Once done,
'puppet agent -t' works as expected.
Amazing how many times the answer com
Mike,
To add a bit more to the info that Joe already provided, I would encourage
you to open a support ticket if you have a Puppet Enterprise license.
That'll be the easiest way for us to collaboratively get to the bottom of
this issue.
In terms of simply getting it working, I'd try following ste
Hey;
I'm trying to figure out puppet ver 4 after a long absence from puppet - in
fact, I missed pretty much all of ver 3.
The recommendation everywhere is basically don't use the same name for the
puppet server as the node on which it's running. Short way of saying that
from one book is: Th
Hi Peter,
Object.hash in Ruby provides the hash of the Object ID, not a consistent
cryptographic hash of the string provided.
Try it in two different IRB sessions and you'll see what I mean. It will
change between garbage collection runs and/or at every invocation of Puppet
if done in cron.
Trev
I'm setting up a new Puppet 4 Server and wanted to start from the newest
Ubuntu Xenial (16.04) LTS. After installing the
http://apt.puppetlabs.com/puppetlabs-release-pc1-xenial.deb package I
noticed the puppetserver package is not yet present in the repo.
I can start with Ubuntu Trusty for now,
On Tuesday, May 17, 2016 at 8:45:28 AM UTC-5, James Denton wrote:
>
> Hi All
>
> I've been having the following issue when inheriting a base class into
> another class that requires a resource file to be overwritten, im not sure
> if this is a puppet or Foreman error though.
>
> The error i re
So at a high level
The resources are populated from successful Puppet runs that submit
their catalogs to PuppetDB. So step 1, run puppet agent -t or
whatever, if you aren't seeing something like this in your
puppetdb.log:
2016-05-18 14:12:28,855 INFO [command-proc-3055] [p.p.command]
[898d1
Hi Everyone,
My custom puppet code changes values randomly. Why?
This code creates a random port for me based on the argument's hash. The
idea is that this will create a TCP port for me based on the name of the
argument I give it (for instance the FQDN) so that it is unique, above 1024
but bel
Hi,
I have configured puppet with passenger (using -
https://docs.puppet.com/guides/passenger.html AND
http://www.olindata.com/blog/2014/09/setup-puppet-master-passenger-and-apache-centos
).
[root@a-puppet-03 ~]# puppet --version
4.4.2
[root@a-puppet-03 ~]# ruby --version
ruby 2.1.8p44
I am running into an issue at work, I am trying to deploy an El Capitan
image with puppet 3.8.6 running on it.
The com.puppetlabs.puppet.plist file was created using the instructions
from puppet and has run successfully in /Library/LaunchDaemons
in 10.9 and 10.10
I noticed under 10.11 the file
25 matches
Mail list logo