Re: [Puppet Users] rspec - Unable to find class ::logstash

2014-06-05 Thread Johan De Wit

On 05/06/14 11:56, Felix Frank wrote:

On 06/04/2014 11:04 PM, Johan De Wit wrote:

And that is what you should check in your rspec file.

In your manifests, you need indeed the scoping, in your spec, you don't

Humm, unfortunate.

Doesn't that (in theory) open you up for regressions in the form of
"does no longer include the properly scoped class, gets resolved to the
wrong class" like Brian described?


this is something to be tested I believe ...

TBC


--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 


Next Events:
Puppet Advanced Training | 
https://www.open-future.be/puppet-advanced-training-10-till-12th-june
Puppet Introduction Course | 
https://www.open-future.be/puppet-introduction-course-13th-june
Linux Training | https://www.open-future.be/linux-training-16-till-20th-june
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/53905191.2080802%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Belgian Puppet User Group - Something about Mcollective 24th of June

2014-06-16 Thread Johan De Wit

This time we will talk about mcollective.

The first part we will flood you with some nice slides and a bit of 
talking,


The second part, all will setup mcollective on its own VM, and explore 
what Mcollective can do and how it works.


Detailed information can be found on our meetup page :

http://www.meetup.com/Belgian-Puppet-User-Group/events/185601762/

more on the agenda :

http://www.meetup.com/Belgian-Puppet-User-Group/messages/boards/thread/44965332

Grts

Johan

--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 


Next Events:
Puppet Advanced Training | 
https://www.open-future.be/puppet-advanced-training-10-till-12th-june
Puppet Introduction Course | 
https://www.open-future.be/puppet-introduction-course-13th-june
Linux Training | https://www.open-future.be/linux-training-16-till-20th-june
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/539EE6DE.6090300%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: Moving from manifest files to ENC script - not working...

2014-06-17 Thread Johan De Wit

I think, in your yaml, you are missing the name: 

Grts

jo

On 17/06/14 15:19, shlo.af...@gmail.com wrote:


I read the documentation.
I send yesterday example of my perl ENC code  and the output.  I'm 
sending them again:


#!/usr/bin/perl -w
  use strict;
  use YAML qw(Dump);

  my $hostname = shift || die "No hostname passed";

  system("echo $hostname >> /tmp/llkkll");

  my ($host, $domain, $net) = ($1, $2, $3);

  my @classes = ();
  my %parameters = (
  puppetserver => "puppetsrv"
  );
  @classes = ('class1', 'class2::basic', "class3");
  $parameters{var} = "kk1";


  print Dump({
  classes => \@classes,
  parameters => \%parameters,
  }); 



that as output give me:

---
classes:
- class1
- class2::basic
- class3
parameters:
puppetserver: puppetsrv
var: kk1


The definition of the classes are in manifests under the module directory.

My problem:
when I run the puppet command on the agent, it look like it 
*ignore* the classes I define in ENC script

and only if I have the node definition in node.pp it try to so something.

Maybe I'm missing very basic issue. I'm sorry.
Is there any way to debug it?

On Tuesday, June 17, 2014 2:58:55 PM UTC+3, Jason Antman wrote:

Yes, I have an idea.

1) Read the documentation:
http://docs.puppetlabs.com/guides/external_nodes.html
<http://docs.puppetlabs.com/guides/external_nodes.html>
2) If that doesn't help, post your ENC code, with specific
examples of output and problems that you're having.

--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5a15194a-c44e-4c3b-b62b-cc07e8094bf4%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/5a15194a-c44e-4c3b-b62b-cc07e8094bf4%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Puppet Advanced Training | 
https://www.open-future.be/puppet-advanced-training-10-till-12th-june
Puppet Introduction Course | 
https://www.open-future.be/puppet-introduction-course-13th-june
Linux Training | https://www.open-future.be/linux-training-16-till-20th-june
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/53A04BA6.8070005%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Belgian Puppet User Group - Something about Mcollective 24th of June

2014-06-24 Thread Johan De Wit

The presentation of this meetup is available at following locations :

http://files.meetup.com/7630312/bpug_mcollective_20140624.pdf
http://www.slideshare.net/johandw/bpug-mcollective-20140624

I also uploaded the sources for this presentation to github :
https://github.com/witjoh/BPUG_MCollective.

Grts

Johan



On 16/06/14 14:45, Johan De Wit wrote:

This time we will talk about mcollective.

The first part we will flood you with some nice slides and a bit of 
talking,


The second part, all will setup mcollective on its own VM, and explore 
what Mcollective can do and how it works.


Detailed information can be found on our meetup page :

http://www.meetup.com/Belgian-Puppet-User-Group/events/185601762/

more on the agenda :

http://www.meetup.com/Belgian-Puppet-User-Group/messages/boards/thread/44965332 



Grts

Johan




--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 


Next Events:
Linux Training | https://www.open-future.be/linux-training-8-till-12th-september
Puppet Introduction Course | 
https://www.open-future.be/puppet-introduction-course-15th-september
Puppet Fundamentals Training | https://www.open-future.be/puppet-fundamentals-training-16-till-18th-september 
Zabbix Certified Specialist | https://www.open-future.be/zabbix-certified-specialisttraining-22-till-24th-september

Zabbix Certified Professional | 
https://www.open-future.be/zabbix-certified-professional-training-25-till-26th-september
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/53AA6FE0.8090408%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] First anniversary of the module team

2014-06-26 Thread Johan De Wit
s.yml or Gemfile.  To do that 
we need to account for local module differences, however, and Colleen 
has written us a framework that allows us to manage these files 
properly.  It’ll mean we can update .travis.yml in a single repository 
and then push it out automatically to all our modules.  This has been 
something that’s made certain mass changes needed for testing really 
difficult.



I’m also working on a fixtures module which is temporarily living 
athttps://github.com/apenney/pe_fixtures.  This will eventually 
contain a `facter -p` run for every single PE platform we have, and 
exists to be used with rspec-puppet.  Right now, if you want to make 
sure your module fails gracefully on unsupported platforms you have to 
go mock up the facts for all those platforms by hand.  When we finish 
this work, you’ll be able to easily iterate over all platforms and 
check how your module performs on them with rspec-puppet.



Things we’d like to do


Sadly, I can’t give away all our secrets here!  We’re continuing to 
work on making it easier for community members to author modules.  Our 
first year was spent focused on figuring out the answers to questions 
we know many of you have, and now we want to spend some time to make 
sure we fully document and expose those answers so everyone can 
benefit.  We’ve got some other stuff in the pipeline to make it easier 
to find high quality modules, as well as to write high quality 
modules.  We hope you bear with us as we continue to get all the 
pieces in place to allow us to scale to hundreds of support modules, 
modules hopefully for everything you need to do under the sun.  I 
spent from 2008-2013 writing private modules for a variety of 
companies that I couldn’t release and every new job meant rewriting 
the same things again.  I came to Puppet Labs (hell, I begged them 
over and over to create this team) so that we can write these modules 
once and have everyone contribute to making them amazing, so that you 
never have to write the same module twice in your career.  We won’t 
stop until you’re never faced with the horror of writing a module for 
some boring piece of open source software, freeing you up to do things 
that you actually care about. :)




--
Ashley Penney
ashley.pen...@puppetlabs.com <mailto:ashley.pen...@puppetlabs.com>
Module Engineer

*Join us at PuppetConf 2014**, September 23-24 in San Francisco - 
http://puppetconf.com <http://puppetconf.com/>*

--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAC9eg%2B%3DJh9J7yxN5O8nJDeCPb%3Do0NRcf7ZW%3D5rWozD6e7izH_g%40mail.gmail.com 
<https://groups.google.com/d/msgid/puppet-users/CAC9eg%2B%3DJh9J7yxN5O8nJDeCPb%3Do0NRcf7ZW%3D5rWozD6e7izH_g%40mail.gmail.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Linux Training | https://www.open-future.be/linux-training-8-till-12th-september
Puppet Introduction Course | 
https://www.open-future.be/puppet-introduction-course-15th-september
Puppet Fundamentals Training | https://www.open-future.be/puppet-fundamentals-training-16-till-18th-september 
Zabbix Certified Specialist | https://www.open-future.be/zabbix-certified-specialisttraining-22-till-24th-september

Zabbix Certified Professional | 
https://www.open-future.be/zabbix-certified-professional-training-25-till-26th-september
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/53ABC8DF.6040904%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet 3.6.2: import is deprecated

2014-07-01 Thread Johan De Wit

On 30/06/14 19:52, Sergey Arlashin wrote:

Hi!

I used 'import' in my previous config.

I had the following structure:

site.pp :
import 'nodes.pp'

nodes.pp:
import 'node1.pp'
import 'node2.pp'
import 'node3.pp'
etc.

Now I'm moving to 3.6.2 and after getting the deprecation warning decided to 
remove all imports from my manifests.

Now puppet agent seems to ignore all my config. None of my modules is applied. 
--debug shows that it doesn't try to apply anything at all.

Could anyone tell me if it is normal? :) Or may be I'm doing something wrong? 
Or may be this is a bug?

# puppet config print manifest
/etc/puppet/environments/production/manifests


Thanks in advance!

--
Best regards,
Sergey Arlashin


  



  


As an example, this is my manifests directory :

[root@puppet manifests]# ls -l
total 28
-rw-r--r--. 1 root root  819 Jun  1 22:40 00_koewacht_defaults.pp
-rw-r--r--. 1 root root  950 Jun  1 23:20 fc19.koewacht.net.pp
-rw-r--r--. 1 root root 1152 Jun 15 17:20 fc20.koewacht.net.pp
-rw-r--r--. 1 root root  930 May 20 13:12 laptopfc18.koewacht.net.pp
-rw-r--r--. 1 root root  801 Jun 13 09:29 puppet.koewacht.net.pp
-rw-r--r--. 1 root root  320 May 20 13:12 rspecfc20.koewacht.net.pp

[root@puppet manifests]# pwd
/data/puppet/environments/production/manifests

the  00_koewacht_defaults.pp is my former site.pp, which will be loaded 
first.  The rest are my former node/.pp files.


running on 3.6.2 and also dir envs.

Grts

jo



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 


Next Events:
Linux Training | https://www.open-future.be/linux-training-8-till-12th-september
Puppet Introduction Course | 
https://www.open-future.be/puppet-introduction-course-15th-september
Puppet Fundamentals Training | https://www.open-future.be/puppet-fundamentals-training-16-till-18th-september 
Zabbix Certified Specialist | https://www.open-future.be/zabbix-certified-specialisttraining-22-till-24th-september

Zabbix Certified Professional | 
https://www.open-future.be/zabbix-certified-professional-training-25-till-26th-september
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/53B266EA.7070407%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] New Puppet book: Extending Puppet

2014-07-01 Thread Johan De Wit

Almost half way the book, and indeed, it IS a great book.

Thx Allesandro for the great work.

Jo

On 01/07/14 09:41, Rakesh Kathpal wrote:

CongratulationsAlessandro ... just ordered the ebook.. looks promising.

- Rakesh K.


On Sat, Jun 28, 2014 at 6:52 AM, Rich Burroughs 
mailto:r...@richburroughs.com>> wrote:


Yes congrats :) The table of contents looks like it covers a lot
of useful material.


Rich


On Thursday, June 26, 2014, Alessandro Franceschi mailto:a...@lab42.it>> wrote:

Sorry for the shameless promotion, but I suppose this might be
of interest for the readers of this group.

After more that 6 months of pain, efforts, frustration and
excitement it's finally out a book where I tried to pour all
my knowledge and experience on Puppet.
It's oriented to people who have already some experience on
Puppet (for beginners there are definitively more fitting
titles around) and I hope it can give some useful information
also to experienced users.

Find more about it at:
http://www.packtpub.com/extending-puppet/book

You can get a free chapter here: http://bit.ly/1qbxWZy

I'd take this occasion to thank some members of this group for
their support, in particular:
Brice Figureau, who has been a great technical reviewer and
has prevented me from making some big mistakes. His support
and help has been decisive.
Nigel Kersten, who has written the Foreword and has given me
very useful hints and feedback.
Joshua Hoblitt, who has reviewed some chapters and has given
great advices on the language and the contents.
Daniele Sluijters, who has been a very precise technical
reviewer for some chapters.
Jon Forrest, who has slashed the language of my first drafts
and opened my eyes on what it means to write in proper english
(I obviously haven't learnt how to do it properly, but thanks
to the reviewers the final output has been definitively more
linguistically appropriate than the first drafts).

I hope this book can help people who work with Puppet and, if
you happen to get it, please give feedback, in any way you
find appropriate.

Thank you
Alessandro Franceschi
-- 
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 discussion on the web visit

https://groups.google.com/d/msgid/puppet-users/30744a77-5c0b-4a14-94ff-6fa4cd364b32%40googlegroups.com

<https://groups.google.com/d/msgid/puppet-users/30744a77-5c0b-4a14-94ff-6fa4cd364b32%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/puppet-users/CAPGcbtA7KiUNmmJTR3HH0D8rsCzQDS51OOvOx9FE0-dAQQzV6w%40mail.gmail.com

<https://groups.google.com/d/msgid/puppet-users/CAPGcbtA7KiUNmmJTR3HH0D8rsCzQDS51OOvOx9FE0-dAQQzV6w%40mail.gmail.com?utm_medium=email&utm_source=footer>.


For more options, visit https://groups.google.com/d/optout.


--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAEJrXMXKpmpL2di8pioYqZgF6CgX6mJn%3Dzf_1t9tQJk1hLbNKA%40mail.gmail.com 
<https://groups.google.com/d/msgid/puppet-users/CAEJrXMXKpmpL2di8pioYqZgF6CgX6mJn%3Dzf_1t9tQJk1hLbNKA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Lin

Re: [Puppet Users] puppet.conf documentation ammendment

2014-07-02 Thread Johan De Wit

The best way is to file a ticket against the documentation.

Here is an example of one I did some time ago : 
https://tickets.puppetlabs.com/browse/DOCUMENT-97


Grts

Jo

On 02/07/14 11:26, James Green wrote:
Could someone kindly add a notice bar to the puppet.conf web 
documentation stating that:


/Changes to puppet.conf are picked up automatically by the puppet 
agent. You can observe this by making a change and tailing syslog for 
a few moments./


There are a few google results teaching us how to declare puppet as a 
service with a subscription to puppet.conf, which appears unnecessary 
given the above :)


Thanks,

James

--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAMH6%2Bax9T5BKt%2BCwuCWeG8tzcEDOX17YRStdDMrocyWzhN5GPQ%40mail.gmail.com 
<https://groups.google.com/d/msgid/puppet-users/CAMH6%2Bax9T5BKt%2BCwuCWeG8tzcEDOX17YRStdDMrocyWzhN5GPQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Linux Training | https://www.open-future.be/linux-training-8-till-12th-september
Puppet Introduction Course | 
https://www.open-future.be/puppet-introduction-course-15th-september
Puppet Fundamentals Training | https://www.open-future.be/puppet-fundamentals-training-16-till-18th-september 
Zabbix Certified Specialist | https://www.open-future.be/zabbix-certified-specialisttraining-22-till-24th-september

Zabbix Certified Professional | 
https://www.open-future.be/zabbix-certified-professional-training-25-till-26th-september
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/53B3D47D.1080605%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: How to use variables in a puppet class

2014-07-25 Thread Johan De Wit

use double quotes in your source attribute :

|source =>"puppet:///modules/repo/rhel-${::lsbdistrelease}_64.repo",
|


On 25/07/14 09:22, Vikas Kumar wrote:


Hi Jose,

I tried this, didn't worked for me :(

