Hello folks
i need a bit of help calculating the network address from ip an netmask
avoiding the use of stdlib within a puppet maifest.
#given IP address and netmask
$ip="10.122.3.177"
$nm="255.255.255.128"
#splitting into octets - split() didnt work for some reason
if $ip =~ /([0-9]+)\.[0-9]
Out of curiosity, what exactly are all the components you are trying to
install, e.g. CMSes? Drupal? WordPress? Joomla? Is that database going to
be on the same system?
Note, segue here before I divulge a solution, perhaps sacrilegious, is that
the role/profile might not be the best design pat
Did you escape the meta character of dot?
$octets = split($ip, '[.]')
On Monday, May 19, 2014 12:01:48 AM UTC-7, Michael Wörz wrote:
>
> Hello folks
>
> i need a bit of help calculating the network address from ip an netmask
> avoiding the use of stdlib within a puppet maifest.
>
> #given IP
no, thanks split works now,
but the boolean operator
$ok1=$iparray[0] and $nmarray[0]
returns true inetad of 10
$ip="10.122.3.177"
$nm="255.255.255.128"
$iparray=split($ip, '[.]')
$nmarray=split($ip, '[.]')
$ok1=$iparray[0] and $nmarray[0]
notify {"$ok1":}
Am Montag, 19. Mai 2014 09:08:16
I always calculate network addresses on clients, using the ipcalc command.
I don't know if it is possible in your case.
Regards,
El 19/05/2014 09:22, "Michael Wörz" escribió:
> no, thanks split works now,
> but the boolean operator
>
> $ok1=$iparray[0] and $nmarray[0]
>
> returns true inetad of
Hello,
Could I ask for a little clarification over node definitions in 3.6+ and
directory environments please.
On our 2.7 masters we have an /etc/puppet/manifests/site.pp with some
defaults within it.
import "nodes/*.pp"
filebucket { 'main':
server => 'puppet.dev',
path => false,
}
Fil
>
>
>>
>> However if I shutdown the master and run it under a shell with "--debug
>> --no-daemonize" everything is fine and clients (re-download) the
>> facts/plugins
>> and get a catalog etc.
>>
>> I am a bit mystified about this, and ideas ?
>>
>
> Kind of a guess, but this *may* be
> https:/
Hi David,
Thanks. That was indeed the case.
The "ruby -rpuppet" just proved to me that the custom functions we're not
parsed correctly in puppet either (no helpful errors even there though).
Once I added the reset, all started working fine inside puppet too.
Thanks a lot!
Regards,
Karolis
On
Hi peeps,
I recently installed MCollective using the puppetlabs module. I'm just
beginning to find my way around it but I've noticed that quite a few of
my nodes aren't appearing in MCollective. The nodes are split across 4
subnets (three publicly address, one private. Two of the public ones
Hi,
The variable I want to access is not defined in a module/class. It's the
globally defined $::environment. Since facts are also exposed as global
variables, the server-defined $::environment gets overridden when
there's a fact with the same name.
So any ideas on how to avoid that? As it is, it
> so, one specific example,
>> someone (not me) implemented a class tomcat with parameters port and
>> ssl_port.
>> I want to use that class,
>> and I want that the ssl_port is always port + 1 (I don't want this to be
>> configurable in hiera)
>>
> so, in my hiera data, I will specify port
On 05/07/2014 07:04 PM, Alex Scoble wrote:
> All in all, I love the product, don't get me wrong, and maybe it looks
> pretty stable when you're at the guru level and figuring out new stuff
> is fairly easy, but for me, it's just me and a coworker trying to mature
> our linux and puppet infrastructu
Hi
First time poster to this forum. I'm in the process of doing a pilot to
convert a cfengine v2 install to puppet.
I was wondering if any one had any ideas on the following.
I have machines that can be in any combination(ie 0 or more) of 10 groups,
that can change. I need to create an acce
Hello,
I'am search for the best way to reconnect a puppet client when I reinstall
the entire operating system of the host.
Actually I follow this complex procedure where all the steps are mandatory :
On the agent :
--
1) I remove entirely the content of the /var/lib/puppet/
Every node has a persistent TCP connection with the middleware server port
61613.
First of all check this. Also check that the servers are time synchronize,
mcollective is very sensible to time differences.
Hth,
El 19/05/2014 13:02, "Jonathan Gazeley"
escribió:
> Hi peeps,
>
> I recently instal
On Friday, May 16, 2014 9:34:22 AM UTC-5, mike wrote:
>
> Hi,
> The strange is that problem appears only use hiera (hiera_include), when i
> comment this line in my site.pp and create any simple manifest this is
> applicate without problem in my node.
>
>
So maybe your hiera is broken (or som
On Monday, May 19, 2014 8:04:05 AM UTC-5, jcbollinger wrote:
>
>
>
> On Friday, May 16, 2014 9:34:22 AM UTC-5, mike wrote:
>>
>> Hi,
>> The strange is that problem appears only use hiera (hiera_include), when
>> i comment this line in my site.pp and create any simple manifest this is
>> applica
On 19/05/14 13:51, José Luis Ledesma wrote:
Every node has a persistent TCP connection with the middleware server
port 61613.
Thanks, that's what I needed to know. I had set all the nodes to listen
on 61613 for incoming connections from the middleware server.
Cheers,
Jonathan
--
You receiv
Thanks for the discussion and suggestions,
I'll have some reading to look forwards to it appears. In particular I'll
look into Job Builder since that seems like it could slot into what we're
building now with minimal effort(we're "a little" short on time at the
moment). We're using R10k current
On Monday, May 19, 2014 6:06:45 AM UTC-5, Boyan Tabakov wrote:
>
> Hi,
>
> The variable I want to access is not defined in a module/class. It's the
> globally defined $::environment. Since facts are also exposed as global
> variables, the server-defined $::environment gets overridden when
> t
On Friday, May 16, 2014 10:55:35 AM UTC-5, Jesse Cotton wrote:
>
> I work with Matt and am filling in for him since I posed this question to
> him originally.
>
> Our confusion really lies around how you layout profiles for a
> multi-function box. For example, suppose you have a role, "CMS App
Hi,
I try configure the NTP Hiera class (
http://docs.puppetlabs.com/hiera/1/complete_example.html) and run ok and i
dont have any errors in my node client. I believe that my error is a some
problem with the MySQL configuration Hiera Class (some variable, some
params).
Thanks.
2014-05-19 9:05 GM
Greetings,
I've done some grepping of the puppet-users list and cannot find a
definitive answer. I am running a puppet 2.6/2.7 environment. Is there
a way to query the master to get a list of agents/clients that have
(in their computed catalog) a certain resource (cron for instance) ?
It looks li
Hi,
On 19 May 2014, at 16:36, Matt Zagrabelny wrote:
> Greetings,
>
> I've done some grepping of the puppet-users list and cannot find a
> definitive answer. I am running a puppet 2.6/2.7 environment. Is there
> a way to query the master to get a list of agents/clients that have
> (in their comp
On Mon, May 19, 2014 at 2:09 AM, Paul Seymour wrote:
>
>>>
>>> However if I shutdown the master and run it under a shell with "--debug
>>> --no-daemonize" everything is fine and clients (re-download) the
>>> facts/plugins
>>> and get a catalog etc.
>>>
>>> I am a bit mystified about this, and ide
On Monday, May 19, 2014 10:18:11 AM UTC-4, jcbollinger wrote:
>
>
>
> On Friday, May 16, 2014 10:55:35 AM UTC-5, Jesse Cotton wrote:
>>
>> I work with Matt and am filling in for him since I posed this question to
>> him originally.
>>
>> Our confusion really lies around how you layout profiles for
Folks,
I am in the midst of creating a deployment guide for a client that I am
working with for the use of Puppet in their environment. The company is big
enough that even though the company as a whole uses Puppet already (it's
even on the Puppet web site) the local teams I am working with have no
On Sun, May 18, 2014 at 10:57 AM, Jim Ficarra wrote:
> Trying the following in both package and exec providers
>
> D:\Build\Oracle11gclient\setup.exe -silent -waitforcompletion -noconsole
> -responseFile D:\Build\Ora11gclient.rsp
>
> I can run this at the command line and install Oracle 11g clien
You could do global variables, but you couldn't one set the hierarchy to
the profile level? Thus you isolate variables in preference to the
profile, rather than a global mismash. Stick with parametrization for now
if this works, refactor later after getting it working, as you'll have a
functi
On May 19, 2014, at 3:40 PM, Peter Berghold wrote:
> Second: is there a way to use a load balancer in front of a bank of Puppet
> masters and keep the reports in sync?
PuppetDB eliminates this need for you, and you can scale at the PostGres layer
instead. Have a peek at PuppetDB. It’s a de
On 2014-19-05 10:05, Paul Seymour wrote:
Hello,
Could I ask for a little clarification over node definitions in 3.6+ and
directory environments please.
On our 2.7 masters we have an /etc/puppet/manifests/site.pp with some
defaults within it.
import "nodes/*.pp"
filebucket { 'main':
server
On 2014-14-04 16:43, jcbollinger wrote:
On Friday, April 11, 2014 10:10:37 PM UTC-5, David Portabella wrote:
I didn't know about this /evaluation-order dependency./
Why does this "evaluation-order dependency" exists in puppet?
Do you mean this particular one, or evaluation-order dep
The "and" function is only meant to return true or false. It does not
perform binary arithmetic, which is what you're trying to do.
If you can use the number of bits in the netmask (CIDR notation), instead
of the dotted-quad notation, you can do something like this:
$host = "10.122.3.177"
Perhaps I am overlooking something. How would you construct the hierarchy
so you could set apache::keepalive for this profile?
class profile::apache_phpfpm {
include ::apache
}
You could do global variables, but you couldn't one set the hierarchy to
> the profile level? Thus you isolate vari
I'm seeing this issue with the current version of stdlib. When getting
numeric data from hiera, or performing math on a variable, validate_re()
fails when using the following regex:
'[0-9]+'
Here are some test cases:
Getting data from hiera
# Hiera data:
# ---
# testvalue: 1234
On Friday, May 16, 2014 2:20:35 AM UTC-7, Stefan Heijmans wrote:
>
> Hello,
>
> Just upgraded Puppet from 3.4.3 to 3.6.0 in our sandbox, noticed the
> following.
>
> - directory environments
> Documentation says; "Set environmentpath = $confdir/environments in the
> puppet master’s puppet.conf (
So I am just trying to create a file based off a template. I've done this
many times but am stumped. Maybe some silly syntax error I'm not seeing?
I define the variable:
$local_server_root = 'E:\LocalServer'
Then use it in the file type:
file { 'LocalServer_conf':
ensure=> file,
Hi,
I was wondering if it's possible to use an existing resource type say file,
e.g.
lets say following is all I need to do:
file {'testfile':
path=> '/tmp/testfile',
ensure => present,
mode=> 0640,
content => "I'm a test file.",
}
Normally,
OPTION1
Thanks for replying, Josh.
I just tried your suggestion but the same thing happens.
install_options => ['-silent', '-waitforcompletion', '-noconsole'.
'-responseFile', 'D:\Build\Ora11gclient.rsp'],
It spawns several processes (javaw, oui, etc) and then it unzips the files (I
see unzip.exe e
I can weigh in a little on this...
As far as scalability of the puppet masters, it can be variable
depending on what kind of puppet code you are running. The largest
item that can ruin scalability is long catalog compilation time.
Another thing is run interval.
Current at my workplace we run a p
On 05/19/14 22:30, prunkd...@gmail.com wrote:
I'am search for the best way to reconnect a puppet client when I
reinstall the entire operating system of the host.
In a lab where rebuilds are frequent, I keep a copy of each hosts
certificates and keys on the file server and copy them from an NFS
Hi!
Every now and then I get the following error while running puppet agent.
Error: Could not retrieve catalog from remote server: Error 400 on SERVER:
Failed to submit 'replace catalog' command for prod2.site to PuppetDB at
puppet.site:8081: [500 java.util.concurrent.TimeoutException: Idle tim
On Mon, May 19, 2014 at 6:46 PM, Jim Ficarra wrote:
> Thanks for replying, Josh.
>
> I just tried your suggestion but the same thing happens.
>
> install_options => ['-silent', '-waitforcompletion', '-noconsole'.
> '-responseFile', 'D:\Build\Ora11gclient.rsp'],
>
> It spawns several processes (
This looks like a puppetdb error. Can you check the PuppetDB logs and post
any relevant errors?
Thanks,
Spencer
On Mon, May 19, 2014 at 10:02 PM, Sergey Arlashin <
sergeyarl.maill...@gmail.com> wrote:
> Hi!
>
> Every now and then I get the following error while running puppet agent.
>
> Error:
2014-05-20 05:34:36,684 INFO [c.p.p.command]
[e806b0a2-7703-4a4a-8107-65cd2c0db9a8] [replace facts] prod1.site
2014-05-20 05:34:44,112 INFO [c.p.p.command]
[e8cb3511-9734-4ba7-b040-96f663404c00] [replace facts] redmine.site
2014-05-20 05:34:45,387 INFO [c.p.p.command]
[9026d779-3a43-4c06-a23d
45 matches
Mail list logo