If I'm remembering correctly, str2bool used to fail when passed a Boolean.
Therefore, to be safe in *all* cases, you would want to use the prescribed
method.
Trevor
On Tue, Sep 15, 2015 at 5:53 PM, Clay Caviness wrote:
> I'm going through our puppet configuration trying to
At my office we use puppet hiera. The general approach has been to use key
value pairs in the yaml files as the source for variables in the modules
which are defined with snippets that look like this:
hiera('some_hiera_variable', 'www.google.com')
The main puppet init.pp is a small piece of
I'm going through our puppet configuration trying to get ready for an
eventual upgrade to puppet 4.
One thing I'm curious about, though, is the use of str2bool.
In the introduction to the future parser in the 3.8 documentation
I wanted to remind everyone that we have several open CFPs for
upcoming events, and I would love to see more people submitting talk
proposals for them!
Puppet Camp London: November 3
http://goo.gl/forms/s99NPdqKdl
Puppet Camp Washington, D.C.: November 10
http://goo.gl/forms/iDXPgds20X
Puppet
The audit -> exec trigger was one that I hadn't thought about really and is
a valid use case. However, that does scream that a custom type is needed.
Trevor
On Mon, Sep 14, 2015 at 12:17 PM, Corey Osman wrote:
> I have actually used audit quite extensively at a previous
The template file was created in Geppeto, and has crlf line endings. The
chocolatey.config also has crlf line endings. This is tested using the file
command on Scientific Linux 7.1. For testing the windows file, I copied it
over SMB from the windows computer.
On Wednesday, September 9, 2015
Good morning guys,
I am trying to template the OMD rules file and for this I am using 2 arrays
one which holds the IPs and the other one the Services.
In my ERB template I have this:
<% for @omd_service in @omd_service -%>
<% var1 = @omd_service %>
<% @server2.each do |omd_ip| -%>
<% end -%>
The desired output will be:
rule1 ip1
rule2 ip2
I am running Ubuntu 14.04 with Puppet 3.7
Thank you
--
This message and its attachments are private and confidential. If you have
received this message in error, please notify the sender and remove it and
its attachments from your system.
In this case, you can have a fact that uses the code that you posted above.
Facts are just Ruby so you can pretty much do whatever you need and return
the boolean as the fact content.
However, you may need to get a bit fancy and use a confine to ensure that
only that one node is triggering the
Use a regular expression? Untested:
server-id=<%= @hostname.match(/db([0-9]+)/); $1 %>
On Tue, Sep 15, 2015 at 03:59:44PM -0400, Tim Dunphy wrote:
>Hey guys,
> Is there any other way to automate this setting in my.cnf:
>server-id=1
>So that if the host is db1 it'll get a value of
Thanks you! The explanation about private and public classes is just great!
So, there seems to be no way to define IN the module how public classes get
evaluated (order), right?
I really want to use some params from `::ospuppet` in `::ospuppet::master` and
`::ospuppet::server`
On 9/15/15 12:59 PM, Tim Dunphy wrote:
Hey guys,
Is there any other way to automate this setting in my.cnf:
server-id=1
So that if the host is db1 it'll get a value of 1, for db2 a value of 2,
for db3 a value of 3 and db4 a value of 4?
Don't bother. Assigning the number manually and
Hey guys,
Is there any other way to automate this setting in my.cnf:
server-id=1
So that if the host is db1 it'll get a value of 1, for db2 a value of 2,
for db3 a value of 3 and db4 a value of 4?
The only way I can think of this is to have branching logic in the puppet
manifest that does a
Try something like this to extract the \d from the hostname:
<% id = fqdn.dup %>
<% id.gsub!(/db(\d).domain.ext/){$1} %>
server-id = <%= id %>
On 09/15/2015 03:59 PM, Tim Dunphy wrote:
Hey guys,
Is there any other way to automate this setting in my.cnf:
server-id=1
So that if the host is
On 9/15/15 1:15 PM, Ramin K wrote:
server_id = <% require 'ipaddr'%><%= IPAddr.new(@ipaddress).to_i %>
server_id = fqdn_rand(2147483647).
that last should have been <%= scope.function_fqdn_rand(2147483647) %>
assuming it was also in a template.
Ramin
--
You received this message because
No, it is remote. I am deploying a application cluster that has some nodes
dependencies, so basically in order to execute a script in one node I need
to make sure first that the remote node is already listening on a specific
port, if that node is not listening on that port I do not want to
On Tuesday, September 15, 2015 at 3:48:02 AM UTC-5, Sergiu Cornea wrote:
>
> Good morning guys,
>
> I am trying to template the OMD rules file and for this I am using 2
> arrays one which holds the IPs and the other one the Services.
>
> In my ERB template I have this:
>
>
This bit is surely
17 matches
Mail list logo