Re: [Puppet Users] Puppet 4.5 and git & R10K

2016-05-31 Thread Lowe Schmidt
Have a look over here: https://github.com/puppetlabs/r10k

--
Lowe Schmidt | +46 723 867 157

On 31 May 2016 at 08:40, Alex Samad  wrote:

> Hi
>
> New install, I am doing this on Centos 6.x
> I have installed the repo RPM
>
> I believe this is PC1 repo
>
>
> yum --disablerepo '*' --enablerepo puppetlabs-pc1 list | grep
> puppetlabs-pc1
> puppet-agent.x86_64  1.5.0-1.el6
>  @puppetlabs-pc1
> puppetdb.noarch  4.1.0-1.el6
>  @puppetlabs-pc1
> puppetdb-termini.noarch  4.1.0-1.el6
>  @puppetlabs-pc1
> puppetserver.noarch  2.4.0-1.el6
>  @puppetlabs-pc1
> puppet-client-tools.x86_64   1.0.0-1.el6
>  puppetlabs-pc1
> puppetdb-terminus.noarch 3-1.el6
>  puppetlabs-pc1
>
> I believe I have installed puppet , server , db and agent.
>
> But I can't find r10k
>
> rpm -qa | grep puppet
> puppetdb-4.1.0-1.el6.noarch
> puppet-agent-1.5.0-1.el6.x86_64
> puppetserver-2.4.0-1.el6.noarch
> puppetdb-termini-4.1.0-1.el6.noarch
> puppetlabs-release-pc1-1.0.0-2.el6.noarch
>
> I was following Rob's blog for puppet r10K + git and couldn't find
>  /etc/r10k.yaml
>
> so how do I install r10k :)
>
> --
> 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/672db58c-e03b-4e60-9003-0afce7b37af8%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/CAC-wWcTdxcbr%3D03FbpC8zkEcgkLDGoCr2q4ac4W-Gzbrf%2BUU%3DA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet 4.5 and git & R10K

2016-05-31 Thread Rob Nelson
Which article were you reading? If you're looking at
https://rnelson0.com/2014/05/19/puppet-and-git-201-r10k-setup-installation/,
be aware that was written 2 years ago, and the location of files have moved
since then (I'll add a note shortly). You shouldn't actually need to manage
that file directly, anyway. Keep going to the 'Install r10k' section
header, where I use the forge module zack/r10k to configure and install
r10k via a .pp file (ex:
https://github.com/puppetinabox/controlrepo/blob/production/r10k_installation.pp).
As long as you use a recent version of that module, the r10k.yaml file will
be created in the correct location for you.


Rob Nelson
rnels...@gmail.com

On Tue, May 31, 2016 at 2:40 AM, Alex Samad  wrote:

> Hi
>
> New install, I am doing this on Centos 6.x
> I have installed the repo RPM
>
> I believe this is PC1 repo
>
>
> yum --disablerepo '*' --enablerepo puppetlabs-pc1 list | grep
> puppetlabs-pc1
> puppet-agent.x86_64  1.5.0-1.el6
>  @puppetlabs-pc1
> puppetdb.noarch  4.1.0-1.el6
>  @puppetlabs-pc1
> puppetdb-termini.noarch  4.1.0-1.el6
>  @puppetlabs-pc1
> puppetserver.noarch  2.4.0-1.el6
>  @puppetlabs-pc1
> puppet-client-tools.x86_64   1.0.0-1.el6
>  puppetlabs-pc1
> puppetdb-terminus.noarch 3-1.el6
>  puppetlabs-pc1
>
> I believe I have installed puppet , server , db and agent.
>
> But I can't find r10k
>
> rpm -qa | grep puppet
> puppetdb-4.1.0-1.el6.noarch
> puppet-agent-1.5.0-1.el6.x86_64
> puppetserver-2.4.0-1.el6.noarch
> puppetdb-termini-4.1.0-1.el6.noarch
> puppetlabs-release-pc1-1.0.0-2.el6.noarch
>
> I was following Rob's blog for puppet r10K + git and couldn't find
>  /etc/r10k.yaml
>
> so how do I install r10k :)
>
> --
> 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/672db58c-e03b-4e60-9003-0afce7b37af8%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-52yxKe7uv-HBUQCARHwh%2B7vc8rJcaxGYmavOvyezJnQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet and SVN

2016-05-31 Thread Rob Nelson
Alex, some of the later r10k articles have changed workflows, you may want
to read the whole series before implementing anything. I highly recommend
you check out Gary's Workflows Evolved article at
http://garylarizza.com/blog/2015/11/16/workflows-evolved-even-besterer-practices/.
The third link is to a reference controlrepo that Puppet suggests be used
as a basis for building your own controlrepo (
https://github.com/puppetlabs/control-repo). The controlrepo is what r10k
would be deploying.

You may also want to capture other items, mostly for bootstrapping, such as
.pp files to configure hiera and r10k. Whether you place those in your
controlrepo or another repo is up to you.


Rob Nelson
rnels...@gmail.com

On Tue, May 31, 2016 at 1:01 AM, Alex Samad  wrote:

> Hi
>
>
> Finally got some time to look at this
>
>
> On 24 May 2016 at 11:22, Rob Nelson  wrote:
> > I wrote some articles on using Git with puppet and r10k. It's a little
> out
> > of date in the referenced versions of puppet and r10k, so check to make
> sure
> > you're using the modern file locations, but otherwise remains accurate.
> >
> https://rnelson0.com/2014/05/19/puppet-and-git-201-r10k-setup-installation/
> >
> > There's a link to a Git 100 series I wrote if you need assistance with
> Git
> > itself.
>
>
> I notice in the previous installs of puppet every thing was under
> /etc/puppet  and you recommended putting that under git.
>
>
> I see with the latest version of puppet I have
>
> /etc/puppetlabs
> should I place that under git
>
> The only thing of concern there would be the ssl directory.
>
> or do i just add
> code/
> puppet/
> puppetserver/
>
>
> THanks
> 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.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/CAJ%2BQ1PUs%3Dr6a74VPQ9K0z40Uu_bHXAdfeJEYMph4JCJ%3DRcFLQw%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/CAC76iT9ANbHm59X_fLcsGYxERgFBBHC97bk2yQR9EvirFWtz0Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: How to deliberately cause modules to conflict?

2016-05-31 Thread jcbollinger


On Saturday, May 28, 2016 at 6:19:19 PM UTC-5, Dan Mahoney wrote:
>
> Hey there. 
>
> This is a weird question, but I guess I'll ask it anyway. 
>
> Is there a way to say one of the following two things? 
>
> 1) That you want a manifest to deliberately break when you try to include 
> two different items?



Rob already mentioned using the defined() function to test whether a key 
class of the competing module has already been declared.  Do note (lack of) 
capitalization.  More importantly, be aware that for this strategy to work, 
it needs to be mutual -- each module needs to exclude the other.  If it 
were not mutual, then it would be possible to declare both modules in the 
same catalog despite the test, as long the declarations were evaluated in 
the correct order.

Another alternative would be to choose some specific resource that has no 
corresponding physical resource, and have both modules declare that 
resource.  If both modules are included then catalog building will fail 
with a duplicate declaration error.  That, too, needs to be mutual, of 
course.  I like this alternative better because it seems a better match to 
Puppet's resource-centric model.


2) To say that if I've installed the "postfix" module, that it basically 
> de-includes the "dma" class from the manifest? 
>
>