|
'6':{
file {'/etc/yum.repos.d/RHEL-6.4.repo':
ensure=>present,
mode =>'0644',
owner =>'root',
group=>'root',
source 
=>'puppet:///modules/repo/rhel-${::lsbdistrelease}_64.repo',

}
|

Got this message in the log file.

|
FriJul2512:51:12+05302014/Stage[main]/Repo::Rhel/File[/etc/yum.repos.d/RHEL-6.4.repo](err):Couldnotevaluate:Couldnotretrieve 
information fromenvironment production 
source(s)puppet:///modules/repo/rhel-${::lsbdistrelease}_64.repo

|

This is the file on the server.

|
# ls -l /etc/puppet/modules/repo/files/rhel-6.4_64.repo
-rw-r--r--1root root 
205Jul2412:09/etc/puppet/modules/repo/files/rhel-6.4_64.repo

#
|

Have I made a mistake anywhere ?

Thanks in advance.


Regards,
Vikas
On Friday, 25 July 2014 17:03:34 UTC+10, Jose Luis Ledesma wrote:

If you interpolate variable you have to use " instead of '.
So it should be
source => "puppet:///modules/repo/rhel-${::lsbdistrelease}_64.repo",

Regards,

--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/f23af645-db50-4f84-bd42-544cd1e4dec4%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/f23af645-db50-4f84-bd42-544cd1e4dec4%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Linux Training | https://www.open-future.be/linux-training-8-till-12th-september
Puppet Introduction Course | 
https://www.open-future.be/puppet-introduction-course-15th-september
Puppet Fundamentals Training | https://www.open-future.be/puppet-fundamentals-training-16-till-18th-september 
Zabbix Certified Specialist | https://www.open-future.be/zabbix-certified-specialisttraining-22-till-24th-september

Zabbix Certified Professional | 
https://www.open-future.be/zabbix-certified-professional-training-25-till-26th-september
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/53D20DA9.2010504%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Hiera not expanding $operatingsystem variable

2014-07-30 Thread Johan De Wit

Hi,

always use quotes when using facts etc in hiera :

:hierarchy:
  - "%{operatingsystem}"
  - default

hth

Johan

On 30/07/14 18:21, Karolis Pabijanskas wrote:

Hi All,

I am sure this is going to be something completely stupid, but I just 
can't find the issue :)


I have a very simple module that that needs a different filepath 
depending on the operating system, so I'm trying to call:


$global_bashrc_file = hiera("global_bashrc_file")

from my module.

The hierarchy at the moment is very simple:

:hierarchy:
  - %{operatingsystem}
  - default

Calling notify from the module works just fine and brings back CentOS 
as my operating system. CentOS.yaml does exist in the  datadir and 
does contain the variable. Running hiera in through the shell does 
indeed show it working and returns the correct variable:


# hiera global_bashrc_file operatingsystem=CentOS
/etc/bashrc

But when trying to get this value via puppet, I just get an error:
Error: Could not retrieve catalog from remote server: Error 400 on 
SERVER: Could not find data item global_bashrc_file in any Hiera data 
file and no default supplied at blah


It does work perfectly fine if I place the variable in default.yaml, 
but if I move it to the os-specific yaml it just shouts at me that I 
have not declared it... Just seems like $operatingsystem does not get 
passed on from puppet, even though:

# facter operatingsystem
CentOS

and notify '{ "${operatingsystem": }' in puppet works.

As mentioned, I am sure I am missing something very trivial, but maybe 
one of you enlightened ones can point me in the right direction!


puppet version is 3.6.2
hiera version i 1.3.4

Thanks in advance!

Karolis

--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CANYNSSKRx_p2ZpG2JjJLYhRKtwwgtB-AReVozpUsovAF7dPG_g%40mail.gmail.com 
<https://groups.google.com/d/msgid/puppet-users/CANYNSSKRx_p2ZpG2JjJLYhRKtwwgtB-AReVozpUsovAF7dPG_g%40mail.gmail.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Linux Training | https://www.open-future.be/linux-training-8-till-12th-september
Puppet Introduction Course | 
https://www.open-future.be/puppet-introduction-course-15th-september
Puppet Fundamentals Training | https://www.open-future.be/puppet-fundamentals-training-16-till-18th-september 
Zabbix Certified Specialist | https://www.open-future.be/zabbix-certified-specialisttraining-22-till-24th-september

Zabbix Certified Professional | 
https://www.open-future.be/zabbix-certified-professional-training-25-till-26th-september
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/53D92A23.4020201%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Install MCollective -- What are the basic components?

2014-08-07 Thread Johan De Wit

On 07/08/14 16:39, Stella wrote:
I am trying to install MCollective to my Puppet 3.6.2 with Dashboard 
1.2.23.


I searched online and found that there are so many components related 
with MCollective such as Agent(different agents), Client, Common, etc.

http://yum.puppetlabs.com/el/6.5/products/x86_64/

If I only want to have the most basic configuration of MCollective, 
which components should I install?


And has anyone used any of the Web Gui for MCollective? Any 
recommendation?


Thanks!


--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/a45175ff-e932-40dc-83de-681837919cb1%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/a45175ff-e932-40dc-83de-681837919cb1%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.

have a look at http://www.slideshare.net/johandw/bpug-mcollective-20140624

We did a manual installation of MCO.

But using an existing puppetmodule is much better :)

Grts

Johan

--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Linux Training | https://www.open-future.be/linux-training-8-till-12th-september
Puppet Introduction Course | 
https://www.open-future.be/puppet-introduction-course-15th-september
Puppet Fundamentals Training | https://www.open-future.be/puppet-fundamentals-training-16-till-18th-september 
Zabbix Certified Specialist | https://www.open-future.be/zabbix-certified-specialisttraining-22-till-24th-september

Zabbix Certified Professional | 
https://www.open-future.be/zabbix-certified-professional-training-25-till-26th-september
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/53E39293.9030106%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] MCollective Puppet Agent Not Working?

2014-08-08 Thread Johan De Wit
If you are looking for a book : 
http://shop.oreilly.com/product/0636920032472.do


Learning MCollective - Parallel Server Management in Puppet and Chef




On 08/08/14 15:56, Stella wrote:

Hi Chris,

Yes, I have installed the mcollective-puppet-agent package on the 
server and restarted mcollective there (I learned the lesson yesterday 
that you need to restart).


But I have NOT installed mcollective-puppet-client on the client. I am 
not aware of it at all.


After I installed mcollective-puppet-client on the client, "mco 
puppet" works!


Thank you very much, Chris MCollecctive (that's how I remember you, haha!)

Stella


On Friday, August 8, 2014 9:33:14 AM UTC-4, Christopher Wood wrote:

Things to check:

Have you installed the mcollective-puppet-agent package on the
server and restarted mcollective there?

Have you installed mcollective-puppet-client on the client?

If you check your package list, some (not all) of the plugins have
a separate -client package which you need for your command line
mco invocations to work.

On Fri, Aug 08, 2014 at 06:26:58AM -0700, Stella wrote:
>Hi all,
>
>I installed and configured MCollective 2.5.3 yesterday. Also
I have
>installed several agent plugin:
>
>yum install mcollective-filemgr-agent
>yum install mcollective-nettest-agent
>yum install mcollective-package-agent
>yum install mcollective-service-agent
>yum install mcollective-puppet-agent
>
>Now I can run command to stop remote service:
>
>  mco rpc service stop service=ntpd
>
>  However, it seems I can't get puppet to work with MCollective.
>  When I run "mco puppet", it displays:
>
>Known commands:
>   completion   facts find
>   help inventory ping
>   plugin   rpc
>
>Puppet is not listed as "Known commands". Why? Do I miss
anything?
>
>Help please! Last step to the victory! Thanks a lot!
>
>--
>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 [1]puppet-users...@googlegroups.com .
>To view this discussion on the web visit
>  
 [2]https://groups.google.com/d/msgid/puppet-users/6347c6e0-54a1-4061-8e04-8757d2299f8b%40googlegroups.com


<https://groups.google.com/d/msgid/puppet-users/6347c6e0-54a1-4061-8e04-8757d2299f8b%40googlegroups.com>.

>For more options, visit [3]https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
>
> References
>
>Visible links
>1. mailto:puppet-users+unsubscr...@googlegroups.com

>2.

https://groups.google.com/d/msgid/puppet-users/6347c6e0-54a1-4061-8e04-8757d2299f8b%40googlegroups.com?utm_medium=email&utm_source=footer

<https://groups.google.com/d/msgid/puppet-users/6347c6e0-54a1-4061-8e04-8757d2299f8b%40googlegroups.com?utm_medium=email&utm_source=footer>

>3. https://groups.google.com/d/optout
<https://groups.google.com/d/optout>

--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/85085d10-dc74-44c1-9bb8-c62b1f030ced%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/85085d10-dc74-44c1-9bb8-c62b1f030ced%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Linux Training | https://www.open-future.be/linux-training-8-till-12th-september
Puppet Introduction Course | 
https://www.open-future.be/puppet-introduction-course-15th-september
Puppet Fundamentals Training | https://www.open-future.be/puppet-fundamentals-training-16-till-18th-september 
Zabbix Certified Specialist | https://www.open-future.be/zabbix-certified-specialisttrai

Re: [Puppet Users] rspec test for augeas resource that also verifies the resulting content of the file?

2014-09-25 Thread Johan De Wit

Hi,

Augeas changes the file during the execution of the catalog on the node, 
so it cannot have any content in the catalo, and that is what 
puppet-rspec is testing.


the with_content test will always fail, because a content attribute is 
not available for the augeas resource


puppet describe -s  augeas

Parameters
--
changes, context, force, incl, lens, load_path, name, onlyif, returns,
root, show_diff, type_check

For rspec unit testing, one must keep in mind that you are testing the 
content of the catalog.


hth

Grts

Johan


On 25/09/14 12:09, Bill Sirinek wrote:
I have a simple class that sets the timezone on a Solaris system. I'm 
trying to write tests for it, and failing. It's telling me the file is 
nil, but there should be content as the file does exist. The file is 
not generated via a template or as a static puppet file in the 
module... the module just has an augeas resource to set a shell-style 
variable inside the file:  TZ=
I have puppetlabs_spec_helper 0.8.1 and rspec-puppet 1.0.1 installed 
as gems into Puppet Enterprise's ruby (PE 3.2.3)

Here is the error and the offending rspec code:
bsirinek@myhost $ rake spec
/opt/puppet/bin/ruby 
-I/opt/puppet/lib/ruby/gems/1.9.1/gems/rspec-support-3.1.0/lib:/opt/puppet/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.4/lib 
/opt/puppet/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.4/exe/rspec 
--pattern 
spec/\{classes,defines,unit,functions,hosts,integration\}/\*\*/\*_spec.rb 
--color

...F
Failures:
  1) timezone when called with parameters on solaris should contain 
Augeas[set_timezone] with incl => "/etc/default/init", lens => 
"Shellvars.lns", changes => "set TZ US/Eastern" and content =~ 
/^TZ=US\/Eastern$/

 Failure/Error: }).with_content(/^TZ=US\/Eastern$/)
   expected that the catalogue would contain Augeas[set_timezone] 
with content set to /^TZ=US\/Eastern$/ but it is set to nil
 # ./spec/classes/timezone_spec.rb:47:in `block (3 levels) in (required)>'

(...annoying deprecation warnings removed...)
Finished in 0.60314 seconds (files took 1.4 seconds to load)
4 examples, 1 failure
Failed examples:
rspec ./spec/classes/timezone_spec.rb:43 # timezone when called with 
parameters on solaris should contain Augeas[set_timezone] with incl => 
"/etc/default/init", lens => "Shellvars.lns", changes => "set TZ 
US/Eastern" and content =~ /^TZ=US\/Eastern$/
/opt/puppet/bin/ruby 
-I/opt/puppet/lib/ruby/gems/1.9.1/gems/rspec-support-3.1.0/lib:/opt/puppet/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.4/lib 
/opt/puppet/lib/ruby/gems/1.9.1/gems/rspec-core-3.1.4/exe/rspec 
--pattern 
spec/\{classes,defines,unit,functions,hosts,integration\}/\*\*/\*_spec.rb 
--color failed

rspec test:
  describe 'when called with parameter on solaris' do
let(:facts) { { :osfamily => 'Solaris' } }
let(:params) { { :time_zone => 'US/Eastern' } }
it {
  should contain_augeas('set_timezone').with({
:incl=> '/etc/default/init',
:lens=> 'Shellvars.lns',
:changes => "set TZ US/Eastern"
  }).with_content(/^TZ=US\/Eastern$/)
}
  end
The test works fine if I leave off the with_content.
Any ideas?
Thanks
Bill

--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/7007a8e5-df7b-492a-accb-eed09cb12871%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/7007a8e5-df7b-492a-accb-eed09cb12871%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Puppet Introduction Course | 
http://www.open-future.be/puppet-introduction-course-13th-october
Puppet Practitioner Training | 
http://www.open-future.be/puppet-practitioner-former-puppet-advanced-training-14-till-16th-october
Linux Training | http://www.open-future.be/linux-training-20-till-24th-october
Puppet Introduction Course | 
http://www.open-future.be/puppet-introduction-course-10th-november
Puppet Fundamentals Training | 
http://www.open-future.be/puppet-fundamental

RE: [Puppet Users] How to include quoted string into a command

2015-12-14 Thread Johan De Wit
Hi Vadim, 



I used following:

(the $string uses    quotes



[johan@zbook ~]$ cat test.pp 

$string = "'a quoted string'"

exec { 'show string':
  command => "echo \"I want to see ${string}\"",
  logoutput => true,
  path    => '/bin:/usr/bin',
}
[johan@zbook ~]$ puppet apply test.pp
Notice: Compiled catalog for zbook.koewacht.net in environment production in 
0.06 seconds
Notice: /Stage[main]/Main/Exec[show string]/returns: I want to see 'a quoted 
string'
Notice: /Stage[main]/Main/Exec[show string]/returns: executed successfully
Notice: Applied catalog in 0.06 seconds






-Original message-
From: Vadym Chepkov 
Sent: Sunday 13th December 2015 17:20
To: Puppet Users 
Subject: [Puppet Users] How to include quoted string into a command

Hi,

I can't figure out how to include a single quoted string into a command, not 
matter what escaping I do.
Here is a simplified code :

$string = '\'a quoted string\''

exec { 'show string':
  command   => "echo \'I want to see ${string}\'",
  logoutput => true,
  path      => '/bin:/usr/bin',
}

Quotes don't show up, no matter what.
What do I do wrong?

$ puppet --version
3.6.2 (Puppet Enterprise 3.3.2)

Thanks,
Vadym


-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/923ff9af-4321-4dee-a7b9-8002a1204042%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.566e9210.4d81.231b159c69c0d5ff%40zarafa.open-future.be.
For more options, visit https://groups.google.com/d/optout.


RE: [Puppet Users] Hiera repository + environments + r10k

2016-03-08 Thread Johan De Wit
I would nevetheless add the environment in your hierarchy, like 
environment/%{environment}



Then create the 1% settings in eg /environment/production.yaml

end also in your common.yaml (or default.yaml)



All your other environments will use the common ones, production  will have 
there own values.



grts



johan





-Original message-
From: Matthew Ceroni 
Sent: Tuesday 8th March 2016 9:23
To: Puppet Users 
Subject: [Puppet Users] Hiera repository + environments + r10k

Question to the community. This isn't really a specific Puppet issue but more a 
question around the workflow that others are using.

My basic setup is a git repository per module. Then I have a, what I call 
control repo, that contains my Puppet file plus all my roles and profiles and 
hiera data. My hiera hierarchy doesn't include environment because each branch 
of the control repo (and module repos) corresponds to an environment (r10k) and 
that is how I obtain different data based on environment. However this is where 
the problem lies. 

For 99% of the hiera data, it should be in sync across environments. However, 
there are cases (as an example as Java memory limit) that should always differ 
between development and production. But with the setup I have if it is hard to 
maintain that separation because a git merge of development up the chain (qa, 
staging, production) is going to take that config setting and merge it. 

I have thought about moving the hiera data out of the control repo to its own 
repository. That way when you are making changes to profiles or roles you can 
safely merge those through the development life cycle.  If I move it to its own 
repository I still have a choice to make. I can create branches and have r10k 
create those as environments on the Puppet server. But this still results in my 
initial issue. You could make a change to the development branch and 99% of the 
data you set you want to merge to qa and so forth but there is that one value 
that is specific to dev and should differ in the other environments. You could 
solve this by a manual process that after the merge the user has to remember to 
set the environment specific value such that it differs. The other option is to 
not have branches corresponding to environments for the hiera data and instead 
insert environment into the hierarchy.

Just wondering what others have done and what approaches they have taken to 
solve this issue? Maybe there is some feature of git I am not aware of where I 
can systematically pick what to merge and what not (although if that was 
possible I can see it being very confusing). 

Thanks

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/d5254a2f-1f4d-4eb9-984b-2e30ad13c435%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.56dee810.5245.2dd138825acf1338%40zarafa.open-future.be.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Pasword retrievel from external source on node

2016-03-10 Thread Johan De Wit
Hi, 

Anyone playing with the idea to manage passwords on the node by retrieving them 
from an externa source like cyberark ?

The idea is to avoid storing passwords in some 'human readable' form in eg. 
hiera, manifests, catalogs, puppetdb ..
Main concern is security.

We are thinking solving such thing using some custom provider, possible 
extending existing ones.

Just curious someone has already done some thinking/work about this.

Grts

Johan
--
Johan De Wit

Open Source Consultant  -- Open-Future
 
Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014/2015 (PCP006) 
Puppet Certified Instructor
blog : http://johan.koewacht.net/ <http://johan.koewacht.net/>    gsm: +32 474 
42 40 73

 

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.56e15508.4395.54653e3e3073598c%40zarafa.open-future.be.
For more options, visit https://groups.google.com/d/optout.


RE: [Puppet Users] Pasword retrievel from external source on node

2016-03-10 Thread Johan De Wit
Hi Craig, 



They are still stored unencrypted in the catalog, which is an issue for us.

Security is a high priority in this case



grts



Johan



-Original message-
From: Craig Dunn 
Sent: Thursday 10th March 2016 12:38
To: puppet-users@googlegroups.com
Subject: Re: [Puppet Users] Pasword retrievel from external source on node



On Thu, Mar 10, 2016 at 12:05 PM, Johan De Wit mailto:jo...@open-future.be> > wrote:
 

Hi, 

Anyone playing with the idea to manage passwords on the node by retrieving them 
from an externa source like cyberark ?

The idea is to avoid storing passwords in some 'human readable' form in eg. 
hiera, manifests, catalogs, puppetdb ..
Main concern is security.


Why can't you store them in hiera using hiera-eyaml?, which is what most people 
do - so they are stored inline with the rest of your configuration but are 
encrypted.  If you want to go the extra mile you could use Vault, there is also 
a hiera-vault backend, though I've not got first hand experience of that. 

Craig

 



-- 
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 
<mailto:puppet-users+unsubscr...@googlegroups.com> .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CACxdKhF0Fk6yz%3D3Aw--VFA_DBJ1wGr0Mmfd14SezXUErn4XZNA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.56e162ca.2418.53ee945d2e3ac275%40zarafa.open-future.be.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] using generated query string in a collector