No.  During catalog building, including a class or resource in the catalog 
is irreversible.  This is a good reason to implement ideas such as yours to 
abstract MTA management to one class that chooses which system to use based 
on data.  I like the kind of mutual exclusion you asked about better as a 
backstop for such an approach than as a primary mechanism.


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/dd04da57-621c-4228-a3f5-3eff25e545f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Puppet parameterized class not skipping the same version of software

2016-05-31 Thread Harish Kothuri
Hi All,

I have a puppet class which accepts parameter "$version" for a software 
package. 

The problem is when i do puppet agent -t , it is installing the software 
package though the same version is present already. All works fine if i 
remove the parameter to a class and hard code the version.

Below is my code for with and without parameter to a class

*With Parameter:(DOES NOT SKIP installation- PROBLEMATIC)*




*class ctf ($version) {  $ctfdest = sprintf('C:\PuppetSWT\CTF-%s.exe', 
$version)   package { 'CTF':  ensure   => 'installed',  
source   => $ctfdest,  install_options  => [ '/S' ],  }}*


*Without Parameter: (SKIPS installation when i run second time- EXPECTED)*





*class ctf_v_1_3_8 {$ctfdest = 'C:\PuppetSWT\CTF-1.3.8.exe'  package { 
'CTF-1.3.8':ensure => 'installed',source => 
$ctfdest,install_options => [ '/S' ],  }}This is going to be major 
problem as i dont want to end up in creating multiple classes for different 
versions , can someone help to understand why this different behavior and 
solution.?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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/c9399d4e-3d52-413a-9669-669ec9e883cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Puppet 4.5 and git & R10K

2016-05-31 Thread Lee DaeHyung
Hi

I think you could see this page first: https://forge.puppet.com/zack/r10k
and this 
http://garylarizza.com/blog/2014/08/31/r10k-plus-directory-environments/

These will guide you how to use it.



2016년 5월 31일 화요일 오후 3시 40분 49초 UTC+9, Alex Samad 님의 말:
>
> Hi
>
> New install, I am doing this on Centos 6.x
> I have installed the repo RPM
>
> I believe this is PC1 repo
>
>
> yum --disablerepo '*' --enablerepo puppetlabs-pc1 list | grep 
> puppetlabs-pc1
> puppet-agent.x86_64  1.5.0-1.el6   
>  @puppetlabs-pc1
> puppetdb.noarch  4.1.0-1.el6   
>  @puppetlabs-pc1
> puppetdb-termini.noarch  4.1.0-1.el6   
>  @puppetlabs-pc1
> puppetserver.noarch  2.4.0-1.el6   
>  @puppetlabs-pc1
> puppet-client-tools.x86_64   1.0.0-1.el6   
>  puppetlabs-pc1
> puppetdb-terminus.noarch 3-1.el6   
>  puppetlabs-pc1
>
> I believe I have installed puppet , server , db and agent.
>
> But I can't find r10k
>
> rpm -qa | grep puppet
> puppetdb-4.1.0-1.el6.noarch
> puppet-agent-1.5.0-1.el6.x86_64
> puppetserver-2.4.0-1.el6.noarch
> puppetdb-termini-4.1.0-1.el6.noarch
> puppetlabs-release-pc1-1.0.0-2.el6.noarch
>
> I was following Rob's blog for puppet r10K + git and couldn't find 
>  /etc/r10k.yaml
>
> so how do I install r10k :) 
>
>

-- 
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/e3d27c2a-4604-4c0d-9f31-d17dba05ef17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Trying to debug Facter

2016-05-31 Thread Jonathan Gazeley

Hi folks,

I have a Forge module jgazeley/freeradius which is chiefly targeted at 
CentOS-a-like but also works on Debian/Ubuntu. A user has raised an 
issue that a custom fact provided with the module does not seem to work 
properly on Ubuntu 15.10 with Ruby 2.1.9 and Facter 3.2.0. It is known 
to work on CentOS 7 with Ruby 2.0.0 and Facter 2.4.6.


On Ubuntu, it seems that the fact does the Facter::Core::Execution.exec 
properly and parses the returned value properly, but somehow fails to 
return that value to Facter, so it returns nil.


The fact in question is:

https://github.com/djjudas21/puppet-freeradius/blob/master/lib/facter/freeradius_version.rb

And the issue where I've been trying to debug this with the user is:

https://github.com/djjudas21/puppet-freeradius/issues/35

I don't have easy access to an Ubuntu system for testing and I'm not 
very experienced with Facter either. Is anyone able to suggest why this 
might be broken on some platforms? Is there a change of behaviour in 
Facter 3.x?


Also, I'm not sure if my logic to choose the correct FreeRADIUS binary 
on each distro is very efficient. Ruby is not one of my strengths. 
Anyone got any ideas for cleaning it up?


Thanks!
Jonathan

--
Jonathan Gazeley
Senior Systems Administrator
IT Services
University of Bristol

--
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/8ccc83cc-a801-4804-9c85-502379071a91%40bristol.ac.uk.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Outofmemory error for puppetserver process

2016-05-31 Thread Jim
Hi Matthaus,

Assume its a production environment would we have allowed that ? What I'm 
interested in clean state of process listing when I run ps command.

Is that possible?

Regards,
Jim

On Tuesday, 31 May 2016 01:07:39 UTC+10, Matthaus Litteken wrote:
>
> Jim,
>
> The 'XX:OnOutOfMemoryError=kill -9 %p' in the process list doesn't 
> indicate that puppet server is out of memory, it is a Java flag that tells 
> Java what to do if puppet server hits an outofmemory error. The output you 
> have pasted looks totally normal to me.
>
> HTH
>
> On Monday, May 30, 2016, Jim > wrote:
>
>> Hi Matthaus,
>>
>> My hostname is misleading. I upgraded at the time of posting to Ubuntu 
>> 15.10. Now I have upgraded to 16.04.
>>
>> I ran the command you suggested instead of service puppetserver start and 
>> I don't see OutOfMemory errors process.
>>
>> root@jim-Ubuntu1504:~# ps -aef|grep -i puppet|grep -v grep
>> root  1116 1  0 19:34 ?00:00:02 
>> /opt/puppetlabs/puppet/bin/ruby /opt/puppetlabs/puppet/bin/puppet agent 
>> --no-daemonize
>> root  1719 1  0 19:38 ?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
>> root  2644  1544  0 22:35 pts/000:00:00 bash 
>> /opt/puppetlabs/server/apps/puppetserver/cli/apps/foreground
>> root  2650  2644  0 22:35 pts/000:00:00 runuser puppet -s 
>> /bin/bash -c /usr/bin/java -Xms512m -Xmx512m -XX:MaxPermSize=512m 
>> -Dlogappender=STDOUT  -cp 
>> /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar 
>>  clojure.main -m puppetlabs.trapperkeeper.main  --config 
>> /etc/puppetlabs/puppetserver/conf.d --bootstrap-config 
>> /etc/puppetlabs/puppetserver/bootstrap.cfg  
>> puppet2651  2650 55 22:35 ?00:00:42 /usr/bin/java -Xms512m 
>> -Xmx512m -XX:MaxPermSize=512m -Dlogappender=STDOUT -cp 
>> /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar 
>> clojure.main -m puppetlabs.trapperkeeper.main --config 
>> /etc/puppetlabs/puppetserver/conf.d --bootstrap-config 
>> /etc/puppetlabs/puppetserver/bootstrap.cfg
>> root@jim-Ubuntu1504:~# 
>>
>>
>> Also when I do see that error as like below when I do Ctrl + C and 
>> execute service puppetserver start I get the OutOfMemory error like below.
>>
>> root@jim-Ubuntu1504:~# ps -aef|grep -i puppet|grep -v grep
>> root  1116 1  0 19:34 ?00:00:02 
>> /opt/puppetlabs/puppet/bin/ruby /opt/puppetlabs/puppet/bin/puppet agent 
>> --no-daemonize
>> root  1719 1  0 19:38 ?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
>> puppet3386 1 66 22:41 ?00:00:45 /usr/bin/java 
>> -XX:OnOutOfMemoryError=kill -9 %p -Djava.security.egd=/dev/urandom -Xms512m 
>> -Xmx512m -XX:MaxPermSize=512m -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:~# 
>>
>> I wonder if I am doing start-up incorrectly ? Either even in this state 
>> where it sayOutOfMemoryError my puppetserver still serves all of its 
>> agents. The reason I say so is I changed motd file on all agents + 
>> installed vim package on agents.
>>
>> I am not sure which is the right method to start the server ? Also 
>> instead of running in foreground can I run it in background using nohup ?
>>
>> Regards,
>> Jim
>>
>>
>> On Friday, 27 May 2016 02:46:14 UTC+10, Matthaus Litteken wrote:
>>>
>>> Jim,
>>> For debugging failures on ubuntu 15.04, I would recommend trying 
>>> `/opt/puppetlabs/bin/puppetserver foreground`, it may show you the errors 
>>> that are causing the service to shutdown. Ubuntu 15.04 is a bit difficult 
>>> to debug on, because while it has systemd support, the puppetserver 
>>> packages for that platform still ship sysv init scripts. In my experience, 
>>> the sysv-systemd integration seems to swallow some startup errors and 
>>> messages that would usually go to journalctl on a systemd platform. We 
>>> started shipping systemd service files for puppetserver starting in Ubuntu 
>>> 16.04.
>>>
>>> HTH
>>>
>>> On Thu, May 26, 2016 at 6:56 AM, Jim  wrote:
>>>
 Hi Trevor,

 No luck.

 2016-05-26 23:46:26,745 INFO  [Thread-1] [p.t.internal] Shutting down 
 due to JVM shutdown hook.
 2016-05-26 23:46:26,747 INFO  [Thread-1] [p.t.internal] Beginning 
 shutdown sequence
 2016-05-26 23:46:26,761 INFO  [clojure-agent-send-pool-1] 
 [p.s.j.jruby-puppet-agents] Flush request received; creating new JRuby 
 pool.
 2016-05-26 23:46:26,765 INFO  [clojure-agent-send-pool-1] 
 [p.s.j.jruby-puppet-agents] Repl

Re: [Puppet Users] Outofmemory error for puppetserver process

2016-05-31 Thread Matthaus Owens
Jim,

What do you consider clean state of process listing? Puppetserver is run
with those options in many production environments.

It certainly is possible to change how puppetserver starts up, but I
wouldn't recommend it. The OnOutOfMemoryError setting is there so that when
such an error occurs, the process comes down right away without attempting
any recovery (you can see https://tickets.puppetlabs.com/browse/SERVER-1368
for more details about this).
If you do want to change how puppetserver starts up, you'll probably want
to setup an override for the ExecStart of puppetserver.
http://askubuntu.com/questions/659267/how-do-i-override-or-configure-systemd-services
has some details on how to do this.

HTH

On Tue, May 31, 2016 at 7:37 AM, Jim  wrote:

> Hi Matthaus,
>
> Assume its a production environment would we have allowed that ? What I'm
> interested in clean state of process listing when I run ps command.
>
> Is that possible?
>
> Regards,
> Jim
>
> On Tuesday, 31 May 2016 01:07:39 UTC+10, Matthaus Litteken wrote:
>>
>> Jim,
>>
>> The 'XX:OnOutOfMemoryError=kill -9 %p' in the process list doesn't
>> indicate that puppet server is out of memory, it is a Java flag that tells
>> Java what to do if puppet server hits an outofmemory error. The output you
>> have pasted looks totally normal to me.
>>
>> HTH
>>
>> On Monday, May 30, 2016, Jim  wrote:
>>
>>> Hi Matthaus,
>>>
>>> My hostname is misleading. I upgraded at the time of posting to Ubuntu
>>> 15.10. Now I have upgraded to 16.04.
>>>
>>> I ran the command you suggested instead of service puppetserver start
>>> and I don't see OutOfMemory errors process.
>>>
>>> root@jim-Ubuntu1504:~# ps -aef|grep -i puppet|grep -v grep
>>> root  1116 1  0 19:34 ?00:00:02
>>> /opt/puppetlabs/puppet/bin/ruby /opt/puppetlabs/puppet/bin/puppet agent
>>> --no-daemonize
>>> root  1719 1  0 19:38 ?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
>>> root  2644  1544  0 22:35 pts/000:00:00 bash
>>> /opt/puppetlabs/server/apps/puppetserver/cli/apps/foreground
>>> root  2650  2644  0 22:35 pts/000:00:00 runuser puppet -s
>>> /bin/bash -c /usr/bin/java -Xms512m -Xmx512m -XX:MaxPermSize=512m
>>> -Dlogappender=STDOUT  -cp
>>> /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar
>>>  clojure.main -m puppetlabs.trapperkeeper.main  --config
>>> /etc/puppetlabs/puppetserver/conf.d --bootstrap-config
>>> /etc/puppetlabs/puppetserver/bootstrap.cfg
>>> puppet2651  2650 55 22:35 ?00:00:42 /usr/bin/java -Xms512m
>>> -Xmx512m -XX:MaxPermSize=512m -Dlogappender=STDOUT -cp
>>> /opt/puppetlabs/server/apps/puppetserver/puppet-server-release.jar
>>> clojure.main -m puppetlabs.trapperkeeper.main --config
>>> /etc/puppetlabs/puppetserver/conf.d --bootstrap-config
>>> /etc/puppetlabs/puppetserver/bootstrap.cfg
>>> root@jim-Ubuntu1504:~#
>>>
>>>
>>> Also when I do see that error as like below when I do Ctrl + C and
>>> execute service puppetserver start I get the OutOfMemory error like below.
>>>
>>> root@jim-Ubuntu1504:~# ps -aef|grep -i puppet|grep -v grep
>>> root  1116 1  0 19:34 ?00:00:02
>>> /opt/puppetlabs/puppet/bin/ruby /opt/puppetlabs/puppet/bin/puppet agent
>>> --no-daemonize
>>> root  1719 1  0 19:38 ?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
>>> puppet3386 1 66 22:41 ?00:00:45 /usr/bin/java
>>> -XX:OnOutOfMemoryError=kill -9 %p -Djava.security.egd=/dev/urandom -Xms512m
>>> -Xmx512m -XX:MaxPermSize=512m -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:~#
>>>
>>> I wonder if I am doing start-up incorrectly ? Either even in this state
>>> where it sayOutOfMemoryError my puppetserver still serves all of its
>>> agents. The reason I say so is I changed motd file on all agents +
>>> installed vim package on agents.
>>>
>>> I am not sure which is the right method to start the server ? Also
>>> instead of running in foreground can I run it in background using nohup ?
>>>
>>> Regards,
>>> Jim
>>>
>>>
>>> On Friday, 27 May 2016 02:46:14 UTC+10, Matthaus Litteken wrote:

 Jim,
 For debugging failures on ubuntu 15.04, I would recommend trying
 `/opt/puppetlabs/bin/puppetserver foreground`, it may show you the errors
 that are causing the service to shutdown. Ubuntu 15.04 is a bit difficult
 to debug on, because while it has systemd support, the puppetserver
 packages for that platform still ship sysv init scripts. In my experience,
 

[Puppet Users] Re: Custom Facts for windows with powershell

2016-05-31 Thread John Ericson
Hi Harish!

This fact looks really interesting. I'm interested in doing the same thing 
in my environment. Did you solve the problem? And if so, do you care to 
share your solution?

Regards,
John