2016-04-04 Thread Johan De Wit
Hi, 

Seems it is not possible, well, I cannot make it work.

Depending on some class parameter, some exported resources should be collected 
or not.

eg. 


class X (
  $collect_tags = ['cond1', 'cond2']
) {

$my_cond = my_magic_function($collect_tags)  # returns the string "tag == 
'cond1' or tag=='cond2'"

My_exp_res <<| $my_cond |>>
}

But the only result I get :  Error 400 on SERVER: Syntax error at '|>>'; 
expected '}'

Whatever i tried, nothing gave me the desired result.  Using single quotes, 
double quotes, escaping quotes 

And <<| tag == $collect_tags |>> ( <<| tag == ['cond1','cond2'] |>> does not 
give me the desired result, only one exported resource is collected.  But I try 
to ovoid this, because the behavior of this i unpredictable, as documented in 
the docs.

I already I'm a big fan of iteration, but this needs to work on puppet 3.[7|8].x

For now I will change my parameter to a single string and us an if clause like 
...

if  ( $collect_tag =~ /all$/ ) {
  My_exp_res <<|   |>>
} else {
  My_exp_res <<| tag == $collect_tag >>
}

I will loose the ability to collect on multiple nodes this way, but we can live 
with this for the moment.

Peeking to puppetdbquery as an alternative 

Grts

Johan  


--
Johan De Wit

Open Source Consultant -- Open-Future
 
Red Hat Certified Engineer (805008667232363)
Puppet Certified Professional 2013/2014/2015 (PCP006) 
Puppet Certified Instructor
blog : http://johan.koewacht.net/ <http://johan.koewacht.net/>    gsm: +32 474 
42 40 73



-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.57025d01.7ea3.4d0266ef7d528365%40zarafa.open-future.be.
For more options, visit https://groups.google.com/d/optout.


RE: [Puppet Users] Setting var to undef does not override class or define defaults

2016-04-27 Thread Johan De Wit


-Original message-
From: Rob Nelson 
Sent: Tuesday 26th April 2016 17:15
To: puppet-users@googlegroups.com
Subject: Re: [Puppet Users] Setting var to undef does not override class or 
define defaults

Passing undef to a parameter doesn't unset it. It's the same as not passing it. 
I do not believe there is a standard way to unset a parameter with a default 
value. You can set it to '', 0, false, or another appropriate "unset" value 
depending on how it is to be used, though.

When you want a way to be able to unset it,

you could use a second parameter, manage_ = boolean.  



(as rob told me :) )








Rob Nelson
rnels...@gmail.com  

On Sat, Apr 23, 2016 at 3:46 PM, Erik Anderson mailto:erik.ander...@mx.com> > wrote:
On Puppet 4.4.1

I ran the following: 

class testingclass(
  $cmd_path = 'PluginDir',
){
  $message_ntfy = "cmd_path is set to: ${cmd_path} for ${name}"
  notify { $message_ntfy: }
}


define testingdefine(
  $cmd_path = 'PluginDir',
){
  $message_ntfy = "cmd_path is set to: ${cmd_path} for ${name}"
  notify { $message_ntfy: }
}


node default {


  class {'testingclass':
    cmd_path => undef,
  }


 testingdefine { 'testingdefinedefaults': }
 testingdefine { 'testingdefineundef':
  cmd_path => undef,
 }
}

I expect cmd_path to be set to undef for the class and testingdefineundef. 
Instead it looks like all three end up with the same value for cmd_path: 

erik.anderson@puppetmaster1:~$ sudo puppet apply test.pp
Warning: Config file /etc/puppetlabs/code/hiera.yaml not found, using Hiera 
defaults
Notice: Compiled catalog for sa-sand-puppetmaster1.sa.moneydesktop.com in 
environment production in 0.15 seconds
Notice: cmd_path is set to: PluginDir for testingclass
Notice: /Stage[main]/Testingclass/Notify[cmd_path is set to: PluginDir for 
testingclass]/message: defined 'message' as 'cmd_path is set to: PluginDir for 
testingclass'
Notice: cmd_path is set to: PluginDir for testingdefinedefaults
Notice: 
/Stage[main]/Main/Node[default]/Testingdefine[testingdefinedefaults]/Notify[cmd_path
 is set to: PluginDir for testingdefinedefaults]/message: defined 'message' as 
'cmd_path is set to: PluginDir for testingdefinedefaults'
Notice: cmd_path is set to: PluginDir for testingdefineundef
Notice: 
/Stage[main]/Main/Node[default]/Testingdefine[testingdefineundef]/Notify[cmd_path
 is set to: PluginDir for testingdefineundef]/message: defined 'message' as 
'cmd_path is set to: PluginDir for testingdefineundef'
Notice: Applied catalog in 0.35 seconds

Any ideas on why it is behaving this way and is it intentional?

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/26d1f9c0-61b6-47d3-a7fc-350fee0f2035%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAC76iT_dPzxLR_0AQ2veD9G3gy%3DxR4Ty9%2B_x4yMhZRTQ9tVqwQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.57208e78.0dd9.7ff88b1105553edf%40zarafa.open-future.be.
For more options, visit https://groups.google.com/d/optout.


RE: [Puppet Users] Outofmemory error for puppetserver process

2016-05-23 Thread Johan De Wit
Hi Jim, 



You should find some answers here : 
https://docs.puppet.com/puppetserver/2.3/tuning_guide.html



per jruby instance, we assign 512mb tot the VM, so 256mb is a little too less.



hth



Johan





-Original message-
From: Jim 
Sent: Tuesday 24th May 2016 4:54
To: Puppet Users 
Subject: [Puppet Users] Outofmemory error for puppetserver process

Hey Guys,

I am wondering what is the problem with the following puppetserver process and 
how to have it resolved.

Interesting thing is puppetserver is still running ! and is able to communicate 
it with agents so I am not sure what is the problem !

I still have 2GB of free memory on my VM

root@jim-Ubuntu1504:/etc/puppetlabs/code/environments/production/manifests# ps 
-aef|grep -i puppet|grep -v grep
root       742     1  0 09:39 ?        00:00:02 /opt/puppetlabs/puppet/bin/ruby 
/opt/puppetlabs/puppet/bin/puppet agent --no-daemonize
root      1369     1  0 09:39 ?        00:00:08 /opt/puppetlabs/puppet/bin/ruby 
/opt/puppetlabs/puppet/bin/mcollectived 
--config=/etc/puppetlabs/mcollective/server.cfg 
--pidfile=/var/run/puppetlabs/mcollective.pid --daemonize
puppet    8044     1  0 09:53 ?        00:01:09 /usr/bin/java 
-XX:OnOutOfMemoryError=kill -9 %p -Djava.security.egd=/dev/urandom -Xms256M 
-Xmx256M -XX:MaxPermSize=256m -cp 
/opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar clojure.main 
-m puppetlabs.trapperkeeper.main --config /etc/puppetlabs/puppetserver/conf.d 
-b /etc/puppetlabs/puppetserver/bootstrap.cfg
root@jim-Ubuntu1504:/etc/puppetlabs/code/environments/production/manifests# 
free -g
             total       used       free     shared    buffers     cached
Mem:             3          1          2          0          0          0
-/+ buffers/cache:          1          2
Swap:            3          0          3
root@jim-Ubuntu1504:/etc/puppetlabs/code/environments/production/manifests# 


As you can see I have set puppetserver memory to as low as 256MB. I tried to 
change it to 512MB as well but still it reports "OutOfMemory" so kept it on 
256MB anyway.

Here is the output which confirms that puppetserver is running.

root@jim-Ubuntu1504:/etc/puppetlabs/code/environments/production/manifests# 
service puppetserver status
â— puppetserver.service - LSB: puppetserver
   Loaded: loaded (/etc/init.d/puppetserver)
   Active: active (running) since Tue 2016-05-24 12:53:06 AEST; 16s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 10986 ExecStart=/etc/init.d/puppetserver start (code=exited, 
status=0/SUCCESS)
   CGroup: /system.slice/puppetserver.service
           â””─10992 /usr/bin/java -XX:OnOutOfMemoryError=kill -9 %p 
-Djava.security.egd=/dev/urandom -Xms256M -Xmx256M -XX:MaxPermSize=256m -cp 
/opt/puppetlabs/server/apps/puppetserver/puppet-se...

May 24 12:52:22 jim-Ubuntu1504 systemd[1]: Starting LSB: puppetserver...
May 24 12:53:06 jim-Ubuntu1504 systemd[1]: Started LSB: puppetserver.
root@jim-Ubuntu1504:/etc/puppetlabs/code/environments/production/manifests# 

Any advice would be much appreciated.

Cheers
Jim

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/60c8e923-10ca-4d01-a09c-7e87a5036fdb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.5743e8e3.4d32.16d28aed05678ec2%40zarafa.open-future.be.
For more options, visit https://groups.google.com/d/optout.


RE: [Puppet Users] Unexpected behavior when using variable interpolation on a subkey in hiera

2016-06-10 Thread Johan De Wit
Hi,



running hiera from the command line, you have to provide the variables you use 
yourself like 



hiera somekey clientcert=node.example.net



Here is some reading

https://puppet.com/blog/debugging-hiera



hth



Johan







-Original message-
From: aru...@berkeley.edu 
Sent: Thursday 9th June 2016 23:17
To: Puppet Users 
Subject: [Puppet Users] Unexpected behavior when using variable interpolation 
on a subkey in hiera

Greetings,

I'm having trouble using hiera variable interpolation on a sub-key. It appears 
that along with interpolating the variable, hiera is also returning the 
un-interpolated data as well, which is causing issues because the 
un-interpolated data is nonsense. I'm currently running Hiera 1.3.4 and Puppet 
3.8.5 on RHEL6.

Here's an example of what I have in hiera:

# common.yaml
somekey:
    "%{::clientcert}":
        subsubkey: "data"

And here's what I get when I query hiera directly:

$ hiera -h somekey
{"myhost.example.com"=>{"subsubkey"=>"data"},
 "%{::clientcert}"=>{"subsubkey"=>"data"}}

Oddly enough, if I run it without the -h flag, I only get the un-interpolated 
data.

$ hiera somekey
{"%{::clientcert}"=>{"subsubkey"=>"data"}}