On Monday, May 23, 2016 at 8:08:29 PM UTC+2, Harish Kothuri wrote:
>
> Hi, 
>
> I'm trying to create a custom fact to get the installed software using 
> powershell command in windows as follows...
>
>
> *PS Command:-* 
> Get-ItemProperty 
> HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | 
> where{$_.DisplayName -and $_.displayname -notmatch 'Update'} | 
> Select-Object DisplayName, DisplayVersion | ForEach-Object {Write-Host 
> $_.DisplayName"="$_.DisplayVersion}
>
> *Output:-*
> 7-Zip 15.14 = 15.14
> ActiveState ActiveTcl 8.4.20.0 = 8.4.20.0
> Microsoft .NET Framework 4 Client Profile = 4.0.30319
> Microsoft .NET Framework 4 Extended = 4.0.30319
> Notepad++ = 6.9.1
> Microsoft .NET Framework 4 Extended = 4.0.30319
> Puppet = 3.8.7
> Microsoft Visual C++ 2012 Redistributable (x86) - 11.0.61030 = 11.0.61030.0
> Microsoft .NET Framework 4 Client Profile = 4.0.30319
> MSXML 4.0 SP2 Parser and SDK = 4.20.9818.0
> Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.17 = 9.0.30729
> VC9.0 SP0 Debug CRT DLLs = 1.0.0
> Microsoft Visual C++ 2012 x86 Additional Runtime - 11.0.61030 = 11.0.61030
> Microsoft Visual C++ 2012 x86 Minimum Runtime - 11.0.61030 = 11.0.61030
> Microsoft Visual C++ 2010  x86 Redistributable - 10.0.40219 = 10.0.40219
> ActivePerl 5.16.3 Build 1603 = 5.16.1603
>
>
> i have created a powershellscript like  getinstalledlist.ps1 with above 
> command and placed in facters.d folder. 
>
> When i run puppet agent -t , i get the following error.
>
> Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
> Failed to parse inline template: `@7_zip_15_14 . 
>
>
> Can someone help me to get this going?
>
> Thanks & Regards,
> Harish Kothuri
>

-- 
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/41905a37-139c-42f9-82be-503dd2da1428%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Reset Admin password

2016-05-31 Thread warron.french
Thank you James, it looks like problem runs very deep.

I am seeing a CA certificate issue with this installation for some reason.
I ran through the steps provided from that link and they didnt help me at
all.


Thanks anyway,

--
Warron French


On Mon, May 30, 2016 at 10:04 PM, James Pryor  wrote:

> https://puppet.com/blog/puppet-enterprise-console-password-reset
> I hope this helps.
>
> James
>
> On Mon, May 30, 2016 at 9:39 PM, warron.french 
> wrote:
>
>> I have root access to the server, which has a monolithic installation of
>> PE installed.
>>
>>
>> Can someone please provide me with the correct method to alter the *admin
>> *password, since I already have it *written *down but it is not working.
>>
>>
>> Thanks in advance,
>>
>> --
>> Warron French
>>
>> --
>> 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/CAJdJdQ%3DSCZinjNpTBEijdK8-As8%3Dog4kmuAg9unBa%2BgQTDiXOw%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/CAOsPUciLAsz%3DZTah%3DZ%3DSAz%2Bdw1Nm3muOa_tq0hu3UVc9isZNnQ%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/CAJdJdQkO_nWFNbdxmmFjySrjjOaAyzNMDRKcNoEpRUjXVWZVPw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet and SVN

2016-05-31 Thread Alex Samad
Thanks.  I did get onto the code control section which seems to
suggest I should use it instead of git/r10k as it hids this away
behind the scene !



On 31 May 2016 at 22:36, Rob Nelson  wrote:
> Alex, some of the later r10k articles have changed workflows, you may want
> to read the whole series before implementing anything. I highly recommend
> you check out Gary's Workflows Evolved article at
> http://garylarizza.com/blog/2015/11/16/workflows-evolved-even-besterer-practices/.
> The third link is to a reference controlrepo that Puppet suggests be used as
> a basis for building your own controlrepo
> (https://github.com/puppetlabs/control-repo). The controlrepo is what r10k
> would be deploying.
>
> You may also want to capture other items, mostly for bootstrapping, such as
> .pp files to configure hiera and r10k. Whether you place those in your
> controlrepo or another repo is up to you.
>
>
> Rob Nelson
> rnels...@gmail.com
>
> On Tue, May 31, 2016 at 1:01 AM, Alex Samad  wrote:
>>
>> Hi
>>
>>
>> Finally got some time to look at this
>>
>>
>> On 24 May 2016 at 11:22, Rob Nelson  wrote:
>> > I wrote some articles on using Git with puppet and r10k. It's a little
>> > out
>> > of date in the referenced versions of puppet and r10k, so check to make
>> > sure
>> > you're using the modern file locations, but otherwise remains accurate.
>> >
>> > https://rnelson0.com/2014/05/19/puppet-and-git-201-r10k-setup-installation/
>> >
>> > There's a link to a Git 100 series I wrote if you need assistance with
>> > Git
>> > itself.
>>
>>
>> I notice in the previous installs of puppet every thing was under
>> /etc/puppet  and you recommended putting that under git.
>>
>>
>> I see with the latest version of puppet I have
>>
>> /etc/puppetlabs
>> should I place that under git
>>
>> The only thing of concern there would be the ssl directory.
>>
>> or do i just add
>> code/
>> puppet/
>> puppetserver/
>>
>>
>> THanks
>> 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.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/puppet-users/CAJ%2BQ1PUs%3Dr6a74VPQ9K0z40Uu_bHXAdfeJEYMph4JCJ%3DRcFLQw%40mail.gmail.com.
>> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Puppet Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/puppet-users/Q0ke0NzMRjY/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAC76iT9ANbHm59X_fLcsGYxERgFBBHC97bk2yQR9EvirFWtz0Q%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/CAJ%2BQ1PUr46gus%2Bipc8H%3DsOAC%2Bzh7NXHOqvDCudJnqhDK6O9jjw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet and SVN

2016-05-31 Thread Rob Nelson
It does not hide it, but it does automate some of the installation and
setup. You'll still need to live in Git, and should at least be familiar
with using r10k even if you set up a webhook and don't run it manually all
the time. It's what you use to rescue yourself when you mess up, as I can
attest to!

On Tuesday, May 31, 2016, Alex Samad  wrote:

> Thanks.  I did get onto the code control section which seems to
> suggest I should use it instead of git/r10k as it hids this away
> behind the scene !
>
>
>
> On 31 May 2016 at 22:36, Rob Nelson >
> wrote:
> > Alex, some of the later r10k articles have changed workflows, you may
> want
> > to read the whole series before implementing anything. I highly recommend
> > you check out Gary's Workflows Evolved article at
> >
> http://garylarizza.com/blog/2015/11/16/workflows-evolved-even-besterer-practices/
> .
> > The third link is to a reference controlrepo that Puppet suggests be
> used as
> > a basis for building your own controlrepo
> > (https://github.com/puppetlabs/control-repo). The controlrepo is what
> r10k
> > would be deploying.
> >
> > You may also want to capture other items, mostly for bootstrapping, such
> as
> > .pp files to configure hiera and r10k. Whether you place those in your
> > controlrepo or another repo is up to you.
> >
> >
> > Rob Nelson
> > rnels...@gmail.com 
> >
> > On Tue, May 31, 2016 at 1:01 AM, Alex Samad  > wrote:
> >>
> >> Hi
> >>
> >>
> >> Finally got some time to look at this
> >>
> >>
> >> On 24 May 2016 at 11:22, Rob Nelson >
> wrote:
> >> > I wrote some articles on using Git with puppet and r10k. It's a little
> >> > out
> >> > of date in the referenced versions of puppet and r10k, so check to
> make
> >> > sure
> >> > you're using the modern file locations, but otherwise remains
> accurate.
> >> >
> >> >
> https://rnelson0.com/2014/05/19/puppet-and-git-201-r10k-setup-installation/
> >> >
> >> > There's a link to a Git 100 series I wrote if you need assistance with
> >> > Git
> >> > itself.
> >>
> >>
> >> I notice in the previous installs of puppet every thing was under
> >> /etc/puppet  and you recommended putting that under git.
> >>
> >>
> >> I see with the latest version of puppet I have
> >>
> >> /etc/puppetlabs
> >> should I place that under git
> >>
> >> The only thing of concern there would be the ssl directory.
> >>
> >> or do i just add
> >> code/
> >> puppet/
> >> puppetserver/
> >>
> >>
> >> THanks
> >> 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 .
> >> To view this discussion on the web visit
> >>
> https://groups.google.com/d/msgid/puppet-users/CAJ%2BQ1PUs%3Dr6a74VPQ9K0z40Uu_bHXAdfeJEYMph4JCJ%3DRcFLQw%40mail.gmail.com
> .
> >> For more options, visit https://groups.google.com/d/optout.
> >
> >
> > --
> > You received this message because you are subscribed to a topic in the
> > Google Groups "Puppet Users" group.
> > To unsubscribe from this topic, visit
> > https://groups.google.com/d/topic/puppet-users/Q0ke0NzMRjY/unsubscribe.
> > To unsubscribe from this group and all its topics, 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/CAC76iT9ANbHm59X_fLcsGYxERgFBBHC97bk2yQR9EvirFWtz0Q%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/CAJ%2BQ1PUr46gus%2Bipc8H%3DsOAC%2Bzh7NXHOqvDCudJnqhDK6O9jjw%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Rob Nelson
rnels...@gmail.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAC76iT9hqgajRpyMVwJ6AjvsDfTe4kLgR2SbnZA6%2BQGd%2B3f0pw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: Puppet 4.5 and git & R10K

2016-05-31 Thread Alex Samad
Hi

Lowe - okay - so I presume by that it doesn't come as a centos rpm ..
Rob - yes
Lee


So it looks like (more for my documentation )

install the puppet repo into centos
install the puppet base components (DB, server, agent)

Then I can install r10k via puppet ?

i'm looking at this
https://docs.puppet.com/pe/2016.1/cmgmt_managing_code.html

should I follow this to setup ?


"
If you are already using r10k to manage your Puppet code, we suggest
that you upgrade to Code Manager. Code Manager works in concert with
r10k, so when you switch to Code Manager, you no longer interact
directly with r10k.
"





On 31 May 2016 at 16:58, Lee DaeHyung  wrote:
> Hi
>
> I think you could see this page first: https://forge.puppet.com/zack/r10k
> and this
> http://garylarizza.com/blog/2014/08/31/r10k-plus-directory-environments/
>
> These will guide you how to use it.
>
>
>
> 2016년 5월 31일 화요일 오후 3시 40분 49초 UTC+9, Alex Samad 님의 말:
>>
>> Hi
>>
>> New install, I am doing this on Centos 6.x
>> I have installed the repo RPM
>>
>> I believe this is PC1 repo
>>
>>
>> yum --disablerepo '*' --enablerepo puppetlabs-pc1 list | grep
>> puppetlabs-pc1
>> puppet-agent.x86_64  1.5.0-1.el6
>> @puppetlabs-pc1
>> puppetdb.noarch  4.1.0-1.el6
>> @puppetlabs-pc1
>> puppetdb-termini.noarch  4.1.0-1.el6
>> @puppetlabs-pc1
>> puppetserver.noarch  2.4.0-1.el6
>> @puppetlabs-pc1
>> puppet-client-tools.x86_64   1.0.0-1.el6
>> puppetlabs-pc1
>> puppetdb-terminus.noarch 3-1.el6
>> puppetlabs-pc1
>>
>> I believe I have installed puppet , server , db and agent.
>>
>> But I can't find r10k
>>
>> rpm -qa | grep puppet
>> puppetdb-4.1.0-1.el6.noarch
>> puppet-agent-1.5.0-1.el6.x86_64
>> puppetserver-2.4.0-1.el6.noarch
>> puppetdb-termini-4.1.0-1.el6.noarch
>> puppetlabs-release-pc1-1.0.0-2.el6.noarch
>>
>> I was following Rob's blog for puppet r10K + git and couldn't find
>> /etc/r10k.yaml
>>
>> so how do I install r10k :)
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Puppet Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/puppet-users/836ysw94ya4/unsubscribe.
> To unsubscribe from this group and all its topics, 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/e3d27c2a-4604-4c0d-9f31-d17dba05ef17%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/CAJ%2BQ1PUFojMFJ-tFiz21%2BXwb_wsw_8Dmzmd%2BeDkBjuqB6UAtbg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: Puppet 4.5 and git & R10K

2016-05-31 Thread Alex Samad
Answer my own question (and for any one following on)

going to use
https://docs.puppet.com/pe/2016.1/cmgmt_managing_code.html
https://docs.puppet.com/pe/2016.1/cmgmt_control_repo.html

for the setup and then back to

http://garylarizza.com/blog/2014/08/31/r10k-plus-directory-environments/
https://rnelson0.com/2014/05/19/puppet-and-git-201-r10k-setup-installation/





On 1 June 2016 at 10:56, Alex Samad  wrote:
> Hi
>
> Lowe - okay - so I presume by that it doesn't come as a centos rpm ..
> Rob - yes
> Lee
>
>
> So it looks like (more for my documentation )
>
> install the puppet repo into centos
> install the puppet base components (DB, server, agent)
>
> Then I can install r10k via puppet ?
>
> i'm looking at this
> https://docs.puppet.com/pe/2016.1/cmgmt_managing_code.html
>
> should I follow this to setup ?
>
>
> "
> If you are already using r10k to manage your Puppet code, we suggest
> that you upgrade to Code Manager. Code Manager works in concert with
> r10k, so when you switch to Code Manager, you no longer interact
> directly with r10k.
> "
>
>
>
>
>
> On 31 May 2016 at 16:58, Lee DaeHyung  wrote:
>> Hi
>>
>> I think you could see this page first: https://forge.puppet.com/zack/r10k
>> and this
>> http://garylarizza.com/blog/2014/08/31/r10k-plus-directory-environments/
>>
>> These will guide you how to use it.
>>
>>
>>
>> 2016년 5월 31일 화요일 오후 3시 40분 49초 UTC+9, Alex Samad 님의 말:
>>>
>>> Hi
>>>
>>> New install, I am doing this on Centos 6.x
>>> I have installed the repo RPM
>>>
>>> I believe this is PC1 repo
>>>
>>>
>>> yum --disablerepo '*' --enablerepo puppetlabs-pc1 list | grep
>>> puppetlabs-pc1
>>> puppet-agent.x86_64  1.5.0-1.el6
>>> @puppetlabs-pc1
>>> puppetdb.noarch  4.1.0-1.el6
>>> @puppetlabs-pc1
>>> puppetdb-termini.noarch  4.1.0-1.el6
>>> @puppetlabs-pc1
>>> puppetserver.noarch  2.4.0-1.el6
>>> @puppetlabs-pc1
>>> puppet-client-tools.x86_64   1.0.0-1.el6
>>> puppetlabs-pc1
>>> puppetdb-terminus.noarch 3-1.el6
>>> puppetlabs-pc1
>>>
>>> I believe I have installed puppet , server , db and agent.
>>>
>>> But I can't find r10k
>>>
>>> rpm -qa | grep puppet
>>> puppetdb-4.1.0-1.el6.noarch
>>> puppet-agent-1.5.0-1.el6.x86_64
>>> puppetserver-2.4.0-1.el6.noarch
>>> puppetdb-termini-4.1.0-1.el6.noarch
>>> puppetlabs-release-pc1-1.0.0-2.el6.noarch
>>>
>>> I was following Rob's blog for puppet r10K + git and couldn't find
>>> /etc/r10k.yaml
>>>
>>> so how do I install r10k :)
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Puppet Users" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/puppet-users/836ysw94ya4/unsubscribe.
>> To unsubscribe from this group and all its topics, 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/e3d27c2a-4604-4c0d-9f31-d17dba05ef17%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/CAJ%2BQ1PUihWLQK8dfL-JP7q3Shrxq8ow44hXjKuFxvn-10Jr2_Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet 4.5 and git & R10K

2016-05-31 Thread Rob Nelson
Just to be sure, code manager is PE only. It looks like you're using Puppet
Opensource instead.

On Tuesday, May 31, 2016, Alex Samad  wrote:

> Answer my own question (and for any one following on)
>
> going to use
> https://docs.puppet.com/pe/2016.1/cmgmt_managing_code.html
> https://docs.puppet.com/pe/2016.1/cmgmt_control_repo.html
>
> for the setup and then back to
>
> http://garylarizza.com/blog/2014/08/31/r10k-plus-directory-environments/
> https://rnelson0.com/2014/05/19/puppet-and-git-201-r10k-setup-installation/
>
>
>
>
>
> On 1 June 2016 at 10:56, Alex Samad >
> wrote:
> > Hi
> >
> > Lowe - okay - so I presume by that it doesn't come as a centos rpm ..
> > Rob - yes
> > Lee
> >
> >
> > So it looks like (more for my documentation )
> >
> > install the puppet repo into centos
> > install the puppet base components (DB, server, agent)
> >
> > Then I can install r10k via puppet ?
> >
> > i'm looking at this
> > https://docs.puppet.com/pe/2016.1/cmgmt_managing_code.html
> >
> > should I follow this to setup ?
> >
> >
> > "
> > If you are already using r10k to manage your Puppet code, we suggest
> > that you upgrade to Code Manager. Code Manager works in concert with
> > r10k, so when you switch to Code Manager, you no longer interact
> > directly with r10k.
> > "
> >
> >
> >
> >
> >
> > On 31 May 2016 at 16:58, Lee DaeHyung >
> wrote:
> >> Hi
> >>
> >> I think you could see this page first:
> https://forge.puppet.com/zack/r10k
> >> and this
> >>
> http://garylarizza.com/blog/2014/08/31/r10k-plus-directory-environments/
> >>
> >> These will guide you how to use it.
> >>
> >>
> >>
> >> 2016년 5월 31일 화요일 오후 3시 40분 49초 UTC+9, Alex Samad 님의 말:
> >>>
> >>> Hi
> >>>
> >>> New install, I am doing this on Centos 6.x
> >>> I have installed the repo RPM
> >>>
> >>> I believe this is PC1 repo
> >>>
> >>>
> >>> yum --disablerepo '*' --enablerepo puppetlabs-pc1 list | grep
> >>> puppetlabs-pc1
> >>> puppet-agent.x86_64  1.5.0-1.el6
> >>> @puppetlabs-pc1
> >>> puppetdb.noarch  4.1.0-1.el6
> >>> @puppetlabs-pc1
> >>> puppetdb-termini.noarch  4.1.0-1.el6
> >>> @puppetlabs-pc1
> >>> puppetserver.noarch  2.4.0-1.el6
> >>> @puppetlabs-pc1
> >>> puppet-client-tools.x86_64   1.0.0-1.el6
> >>> puppetlabs-pc1
> >>> puppetdb-terminus.noarch 3-1.el6
> >>> puppetlabs-pc1
> >>>
> >>> I believe I have installed puppet , server , db and agent.
> >>>
> >>> But I can't find r10k
> >>>
> >>> rpm -qa | grep puppet
> >>> puppetdb-4.1.0-1.el6.noarch
> >>> puppet-agent-1.5.0-1.el6.x86_64
> >>> puppetserver-2.4.0-1.el6.noarch
> >>> puppetdb-termini-4.1.0-1.el6.noarch
> >>> puppetlabs-release-pc1-1.0.0-2.el6.noarch
> >>>
> >>> I was following Rob's blog for puppet r10K + git and couldn't find
> >>> /etc/r10k.yaml
> >>>
> >>> so how do I install r10k :)
> >>>
> >> --
> >> You received this message because you are subscribed to a topic in the
> >> Google Groups "Puppet Users" group.
> >> To unsubscribe from this topic, visit
> >> https://groups.google.com/d/topic/puppet-users/836ysw94ya4/unsubscribe.
> >> To unsubscribe from this group and all its topics, 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/e3d27c2a-4604-4c0d-9f31-d17dba05ef17%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/CAJ%2BQ1PUihWLQK8dfL-JP7q3Shrxq8ow44hXjKuFxvn-10Jr2_Q%40mail.gmail.com
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 

Rob Nelson
rnels...@gmail.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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAC76iT91EYN790ON9MGCf89sA7tTTEbMOG4gKUNi8ACeeKrPsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Custom Facts for windows with powershell

2016-05-31 Thread Harish Kothuri
Hello All,

Everything works fine after removing 7-Zip software. Looks like highphen 
(-) is having a problem in the name. You can also use regex to avoid those.

Thanks

On Wednesday, June 1, 2016 at 1:29:07 AM UTC+5:30, John Ericson wrote:
>
> Hi Harish!
>
> This fact looks really interesting. I'm interested in doing the same thing 
> in my environment. Did you solve the problem? And if so, do you care to 
> share your solution?
>
> Regards,
> John
>
> On Monday, May 23, 2016 at 8:08:29 PM UTC+2, Harish Kothuri wrote:
>>
>> Hi, 
>>
>> I'm trying to create a custom fact to get the installed software using 
>> powershell command in windows as follows...
>>
>>
>> *PS Command:-* 
>> Get-ItemProperty 
>> HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | 
>> where{$_.DisplayName -and $_.displayname -notmatch 'Update'} | 
>> Select-Object DisplayName, DisplayVersion | ForEach-Object {Write-Host 
>> $_.DisplayName"="$_.DisplayVersion}
>>
>> *Output:-*
>> 7-Zip 15.14 = 15.14
>> ActiveState ActiveTcl 8.4.20.0 = 8.4.20.0
>> Microsoft .NET Framework 4 Client Profile = 4.0.30319
>> Microsoft .NET Framework 4 Extended = 4.0.30319
>> Notepad++ = 6.9.1
>> Microsoft .NET Framework 4 Extended = 4.0.30319
>> Puppet = 3.8.7
>> Microsoft Visual C++ 2012 Redistributable (x86) - 11.0.61030 = 
>> 11.0.61030.0
>> Microsoft .NET Framework 4 Client Profile = 4.0.30319
>> MSXML 4.0 SP2 Parser and SDK = 4.20.9818.0
>> Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.17 = 9.0.30729
>> VC9.0 SP0 Debug CRT DLLs = 1.0.0
>> Microsoft Visual C++ 2012 x86 Additional Runtime - 11.0.61030 = 11.0.61030
>> Microsoft Visual C++ 2012 x86 Minimum Runtime - 11.0.61030 = 11.0.61030
>> Microsoft Visual C++ 2010  x86 Redistributable - 10.0.40219 = 10.0.40219
>> ActivePerl 5.16.3 Build 1603 = 5.16.1603
>>
>>
>> i have created a powershellscript like  getinstalledlist.ps1 with above 
>> command and placed in facters.d folder. 
>>
>> When i run puppet agent -t , i get the following error.
>>
>> Error: Could not retrieve catalog from remote server: Error 400 on 
>> SERVER: Failed to parse inline template: `@7_zip_15_14 . 
>>
>>
>> Can someone help me to get this going?
>>
>> Thanks & Regards,
>> Harish Kothuri
>>
>