Based on my reading of the docs[1], in both cases I would expect to get back: 
{{"myhost.example.com"=>{"subsubkey"=>"data"}}

I also tested variable interpolation with the value of subsubkey, and hiera 
properly interpolated it correctly, even on the returned entry where 
%{::clientcert} was left un-interpolated.

Initially I thought this was somehow related to deep_merge, but I tested it out 
by disabling deep_merge (removing the merge_behavior key) and I get the same 
results.

Am I misunderstanding how interpolation on sub-keys in hiera should work, or is 
this unintended behavior?

Thanks,

Aaron

[1] https://docs.puppet.com/hiera/1/variables.html

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/3f69f394-e680-4c4e-9a2f-25e6bf2a961e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.575a677a.0d71.2aa59bac7febfe16%40zarafa.open-future.be.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Roles/profiles to setup puppetdb masterless in vagrant

2016-09-16 Thread Johan De Wit
Hi, 

The roles and profiles to setup puppetdb masterless and agent configs.
This way one can test eg exported resources without setting up the full puppet 
server stack.

https://github.com/witjoh/vagrant_puppetdb_apply


I hope someone can make use of this

--
Johan De Wit

Open Source Consultant  -- Open-Future
 
Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014/2015 (PCP006) 
Puppet Certified Instructor
blog : http://johan.koewacht.net/ <http://johan.koewacht.net/>    gsm: +32 474 
42 40 73

 

Next Trainings:

Zabbix Training | https://www.open-future.be/calendar
Bacula Training | https://www.open-future.be/calendar
Puppet Training | https://www.open-future.be/calendar
Linux  Training | https://www.open-future.be/calendar

Subscribe to our newsletter   | http://eepurl.com/BUG8H


-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.57dbe311.2304.1ba1e33a5160069b%40zarafa7.open-future.be.
For more options, visit https://groups.google.com/d/optout.


RE: [Puppet Users] resource collector with multiple 'tag !=' test

2016-09-21 Thread Johan De Wit
-Original message-
From: Isaiah Frantz 
Sent: Wednesday 21st September 2016 21:35
To: Puppet Users 
Subject: [Puppet Users] resource collector with multiple 'tag !=' test

Hello,
I am trying to realize users and am not getting what I expect with multiple != 
test.
Here is a simplified version that I have tested with puppet gem 4.2.2 and 4.6.2 
(results were the same for all tests):
cat t.ppt.pp (common to all tests): 
@notify {'This is a test 1':
        tag => 'one'
}
@notify {'This is a test 2':
        tag => 'two'
}
@notify {'This is a test 3':
        tag => ['one', 'two']
}
@notify {'This is a test 4':
        tag => 'three'
}
Notify <| test_goes_here |>

First 3 expected:
tail -1 t.pp 
Notify <| tag == 'one' or tag == 'two' |>

puppet apply t.pp 
Notice: Compiled catalog for defiant.cequintecid.com in environment production 
in 0.70 seconds
Notice: This is a test 1
Notice: /Stage[main]/Main/Notify[This is a test 1]/message: defined 'message' 
as 'This is a test 1'
Notice: This is a test 2
Notice: /Stage[main]/Main/Notify[This is a test 2]/message: defined 'message' 
as 'This is a test 2'
Notice: This is a test 3
Notice: /Stage[main]/Main/Notify[This is a test 3]/message: defined 'message' 
as 'This is a test 3'
Notice: Applied catalog in 0.02 seconds


Test 3 only, as expected:
tail -1 t.pp 
Notify <| tag == 'one' and tag == 'two' |>

puppet apply t.pp 
Notice: Compiled catalog for defiant.cequintecid.com in environment production 
in 0.47 seconds
Notice: This is a test 3
Notice: /Stage[main]/Main/Notify[This is a test 3]/message: defined 'message' 
as 'This is a test 3'
Notice: Applied catalog in 0.02 seconds

Now we get to the '!=' tests.
with a single tag it works as expected so I wont take space here to show that.
With multiple tags, it does not work as expected

Since tags is a hash that contains lots of things, including all explicit tag's 
set on a resource. The == and != operators are supposed to act like contains 
and !contains functions (or so I thought)
Here I expect to only get test 4. 1 and 2 are filtered because one of the 
and'ed tests is false.
3 should fail too because both test are false: tags contains both 'one' and 
'two'. 
tail -1 t.pp 
Notify <| tag != 'one' and tag != 'two' |>

puppet apply t.pp 
Notice: Compiled catalog for defiant.cequintecid.com in environment production 
in 0.48 seconds
Notice: This is a test 3
Notice: /Stage[main]/Main/Notify[This is a test 3]/message: defined 'message' 
as 'This is a test 3'
Notice: This is a test 4
Notice: /Stage[main]/Main/Notify[This is a test 4]/message: defined 'message' 
as 'This is a test 4'
Notice: Applied catalog in 0.01 seconds


Frankly, I also expect that 3 should be filtered from the or version too 
because neither of the tests should be true if this is a contains function and 
not one that tests against each hash value.
tail -1 t.pp                                                                    
                                             
Notify <| tag != 'one' or tag != 'two' |>

puppet apply t.pp 
Notice: Compiled catalog for defiant.cequintecid.com in environment production 
in 0.58 seconds
Notice: This is a test 1
Notice: /Stage[main]/Main/Notify[This is a test 1]/message: defined 'message' 
as 'This is a test 1'
Notice: This is a test 2
Notice: /Stage[main]/Main/Notify[This is a test 2]/message: defined 'message' 
as 'This is a test 2'
Notice: This is a test 3
Notice: /Stage[main]/Main/Notify[This is a test 3]/message: defined 'message' 
as 'This is a test 3'
Notice: This is a test 4
Notice: /Stage[main]/Main/Notify[This is a test 4]/message: defined 'message' 
as 'This is a test 4'
Notice: Applied catalog in 0.02 seconds



Two boolean falses dont make a true do they?
Im confused  :(
The query could be explained as follows :



If iether there is a tag that is not 'one', or there is a tag that is not two, 
then it will be collected.

test1 : tag => one is != two, so that gives us true, and this collected

test2: tag => two is != one, so here also gives us true and thus collected

test3: tag => [ one , two].  as soon as there is one tag in the array that 
return true, than the resource is collected.  In your case one != two and aslo  
two!=one, which makes the rersource collected. 

test4: tag => three differs from both one and two



It is clear one needs to be carefull when defining the query in a collector.  
Don't assume it works as we are used to work in conditionals as we are used in 
normal programming.  



I hope i didn't confuse too much.



Hth



johan










-- 
 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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/e31573bc-b306-482b-bf64-762a0ba9dfca%40googlegroups.com.
 For more

RE: [Puppet Users] resource collector with multiple 'tag !=' test

2016-09-22 Thread Johan De Wit
Hi, 



I'm aware it is a bit 'unlogic' :) but that's how it works now.  

Thx for the ticket, will follow it to see what happens



Grts



Johan



-Original message-
From: Isaiah Frantz 
Sent: Thursday 22nd September 2016 20:44
To: Puppet Users 
Subject: Re: [Puppet Users] resource collector with multiple 'tag !=' test

I disagree, the way it works breaks basic logic.
With the == case, if the property is an array type, the code will only return 
objects that contain the term.
The != case only checks for equality, regardless of the object type. It 
*should*, in my opinion, follow basic negation rules and do the opposite of the 
== case. We should get back objects that dont equal or contain the term.

That makes sense and follows all the normal behaviour you should expect from 
searching through objects, array or otherwise.

I have submitted a jira ticket with a pull request if you are interested in 
more detail:
https://tickets.puppetlabs.com/browse/PUP-6723

On Wednesday, September 21, 2016 at 11:30:52 PM UTC-7, Johan De Wit wrote:





-Original message-
From: Isaiah Frantz 
Sent: Wednesday 21st September 2016 21:35
To: Puppet Users 
Subject: [Puppet Users] resource collector with multiple 'tag !=' test

Hello,
I am trying to realize users and am not getting what I expect with multiple != 
test.
Here is a simplified version that I have tested with puppet gem 4.2.2 and 4.6.2 
(results were the same for all tests):
cat t.ppt.pp (common to all tests): 
@notify {'This is a test 1':
        tag => 'one'
}
@notify {'This is a test 2':
        tag => 'two'
}
@notify {'This is a test 3':
        tag => ['one', 'two']
}
@notify {'This is a test 4':
        tag => 'three'
}
Notify <| test_goes_here |>

First 3 expected:
tail -1 t.pp 
Notify <| tag == 'one' or tag == 'two' |>

puppet apply t.pp 
Notice: Compiled catalog for defiant.cequintecid.com 
<http://defiant.cequintecid.com> in environment production in 0.70 seconds
Notice: This is a test 1
Notice: /Stage[main]/Main/Notify[This is a test 1]/message: defined 'message' 
as 'This is a test 1'
Notice: This is a test 2
Notice: /Stage[main]/Main/Notify[This is a test 2]/message: defined 'message' 
as 'This is a test 2'
Notice: This is a test 3
Notice: /Stage[main]/Main/Notify[This is a test 3]/message: defined 'message' 
as 'This is a test 3'
Notice: Applied catalog in 0.02 seconds


Test 3 only, as expected:
tail -1 t.pp 
Notify <| tag == 'one' and tag == 'two' |>

puppet apply t.pp 
Notice: Compiled catalog for defiant.cequintecid.com 
<http://defiant.cequintecid.com> in environment production in 0.47 seconds
Notice: This is a test 3
Notice: /Stage[main]/Main/Notify[This is a test 3]/message: defined 'message' 
as 'This is a test 3'
Notice: Applied catalog in 0.02 seconds

Now we get to the '!=' tests.
with a single tag it works as expected so I wont take space here to show that.
With multiple tags, it does not work as expected

Since tags is a hash that contains lots of things, including all explicit tag's 
set on a resource. The == and != operators are supposed to act like contains 
and !contains functions (or so I thought)
Here I expect to only get test 4. 1 and 2 are filtered because one of the 
and'ed tests is false.
3 should fail too because both test are false: tags contains both 'one' and 
'two'. 
tail -1 t.pp 
Notify <| tag != 'one' and tag != 'two' |>

puppet apply t.pp 
Notice: Compiled catalog for defiant.cequintecid.com 
<http://defiant.cequintecid.com> in environment production in 0.48 seconds
Notice: This is a test 3
Notice: /Stage[main]/Main/Notify[This is a test 3]/message: defined 'message' 
as 'This is a test 3'
Notice: This is a test 4
Notice: /Stage[main]/Main/Notify[This is a test 4]/message: defined 'message' 
as 'This is a test 4'
Notice: Applied catalog in 0.01 seconds


Frankly, I also expect that 3 should be filtered from the or version too 
because neither of the tests should be true if this is a contains function and 
not one that tests against each hash value.
tail -1 t.pp                                                                    
                                             
Notify <| tag != 'one' or tag != 'two' |>

puppet apply t.pp 
Notice: Compiled catalog for defiant.cequintecid.com 
<http://defiant.cequintecid.com> in environment production in 0.58 seconds
Notice: This is a test 1
Notice: /Stage[main]/Main/Notify[This is a test 1]/message: defined 'message' 
as 'This is a test 1'
Notice: This is a test 2
Notice: /Stage[main]/Main/Notify[This is a test 

RE: [Puppet Users] Which training should i go for?

2016-10-07 Thread Johan De Wit
Hi Matthias, If the main goal is getting deeper into writing puppet code, then 
the practitioner is your choice.  The architect does focus more on your puppet 
infrastructure. You should check the outline of both course which will be a 
great help in deciding which course fits best at the moment



https://learn.puppet.com/instructor-led-training/puppet-architect

https://learn.puppet.com/instructor-led-training/puppet-practitioner



Check also the https://learn.puppet.com/category/self-paced-training



Most (if not all) are free, and gave some good introduction to eg hiera, 
puppetdb etc



Have a nice weekend



Johan







-Original message-
From: Matthias Fraidl 
Sent: Friday 7th October 2016 15:10
To: Puppet Users 
Subject: [Puppet Users] Which training should i go for?

Hi Puppet-folks,

in April 2015 i visited a "Puppet Fundamentals Training" in Vienna, the 
training was fine, by now i am managing most nodes of an anycast-nameservice 
with puppet (non-enterprise) - i am just using the "basic/slightly advanced" 
functionalities (e.g. self-written modules [to manage nameservers, bgp daemons, 
basic system configs], custom facts, etc.; hiera-backend for sure) but i am not 
using puppetdb, mcollective etc. and i am interested to learn more about the 
capabilities of puppet, and how to use them - so i am looking for another 
training to attend. 
At the moment i can't determine which training is better for me - the "Puppet 
Practitioner" or the "Puppet Architect" - so i am asking you to help me a bit 
further, to decide which one i should go for. 

Suggestions appreciated :-)

Best regards,
Matthias

-- 
 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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/8fc0dbdb-7c2b-49ca-b919-6e8a9719bf60%40googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.
 
Next Trainings:

Zabbix Training | https://www.open-future.be/calendar
Bacula Training | https://www.open-future.be/calendar
Puppet Training | https://www.open-future.be/calendar
Linux  Training | https://www.open-future.be/calendar

Subscribe to our newsletter   | http://eepurl.com/BUG8H


-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.57f7cfa5.57f2.4945507f30c9166e%40zarafa7.open-future.be.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] puppetdb 2.x disable some logging

2017-04-13 Thread Johan De Wit
Hi, 

Anyone knows how to disable the logging  of follwing entries in puppetdb 2.3.8 ?

2017-04-14 08:48:07,063 WARN  [c.p.p.h.event-counts] The event-counts endpoint 
is experimental  and may be altered or removed in the future.
2017-04-14 08:48:07,065 WARN  [c.p.p.h.server] v4 query API is experimental and 
may change without warning. For stability use the v3 api.
2017-04-14 08:48:07,071 WARN  [c.p.p.h.event-counts] The event-counts endpoint 
is experimental  and may be altered or removed in the future.
2017-04-14 08:48:07,073 WARN  [c.p.p.h.server] v4 query API is experimental and 
may change without warning. For stability use the v3 api.
2017-04-14 08:48:07,079 WARN  [c.p.p.h.event-counts] The event-counts endpoint 
is experimental  and may be altered or removed in the future.
2017-04-14 08:48:07,081 WARN  [c.p.p.h.server] v4 query API is experimental and 
may change without warning. For stability use the v3 api.
2017-04-14 08:48:07,088 WARN  [c.p.p.h.event-counts] The event-counts endpoint 
is experimental  and may be altered or removed in the future.

We do need the apiv4 for some application, and above messages are eating up our 
logdisks.

I'm looking at the logback.xml, but still don't get it how to configure it ...

Thx

Johan

--
Johan De Wit

Open Source Consultant  -- Open-Future
 
Red Hat Certified Engineer   (805008667232363)
Puppet Certified Professional 2013/2014/2015/2016 (PCP006) 
Puppet Certified Instructor
blog : http://johan.koewacht.net/ <http://johan.koewacht.net/>     gsm: +32 
474 42 40 73

 

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.58f07184.52ad.61916d7650418340%40zarafa7.open-future.be.
For more options, visit https://groups.google.com/d/optout.


RE: [Puppet Users] puppetdb 2.x disable some logging

2017-04-14 Thread Johan De Wit
First step i did :



added the following to logback.xml [%logger{36}]  



    /var/log/puppetdb/puppetdb.log
    true
    
    %d %-5p [%c{2}][%logger{36}] %m%n
    
    



this changed te logging to ...

2017-04-14 09:11:13,170 WARN  
[c.p.p.h.server][com.puppetlabs.puppetdb.http.server] v4 query API is 
experimental and may change without warning. For stability use the v3 api.
2017-04-14 09:11:13,179 WARN  
[c.p.p.h.event-counts][c.p.puppetdb.http.event-counts] The event-counts 
endpoint is experimental  and may be altered or removed in the future.



then I added the following to the logback.xml

    
    
    



The Api log messages are gone now, still looking how to disable the 
event-counts message.



Grts



Johan





-Original message-
From: Johan De Wit 
Sent: Friday 14th April 2017 8:52
To: puppet-users@googlegroups.com
Subject: [Puppet Users] puppetdb 2.x disable some logging


Hi, 

Anyone knows how to disable the logging  of follwing entries in puppetdb 2.3.8 ?

2017-04-14 08:48:07,063 WARN  [c.p.p.h.event-counts] The event-counts endpoint 
is experimental  and may be altered or removed in the future.
2017-04-14 08:48:07,065 WARN  [c.p.p.h.server] v4 query API is experimental and 
may change without warning. For stability use the v3 api.
2017-04-14 08:48:07,071 WARN  [c.p.p.h.event-counts] The event-counts endpoint 
is experimental  and may be altered or removed in the future.
2017-04-14 08:48:07,073 WARN  [c.p.p.h.server] v4 query API is experimental and 
may change without warning. For stability use the v3 api.
2017-04-14 08:48:07,079 WARN  [c.p.p.h.event-counts] The event-counts endpoint 
is experimental  and may be altered or removed in the future.
2017-04-14 08:48:07,081 WARN  [c.p.p.h.server] v4 query API is experimental and 
may change without warning. For stability use the v3 api.
2017-04-14 08:48:07,088 WARN  [c.p.p.h.event-counts] The event-counts endpoint 
is experimental  and may be altered or removed in the future.

We do need the apiv4 for some application, and above messages are eating up our 
logdisks.

I'm looking at the logback.xml, but still don't get it how to configure it ...

Thx

Johan

--
Johan De Wit

Open Source Consultant  -- Open-Future
 
Red Hat Certified Engineer   (805008667232363)
Puppet Certified Professional 2013/2014/2015/2016 (PCP006) 
Puppet Certified Instructor
blog : http://johan.koewacht.net/ <http://johan.koewacht.net/>     gsm: +32 
474 42 40 73

 

-- 
 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 
<mailto:puppet-users+unsubscr...@googlegroups.com> .
 To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.58f07184.52ad.61916d7650418340%40zarafa7.open-future.be.
 For more options, visit https://groups.google.com/d/optout.
 

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.58f0796f.0d9b.0826204429df3f39%40zarafa7.open-future.be.
For more options, visit https://groups.google.com/d/optout.


RE: [Puppet Users] [solved] puppetdb 2.x disable some logging

2017-04-14 Thread Johan De Wit
Finally i added a filter to remove those messeges :


           
       
        return message.contains("The event-counts endpoint is 
experimental");
      
      NEUTRAL
      DENY
    


in the appender section. 





https://logback.qos.ch/manual/filters.html



grts



Johan



-Original message-----
From: Johan De Wit 
Sent: Friday 14th April 2017 9:25
To: puppet-users@googlegroups.com
Subject: RE: [Puppet Users] puppetdb 2.x disable some logging

First step i did :



added the following to logback.xml [%logger{36}]  



    /var/log/puppetdb/puppetdb.log
    true
    
    %d %-5p [%c{2}][%logger{36}] %m%n
    
    



this changed te logging to ...

2017-04-14 09:11:13,170 WARN  
[c.p.p.h.server][com.puppetlabs.puppetdb.http.server] v4 query API is 
experimental and may change without warning. For stability use the v3 api.
2017-04-14 09:11:13,179 WARN  
[c.p.p.h.event-counts][c.p.puppetdb.http.event-counts] The event-counts 
endpoint is experimental  and may be altered or removed in the future.



then I added the following to the logback.xml

    
    
    



The Api log messages are gone now, still looking how to disable the 
event-counts message.



Grts



Johan





-Original message-----
From: Johan De Wit 
Sent: Friday 14th April 2017 8:52
To: puppet-users@googlegroups.com
Subject: [Puppet Users] puppetdb 2.x disable some logging


Hi, 

Anyone knows how to disable the logging  of follwing entries in puppetdb 2.3.8 ?

2017-04-14 08:48:07,063 WARN  [c.p.p.h.event-counts] The event-counts endpoint 
is experimental  and may be altered or removed in the future.
2017-04-14 08:48:07,065 WARN  [c.p.p.h.server] v4 query API is experimental and 
may change without warning. For stability use the v3 api.
2017-04-14 08:48:07,071 WARN  [c.p.p.h.event-counts] The event-counts endpoint 
is experimental  and may be altered or removed in the future.
2017-04-14 08:48:07,073 WARN  [c.p.p.h.server] v4 query API is experimental and 
may change without warning. For stability use the v3 api.
2017-04-14 08:48:07,079 WARN  [c.p.p.h.event-counts] The event-counts endpoint 
is experimental  and may be altered or removed in the future.
2017-04-14 08:48:07,081 WARN  [c.p.p.h.server] v4 query API is experimental and 
may change without warning. For stability use the v3 api.
2017-04-14 08:48:07,088 WARN  [c.p.p.h.event-counts] The event-counts endpoint 
is experimental  and may be altered or removed in the future.

We do need the apiv4 for some application, and above messages are eating up our 
logdisks.

I'm looking at the logback.xml, but still don't get it how to configure it ...

Thx

Johan

--
Johan De Wit

Open Source Consultant  -- Open-Future
 
Red Hat Certified Engineer   (805008667232363)
Puppet Certified Professional 2013/2014/2015/2016 (PCP006) 
Puppet Certified Instructor
blog : http://johan.koewacht.net/ <http://johan.koewacht.net/>     gsm: +32 
474 42 40 73

 

-- 
 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 
<mailto:puppet-users+unsubscr...@googlegroups.com> .
 To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.58f07184.52ad.61916d7650418340%40zarafa7.open-future.be.
 For more options, visit https://groups.google.com/d/optout.

-- 
 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 
<mailto:puppet-users+unsubscr...@googlegroups.com> .
 To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.58f0796f.0d9b.0826204429df3f39%40zarafa7.open-future.be.
 For more options, visit https://groups.google.com/d/optout.
 

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.58f08060.3e65.4bd629f5681a2efa%40zarafa7.open-future.be.
For more options, visit https://groups.google.com/d/optout.


RE: [Puppet Users] Re: Could not retrieve local facts: undefined method `require_relative' for main:Object

2017-05-18 Thread Johan De Wit
require_relative is introduce in ruby 1.9.

It does not exists in ruby 1.8





-Original message-
From: Helen Paterson 
Sent: Thursday 18th May 2017 10:44
To: Puppet Users 
Subject: [Puppet Users] Re: Could not retrieve local facts: undefined method 
`require_relative' for main:Object

thank you

I see that this only fails on my Ubuntu 12 servers with ruby 1.8 and is fine on 
Ubuntu 14 ruby 1.9. i believe this happened after a college upgraded stlib


On Wednesday, May 17, 2017 at 3:34:01 PM UTC+1, Helen Paterson wrote:
Hi,

im currently getting the following error on a few of my Ubuntu solr servers

Error: Could not retrieve local facts: undefined method `require_relative' for 
main:Object
Error: Failed to apply catalog: Could not retrieve local facts: undefined 
method `require_relative' for main:Object


we are running puppet agent 3.8 , im not sure how to debug ???


Thanks 

Helen

-- 
 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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/2147a9a2-16f7-483a-aee6-0b8bf5e423d4%40googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.
 

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.591d87cf.0643.0c620dec40d3cba9%40zarafa7.open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] How can Puppet query from Sybase - Facter or Hiera?

2014-10-20 Thread Johan De Wit

Hi Stella,

my first thought goes to implement a ENC script. Since you are already 
keeping inventory data in a database, you could keep everything in one 
place.  If it is possible to add puppet support, in practice, make it 
possible to assign puppet classes to your nodes in your sybase setup.


If that is not possible, I would look at a hiera backend getting the 
info from your sybase database.


Keep in mind that it is the puppet master that needs the info from your 
sybase database, so facts is not really an option.


(technically you can, but then every node needs access to your database, 
but your master can get the needed info also, only keep in mind your 
master identifies the nodes with the 'clientcert' or 'certname'.


Personally, I would go for the ENC first place, hiera in second, but 
facts is a no-go.


hth a bit

jo



On 20/10/14 19:27, Stella wrote:

Hi,

I am using Puppet 3.62. Trying to figure out what is the best way to 
connect to my sybase database to query machine information.


Which is better:

1. Define facts that will connect to my sybase and do the query.

2. Use Hiera to connect to my sybase and do the query.

Anyone has any example to share?

Thanks!

Stella
--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/69fa9702-708a-442c-803c-1b3bead7ab2f%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/69fa9702-708a-442c-803c-1b3bead7ab2f%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Puppet Introduction Course | 
http://www.open-future.be/puppet-introduction-course-13th-october
Puppet Practitioner Training | 
http://www.open-future.be/puppet-practitioner-former-puppet-advanced-training-14-till-16th-october
Linux Training | http://www.open-future.be/linux-training-20-till-24th-october
Puppet Introduction Course | 
http://www.open-future.be/puppet-introduction-course-10th-november
Puppet Fundamentals Training | 
http://www.open-future.be/puppet-fundamentals-training-12-till-14th-november
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54458051.3060704%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] 3.4 client w/ 3.7 master

2014-10-30 Thread Johan De Wit

On 30/10/14 21:00, Matthaus Owens wrote:

Bernard,
I'm not aware of any issues with 3.x agents talking to a 3.7 master.
It should just work.

On Thu, Oct 30, 2014 at 11:32 AM, Bernard Clark  wrote:

Will I have any trouble upgrading a puppetmaster to the latest 3.7 but
keeping some of the puppet agents at 3.4.3? Thanks.

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CACpvNxTOfTydPnGzuHK7hPW3Jk%2Be1StXbdt7iv%3Dk%3D4tXD8UuKg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



I noticed that 3.4 client with a 3.7 master gave timeouts during 
pluginsync.  Upgrading the client to 3.7 solved the issue.

And the puppet run was really slow on the agent
grts

Jo


--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 


Next Events:
Puppet Introduction Course | 
http://www.open-future.be/puppet-introduction-course-10th-november
Puppet Fundamentals Training | 
http://www.open-future.be/puppet-fundamentals-training-12-till-14th-november
Zabbix Certified Training | 
http://www.open-future.be/zabbix-certified-specialist-training-17-till-19th-november
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-20-till-21st-november
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5452A18A.7090502%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] SSL Cert issues - Puppet Agent and Master on same host