-- 
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/930f54dd-d667-404b-92ee-2be3fc54a8dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Custom Facts for windows with powershell

2016-05-31 Thread Harish Kothuri
Hi Jim,

As what i understand from the command and the registry in windows, 
Uninstall section list all software's which can be uninstalled - which is 
nothing but installed software's. 

-Harish

On Tuesday, May 24, 2016 at 7:37:08 AM UTC+5:30, Jim wrote:
>
> Hi Harish,
>
> I am new to powershell and would like t help you although I am new to 
> puppet itself.
>
> In your powershell command why are you looking for registry key 
> 'Uninstall' should it be Installed?
>
> Please advise.
>
> Thanks
> Jim
>
>
> On Tuesday, 24 May 2016 04:08:29 UTC+10, Harish Kothuri wrote:
>>
>> Hi, 
>>
>> I'm trying to create a custom fact to get the installed software using 
>> powershell command in windows as follows...
>>
>>
>> *PS Command:-* 
>> Get-ItemProperty 
>> HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | 
>> where{$_.DisplayName -and $_.displayname -notmatch 'Update'} | 
>> Select-Object DisplayName, DisplayVersion | ForEach-Object {Write-Host 
>> $_.DisplayName"="$_.DisplayVersion}
>>
>> *Output:-*
>> 7-Zip 15.14 = 15.14
>> ActiveState ActiveTcl 8.4.20.0 = 8.4.20.0
>> Microsoft .NET Framework 4 Client Profile = 4.0.30319
>> Microsoft .NET Framework 4 Extended = 4.0.30319
>> Notepad++ = 6.9.1
>> Microsoft .NET Framework 4 Extended = 4.0.30319
>> Puppet = 3.8.7
>> Microsoft Visual C++ 2012 Redistributable (x86) - 11.0.61030 = 
>> 11.0.61030.0
>> Microsoft .NET Framework 4 Client Profile = 4.0.30319
>> MSXML 4.0 SP2 Parser and SDK = 4.20.9818.0
>> Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.17 = 9.0.30729
>> VC9.0 SP0 Debug CRT DLLs = 1.0.0
>> Microsoft Visual C++ 2012 x86 Additional Runtime - 11.0.61030 = 11.0.61030
>> Microsoft Visual C++ 2012 x86 Minimum Runtime - 11.0.61030 = 11.0.61030
>> Microsoft Visual C++ 2010  x86 Redistributable - 10.0.40219 = 10.0.40219
>> ActivePerl 5.16.3 Build 1603 = 5.16.1603
>>
>>
>> i have created a powershellscript like  getinstalledlist.ps1 with above 
>> command and placed in facters.d folder. 
>>
>> When i run puppet agent -t , i get the following error.
>>
>> Error: Could not retrieve catalog from remote server: Error 400 on 
>> SERVER: Failed to parse inline template: `@7_zip_15_14 . 
>>
>>
>> Can someone help me to get this going?
>>
>> Thanks & Regards,
>> Harish Kothuri
>>
>

-- 
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/58c992ad-41b9-414a-b9d7-282ef21da867%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] PuppetDB resources are not available

2016-05-31 Thread Harish Kothuri
Hi Wyatt,

I now have a custom fact using powershell commands to get the installed 
software's for windows machines.

*PS Command:-* 
Get-ItemProperty 
HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | 
where{$_.DisplayName -and $_.displayname -notmatch 'Update'} | 
Select-Object DisplayName, DisplayVersion | ForEach-Object {Write-Host 
$_.DisplayName"="$_.DisplayVersion}

*Output:-*
ActiveState ActiveTcl 8.4.20.0 = 8.4.20.0
Microsoft .NET Framework 4 Client Profile = 4.0.30319
Microsoft .NET Framework 4 Extended = 4.0.30319
Notepad++ = 6.9.1
Microsoft .NET Framework 4 Extended = 4.0.30319
Puppet = 3.8.7
Microsoft Visual C++ 2012 Redistributable (x86) - 11.0.61030 = 11.0.61030.0
Microsoft .NET Framework 4 Client Profile = 4.0.30319
MSXML 4.0 SP2 Parser and SDK = 4.20.9818.0
Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729.17 = 9.0.30729
VC9.0 SP0 Debug CRT DLLs = 1.0.0
Microsoft Visual C++ 2012 x86 Additional Runtime - 11.0.61030 = 11.0.61030
Microsoft Visual C++ 2012 x86 Minimum Runtime - 11.0.61030 = 11.0.61030
Microsoft Visual C++ 2010  x86 Redistributable - 10.0.40219 = 10.0.40219
ActivePerl 5.16.3 Build 1603 = 5.16.1603

Thanks,
Harish

On Thursday, May 19, 2016 at 1:11:17 AM UTC+5:30, Wyatt Alt wrote:
>
> Harish,
>
> The reason for that is the resources returned by puppet resource come from 
> the RAL, rather than PuppetDB. If you were to declare puppet resources with 
> the content included in your paste, then they would show up in PuppetDB. 
>
> PuppetDB will only include version information on package resources if the 
> package is managed by puppet and the version is specified in the resource 
> declaration. The most straightforward way to get information on all 
> packages installed (e.g not managed by Puppet) into PuppetDB is to create a 
> custom fact. I saw a module posted to the forge to do this the other day: 
> https://forge.puppet.com/rmueller/pkg_inventory
>
> Looks like it currently supports only redhat but if you're on something 
> else you should be able to get an idea of how to adapt it based on the fact 
> defined here: 
> https://github.com/roman-mueller/rmueller-pkg_inventory/blob/master/lib/facter/pkg_inventory.rb
>  
> .
>
> Given the fact you could get the data by querying 
> localhost:8080/v4/facts/packages, assuming the name of the fact is 
> "packages".
>
> Hope that helps.
>
> Wyatt
>

-- 
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/b2d8ef64-438f-46da-8385-390378591198%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.