2014-11-19 Thread Johan De Wit

On 18/11/14 22:26, kevin.mastel...@gmail.com wrote:
Currently trying to get puppet, katello and foreman to play nicely. 
 Everything except puppet is working as I would expect.


No matter what I try, whether it be blasting the /var/lib/puppet/ssl 
directory, running --clean (or whatever the commands are), or trying 
all the steps on the Puppet troubleshooting page, I always get the 
same messages---


[root@- ]# puppet agent -t
info: Retrieving plugin
err: /File[/var/lib/puppet/lib]: Could not evaluate: Could not 
retrieve information from environment production source(s) my-puppet-svr
err: Could not retrieve catalog from remote server: Error 400 on 
SERVER: Could not find node 'my-puppet-svr'; cannot compile

warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run

[root@- puppet]# ./node.rb my-puppet-svr
Could not send facts to Foreman: SSL_connect returned=1 errno=0 
state=SSLv3 read server certificate B: certificate verify failed


Since the puppet agent and master are running on the same machine and 
using the same physical certificate files, I do not understand what 
the issue is


Any help is greatly appreciated.

--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/d1477d4d-451a-45ae-bfb5-5bd3d8b8a2f6%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/d1477d4d-451a-45ae-bfb5-5bd3d8b8a2f6%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.

netstat -tupln | grep 8140 : is puppet master up and running and listening

iptables -L -n :  firewall settings correct

ping my-puppet-svr : name resolution working

Just checking the obvious stuff first ...



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Puppet Introduction Course | 
http://www.open-future.be/puppet-introduction-course-10th-november
Puppet Fundamentals Training | 
http://www.open-future.be/puppet-fundamentals-training-12-till-14th-november
Zabbix Certified Training | 
http://www.open-future.be/zabbix-certified-specialist-training-17-till-19th-november
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-20-till-21st-november
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/546C7DE1.2050708%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] my line count is giving me wrong values in puppet facts

2014-11-25 Thread Johan De Wit
I count 16 lines in your txt file, so the fact is working as you coded 
it.  You should increment only if you find another version in you file, 
and there are only 4 in the file  (or something else)


On 25/11/14 17:38, Spriya wrote:

Hi,

when i am trying to count the lines in how many  locations the java 
is. It is giving me wrong count.


Here is my code:
*require 'facter'*
*require 'facter/util/file_read'*
*
*
*logfile = "/home/weblogic/javaapp.txt"*
*java_count = 0*
*if File.exist? '/home/weblogic/javaapp.txt'*
*
*
*log = Facter::Util::FileRead.read(logfile)*
*unless log.nil?*
*log.each_line do |line|*
*   val = line.split(' ')*
*java_path = val.grep(%r!/java!).join(',')*
*java_version = val.grep(%r!/java!).map{ |s| s[/\d+\.[a-z\d._-]+/] 
}.join(',')*

*java_count += 1*
*Facter.add("java_u01_weblogic_foundversion#{java_count}u01_#{java_count}_path") 
do*

* setcode do*
*   java_version + java_path*
*end*
*end*
*end*
*end*
*end*
*
*
*Facter.add("java_u01_weblogic_foundversion_count") do*
*setcode do*
*  java_count*
* end*
*end*


Here is my txt file
*/u01/java/jdk1.7.0_72/jre/bin/java*
*java version "1.7.0_72"*
*Java(TM) SE Runtime Environment (build 1.7.0_72-b14)*
*Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)*
*/u01/java/jdk1.7.0_72/bin/java*
*java version "1.7.0_72"*
*Java(TM) SE Runtime Environment (build 1.7.0_72-b14)*
*Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)*
*/u01/java/jdk1.7.0_65/jre/bin/java*
*java version "1.7.0_65"*
*Java(TM) SE Runtime Environment (build 1.7.0_65-b17)*
*Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)*
*/u01/java/jdk1.7.0_65/bin/java*
*java version "1.7.0_65"*
*Java(TM) SE Runtime Environment (build 1.7.0_65-b17)*
*Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)*
*
*
*Here is my facts*
*
*
java_u01_weblogic_foundversion13u01_13_path 
1.7.0_65/u01/java/jdk1.7.0_65/bin/java
java_u01_weblogic_foundversion1u01_1_path 
1.7.0_72/u01/java/jdk1.7.0_72/jre/bin/java
java_u01_weblogic_foundversion5u01_5_path 
1.7.0_72/u01/java/jdk1.7.0_72/bin/java
java_u01_weblogic_foundversion9u01_9_path 
1.7.0_65/u01/java/jdk1.7.0_65/jre/bin/java

java_u01_weblogic_foundversion_count16


The count should be 4 but it is giving me 16 locations. Can anyone 
help me?

--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/7ef2d1ee-7c32-4f55-b397-a06c5847c0f6%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/7ef2d1ee-7c32-4f55-b397-a06c5847c0f6%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Puppet Introduction Course | 
http://www.open-future.be/puppet-introduction-course-10th-november
Puppet Fundamentals Training | 
http://www.open-future.be/puppet-fundamentals-training-12-till-14th-november
Zabbix Certified Training | 
http://www.open-future.be/zabbix-certified-specialist-training-17-till-19th-november
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-20-till-21st-november
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5474D804.8090409%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Usage of mcollective::user class in custom class

2014-12-10 Thread Johan De Wit

On 10/12/14 22:40, Ajay Kumar wrote:

Hi Team,

I am new to puppet and I am upgrading to recent release ver 2.0.0 
puppet mcollective module from 1.2 ver mcollective module
In one of my puppet class using mcollective::user class  please find 
the following code snippet.



mcollective::user { "${mcollective::client_user};":

certificate => "${mcollective::ssl_server_public}",

private_key => "${mcollective::ssl_server_private}",

};

while running puppet agent  I am getting the following error like to 
mcollective::user[] is not found. Later I have changed the 
mcollective::user to mcollective::user[].


This time I am getting  Syntax error  '{'; expected '}'

Please help me out of this problem

--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/e5899136-6118-4e1c-bf5c-ce08a1d4cb54%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/e5899136-6118-4e1c-bf5c-ce08a1d4cb54%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.

remove the demi-colons (;) at the end of the first and last line

Hth

--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Zabbix Certified Training | 
http://www.open-future.be/zabbix-certified-specialist-training-5th-till-7th-january
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-8th-till-9th-janaury
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-13th-till-15th-january
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-26th-till-28th-january
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-29th-till-30th-january
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54894796.4080503%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] catalog-diff and create_resources not correct

2014-12-23 Thread Johan De Wit

Hi,

We wanted to use catalog diff to verify the old and new catalogs during 
conversionto hiera.  They should be both have the saem resources with 
the same paramters.
But every resource that is created in the 'new' version with 
create_resources(), gives a wrong catalog diff.


The resource is indeed in both catalogs, only the old one contains 2 
automatic attributes (file: and line:).  I suspect this is the cause.


Anyone experienced simular result ?

In the meantime, I try to understand the catalog-diff code to see where 
this could be corrected.


Grts

johan

   Catalog diff output :
   

   test_node 100.0%
   

   Total resources in old: 0
   Total resources in new: 1
   Only in new:
notify[my_test_notify]
   Catalag percentage added:   100.00
   Catalog percentage removed: 0.00
   Catalog percentage changed: 0.00
   Added and removed resources:+1 / 0
   Node percentage:100.0
   Node differences:   1
   

   1 out of 1 nodes changed. 100.0%
   

   Nodes with the most changes by percent changed:
   1. test_node 100.00%
   Nodes with the most changes by differeces:
   1. test_node  1false
   The manifest new and catalog entry
   node 'test_node' {
   $my_notify =  { 'my_test_notify' => { 'message' => 'this is a
   test notify',
 'name' => 'test_notify',
 'withpath' => 'true', }
}
   create_resources(notify, $my_notify)
   }
 {
"parameters": {
  "withpath": "true",
  "message": "this is a test notify",
  "name": "test_notify"
},
"exported": false,
"tags": [
  "notify",
  "my_test_notify",
  "node",
  "test_node",
  "class"
],
"title": "my_test_notify",
"type": "Notify"
  }
   
   The manifest OLD
   node 'test_node' {
   notify { 'my_test_notify':
 message  => 'this is a test notify',
 name => 'test_notify',
 withpath => true,
   }
   }
   
"title": "test_node",
"type": "Node"
  },
  {
"parameters": {
  "withpath": true,
  "message": "this is a test notify",
  "name": "test_notify"
        },
"exported": false,
"line": 12,
"file":
   "/etc/puppetlabs/puppet/environments/rese_old/manifests/nodes/test_node.pp",
"tags": [
  "notify",
  "my_test_notify",
  "node",
  "test_node",
  "class"
],
"title": "my_test_notify",
"type": "Notify"
  }
   



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Zabbix Certified Training | 
http://www.open-future.be/zabbix-certified-specialist-training-5th-till-7th-january
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-8th-till-9th-janaury
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-13th-till-15th-january
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-26th-till-28th-january
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-29th-till-30th-january
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54993791.50404%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] catalog-diff and create_resources not correct

2014-12-23 Thread Johan De Wit

On 24/12/14 00:50, Felix Frank wrote:

On 12/23/2014 10:36 AM, Johan De Wit wrote:

The resource is indeed in both catalogs, only the old one contains 2
automatic attributes (file: and line:).  I suspect this is the cause.

Hi Johan,

good call - I believe those are hints that the compiler adds, so that
the agent can give more helpful error output in case a resource fails
its validation checks.

Are you in a position to filter those from the "old" style catalogs
prior to diffing?

sed -i '/"line":|"file":/d' 

comes to mind :-)

HTH,
Felix


Hi Felix,

That is a good idea as quick fix.  And why did I not think to that !! :)
Long term, such attributes should get excluded from the diff.

Time to delve into the ruby world :)

Grts

Johan


--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 


Next Events:
Zabbix Certified Training | 
http://www.open-future.be/zabbix-certified-specialist-training-5th-till-7th-january
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-8th-till-9th-janaury
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-13th-till-15th-january
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-26th-till-28th-january
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-29th-till-30th-january
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/549A5EFB.3070906%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] selinux / selboolean error

2014-12-26 Thread Johan De Wit

facter returns strings, and "false" (the string) evaluates to true.

if $selinux == "true" ??

On 26/12/14 17:01, Sebastian Otaegui wrote:

When you run facter on the node do you get the right value?

On Tuesday, December 23, 2014, Paul Raines <mailto:paul.rai...@gmail.com>> wrote:


In the manifest/init.pp of a module I am writing in puppet 3.6.2 I
have

|
if$selinux {
   selboolean {'authlogin_nsswitch_use_ldap':
 persistent =>true,
 value =>on,
}
}
|

How when this runs on machine with selinux disabled (facter
clearly shows $selinux is false), the selboolean still seems to
get evaluated resulting in the error

|

Error:/Stage[main]/Nmr_ldap/Selboolean[authlogin_nsswitch_use_ldap]:Couldnotevaluate:Executionof
'/usr/sbin/getsebool authlogin_nsswitch_use_ldap'returned
1:/usr/sbin/getsebool:SELinuxisdisabled

|

So it seems like it is ignoring the if $selinux entirely.  Is this
a bug in puppet or am I missing something?


-- 
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 discussion on the web visit

https://groups.google.com/d/msgid/puppet-users/3b045b98-53a6-477a-96fc-1ea5f1f635f6%40googlegroups.com

<https://groups.google.com/d/msgid/puppet-users/3b045b98-53a6-477a-96fc-1ea5f1f635f6%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.



--
Those who do not understand Unix are condemned to reinvent it, poorly.
Any sufficiently recent Microsoft OS contains an ad hoc, 
informally-specified, bug-ridden, slow implementation of half of Unix.

--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAApMPgxqrLsivqBdeYyUNwHQK%2BOC55sgcc7KCFtadP%2BoA2Cqzg%40mail.gmail.com 
<https://groups.google.com/d/msgid/puppet-users/CAApMPgxqrLsivqBdeYyUNwHQK%2BOC55sgcc7KCFtadP%2BoA2Cqzg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Zabbix Certified Training | 
http://www.open-future.be/zabbix-certified-specialist-training-5th-till-7th-january
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-8th-till-9th-janaury
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-13th-till-15th-january
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-26th-till-28th-january
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-29th-till-30th-january
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/549DA9CB.20501%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Pupept User Group @ FOSDEM

2015-01-05 Thread Johan De Wit

Hi Puppet User Group Organisers,

FOSDEM has approved the stand for this year.  If you want to represent 
your PUG, you are very welcome to join us at the stand.


Like previous year, I would like to ask every PUG, to write a little 
piece in English or your native language to present your PUG to the public.


If you send me your text, the BPUG will be pleased to get it printed and 
hand it out at FOSDEM.


See you all @ FOSDEM.

greats

Johan

--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 


Next Events:
Zabbix Certified Training | 
http://www.open-future.be/zabbix-certified-specialist-training-5th-till-7th-january
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-8th-till-9th-janaury
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-13th-till-15th-january
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-26th-till-28th-january
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-29th-till-30th-january
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54AA7860.1000107%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] catalog-diff and create_resources not correct

2015-01-06 Thread Johan De Wit

On 24/12/14 00:50, Felix Frank wrote:

On 12/23/2014 10:36 AM, Johan De Wit wrote:

The resource is indeed in both catalogs, only the old one contains 2
automatic attributes (file: and line:).  I suspect this is the cause.

Hi Johan,

good call - I believe those are hints that the compiler adds, so that
the agent can give more helpful error output in case a resource fails
its validation checks.

Are you in a position to filter those from the "old" style catalogs
prior to diffing?

sed -i '/"line":|"file":/d' 

comes to mind :-)

HTH,
Felix

changing the old catalog does not work. The resources aren't seen 
anymore by the catalog-diff program, both in the old and new catalog.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 


Next Events:
Zabbix Certified Training | 
http://www.open-future.be/zabbix-certified-specialist-training-5th-till-7th-january
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-8th-till-9th-janaury
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-13th-till-15th-january
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-26th-till-28th-january
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-29th-till-30th-january
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54AB9648.6090803%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Are you ready for an overdose of Configuration Management and Open Source ?

2015-01-07 Thread Johan De Wit
Traditionally, the beginning of every year is always very busy for Open 
Source addicts and Configuration Management believers. First we do have 
a *Puppet Camp @ Amsterdam*, on 27th of January, as a warming up. The 
schedule of that event can be found here : 
http://puppetlabs.com/events/puppet-camp-amsterdam-0.


Next event is of course *FOSDEM*, which will take place on 31st of 
January & 1st of February 2015, https://fosdem.org/2015/schedule/ at the 
Solbosch campus of the ULB (Université Libre de Bruxelles) 
(https://fosdem.org/2015/practical/transportation/).


Every Open Source addict has probably heard of this great event, and at 
least has added a visit on her or his 'wish list' of events to attend. 
 With a schedule of 260 speakers, 271 events, and 43 tracks, it is 
indeed a very hard task to choose the talks and events to attend.  And 
if visiting FOSDEM, don't forget to visit the *Puppet Users Group Stand* 
for some goodies and a chat. The FOSDEM schedule can be found here : 
https://fosdem.org/2015/schedule/


Still not getting enough ?  Right after FOSDEM, we have 
http://cfgmgmtcamp.eu/.  Again a lot of knowledge is offered to be 
absorbed by you. A schedule of the devroom, talks and workshops will be 
released soon, so please check the website regularly.


And for the Puppet Community, right after *cfgmgmtcamp.eu*, there is the 
Puppet Contributor Summit at the same location. More information  can be 
found at this link : 
http://www.eventbrite.com/e/contributor-summit-tickets-13231564967.


For those visiting Belgium to attend one of the above events, 
Open-Future is organising two Puppet trainings the week before FOSDEM.   
For those looking for great introduction to puppet, and learn best 
practices, we organise the *'Puppet Fundamentals Training'* from 26th 
till 28th of January.  For more information and registration, visit 
http://www.open-future.be/puppet-fundamentals-training-26th-till-28th-january.


The second course is the brand new*'Puppet Architect training'*, on the 
 29th and 30th of January. This advanced level course handles the 
design of your puppet infrastructure, architecting modules, data lookups 
techniques and more. Detailed information and registration is found here 
: http://www.open-future.be/puppet-architect-training-29th-till-30th-january


And more good news, to celebrate all this, Open-Future is giving a _*20% 
discount*_ on the list prices for both courses in January:


 * Puppet Fundamentals:
   http://www.open-future.be/puppet-fundamentals-training-26th-till-28th-january
 * Puppet Architect:
   http://www.open-future.be/puppet-architect-training-29th-till-30th-january


As you can see, we have all the ingredients to be overwhelmed by talks, 
workshops, trainings, new ideas . The risk is great to get an 
overdose of knowledge not only about Configuration Management, but also 
about a lot of Open Source based subjects.


One thing is already sure,  we will be there !

--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Zabbix Certified Training | 
http://www.open-future.be/zabbix-certified-specialist-training-5th-till-7th-january
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-8th-till-9th-janaury
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-13th-till-15th-january
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-26th-till-28th-january
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-29th-till-30th-january
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54AD4205.5020300%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Hiera doesn t behave as expected or as written in doc

2015-01-08 Thread Johan De Wit

Hi Raphael,

hiera smtpserver domain=example.com

That should work.  If using hiera from CLI, you need to provide the facts etc 
also.

See the docs : https://docs.puppetlabs.com/hiera/1/command_line.html


hth

johan


On 08/01/15 09:52, Raphael wrote:

Hi,
I have a working puppetmaster installed from package on an ubuntu 
server 14.04 64bits.
I've been struggeling for a while now with hiera to achieve what it is 
written in the doc ;


My hiera version is 1.3.0
Puppetmaster version 3.4.3

My hierachy settings is quite simple, with a common file and a 
specific file for host :


|
---
:backends:
-yaml
-json
:yaml:
:datadir:/etc/puppet/hieradata
:json:
:datadir:/etc/puppet/hieradata
:hierarchy:

-common
-"node/%{::fqdn}"

:merge_behavior:deeper
|

This file is in /etc/puppet/ and linked to /etc/hiera.yaml

In the common.yaml, I'm trying to use a variable based on facts (like 
in the example on the official documentation) :


|
|
smtpserver:"mail.%{::domain}"
|

|When I issue hiera smtpserver, I have this output :

|
mail.
|

Even the lookup type (deeper here in my config) doesn t provide the same output 
as the example ...

Any idea ? version issue ?

Thx a lot for your advice / answer.
--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/3590c684-299f-4775-a12a-f241ab06f75d%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/3590c684-299f-4775-a12a-f241ab06f75d%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
blog : http://johan.koewacht.net/
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Zabbix Certified Training | 
http://www.open-future.be/zabbix-certified-specialist-training-5th-till-7th-january
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-8th-till-9th-janaury
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-13th-till-15th-january
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-26th-till-28th-january
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-29th-till-30th-january
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54AE92BC.30508%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Node classifiers in PE 3.7

2015-01-17 Thread Johan De Wit

Hi,

Check out this thread in the pe-users group : 
https://groups.google.com/a/puppetlabs.com/forum/#!topic/pe-users/k9oEsDEoSqc


I will post a blog soon, but was distracted by other things about this 
topic.  You can always check johan.koewacht.net.


Grts

Johan


On 17/01/15 00:11, warpig wrote:

Hi All,

I've recently set up a PE 3.7.0 deployment, with the idea of setting 
up a basic ENC using Hiera.  In order for the environment-specific 
manifests to be applied to each agent, I set the environment within 
the agent's puppet.conf.  Unfortunately, when I run an agent against 
the puppetmaster, I get the following warning:


# puppet agent -t --environment=development
Warning: Local environment: "development" doesn't match server 
specified node environment "production", switching agent to "production".


Obviously, the classes defined in the "development" environment aren't 
applied.  My site.pp is a stock, with the exception of the line 
"hiera_include('classes')".


It seems from all the documentation that PE would prefer users to do a 
lot of pointing and clicking in the dashboard to assign nodes to node 
groups.  Is there a more automated method without using the dashboard? 
 It seems the "agent-specified" environment is on it's way out.  My 
question then is:  what is the preferred method of assigning nodes to 
environments without using the dashboard?


Cheers!
--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1bb8aa59-f630-489d-8b6c-7c4a28dbcc33%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/1bb8aa59-f630-489d-8b6c-7c4a28dbcc33%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
blog : http://johan.koewacht.net/
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-13th-till-15th-january
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-26th-till-28th-january
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-29th-till-30th-january
Linux Training | http://www.open-future.be/linux-training-9th-till-13th-february
Puppet Practitioner | 
http://www.open-future.be/puppet-practitioner-training-17th-till-19th-february
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-24th-till-26th-february
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54BA6318.9000508%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] user creation in puppet nodes through PUPPET Master

2015-01-20 Thread Johan De Wit

On 20/01/15 11:57, prasanthr...@gmail.com wrote:




Hi

 I am a beginner in Puppet.. I want to create a user in 2 puppet nodes 
through puppet master. can anyone help in this.

I need to know the path where I should save this code in puppet master

Thanks
--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/c449060b-9740-4539-9844-e36b96d4a053%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/c449060b-9740-4539-9844-e36b96d4a053%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.

http://puppetlabs.com/download-learning-vm

Enjoy the journey

Johan

--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
blog : http://johan.koewacht.net/
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-13th-till-15th-january
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-26th-till-28th-january
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-29th-till-30th-january
Linux Training | http://www.open-future.be/linux-training-9th-till-13th-february
Puppet Practitioner | 
http://www.open-future.be/puppet-practitioner-training-17th-till-19th-february
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-24th-till-26th-february
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54BE6A1E.9020604%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Did PE 3.7 kills r10k?

2015-01-21 Thread Johan De Wit

Hi,

I wrote a post addressing this issue : 
http://johan.koewacht.net/puppet/2015/01/12/R10k-and-PE-Console.html


Any comments are more then welcome.

Grts

Johan


On 27/12/14 20:32, chris mague wrote:

Vadym,

I ran into the same problem and was able to work around as follows 
with the caveat that it's unsupported:


sudo su - pe-postgres
psql
\connect pe-classifier
select * from groups;
# write everything down
update groups set environment_name='agent-specified' where 
environment_name='production';

# then set the last column to 't' if you have any other groups.

You may need to specify the override




On Saturday, December 27, 2014 7:59:55 AM UTC-8, Vadym Chepkov wrote:



On Saturday, December 27, 2014 9:44:44 AM UTC-5, Martin Alfke wrote:

Hi Vadym,

the PE node classifier is an ENC.
This ENC sets environments per nodes as an authority. Nodes
can no longer switch their environments if you use an ENC with
environment parameters set.

You still have the technical possibility to continue using
manifests based node classification and therefor you can
continue using r10k.
You will only loose the environment enforcement via ENC.

hth,

Martin



Hi Martin,

That's the problem,  PE 3.7 creates 'default' group, which can't
be edited and this group enforces 'production' environment for
each node.
You can create a new group and override environment there, but you
would have to do it for each single topic branch you create in git
and development team can't work on more than one topic branches
from the same node. This makes development process extremely
difficult.

Regards,
Vadym




--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/30babbee-4d8e-467e-90ea-c3d0af8f446c%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/30babbee-4d8e-467e-90ea-c3d0af8f446c%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
blog : http://johan.koewacht.net/
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-13th-till-15th-january
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-26th-till-28th-january
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-29th-till-30th-january
Linux Training | http://www.open-future.be/linux-training-9th-till-13th-february
Puppet Practitioner | 
http://www.open-future.be/puppet-practitioner-training-17th-till-19th-february
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-24th-till-26th-february
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54BF7FF3.6090603%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Cant remove depreciated warning message

2015-02-09 Thread Johan De Wit

You could start checking your manifest dir for your environment :

puppet master --configprint manifest

mine says :

/data/puppet/environments/production/manifests

There you should have your site.pp for that environment.

hth

Johan

On 09/02/15 05:56, David LeVene wrote:

Hey All,

I've started to upgrade a few puppet clients to the latest version and 
have hit the issue which everyone had a while ago around this error


"Warning: The package type's allow_virtual parameter will be changing 
its default value from false to true in a future release. If you do 
not want to allow virtual packages, please explicitly set 
allow_virtual to false.
   (at /usr/lib/ruby/site_ruby/1.8/puppet/type/package.rb:430:in 
`default')"


I've implemented the fix in manfests/sites.pp in my test environment 
but the error message isn't going away!


Puppet masters are 3.7.4, but are setup under RVM so i can run > ruby 
1.8.7 due to an ordering issue.


Why is puppet not picking up the config is it a bug or am I missing 
something obvious?


The below is what i'm using in my site.pp and yes, i do see the notify 
message.


if versioncmp($::puppetversion,'3.6.1') >= 0 {
  notify {'I Am here':}


  $allow_virtual_packages = hiera('allow_virtual_packages',false)


  Package {
allow_virtual => $allow_virtual_packages,
  }
}


# puppet agent -t --environment=dlscratch --server=int-puppet-dev
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Warning: The package type's allow_virtual parameter will be changing 
its default value from false to true in a future release. If you do 
not want to allow virtual packages, please explicitly set 
allow_virtual to false.
   (at /usr/lib/ruby/site_ruby/1.8/puppet/type/package.rb:430:in 
`default')

Info: Caching catalog for xxx
Info: Applying configuration version '1423457136'
Notice: I Am here
Notice: /Stage[main]/Base/Notify[I Am here]/message: defined 'message' 
as 'I Am here'

Notice: Finished catalog run in 6.62 seconds

Any suggestions as to where to look next?

I am aware that I can add this into the puppet.conf to disable all 
warnings, but i'd prefer to keep the config inside the manifests and 
only disable this one warning.


Cheers
David

--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/a5380933-a138-4f76-9f23-8b16df92f117%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/a5380933-a138-4f76-9f23-8b16df92f117%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
blog : http://johan.koewacht.net/
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-13th-till-15th-january
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-26th-till-28th-january
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-29th-till-30th-january
Linux Training | http://www.open-future.be/linux-training-9th-till-13th-february
Puppet Practitioner | 
http://www.open-future.be/puppet-practitioner-training-17th-till-19th-february
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-24th-till-26th-february
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54D88453.6080306%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Continuous Availability

2015-02-19 Thread Johan De Wit

you can start here :

https://docs.puppetlabs.com/guides/scaling_multiple_masters.html

try also : http://bit.ly/1FwNZbK

hth

johan

On 19/02/15 06:54, Rajesh Kunwar wrote:
I am trying to setup CA environment or puppet. How do i approach for 
the solution and what are the options available?


Thank you in advance.
--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/b4218d30-717a-429e-8b8a-4967b7e46ef0%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/b4218d30-717a-429e-8b8a-4967b7e46ef0%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
blog : http://johan.koewacht.net/
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Puppet Practitioner | 
http://www.open-future.be/puppet-practitioner-training-17th-till-19th-february
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-24th-till-26th-february
Zabbix Certified Specialist | 
http://www.open-future.be/zabbix-certified-specialist-training-2nd-till-4th-march
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-5th-till-6th-march
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-10th-till-12th-march
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-16th-till-18th-march
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-19th-till-20th-march
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54E597F0.6030600%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Puppet directory environments mysteriously breaking -- help?

2015-02-19 Thread Johan De Wit
For the record,

Got the same error, 

I solved it by adding the following to my puppet.conf :

server = 

De default (puppet) was not resolvable in my environment

Grts

On Wednesday, 29 October 2014 14:32:25 UTC+1, jcbollinger wrote:
>
>
>
> On Wednesday, October 29, 2014 8:31:12 AM UTC-5, jcbollinger wrote:
>>
>> Without the certname specified in your config file, does Puppet 
>> successfully serve correct manifests?
>>
>
> I meant "serve correct *catalogs*," of course.
>
>
> John
>
>

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/79ee79c4-57ac-4036-b510-53155102d477%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Invitation to Bucharest Puppet User Group

2015-02-23 Thread Johan De Wit

On 22/02/15 23:36, Alexandru Stancu wrote:

Hello guys,

I have created a Puppet User Group in Bucharest, Romania.

Anyone interested is welcome to join the group.

Here is the address: http://www.meetup.com/Bucharest-Puppet-User-Group/

Best Regards,
Alex
--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/148eee78-3e16-4d8a-91f1-698ef9ac501b%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/148eee78-3e16-4d8a-91f1-698ef9ac501b%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.
The Belgian Puppet User Group wishes you great times and a lot of 
interesting meetups  !!


Grts

johan

--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
blog : http://johan.koewacht.net/
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Puppet Practitioner | 
http://www.open-future.be/puppet-practitioner-training-17th-till-19th-february
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-24th-till-26th-february
Zabbix Certified Specialist | 
http://www.open-future.be/zabbix-certified-specialist-training-2nd-till-4th-march
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-5th-till-6th-march
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-10th-till-12th-march
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-16th-till-18th-march
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-19th-till-20th-march
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54EADDF4.5090701%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Creating the user account on puppet agent

2015-02-23 Thread Johan De Wit

Hi,

I suggest you start reading 
https://docs.puppetlabs.com/puppet/latest/reference/modules_fundamentals.html
and also have a look at 
https://docs.puppetlabs.com/puppet/latest/reference/modules_fundamentals.html


Hth

Johan

On 24/02/15 08:08, Raj Raju wrote:

Hi,

I am tried to creating the user account on puppet agent.puppet agent 
is not reflecting my changes.


Edited */etc/puppetlabs/puppet*/*manifests/site.pp* file as follows:

node 'puppet.client.net' {
   include user
}


Edited*/etc/puppetlabs/puppet/**manifests/**init.pp*  file as follows:

class user {
   user { 'hellboy':
 ensure => present,
 comment => 'user',
 home => '/home/hellboy',
 managehome => true
   }
}



After that I have run below command on puppet agent

[root@puppet ~]# puppet agent --test
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for puppet.client.net
Info: Applying configuration version '1424761232'
Notice: Finished catalog run in 3.44 seconds

please help on this issue.

--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/75bfb8e2-51aa-4c05-a124-ff4c931f5bff%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/75bfb8e2-51aa-4c05-a124-ff4c931f5bff%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
blog : http://johan.koewacht.net/
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Puppet Practitioner | 
http://www.open-future.be/puppet-practitioner-training-17th-till-19th-february
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-24th-till-26th-february
Zabbix Certified Specialist | 
http://www.open-future.be/zabbix-certified-specialist-training-2nd-till-4th-march
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-5th-till-6th-march
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-10th-till-12th-march
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-16th-till-18th-march
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-19th-till-20th-march
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54EC2D76.9050509%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] structured/normal facts in a string behave different

2015-03-03 Thread Johan De Wit

Hi,

Playing with structured facts, I noticed some starnge behaviour.

If one need to access eg  the fact $os['release']['full'], you get the 
full hash when. You need to embed the fact like

${os['release']['full']} to get the exact value of the hash.

Normal facts dont have this issue.  (they dont have indexes which can eb 
ignored)


Well, one should always use the ${variable} in a string, but if not, 
this should at least give a big warning, if not an error.


Some tests showing this result 

https://gist.github.com/witjoh/c828ebb372621d09b873

Could someone verify this on there systems ?

Running PE3.7.2, with future parse/structured facts enabled 

Just to be sure it is not something  mis-configured in my setup

--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
Puppet Certified Intstructor
blog : http://johan.koewacht.net/
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 


Next Events:
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-16th-till-18th-march
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-19th-till-20th-march
Puppet Practitioner | 
http://www.open-future.be/puppet-practitioner-training-14th-till-16th-april
Linux Training | http://www.open-future.be/linux-training-20th-till-24th-april
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-28th-till-30th-april
Zabbix Certified Specialist | 
http://www.open-future.be/zabbix-certified-specialist-training-4th-till-6th-may
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-7th-till-8th-may
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54F6332D.4010704%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] structured/normal facts in a string behave different

2015-03-04 Thread Johan De Wit


On 04/03/15 02:18, Henrik Lindberg wrote:

On 2015-03-03 23:18, Johan De Wit wrote:

Hi,

Playing with structured facts, I noticed some starnge behaviour.

If one need to access eg  the fact $os['release']['full'], you get the
full hash when. You need to embed the fact like
${os['release']['full']} to get the exact value of the hash.

Normal facts dont have this issue.  (they dont have indexes which can eb
ignored)

Well, one should always use the ${variable} in a string, but if not,
this should at least give a big warning, if not an error.

Some tests showing this result 

https://gist.github.com/witjoh/c828ebb372621d09b873

Could someone verify this on there systems ?

Running PE3.7.2, with future parse/structured facts enabled 

Just to be sure it is not something  mis-configured in my setup



Interpolation using the short form e.g. "hello $name, how are you",
only supports interpolation of a variable, not an expression involving 
the variable, thus:


$name = {firstname => fred, lastname => flintstone}
"hello $name[lastname]"

will render:

"hello {firstname => fred, lastname => flintstone}[lastname]"

since the interpolation of $name interpolates the entire hash, it then 
continues with the [lastname] as text!


This is exactly what happened in your gist.

And you are correct that you must use the long form interpolation 
since you are interpolating an expression.


All details about string interpolation in future parser / puppet 4.0.0 
are found here: 
https://github.com/puppetlabs/puppet-specifications/blob/master/language/expressions.md#string-interpolation



Hope that helps
Regards
- henrik




Thanks Henrik,

it does make a bit more sense :)

Reading the docs over again :)

--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
Puppet Certified Intstructor
blog : http://johan.koewacht.net/
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 


Next Events:
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-16th-till-18th-march
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-19th-till-20th-march
Puppet Practitioner | 
http://www.open-future.be/puppet-practitioner-training-14th-till-16th-april
Linux Training | http://www.open-future.be/linux-training-20th-till-24th-april
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-28th-till-30th-april
Zabbix Certified Specialist | 
http://www.open-future.be/zabbix-certified-specialist-training-4th-till-6th-may
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-7th-till-8th-may
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54F6BB57.6010302%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] External Facts in //facts.d/

2015-03-05 Thread Johan De Wit


On 06/03/15 00:31, Josh Cooper wrote:



On Thu, Mar 5, 2015 at 3:07 PM, Felix Frank 
<mailto:felix.fr...@alumni.tu-berlin.de>> wrote:


On 03/05/2015 11:55 PM, Dan White wrote:
--external-dir=//var/lib/puppet/facts.d//  


Ah. Good catch!


It is not a bug.  It is an Undocumented Feature :D


Hah! Well I'm not convinced. UX bugs are still issues.

Cheers,
Felix
-- 
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
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/puppet-users/54F8E1C2.7060601%40Alumni.TU-Berlin.de

<https://groups.google.com/d/msgid/puppet-users/54F8E1C2.7060601%40Alumni.TU-Berlin.de?utm_medium=email&utm_source=footer>.


For more options, visit https://groups.google.com/d/optout.


This issue is covered in https://tickets.puppetlabs.com/browse/FACT-696.

Note that facter --puppet is deprecated, because it introduces a 
cyclical dependency between puppet and facter, and the same 
functionality can be accomplished using `puppet facts find 
`, or more succinctly `puppet facts find .`


In 4.0, it's just `puppet facts find` thanks to Erik's contribution in 
https://tickets.puppetlabs.com/browse/PUP-3698


Josh



just in time, did notice this behaviour yesterday with PE3.7.2 :)

Grts




--
Josh Cooper
Developer, Puppet Labs

*PuppetConf 2015 <http://2015.puppetconf.com/> is coming to Portland, 
Oregon! Join us October 5-9.*
/Register now to take advantage of the Early Adopter discount 
<https://www.eventbrite.com/e/puppetconf-2015-october-5-9-tickets-13115894995?discount=EarlyAdopter> 
//—//save $349!/

--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CA%2Bu97umCAAmoY5LipE7Zoc%3D%3DO5bjE2Q4X5P0_k035boM9DnKqg%40mail.gmail.com 
<https://groups.google.com/d/msgid/puppet-users/CA%2Bu97umCAAmoY5LipE7Zoc%3D%3DO5bjE2Q4X5P0_k035boM9DnKqg%40mail.gmail.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.


--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
Puppet Certified Intstructor
blog : http://johan.koewacht.net/
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-16th-till-18th-march
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-19th-till-20th-march
Puppet Practitioner | 
http://www.open-future.be/puppet-practitioner-training-14th-till-16th-april
Linux Training | http://www.open-future.be/linux-training-20th-till-24th-april
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-28th-till-30th-april
Zabbix Certified Specialist | 
http://www.open-future.be/zabbix-certified-specialist-training-4th-till-6th-may
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-7th-till-8th-may
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54F94E46.3040502%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] --environment being over ridden by PE console's default environment group

2015-03-07 Thread Johan De Wit
I made a blog about this topic, and how to enable dynamic environments, 
r10k and PE3.7


http://johan.koewacht.net/puppet/2015/01/12/R10k-and-PE-Console.html

Maybe it has some info in it that you could use

Grts

johan


On 06/03/15 17:00, Carl P wrote:

Hi,

I'm using dynamic environments with PE 3.7. I have production and 
development sub-directories in /etc/puppetlabs/puppet/environments 
containing environment.conf, hiera.yaml, Puppetfile, manifests/site.pp 
and modules/


The nodes I'm trying to apply config to are members of the default 
production node group only.


When I run 'puppet agent -tv' all gets configured correctly, but when 
I try to configure it with the code in the development directory using 
'puppet agent -tv --environment=development' I see the message:


 Warning: Local environment: "development" doesn't match 
server specified node environment "production", switching agent to 
"production".


I've spent a lot of time trying to resolve this problem to no avail. 
I'd appreciate a little help.


Many thanks
Carl
--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/0d5bce83-aab4-42e5-aa0f-df8c334b4108%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/0d5bce83-aab4-42e5-aa0f-df8c334b4108%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.


--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
Puppet Certified Intstructor
blog : http://johan.koewacht.net/
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-16th-till-18th-march
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-19th-till-20th-march
Puppet Practitioner | 
http://www.open-future.be/puppet-practitioner-training-14th-till-16th-april
Linux Training | http://www.open-future.be/linux-training-20th-till-24th-april
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-28th-till-30th-april
Zabbix Certified Specialist | 
http://www.open-future.be/zabbix-certified-specialist-training-4th-till-6th-may
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-7th-till-8th-may
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54FB4866.1060700%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] testing and roles/profiles

2015-03-18 Thread Johan De Wit

Hi all,

Looking for some best practice, guideline, documentation puppet testing 
in all its aspect, sometimes I try to figure out the following :


How does one tests roles and profiles ?

Do we still write rspec-puppet for profiles ?  Since we are using 
modules that have there own unit (rspec) testing, at first sight, this 
looks like overhead.


what about the profiles we make using other profiles ?  Do we unit-test  
our 'base' profiles only ?


Or does one only do integration testing (aka beaker ...) for the 
roles/nodes level only, and doing no (unit ?) testing on the profiles ?



I hope to just trigger a discussion on this topic that will bring me one 
step closer to my own Test Driven Infrastructure.


Grts

Johan




--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
Puppet Certified Intstructor
blog : http://johan.koewacht.net/
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 


Next Events:
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-16th-till-18th-march
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-19th-till-20th-march
Puppet Practitioner | 
http://www.open-future.be/puppet-practitioner-training-14th-till-16th-april
Linux Training | http://www.open-future.be/linux-training-20th-till-24th-april
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-28th-till-30th-april
Zabbix Certified Specialist | 
http://www.open-future.be/zabbix-certified-specialist-training-4th-till-6th-may
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-7th-till-8th-may
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/5509E803.9050002%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: HP-UX Puppet Agent version 3.7.4

2015-03-23 Thread Johan De Wit
gt; debug: Value of 'preferred_serialization_format' (pson)
is invalid for
> report, using default (yaml)
> debug: report supports formats: b64_zlib_yaml marshal
raw yaml; using
> yaml
>
> I am now receiving this issue again
>
> mporting report report-14137-1.yaml at 2012-04-05 10:49 EDT
> undefined method `each' for nil:NilClass
> Backtrace
>
/opt/puppet/share/puppet-dashboard/lib/puppet/report.rb:202:in
> `extended'
>
/opt/puppet/share/puppet-dashboard/lib/puppet/report.rb:200:in
`each'
>
/opt/puppet/share/puppet-dashboard/lib/puppet/report.rb:200:in
> `extended'
>
/opt/puppet/share/puppet-dashboard/lib/puppet/report.rb:114:in
> `extend'
>
/opt/puppet/share/puppet-dashboard/lib/puppet/report.rb:114:in
> `extended'
>
/opt/puppet/share/puppet-dashboard/app/models/report.rb:107:in
> `extend'
>
/opt/puppet/share/puppet-dashboard/app/models/report.rb:107:in
> `create_from_yaml'
>
/opt/puppet/share/puppet-dashboard/app/models/report.rb:86:in
> `create_from_yaml_file'

If you are using ruby 1.9.1, it is known to be problematic:
http://docs.puppetlabs.com/guides/faq.html
<http://docs.puppetlabs.com/guides/faq.html>

> Also it automatically added the node back to default,
anyway to
> prevent that?

Looks like there's a background task automatically adding
nodes. I
don't know a good way around this issue. You can move the
pe-* class
to another group but you will need to manually add nodes
to that group
afterwards.

There's a cron job that calls a rake task that will
automatically add nodes that it knows about to the default
group. You will most likely need to
A) move the offending classes out of the default group as Nan
suggests, or
B) disable the cron job and manually add new nodes to the
appropriate groups, or
C) write a new cron job/rake task that will only add the nodes
you want.

See /etc/cron.d/default-add-all-nodes

on your PE console node.

- Justin


HTH,

Nan

--
You received this message because you are subscribed to
the Google Groups "Puppet Users" group.
To post to this group, send email to
puppet...@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
<http://groups.google.com/group/puppet-users?hl=en>.


--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/58123b60-84da-4ce3-af47-b8a273ef91d3%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/58123b60-84da-4ce3-af47-b8a273ef91d3%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.


--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
Puppet Certified Intstructor
blog : http://johan.koewacht.net/
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-16th-till-18th-march
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-19th-till-20th-march
Puppet Practitioner | 
http://www.open-future.be/puppet-practitioner-training-14th-till-16th-april
Linux Training | http://www.open-future.be/linux-training-20th-till-24th-april
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-28th-till-30th-april
Zabbix Certified Specialist | 
http:/

Re: [Puppet Users] Re: puppet enterprise free eval hardware requirements

2015-03-31 Thread Johan De Wit

I run the PE 3.7.2 all the time in some vagrant boxes on a 2core 8GB laptop.

I assign 1 core and and 4G of ram to the master.


For testing purposes this is great.

I also run multiple agents with sometimes as less as 256M of ram.

Mostly using centos6.x and 7.x

hth

grts

Johan

On 31/03/15 00:45, Craig White wrote:
PE version is a robust, monolithic turnkey install. They used to have 
a community based test VM pair which had much lighter requirements 
(albeit with less services) but I haven't checked in a long time so it 
may not be available any longer.


On Monday, March 30, 2015 at 3:32:52 PM UTC-7, Vince Skahan wrote:

geez puppet needs a 'lot' of oomph to spin up the first node


  Evaluation Environment

An evaluation environment is run on a monolithic
installation and is suitable for evaluating PE on 250 or
fewer nodes. We recommend that your hardware meets the
following:

  + A 4-core server with 6 GB of RAM
  + At least 100 GB of free storage in |/opt| for PuppetDB

We strongly recommend that users on systems with 4 GB of
RAM upgrading or migrating to PE 3.7 from PE 3.3 or
earlier upgrade to 6 GB of RAM before attempting to
upgrade or migrate their PE installation.


I have a 16-GB ram Intel NUC

(http://www.intel.com/content/dam/www/public/us/en/documents/product-briefs/nuc-kit-d54250wyk-product-brief.pdf

<http://www.intel.com/content/dam/www/public/us/en/documents/product-briefs/nuc-kit-d54250wyk-product-brief.pdf>)
running Centos7 and was thinking of spinning up some VMs to try
this out.  Does this system have enough oomph to run the
10-node-max free eval, or am I going to be stuck with running
masterless perhaps ?

--
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 
<mailto:puppet-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/266a2353-55cb-406e-b47c-bb682a505825%40googlegroups.com 
<https://groups.google.com/d/msgid/puppet-users/266a2353-55cb-406e-b47c-bb682a505825%40googlegroups.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.


--
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014 (PCP006)
Puppet Certified Intstructor
blog : http://johan.koewacht.net/
_
 
Open-Future Phone +32 (0)2/255 70 70

Zavelstraat 72  Fax   +32 (0)2/255 70 71
3071 KORTENBERG Mobile+32 (0)474/42 40 73
BELGIUM http://www.open-future.be
_
 



Next Events:
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-16th-till-18th-march
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-19th-till-20th-march
Puppet Practitioner | 
http://www.open-future.be/puppet-practitioner-training-14th-till-16th-april
Linux Training | http://www.open-future.be/linux-training-20th-till-24th-april
Bacula Administrator 1 | 
http://www.open-future.be/bacula-administrator-i-training-28th-till-30th-april
Zabbix Certified Specialist | 
http://www.open-future.be/zabbix-certified-specialist-training-4th-till-6th-may
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-7th-till-8th-may
Subscribe to our newsletter | http://eepurl.com/BUG8H

--
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/551A4F2D.7000201%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] help with ghoneycutt hosts on PE

2015-06-27 Thread Johan De Wit
purge_hosts

Boolean to optionally purge unmanaged entries from hosts



  * Default: false
Check this parameter.  When set to true, yuo will have the behaviour you 
describe.
more info : 
https://docs.puppetlabs.com/references/latest/type.html#resources
On Fri, 2015-06-26 at 16:45 -0700, Aaron Lager wrote:
> I'm evaluating PE and after the super simple success of the ntp
> example, I thought I'd try out the /etc/hosts modules.
> I'm trying to add additional host entries, but all that happens is my
> existing additional entries (including one for puppet) get removed
> from the nodes host file.
> 
> Here is my value for host_entries:
> {"10.150.28.8":"puppet.mybluebolt.com"}
> 
> There are no errors reported, that I'm aware of.  The documentation
> simply says it's a Hash of host entries.
> I don't understand what I am doing wrong.
> 
> Thanks for any help you can give.
> 
> Aaron
> -- 
> 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 discussion on the web visit https://groups.google.com/d/
> msgid/puppet-users/9dc28aec-ed57-4929-825d
> -5342ab3239c1%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
-- 
Johan De Wit

Open Source Consultant

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014/2015 (PCP006)
Puppet Certified Instructor
blog : http://johan.koewacht.net/
_
  
Next Trainings:
Bacula Administrator I | 
http://www.open-future.be/bacula-administrator-i-training-23rd-till-25th-june
Zabbix Certified Specialist | 
http://www.open-future.be/zabbix-certified-specialist-training-7th-till-9thth-september
Zabbix Certified Professional | 
http://www.open-future.be/zabbix-certified-professional-training-10th-till-11th-september
Puppet Fundamentals | 
http://www.open-future.be/puppet-fundamentals-training-14th-till-16th-september
Puppet Architect | 
http://www.open-future.be/puppet-architect-training-17th-till-18th-september
Bacula Administrator I | 
http://www.open-future.be/bacula-administrator-i-training-22nd-till-24th-september
Linux Training | http://www.open-future.be/linux-training-28th-till-2nd-october
Subscribe to our newsletter | http://eepurl.com/BUG8H

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1435404742.3429.2.camel%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] [Style Guide] No recommendation about quoting or not element of an enumerable set of options

2015-08-12 Thread Johan De Wit
Hi, 
For me, it has become a habit to NOT use qoutes with enumarable sets of
options.  puppet-lint does not complain if unquoted or single quoted.
All examples I see in the official docs dont use quotes.  Just checked
the forge also.  No quotes.
Hth
Johan
On Wed, 2015-08-12 at 10:06 -0700, David Racodon wrote:
> Hi,
> 
> The style guide is stating that "Quoting is optional when the string
> is an enumerable set of options (such as present/absent)". But it
> doesn't make any recommendations. Should those strings be unquoted so
> that it's easier to spot that it is an element of a set of options
> for instance? Should those strings be quoted instead? For instance,
> for better compatibility to future versions of the language. Any pros
> and cons are more than welcome so that I can enforce one way or the
> other by providing some arguments to the development teams.
> 
> Thank you very much
> 
> Regards,
> 
> David RACODON
> Freelance QA Consultant
> LinkedIn | Twitter
> -- 
> 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 discussion on the web visit https://groups.google.com/d/
> msgid/puppet-users/29e0a79e-5b05-461d-a72e
> -a8d6f3eb7101%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
-- 
Johan De Wit

Open Source Consultant  -- Open-Future

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014/2015 (PCP006)
Puppet Certified Instructor
blog : http://johan.koewacht.net/   gsm: +32 474 42 40 73
_
  
Next Trainings:
Puppet Fundamentals | 
https://www.open-future.be/content/puppet-fundamentals-training-0
Puppet Architect | 
https://www.open-future.be/content/puppet-architect-training-0
Zabbix Certified Specialist | 
https://www.open-future.be/content/zabbix-certified-specialist-training-0
Zabbix Certified Professional | 
https://www.open-future.be/content/zabbix-certified-professional-training-0
Linux Training | https://www.open-future.be/content/linux-training-0
Subscribe to our newsletter | http://eepurl.com/BUG8H

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1439406654.3440.9.camel%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: Problem installing modules in PE 3.7.2

2015-10-21 Thread Johan De Wit
hi,
Could it be mixing multiple puppet versions ?
Are you using the correct puppet ??
> /usr/local/bin/puppet --version 

Looking at the module path suspect puppet version 4.
(/etc/puppetlabs/code/...)
PE puppet is  /opt/puppet/bin/puppet
grts
On Tue, 2015-10-20 at 14:01 -0700, Brendan Kelley wrote:
> I'm having the exact same problem, but whether I install the registry module 
> as myself and sudo or root, it makes no difference.  The module still doesn't 
> appear in the web console when I try to add it to a class.  > > It's 
> currently installed as:  sudo /usr/local/bin/puppet module install 
> puppetlabs-registry --environment production
> > It does show up in a directory listing, as well as a module list:
> -bash-4.1$ sudo /usr/local/bin/puppet module list
> /etc/puppetlabs/code/environments/production/modules
> ├── helloworld (???)
> ├── kelley-profiles (v0.1.0)
> ├── kelley-roles (v0.1.0)
> ├── opentable-download_file (v999.999.999)
> ├── puppetlabs-inifile (v1.4.2)
> ├── puppetlabs-ntp (v4.1.0)
> ├── puppetlabs-powershell (v1.0.5)
> ├── puppetlabs-registry (v1.1.2)
> └── puppetlabs-stdlib (v4.9.0)
>  
> > > Does anybody have any other ideas on this one?  > > Thanks,
> Brendan
> > 
> On Wednesday, April 1, 2015 at 2:19:19 PM UTC-7, jas gag wrote:> > Hi Mark,> 
> > > > You need to run the puppet command as sudo.
> > > > sudo /opt/puppetlabs/bin/puppet module install   
> > > > doing so will install modules in the correct path.  
> > > > /etc/puppetlabs/puppet/> > environments/production/> > modules/
> > > > I am using RHEL 7 and I normally run the command: sudo su - before 
> > > > running puppet commands.  That way I am running puppet as root and all 
> > > > of the modules show up in the webui. 
> > > > Disclamer:  I am not a linux guy (yet), so I don't know for sure that 
> > > > my recommendations above are "best practices"
> > > > Hope that helps.
> > > > Jason> > 

> > On Tuesday, March 31, 2015 at 6:45:09 AM UTC-7, Mark S wrote:> > > Hi,> > > 
> > I've set up a monolithic install of PE to evaluate it for our organisation 
> > but am running into problems even following the Quick Start Guides. I'm 
> > trying to follow the Windows quick start guide and have successfully 
> > followed Step 2, searching for and installing the 'registry' module. 
> > However if you follow the guide to the letter using the command 'puppet 
> > module install puppetlabs-registry' it will install the module to 
> > ~/.puppet/modules instead of /etc/puppetlabs/puppet/> > > 
> > environments/production/> > > modules unless you use the '--environment 
> > production' parameter.
> > > > > > Next when following Step 3 where you create a new node group and 
> > > > > > add a new class to it, I cannot see the new registry module in the 
> > > > > > class list. I can see the stdlib dependency there, just not 
> > > > > > registry.
> > > > > > What am I doing wrong here?
> > > > > > Thanks,
> > > > > > Mark


> 
> 
> 
> 
> 
> -- 
> 
> 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 discussion on the web visit 
> https://groups.google.com/d/msgid/puppet-users/15340aa3-664b-4db4-9d45-02b788dbd853%40googlegroups.com.
> 
> For more options, visit https://groups.google.com/d/optout.
> 

-- 
Johan De Wit

Open Source Consultant  -- Open-Future

Red Hat Certified Engineer  (805008667232363)
Puppet Certified Professional 2013/2014/2015 (PCP006)
Puppet Certified Instructor
blog : http://johan.koewacht.net/   gsm: +32 474 42 40 73
_
  

Next Trainings:
Puppet Architect | 
https://www.open-future.be/content/puppet-architect-training-0
Zabbix Certified Specialist | 
https://www.open-future.be/content/zabbix-certified-specialist-training-0
Zabbix Certified Professional | 
https://www.open-future.be/content/zabbix-certified-professional-training-0
Linux Training | https://www.open-future.be/content/linux-training-0
Puppet Practitioner Training | 
https://www.open-future.be/content/puppet-practitioner-training-0
Bacula Administrator Training | 
http://www.open-future.be/content/bacula-administrator-i-training-1
Subscribe to our newsletter | http://eepurl.com/BUG8H

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/1445415102.2690.12.camel%40open-future.be.
For more options, visit https://groups.google.com/d/optout.


RE: [Puppet Users] Puppet Packages for Fedora 27

2018-03-13 Thread Johan De Wit
Just submitted a PR for centos 7.4 vagrant boxes for virtualbox/libvirt and 
docker  

As soon as this PR get merged, I wll post more centos versions.



You can always have a look at https://github.com/witjoh/puppetlabs-packer



In the meantime one can build those recent boxes by them self.



I you need some assistance ...glad to help



-Original message-
From: Vince Skahan 
Sent: Tuesday 13th March 2018 17:34
To: Puppet Users 
Subject: Re: [Puppet Users] Puppet Packages for Fedora 27

On Tuesday, March 6, 2018 at 11:31:26 AM UTC-8, Branan Purvine-Riley wrote:00
We know the addition of new platforms has been lagging, and we apologize for 
that. Fedora 27 is almost done, and should start appearing in our nightly 
repository soon (possibly tonight, if our automated testing all passes).

We've been working on cleaning up our packer[1] scripts to make setting up our 
build/test environments quicker. We have also made some process changes to how 
we keep track up upcoming distro releases, in order to better get ahead of the 
curve. We're still catching up, but we hope we won't lag quite so far behind on 
future new OS releases.



How about your 2-3 year old vagrant boxes ?
(centos6 and centos7 specifically)

 

-- 
 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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/3c21961e-1409-48c5-ac5f-0dc54d64652b%40googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.
 

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.5aa83e81.344d.0e153bd66a8f40af%40zarafa7.open-future.be.
For more options, visit https://groups.google.com/d/optout.


RE: [Puppet Users] Accessgin facts hash from manifests

2018-04-22 Thread Johan De Wit
first notify, the index should be quoted 

notify { "OS: $facts['os']['family']": }


Grts







-Original message-
From: Arnau 
Sent: Friday 20th April 2018 14:22
To: puppet-users@googlegroups.com
Subject: [Puppet Users] Accessgin facts hash from manifests

Hi all,

I'm having the first experiences with puppet 5 & facter 3 

In old puppet versions I tend to add debug messages like:

notify { "OS : {::osfamily}: }

and it usually worked.

According to 
https://puppet.com/docs/puppet/5.3/lang_facts_and_builtin_vars.html#accessing-facts-from-puppet-code
 I can still access the facts using the old way, but it recommend to use the 
facts has, so the new code should look like:


  notify { "OS: $facts[os][family]": }

But when I do that I get the full list of facts and [os][family] at the bottom:


Notice: OS: {agent_specified_environment => test, aio_agent_version => 5.5.1, 
architecture => x86_64, augeas => {version => 1.10.1}
[ TONS OF FACTS ...]  clientversion => 5.5.1, clientnoop => 
false}['os]['family']"

If I use the same syntax in a conditiona statement:

  if $facts['os']['family'] == 'RedHat' {
    notify { "I'm a RedHat": }
  }

then it works:

Notice: /Stage[main]/Common::Yumrepos/Notify[I'm a RedHat]/message: defined 
'message' as 'I\'m a RedHat'

So, what's wrong with the above notify? 


TIA,
Arnau

 

-- 
 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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAM69jx_sAms0%3Da%2B5MhHBtnydtPKsUDeAAcera8tXSsaANaTchA%40mail.gmail.com.
 For more options, visit https://groups.google.com/d/optout.
 

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.5add7e24.7f1a.78dfd5c52ec466fa%40zarafa7.open-future.be.
For more options, visit https://groups.google.com/d/optout.


RE: [Puppet Users] Re: Exported resource realized by resource collector, bug?

2018-09-14 Thread Johan De Wit
Hi, 

check this ticket.  https://tickets.puppetlabs.com/browse/PUP-6723



It is hard to explain, but the 'and' a resource collector does niot behave like 
the 'boolean and' as we expect this.



Grts

Jo



-Original message-
From: jcbollinger 
Sent: Thursday 13th September 2018 15:50
To: Puppet Users 
Subject: [Puppet Users] Re: Exported resource realized by resource collector, 
bug?



On Wednesday, September 12, 2018 at 3:20:12 PM UTC-5, Julio Guevara wrote:
So I'm working with puppet 5.5.1 and I have encountered what I think is a bug.

So on my site.pp i have the following line for ordering my firewall rules:

site.pp
-
if $::kernel == 'Linux' {
# Make sure every firewall rule not pre or post is created in the middle
Firewall <| tag != 'pre' and tag != 'post' |> {
before +> Class['profiles::fw_rules::post'],
require +> Class['profiles::fw_rules::pre'],
}
}
Then on another class I'm doing the following (This is a class for a postgresql 
client):
@@firewall { "222 tcp:5432 pgpool from ${::ipaddress}/32" :
action => 'accept',
source => "${::ipaddress}/32",
dport => '5432',
proto => 'tcp',
tag => [ $tag, 'postgresql_client' ],
}
On the postgresql servers I do:
# Grab all firewall rules created for this cluster
Firewall <<| tag == $tag and tag == 'postgresql_client' |>>

I would expect that the rule to only appear on the postgresql server, but what 
ends up happening is that the rule is realized on both the server and the 
client.

On the documentation for resource collector 
(https://puppet.com/docs/puppet/5.5/lang_collectors.html#exported-resource-collectors):
Collectors realize virtual resources, are used in chaining statements, and 
override resource attributes. 

on that very same page we have the following for exported resource collectors:
An exported resource collector uses a modified syntax that realizes exported 
resources and imports resources published by other nodes.

Have anybody else found a similar issue?


I do not recall encountering this issue myself, but I concur that I expect 
ordinary resource collectors to not collect exported resources, no matter what 
node declares them.  Although exported resources and exported resource 
collectors are both syntactically and semantically analogous to virtual 
resources and ordinary resource collectors, they are and have always been 
distinct.  The documentation presents no reason to think otherwise, and in fact 
generally supports that position, though I am unaware of any place where it 
states it in so many words.

Therefore, if indeed it is the case that an ordinary resource collector is 
collecting exported resources, then I concur that that constitutes a bug, and a 
fairly serious one at that.  I suggest you file a bug report.

Do note, however, that in the event that an exported resource is collected for 
a given target node via an exported resource collector, I do expect that for 
all intents and purposes it is then treated as an ordinary resource, and in 
particular, that it ordinary collectors will then affect it with respect to 
parameter overrides and chaining (in the scope of the current catalog building 
job).  The thing that ordinary collectors ought not to do with respect to 
exported resources is import them.


John


-- 
 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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/0834fac6-15de-4b7f-9ca1-fbce11b13754%40googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.
 

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.5b9b6d09.5d47.268d68ba72245991%40zarafa7.open-future.be.
For more options, visit https://groups.google.com/d/optout.


RE: [Puppet Users] Re: Puppet 6 regenerate all certs fails with OpenSSL::X509::StoreError

2018-10-22 Thread Johan De Wit
try puppet cert list --all 



That seems to work  git simalar error using the puppet ca command



-Original message-
From: Bret Wortman 
Sent: Monday 22nd October 2018 14:48
To: Puppet Users 
Subject: [Puppet Users] Re: Puppet 6 regenerate all certs fails with 
OpenSSL::X509::StoreError

Out of curiosity, I updated the server to 6.0.1. No change.


On Monday, October 22, 2018 at 7:25:10 AM UTC-4, Bret Wortman wrote:
We had an issue where someone removed our puppet server's ssl directory, so we 
need to regenerate all our certs. I'm following the instructions at 
https://puppet.com/docs/puppet/6.0/ssl_regenerate_certificates.html but am 
having difficulties:

# puppetserver ca list -a
Traceback (most recent call last):
     9: from /opt/puppetlabs/server/apps/puppetserver/cli/apps/ca:5 in ''
     8: from 
/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/puppetserver-ca-1.0.0/lib/puppetserver/ca/cli.rb:89:
 in 'run'
     7: from 
/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/puppetserver-ca-1.0.0/lib/puppetserver/ca/action/list.rb:60:
 in 'run'
     6: from 
/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/puppetserver-ca-1.0.0/lib/puppetserver/ca/action/list.rb:113:
 in 'get_all_certs'
     5: from 
/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/puppetserver-ca-1.0.0/lib/puppetserver/ca/action/list.rb:113:
 in 'new'
     4: from 
/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/puppetserver-ca-1.0.0/lib/puppetserver/ca/certificate_authority.rb:16:
 in 'initialize'
     3: from 
/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/puppetserver-ca-1.0.0/lib/puppetserver/ca/certificate_authority.rb:16:
 in 'new'
     2: from 
/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/puppetserver-ca-1.0.0/lib/puppetserver/ca/utils/http_client.rb:19:
 in 'initialize'
     1: from 
/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/puppetserver-ca-1.0.0/lib/puppetserver/ca/utils/http_client.rb:108:
 in 'make_store'
/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/puppetserver-ca-1.0.0/lib/puppetserver/ca/utils/http_client.rb:109:in
 'add_file': system lib (OpenSSL::X509::StoreError)
#

Has anyone encountered this before? Any thoughts on how to regenerate my certs 
on this system and get us going again?

Note: I have puppet installed on one server and puppetdb on another, in case 
that matters.

-- 
 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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/7715f962-0e79-44f8-9e25-ade744378c37%40googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.
 

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.5bcdee6d.237f.28bdb41c5ab4ed98%40zarafa7.open-future.be.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] puppet-jenkins_plugin module

2019-08-07 Thread Johan De Wit
Hi, 

For those interested in jenkins plugin configuration using puppet/groovy, have 
a look at https://github.com/witjoh/puppet-jenkins_plugin.git. This is still 
work in progress.  Comments/suggestions are very welcome.

Grts
--
Johan De Wit

Open Source Consultant  -- Open-Future
 
Red Hat Certified Engineer   (805008667232363)
Puppet Certified Professional 2013/2014/2015/2016/2017 (PCP205-0077) 
Puppet Certified Instructor
blog : http://johan.koewacht.net/ <http://johan.koewacht.net/>     gsm: +32 
474 42 40 73

 

-- 
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 discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/zarafa.5d4bc2a3.4624.6bef39355f88d17e%40zarafa7.open-future.be.


<    1   2