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.


Re: [Puppet Users] not able to run Linux command through puppet

2015-01-06 Thread Gareth Rushgrove
On 5 January 2015 at 19:33, Spriya  wrote:
> Hi,
>
> I am trying to run linux command through puppet. when i run the same command
> in the command line it is working fine. But when i placed it in the puppet
> it is throwing me an error.
>
> Here is the code:
>
> Facter.add('unknownjava') do
>   setcode do
> %x(`/usr/bin/diff <(/bin/sort /home/weblogic/javafoundmodified.txt)
> <(/bin/sort /home/weblogic/authorizedjava.txt) >
> /home/weblogic/unknownjava.txt | /bin/sed -i 's/^.//'
> /home/weblogic/unknownjava.txt`)
>   end
> end
>
>
> Here is the  error:
> sh: command substitution: line 0: syntax error near unexpected token `('
> sh: command substitution: line 0: `/usr/bin/diff <("/bin/sort
> /home/weblogic/javafoundmodified.txt") <("/bin/sort
> /home/weblogic/authorizedjava.txt") > /home/weblogic/unknownjava.txt |
> /bin/sed -i 's/^.//' /home/weblogic/unknownjava.txt'
> sh: command substitution: line 0: syntax error near unexpected token `('
>

I'm guessing here a little but I think this is because the command is
executing under sh, and when you run in manually it's executing under
bash.

So try something like:

(`bash -c /usr/bin/diff 

Gareth

>
>
> --
> 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/8b32a0d5-f06a-4598-9f72-b5a3aca4a610%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Gareth Rushgrove
@garethr

devopsweekly.com
morethanseven.net
garethrushgrove.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/CAFi_6y%2BznKWE-qB07Zp_GX%2BvdzM71TM9eDmd29Dg9NmA_0h3Pw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Announcing Tiny Puppet

2015-01-06 Thread Alessandro Franceschi


On Monday, January 5, 2015 5:57:35 PM UTC+1, jcbollinger wrote:
>
>
>
> On Friday, January 2, 2015 3:49:25 AM UTC-6, Alessandro Franceschi wrote:
>>
>> Hi all,
>> with some hardly hidden pride and excitement I'd like to announce the 
>> first release of Tiny Puppet  
>> ("Yet Another Puppet Abstraction Layer"), a Puppet module that allows easy, 
>> quick and coherent management of virtually any application.
>>
>>
>
> I remember when you first introduced the Tiny Puppet idea to the group.  
> I'm amused now that at the time, in the context of the broader discussion, 
> you wrote "Sometimes I wonder if a totally data driven approach is 
> something that is always the right choice."  It doesn't look like TP is 
> *totally* data-driven, but it sure takes a big leap in that direction.
>
In any event, TP looks great.  It seems, in part, the natural evolution of 
> the module standards ideas: if one accepts the proposition that most low- 
> (and some not-so-low-)level modules should have standardized form, then not 
> only should we not need multiple modules to manage the same component, we 
> shouldn't really need multiple standardized modules, either.  Why write all 
> that boilerplate?  Automating that sort of thing is what computers are for.
>

Exactly. Given the difficulties in gathering people around naming 
standards, which for modules mean basically standard interfaces to their 
functionalities, and considering the fact that I value the principle of 
consistency and coherency in a modules ecosystem I considered this approach 
as my only possibility to achieve it without writing (again) a lot of 
modules based on a common structure.
It took me some years (I remember a discussion, made several years ago with 
Teyo Tyree, about the opportunity to reduce all the boilerplate around 
modules with similar structure) but somehow only now this goal has been 
achieved.
Honestly this could have happened way before, as there's nothing in Tiny 
Puppet that could not have been done a few years ago, but I suppose things 
have their own maturation times.


> In fact, there are good reasons for modules -- or at least classes -- 
> wrapped around TP resources, but it certainly looks like TP will do a great 
> job of minimizing all the boilerplate, which I guess was a primary 
> objective.
>
> Well done!
>

Thank you! Honestly I'm quite proud to listen such words from you :-)

Al

>

-- 
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/0668e5af-a7bf-4203-b17a-fd444ca0581c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Upgrading all Forge modules at once

2015-01-06 Thread Jonathan Gazeley

Hi peeps,

Is there a way to upgrade all currently-installed Forge modules at the 
same time? I'm guessing no, since I've looked in the past and haven't 
found a way.


I prepared a small script the enumerates all installed modules and 
upgrades them sequentially. It's hacky, but it works for me. May be 
useful to someone though!


https://gist.github.com/djjudas21/933d90d3a1c267a6e884

Cheers,
Jonathan

--
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/54ABAD3F.8080700%40bristol.ac.uk.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: puppetdb memory use

2015-01-06 Thread kaustubh chaudhari
Did you upgrade the openjdk to the latest ?

i did the same upgrade. for me things are running smooth.

-Kaustubh

On Tuesday, January 6, 2015 2:35:04 AM UTC-5, jdt wrote:
>
> Hello,
>
> I recently upgraded to PuppetDB2.2.0 from 1.6.3
> When I was running PuppetDB1.6.3 with Puppet 3.4.3 I could do with 256Mb 
> of heap space for PuppetDB after the upgrade I've increased first to 512Mb 
> and 768Mb but I kept getting Out of Memory, so now I've increased it to 1Gb.
> When looking at the dashboard it seems like memory is slowly increasing,
> I'm running Puppet v3.6.2 with PuppetDB2.2.0 on CentOS6.x with Ruby 1.8.7. 
> I have about 850 active puppet agents
>
> Has anyone seen the same behaviour? How can I find out what exactly is 
> wrong if anything?
>
> Best Regards,
> Jo
>

-- 
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/1423b492-e845-4d53-a1b5-d7edd05a14ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: puppetdb memory use

2015-01-06 Thread jdt
I'm running  java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el6_5 that might not be 
the very latest. I'm on CentOS 6.5

The heap space usage is pretty close to 1GB,when I look at it via the 
PuppetDB dashboard. I'm managing over 10 resources

Jo


Op dinsdag 6 januari 2015 11:26:40 UTC+1 schreef kaustubh chaudhari:
>
> Did you upgrade the openjdk to the latest ?
>
> i did the same upgrade. for me things are running smooth.
>
> -Kaustubh
>
> On Tuesday, January 6, 2015 2:35:04 AM UTC-5, jdt wrote:
>>
>> Hello,
>>
>> I recently upgraded to PuppetDB2.2.0 from 1.6.3
>> When I was running PuppetDB1.6.3 with Puppet 3.4.3 I could do with 256Mb 
>> of heap space for PuppetDB after the upgrade I've increased first to 512Mb 
>> and 768Mb but I kept getting Out of Memory, so now I've increased it to 1Gb.
>> When looking at the dashboard it seems like memory is slowly increasing,
>> I'm running Puppet v3.6.2 with PuppetDB2.2.0 on CentOS6.x with Ruby 
>> 1.8.7. I have about 850 active puppet agents
>>
>> Has anyone seen the same behaviour? How can I find out what exactly is 
>> wrong if anything?
>>
>> Best Regards,
>> Jo
>>
>

-- 
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/a660102b-8cb3-4886-a0f7-277648641b61%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: puppetdb memory use

2015-01-06 Thread kaustubh chaudhari
Hey,

I noticed that you mentioned you are managing 850 nodes and you are using 
1024MB for java Heap size. As per the recommendation this seems to be OK.

As per the documentation you need to allocate 128MB + 1MB per node ie: 128 
+ 850 =  978 MB is the minimum requirement. Also the scaling depends on the 
how many catalog runs etc.

Performance might be the issue if you have less CPU cores. 

So what you are seeing about memory close to 1024MB is Ok, my 
recommendation is to increase it further to stay away from OOM.

-HTH
Kaustubh




On Tuesday, January 6, 2015 7:19:56 AM UTC-5, jdt wrote:
>
> I'm running  java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el6_5 that might not be 
> the very latest. I'm on CentOS 6.5
>
> The heap space usage is pretty close to 1GB,when I look at it via the 
> PuppetDB dashboard. I'm managing over 10 resources
>
> Jo
>
>
> Op dinsdag 6 januari 2015 11:26:40 UTC+1 schreef kaustubh chaudhari:
>>
>> Did you upgrade the openjdk to the latest ?
>>
>> i did the same upgrade. for me things are running smooth.
>>
>> -Kaustubh
>>
>> On Tuesday, January 6, 2015 2:35:04 AM UTC-5, jdt wrote:
>>>
>>> Hello,
>>>
>>> I recently upgraded to PuppetDB2.2.0 from 1.6.3
>>> When I was running PuppetDB1.6.3 with Puppet 3.4.3 I could do with 256Mb 
>>> of heap space for PuppetDB after the upgrade I've increased first to 512Mb 
>>> and 768Mb but I kept getting Out of Memory, so now I've increased it to 1Gb.
>>> When looking at the dashboard it seems like memory is slowly increasing,
>>> I'm running Puppet v3.6.2 with PuppetDB2.2.0 on CentOS6.x with Ruby 
>>> 1.8.7. I have about 850 active puppet agents
>>>
>>> Has anyone seen the same behaviour? How can I find out what exactly is 
>>> wrong if anything?
>>>
>>> Best Regards,
>>> Jo
>>>
>>

-- 
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/349b3d2a-e81e-499e-b2f8-167342196c45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: puppetdb memory use

2015-01-06 Thread kaustubh chaudhari
For your Reference : 
https://docs.puppetlabs.com/puppetdb/2.2/scaling_recommendations.html#initial-memory-recommendations

-Kaustubh

On Tuesday, January 6, 2015 8:14:24 AM UTC-5, kaustubh chaudhari wrote:
>
> Hey,
>
> I noticed that you mentioned you are managing 850 nodes and you are using 
> 1024MB for java Heap size. As per the recommendation this seems to be OK.
>
> As per the documentation you need to allocate 128MB + 1MB per node ie: 128 
> + 850 =  978 MB is the minimum requirement. Also the scaling depends on the 
> how many catalog runs etc.
>
> Performance might be the issue if you have less CPU cores. 
>
> So what you are seeing about memory close to 1024MB is Ok, my 
> recommendation is to increase it further to stay away from OOM.
>
> -HTH
> Kaustubh
>
>
>
>
> On Tuesday, January 6, 2015 7:19:56 AM UTC-5, jdt wrote:
>>
>> I'm running  java-1.7.0-openjdk-1.7.0.65-2.5.1.2.el6_5 that might not be 
>> the very latest. I'm on CentOS 6.5
>>
>> The heap space usage is pretty close to 1GB,when I look at it via the 
>> PuppetDB dashboard. I'm managing over 10 resources
>>
>> Jo
>>
>>
>> Op dinsdag 6 januari 2015 11:26:40 UTC+1 schreef kaustubh chaudhari:
>>>
>>> Did you upgrade the openjdk to the latest ?
>>>
>>> i did the same upgrade. for me things are running smooth.
>>>
>>> -Kaustubh
>>>
>>> On Tuesday, January 6, 2015 2:35:04 AM UTC-5, jdt wrote:

 Hello,

 I recently upgraded to PuppetDB2.2.0 from 1.6.3
 When I was running PuppetDB1.6.3 with Puppet 3.4.3 I could do with 
 256Mb of heap space for PuppetDB after the upgrade I've increased first to 
 512Mb and 768Mb but I kept getting Out of Memory, so now I've increased it 
 to 1Gb.
 When looking at the dashboard it seems like memory is slowly increasing,
 I'm running Puppet v3.6.2 with PuppetDB2.2.0 on CentOS6.x with Ruby 
 1.8.7. I have about 850 active puppet agents

 Has anyone seen the same behaviour? How can I find out what exactly is 
 wrong if anything?

 Best Regards,
 Jo

>>>

-- 
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/0b3fa212-3ff4-4f19-afd4-e6e7850626e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Install puppet agent via puppet master

2015-01-06 Thread jgopi ruizu
Is it possible to install a puppet agent on a new system by the puppet 
master?
If so how it works? 

-- 
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/120d73fe-7165-4c86-9e46-08cb5509cf93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Unable to retrieve catalog with Hiera as ENC

2015-01-06 Thread Adrien Kutak
Hi,

I'm trying to use Hiera as ENC with dynamic puppet environment however it 
fails when I launch puppet : 
*root@test:/# puppet agent -t --environment=development*






*Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
undefined method `empty_answer' for Hiera::Backend:Module at 
/etc/puppet/environments/development/site.pp:2 on node test.comWarning: Not 
using cache on failed catalogError: Could not retrieve catalog; skipping 
run*I use r10k to deploy different environments and each env is in its own 
git branch.
Puppet works correctly if the node is declared manually, I don't understand 
what goes wrong with dynamic env & Hiera.

This is my configuration files :

/etc/puppet/puppet conf :
[main]
logdir=/var/log/puppet
vardir=/var/lib/puppet
ssldir=/var/lib/puppet/ssl
rundir=/var/run/puppet
factpath=$vardir/lib/facter
environmentpath = $confdir/environments

[master]
# These are needed when the puppetmaster is run by passenger
# and can safely be removed if webrick is used.
ssl_client_header = SSL_CLIENT_S_DN
ssl_client_verify_header = SSL_CLIENT_VERIFY
server=puppetmaster


/etc/puppet/hiera.yaml :
---
:backends:
  - yaml
  - json
  - file
  - gpg

:hierarchy:
  - "%{environment}/nodes/%{clientcert}"
  - "%{environment}/%{environment}"
  - common

:yaml:
  :datadir: /etc/puppet/environments/%{environment}/data

:file:
  :datadir: /etc/puppet/environments/%{environment}/data

:json:
  :datadir: /etc/puppet/environments/%{environment}/data

:gpg:
  :datadir: /etc/puppet/environments/%{environment}/data


/etc/puppet/environments/development/environment.conf
manifest = site.pp
modulepath = modules:site

/etc/puppet/environments/development/site.pp
node default {
  hiera_include('classes')
}

and my hiera file 
/etc/puppet/environments/development/data/development/nodes/test.com.yaml
---
classes:
  - testmod

module testmod just notify the client certname.


-- 
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/cec15618-609d-4da4-bb70-23d88ab9114b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] not able to run Linux command through puppet

2015-01-06 Thread Spriya

Same error is coming up. even though i changed to 'bash -c /usr/bin/diff ...

 

On Tuesday, January 6, 2015 3:42:59 AM UTC-5, garethr wrote:
>
> On 5 January 2015 at 19:33, Spriya > 
> wrote: 
> > Hi, 
> > 
> > I am trying to run linux command through puppet. when i run the same 
> command 
> > in the command line it is working fine. But when i placed it in the 
> puppet 
> > it is throwing me an error. 
> > 
> > Here is the code: 
> > 
> > Facter.add('unknownjava') do 
> >   setcode do 
> > %x(`/usr/bin/diff <(/bin/sort 
> /home/weblogic/javafoundmodified.txt) 
> > <(/bin/sort /home/weblogic/authorizedjava.txt) > 
> > /home/weblogic/unknownjava.txt | /bin/sed -i 's/^.//' 
> > /home/weblogic/unknownjava.txt`) 
> >   end 
> > end 
> > 
> > 
> > Here is the  error: 
> > sh: command substitution: line 0: syntax error near unexpected token `(' 
> > sh: command substitution: line 0: `/usr/bin/diff <("/bin/sort 
> > /home/weblogic/javafoundmodified.txt") <("/bin/sort 
> > /home/weblogic/authorizedjava.txt") > /home/weblogic/unknownjava.txt | 
> > /bin/sed -i 's/^.//' /home/weblogic/unknownjava.txt' 
> > sh: command substitution: line 0: syntax error near unexpected token `(' 
> > 
>
> I'm guessing here a little but I think this is because the command is 
> executing under sh, and when you run in manually it's executing under 
> bash. 
>
> So try something like: 
>
> (`bash -c /usr/bin/diff  
>
> Gareth 
>
> > 
> > 
> > -- 
> > 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...@googlegroups.com . 
> > To view this discussion on the web visit 
> > 
> https://groups.google.com/d/msgid/puppet-users/8b32a0d5-f06a-4598-9f72-b5a3aca4a610%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>
>
>
> -- 
> Gareth Rushgrove 
> @garethr 
>
> devopsweekly.com 
> morethanseven.net 
> garethrushgrove.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/fa76ee78-e580-4f7a-816d-03783f609298%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] not able to run Linux command through puppet

2015-01-06 Thread Trevor Vaughan
Looks like your Ruby syntax is incorrect.

Try (untested):


*%x{/usr/bin/diff <(/bin/sort /home/weblogic/javafoundmodified.txt)
<(/bin/sort /home/weblogic/authorizedjava.txt) >
/home/weblogic/unknownjava.txt | /bin/sed -i 's/^.//'
/home/weblogic/unknownjava.txt}*



*You might want to throw that in IRB before putting it in Facter directly
just to make sure it does what you expect.Trevor*

On Mon, Jan 5, 2015 at 2:33 PM, Spriya  wrote:

> Hi,
>
> I am trying to run linux command through puppet. when i run the same
> command in the command line it is working fine. But when i placed it in the
> puppet it is throwing me an error.
>
> Here is the code:
>
> *Facter.add('unknownjava') do*
> *  setcode do*
> *%x(`/usr/bin/diff <(/bin/sort
> /home/weblogic/javafoundmodified.txt) <(/bin/sort
> /home/weblogic/authorizedjava.txt) > /home/weblogic/unknownjava.txt |
> /bin/sed -i 's/^.//' /home/weblogic/unknownjava.txt`)*
> *  end*
> *end*
>
>
> Here is the  error:
> *sh: command substitution: line 0: syntax error near unexpected token `('*
> *sh: command substitution: line 0: `/usr/bin/diff <("/bin/sort
> /home/weblogic/javafoundmodified.txt") <("/bin/sort
> /home/weblogic/authorizedjava.txt") > /home/weblogic/unknownjava.txt |
> /bin/sed -i 's/^.//' /home/weblogic/unknownjava.txt'*
> *sh: command substitution: line 0: syntax error near unexpected token `('*
>
>
>
>  --
> 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/8b32a0d5-f06a-4598-9f72-b5a3aca4a610%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699
tvaug...@onyxpoint.com

-- This account not approved for unencrypted proprietary information --

-- 
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/CANs%2BFoW_Uj3BbOmcMkemqKDgMT9MOazDAhXGVJLoJ6kLk%3Dqn8A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] How to force Puppet to use a specific yum repo?

2015-01-06 Thread staceytian4321
Hi, 

I am using open source Puppet 3.7.3. There are multiple yum repos on the 
puppet agent machines. So when I use Puppet to push a package, can I force 
Puppet to use a specific yum repo?

For example, here is my module for pushing Firefox:

class firefox::checkff inherits firefox {
  if ( ($operatingsystemrelease >= 6.5) and ($hardwareisa == 'x86_64') ) {
 
file { "/etc/yum.repos.d/firefox.31.2.x86_64.repo":
  ensure => present,
  source => "/templates/Linux/yum.repos.d/firefox.31.2.x86_64.repo",
  mode => '0644',
  owner => 'root',
}

package { "gtk2":
  ensure => '2.24.23-6.el6',
}

package { "firefox":
  ensure => '31.2.0-3.el6_6',
  subscribe => [ Package['gtk2'] ],
}
  }
}

You can see that I make sure my firefox.31.2.x86_64.repo is copied to the 
local machine's /etc/yum.repos.d, but I found out that my puppet agent will 
still try to get the firefox package from my Satellite server instead of 
installing from the local firefox repo.

Is there any way to force Puppet to use a specific yum repo?

Thanks,
Stacey

-- 
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/30f4bbaa-360b-41b3-a660-9373cca31fa3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: not able to run Linux command through puppet

2015-01-06 Thread jcbollinger


On Monday, January 5, 2015 1:33:09 PM UTC-6, Spriya wrote:

*%x(`/usr/bin/diff <(/bin/sort /home/weblogic/javafoundmodified.txt) 
> <(/bin/sort /home/weblogic/authorizedjava.txt) > 
> /home/weblogic/unknownjava.txt | /bin/sed -i 's/^.//' 
> /home/weblogic/unknownjava.txt`)*
>

[...]
 

> Here is the  error:
> *sh: command substitution: line 0: syntax error near unexpected token `('*
> *sh: command substitution: line 0: `/usr/bin/diff <("/bin/sort 
> /home/weblogic/javafoundmodified.txt") <("/bin/sort 
> /home/weblogic/authorizedjava.txt") > /home/weblogic/unknownjava.txt | 
> /bin/sed -i 's/^.//' /home/weblogic/unknownjava.txt'*
> *sh: command substitution: line 0: syntax error near unexpected token `('*
>
>

It looks like you have multiple wierdnesses going on there.

In the first place, you are nesting a backtick-quoted command execution 
inside a %x{ ... } block.  That will run the inner command, then (on 
success) run its output as a command.  I don't suppose that's what you want.

In the second place, you have a quoting problem.  Garet is onto something 
when he observes that the error is flagging a construct recognized by bash 
but not by the traditional Bourne shell.  His suggestion is probably right, 
except that he neglects to mention that the whole body of the command needs 
to be quoted as a single argument following -c.

In the third place, your command has odd redirections in it: you redirect 
the diff output to a file, but you also pipe it to sed.  There's only one 
standard output; you cannot redirect it to two different termini.

In the fourth place, you are both piping input into sed, and giving it a 
file name to process, and moreover, you are specifying in-place editing 
(-i).  This combination should edit the named file, ignoring standard input 
and producing nothing on standard output.  That's ok in itself, but it 
won't give you anything for your fact value.

Supposing that it is important to record the results of the command in a 
file, as the command seems intended to do, it looks like you want something 
like this:

Facter.add('unknownjava') do
  setcode do
  %x("/bin/bash -c '/usr/bin/diff <(/bin/sort 
/home/weblogic/javafoundmodified.txt) <(/bin/sort 
/home/weblogic/authorizedjava.txt) | /bin/sed \"s/^.//\" 
/home/weblogic/unknownjava.txt | /usr/bin/tee 
/home/weblogic/unknownjava.txt'")
  end
 end


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/b34a29ab-9026-4712--c5f1c626d125%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: not able to run Linux command through puppet

2015-01-06 Thread jcbollinger


Sorry, I meant:
%x{/bin/bash -c '/usr/bin/diff <(/bin/sort 
/home/weblogic/javafoundmodified.txt) <(/bin/sort 
/home/weblogic/authorizedjava.txt) | /bin/sed "s/^.//" 
/home/weblogic/unknownjava.txt | /usr/bin/tee 
/home/weblogic/unknownjava.txt'}


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/3fc0425b-12bd-494e-940f-087431584eca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: not able to run Linux command through puppet

2015-01-06 Thread jcbollinger

Errr... this:

>
> %x{/bin/bash -c '/usr/bin/diff <(/bin/sort 
> /home/weblogic/javafoundmodified.txt) <(/bin/sort 
> /home/weblogic/authorizedjava.txt) | /bin/sed "s/^.//" | /usr/bin/tee 
> /home/weblogic/unknownjava.txt'}
>
>
>
I mean it this time.


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/53b2b5eb-1d7d-4898-8a12-6cb4a459f618%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: not able to run Linux command through puppet

2015-01-06 Thread Felix Frank
How about avoiding the awful bashisms altogether?

cat /home/weblogic/{javafoundmodified,authorizedjava}.txt
| sort
| uniq -u
| tee ...

That should make it easier on your Ruby.

-- 
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/54ABFEB3.80803%40alumni.tu-berlin.de.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: not able to run Linux command through puppet

2015-01-06 Thread Spriya
Thank you john. This is working for me.

On Tuesday, January 6, 2015 10:04:58 AM UTC-5, jcbollinger wrote:
>
>
> Errr... this:
>
>>
>> %x{/bin/bash -c '/usr/bin/diff <(/bin/sort 
>> /home/weblogic/javafoundmodified.txt) <(/bin/sort 
>> /home/weblogic/authorizedjava.txt) | /bin/sed "s/^.//" | /usr/bin/tee 
>> /home/weblogic/unknownjava.txt'}
>>
>>
>>
> I mean it this time.
>
>
> 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/e977c511-55b6-48a5-b65a-6ca64fe72d87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] How to test hiera info?

2015-01-06 Thread leam hall
I can use:

puppet apply -e '$su = hiera_array("site_users") notify { $su: }' on
the puppet master and get the information for that host. How do I run
that query on a node that should get a different answer based on
facts?

For example, on "mynode.example.com", how do I query for
hostname="mynode". I tried just adding that in and was not successful.

Thanks!

Leam

-- 
Mind on a Mission

-- 
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/CACv9p5ok_YtkS%3DrhHC1ew%2B5FdLOpHcWCcZHwnBDrRraQMV%2BO9Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] How to test hiera info?

2015-01-06 Thread Dan White

From "puppet help apply" :

Applies a standalone Puppet manifest to the local system.

So, I do not believe you can do this on other than a puppet master.

To do such tests on agent machines, I create a dummy/sandbox class and then 
include it on the node.
If you are using hiera, you should be using the "classes".  Just add the new 
class down at the individual node level of your hierarchy

“Sometimes I think the surest sign that intelligent life exists elsewhere in the 
universe is that none of it has tried to contact us.”  (Bill Waterson: Calvin & 
Hobbes)


On Jan 06, 2015, at 11:13 AM, leam hall  wrote:


I can use:

puppet apply -e '$su = hiera_array("site_users") notify { $su: }' on
the puppet master and get the information for that host. How do I run
that query on a node that should get a different answer based on
facts?

For example, on "mynode.example.com", how do I query for
hostname="mynode". I tried just adding that in and was not successful.

Thanks!

Leam

--
Mind on a Mission

--
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/CACv9p5ok_YtkS%3DrhHC1ew%2B5FdLOpHcWCcZHwnBDrRraQMV%2BO9Q%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/a724d9e7-a318-42c6-a3bc-100fa53737b9%40me.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] How to test hiera info?

2015-01-06 Thread Stephen Marlow
You can use hiera on the command line to directly look up values, and you
can feed it a file to use different facts.

On the client:
  sudo facter -p -y > facts.yml

This tells facter to gather facts, using additional puppet facts (-p) and
to output them in a yaml format (-y). In my instance I had to use sudo to
get the additional puppet facts, but that may not hold for your setup.

Transfer facts.yml to the puppet master.

On the puppet master:
  hiera -c /etc/puppet/hiera.yaml -y facts.yml the::key::i::want

This runs hiera using your puppet hiera config (-c /etc/puppet/hiera.yaml)
and loads in facts from a yaml format file (-y facts.yml).

This should adequately simulate the process used during catalog compilation
and give you the appropriate value. I don't know if this will approximate
hiera_array, but it's a start.

On Tue, Jan 6, 2015 at 11:28 AM, Dan White  wrote:

> From "puppet help apply" :
> Applies a standalone Puppet manifest to the local system.
>
> So, I do not believe you can do this on other than a puppet master.
>
> To do such tests on agent machines, I create a dummy/sandbox class and
> then include it on the node.
> If you are using hiera, you should be using the "classes".  Just add the
> new class down at the individual node level of your hierarchy
>
> “Sometimes I think the surest sign that intelligent life exists elsewhere in 
> the universe is that none of it has tried to contact us.”  (Bill Waterson: 
> Calvin & Hobbes)
>
>
> On Jan 06, 2015, at 11:13 AM, leam hall  wrote:
>
> I can use:
>
> puppet apply -e '$su = hiera_array("site_users") notify { $su: }' on
> the puppet master and get the information for that host. How do I run
> that query on a node that should get a different answer based on
> facts?
>
> For example, on "mynode.example.com", how do I query for
> hostname="mynode". I tried just adding that in and was not successful.
>
> Thanks!
>
> Leam
>
> --
> Mind on a Mission
>
> --
> 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/CACv9p5ok_YtkS%3DrhHC1ew%2B5FdLOpHcWCcZHwnBDrRraQMV%2BO9Q%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/a724d9e7-a318-42c6-a3bc-100fa53737b9%40me.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/CALGSqjL0O92PRVzuw62PA4A9Hr9aYqAf88uohTsP6KE%2B05nMMg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] log config for "Passenger AppPreloader: /var/opt/lib/pe-puppetmaster"

2015-01-06 Thread Seokhee Kim
Hi,

I am getting below messages on /var/log/messages. 

*puppet-master[1572]: schedule is a metaparam; this value will inherit to 
all contained resources in the*

How can I redirect them? any configuration for that?

Thanks,
Seokhee

-- 
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/093d9e5f-c699-4957-b57c-4a46f4ce8e10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: log config for "Passenger AppPreloader: /var/opt/lib/pe-puppetmaster"

2015-01-06 Thread Seokhee Kim
For more information,

httpd/conf.d/puppetmaster.conf has below config. why the /var/log/messages 
getting "puppet-master"?

ErrorLog /var/log/pe-httpd/puppetmaster.error.log
TransferLog /var/log/pe-httpd/puppetmaster.access.log


On Tuesday, 6 January 2015 15:01:00 UTC-5, Seokhee Kim wrote:

> Hi,
>
> I am getting below messages on /var/log/messages. 
>
> *puppet-master[1572]: schedule is a metaparam; this value will inherit to 
> all contained resources in the*
>
> How can I redirect them? any configuration for that?
>
> Thanks,
> Seokhee
>

-- 
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/3b5d2853-f9c8-45ae-af08-d9776fa8ed63%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: Puppet applies new file, then reverts it back

2015-01-06 Thread Nicholas Miller
That was it!  Thank you very much!

On Tuesday, January 6, 2015 2:30:14 AM UTC-5, Alex Elman wrote:
>
> Josh is correct. The first resource has a character with a different case. 
> Notice the p in the filename. You are managing two different resources from 
> puppet's perspective.
>
>
> C:/LiveServices/LiveObjectWebServer/Plugins/LiveBuilder/LiveBuilderplugin.lsp
>
> Versus
>
>
> C:/LiveServices/LiveObjectWebServer/Plugins/LiveBuilder/LiveBuilderPlugin.lsp
> On Jan 6, 2015 12:33 AM, "Josh Cooper" > 
> wrote:
>
>>
>>
>> On Mon, Jan 5, 2015 at 7:49 AM, jcbollinger > > wrote:
>>
>>>
>>>
>>> On Tuesday, December 30, 2014 7:38:05 AM UTC-6, Nicholas Miller wrote:

 Hi All,

 I'm having a strange issue with one particular file where puppet 
 applies the new file, then reverts back.  It does this every time puppet 
 runs, see below:

>>>
>>> [...]
>>>
>>> That is very strange.  Puppet should never manage the same resource 
>>> twice in the same catalog run, and in any given run, Puppet should never 
>>> modify the same property of the same resource more than once.  These are 
>>> such fundamental Puppet principles that I'm inclined to guess that rather 
>>> than Puppet doing either of the above, it is instead managing two distinct 
>>> (from its perspective) resources that somehow resolve to the same physical 
>>> resource.
>>>  
>>>
 Has anyone ever had this problem before?  Any ideas on how to fix it?


>>> I have not had that problem, but if I have guessed right about its 
>>> nature then you should look carefully at your manifests to find the 
>>> resource duplication (which will revolve around something about the file 
>>> name and / or path of two File resources that the catalog compiler doesn't 
>>> recognize as being equivalent).  You could also look at the cached catalog 
>>> to verify that there are indeed two file resources corresponding to the 
>>> given file; if so, then it is conceivable that comparing them will reveal 
>>> the nature of the collision.
>>>
>>> In any event, it may be that running the agent with --debug output 
>>> enabled will provide useful additional information.
>>>
>>
>> I've seen this sort of problem on Windows when mixing upper and lower 
>> case file paths, so given
>>
>>   file { 'C:/foo':
>> ensure => file,
>> content => 'upper',
>>   }
>>
>>   file { 'c:/foo':
>> ensure => file,
>> content => 'lower',
>>   }
>>
>> Puppet will try to apply both resources, not realizing they are in fact 
>> the same resource on a Windows case-insensitive filesystem:
>>
>> C:\work\puppet> bundle exec puppet apply file.pp
>> ...
>> Notice: /Stage[main]/Main/File[C:/foo]/content: content changed 
>> '{md5}81e073b428b50247daba38531dcf412a' to 
>> '{md5}0122b4c2c01ee1c698ecc309d2b8eb5a'
>> Notice: /Stage[main]/Main/File[c:/foo]/content: content changed 
>> '{md5}0122b4c2c01ee1c698ecc309d2b8eb5a' to 
>> '{md5}81e073b428b50247daba38531dcf412a'
>>
>> But the output from your agent run seems to use the same case...
>>
>> Josh
>>
>> -- 
>> Josh Cooper
>> Developer, Puppet Labs
>>
>> *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - *
>> http://2015.puppetconf.com.  
>> *Register early to save 40%!*
>>  
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/CA%2Bu97u%3DLhj0F-N6V-j3jpxwi%2BNzN85HQ3SOPBrTd6UVAzy9XXA%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/c56a9d2c-022b-4af1-ab8f-ae8f1c26aefb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] How to force Puppet to use a specific yum repo?

2015-01-06 Thread Felix Frank
Hi,

I have next to no experience with yum, but generally you should try and

1. use the yumrepo type:
https://docs.puppetlabs.com/references/latest/type.html#yumrepo
2. make sure the package *require* the repository
3. perhaps pass the enablerepo option via the install_options parameter:
https://docs.puppetlabs.com/references/latest/type.html#package-attribute-install_options

HTH,
Felix

On 01/06/2015 03:59 PM, staceytian4...@gmail.com wrote:
> Hi,
>
> I am using open source Puppet 3.7.3. There are multiple yum repos on
> the puppet agent machines. So when I use Puppet to push a package, can
> I force Puppet to use a specific yum repo?
>
> For example, here is my module for pushing Firefox:
>
> class firefox::checkff inherits firefox {
>   if ( ($operatingsystemrelease >= 6.5) and ($hardwareisa == 'x86_64') ) {
>  
> file { "/etc/yum.repos.d/firefox.31.2.x86_64.repo":
>   ensure => present,
>   source => "/templates/Linux/yum.repos.d/firefox.31.2.x86_64.repo",
>   mode => '0644',
>   owner => 'root',
> }
>
> package { "gtk2":
>   ensure => '2.24.23-6.el6',
> }
>
> package { "firefox":
>   ensure => '31.2.0-3.el6_6',
>   subscribe => [ Package['gtk2'] ],
> }
>   }
> }
>
> You can see that I make sure my firefox.31.2.x86_64.repo is copied to
> the local machine's /etc/yum.repos.d, but I found out that my puppet
> agent will still try to get the firefox package from my Satellite
> server instead of installing from the local firefox repo.
>
> Is there any way to force Puppet to use a specific yum repo?
>
> Thanks,
> Stacey

-- 
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/54AC6B4A.7030007%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Unable to retrieve catalog with Hiera as ENC

2015-01-06 Thread Felix Frank
Hi,

is this Puppet 3.7?

Adrien mentioned a scenario on his blog that can lead to this failure:
http://somethingsinistral.net/blog/the-angry-guide-to-puppet-3/

It appears unlikely that this is hitting you, but please describe your
setup anyway.

Thanks,
Felix

On 01/06/2015 02:39 PM, Adrien Kutak wrote:
> Hi,
>
> I'm trying to use Hiera as ENC with dynamic puppet environment however
> it fails when I launch puppet :
> /root@test:/# puppet agent -t --environment=development/
> /Error: Could not retrieve catalog from remote server: Error 400 on
> SERVER: undefined method `empty_answer' for Hiera::Backend:Module at
> /etc/puppet/environments/development/site.pp:2 on node test.com
> Warning: Not using cache on failed catalog
> Error: Could not retrieve catalog; skipping run/

-- 
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/54AC6D07.9000107%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: Issues with RHEL7

2015-01-06 Thread Felix Frank
Awesome. Is this an error in the official documentation? Could you file
a bug or even create a pull request?

Thanks,
Felix

On 01/05/2015 05:15 AM, Saxon Mailey wrote:
> Hi Guys,
>
> There appears to be a typo in the subscription-manager example (its
> missing the s from rpms)
>
> The command should be:subscription-manager repos --enable
> rhel-7-server-optional-rpms
>
> This fixed the problem for me.
>
> 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/54AC6D81.5050101%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Vagrant Puppetmaster Cert

2015-01-06 Thread Felix Frank
Hi,

so are you saying that after SSL breaks, you can fix it by restarting
the service?

On 01/02/2015 08:39 PM, Drew wrote:
> Hey,
>
> I hope someone here can point me in the right direction.  I've been
> struggling with this for a few days and I can't seem to figure out
> what the issue is.  It's really strange.  I have a vagrant
> configuration that spins up a puppetmaster and a target machine that
> runs the agent.  When I initially do the 'vagrant up' all comes up and
> the agent is configured.  If I halt the puppetmaster and bring it back
> up, the agent fails to connect to the puppetmaster due to a
> certificate error.  If I simply restart the puppetmaster service, it
> connects without 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54AC6DDE.1090305%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] SSL Cert automation for service

2015-01-06 Thread Felix Frank
Hi,

I haven't built this kind of scheme, but yes, Puppet should be able to
do this for you.

You will have to implement
1. A defined type that signs a cert for a given CN.
2. A custom fact that holds all signed certificates in a hash structure
suitable for
3. A defined type that wraps the export of
4. A defined type that installs a certificate from PEM input at the
appropriate location.

Each agent node that needs a cert will *export* the "sign cert" resource.

@@cert_to_sign { "service-x": cn => $fqdn, target =>
'/some/cert/location.pem' }

The CA machine collects all these requests.

Cert_to_sign<<| |>>

It also exports these certificates back to the requestors.

create_resources('export_signed_cert', $signed_cert_list) # <- this is
the custom fact

define export_signed_cert($cn,$target,$pem_content) {
@@signed_cert { $name: cn => $cn, target => $cn, content =>
$pem_content }
}

Then each agent can import its own certificates.

Signed_cert<<| cn == $fqdn |>>

This is all quite abstract and I'm not sure I've thought everything
through. But this could be a rough design for what you need.

HTH,
Felix

On 01/03/2015 02:34 AM, Tom Noonan wrote:
> Hello, list:
>I'm looking for information/tutorials on using Puppet to generate
> SSL certs for a service managed by Puppet, not Puppet itself.  What I
> would like to do is give Puppet access to internal CA keys and have it
> generate and sign certs for services it manages.  This will allow me to
> use CA certs for trust without the pain of hand managing my CA.
>I'm hoping someone had trod this path and can provide pointers, as
> this is difficult to Google as I'm not interested in Puppet's internal
> certs.  Thanks.
>
> --Tom Noonan II

-- 
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/54AC7279.3080807%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] vcsrepo Found multiple default providers puppet 3.7.3

2015-01-06 Thread Felix Frank
On 12/29/2014 08:05 PM, Ellick Johnson wrote:
> I just upgraded some of my agents to 3.7.3 and and now getting a warning:

Hi, what did you run previously?

-- 
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/54AC72B9.9030608%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Re: Trouble with class with _ in name

2015-01-06 Thread Felix Frank
On 12/30/2014 09:05 PM, Matthew Kennedy wrote:
>
> |
> if (defined("profile::${separator}::${profile}")) {
>   include "profile::${separator}::${profile}"
> }
> |

Hi,

Is the if defined() construct significant? Can you only reproduce when
it is in place? Why is it there and what does it do?

Note that, regardless of this issue, using this function can be hazardous.

Thanks,
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/54AC746A.9060305%40Alumni.TU-Berlin.de.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: log config for "Passenger AppPreloader: /var/opt/lib/pe-puppetmaster"

2015-01-06 Thread Seokhee Kim
OK, I found it. it's config.ru.


On Tuesday, 6 January 2015 15:01:00 UTC-5, Seokhee Kim wrote:
>
> Hi,
>
> I am getting below messages on /var/log/messages. 
>
> *puppet-master[1572]: schedule is a metaparam; this value will inherit to 
> all contained resources in the*
>
> How can I redirect them? any configuration for that?
>
> Thanks,
> Seokhee
>

-- 
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/d1b49710-497f-48fe-903d-4359a7730134%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Upgrading all Forge modules at once

2015-01-06 Thread Pete Brown
Have you looked at R10K or puppet-librarian?
They geared towards continuous integration and continuous delivery but
that is never a bad thing.

On 6 January 2015 at 19:39, Jonathan Gazeley
 wrote:
> Hi peeps,
>
> Is there a way to upgrade all currently-installed Forge modules at the same
> time? I'm guessing no, since I've looked in the past and haven't found a
> way.
>
> I prepared a small script the enumerates all installed modules and upgrades
> them sequentially. It's hacky, but it works for me. May be useful to someone
> though!
>
> https://gist.github.com/djjudas21/933d90d3a1c267a6e884
>
> Cheers,
> Jonathan
>
> --
> 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/54ABAD3F.8080700%40bristol.ac.uk.
> For more options, visit https://groups.google.com/d/optout.



-- 
Pete Brown
Director and Primary Systems Engineer
Abstract IT Pty Ltd.

-- 
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/CAM8R_x_%3DznAhsj8ZaLGfCVj3qEkcOb7s4Y-678ahoo8cqXDxWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Install puppet agent via puppet master

2015-01-06 Thread Pete Brown
Not with puppet by itself.

What do you use for your server infrastructure?
Do you use an image based deployment system like OpenStack or AWS?
Or have a provisioning server?
It's not tricky to get an agent installed into your images that will
find a puppet master and request a cert.

I tend to use cloud-init to do some basic bootstrapping to get a
puppet agent installed that does an cert request and ensures the
puppet agent is running.


On 6 January 2015 at 21:45, jgopi ruizu  wrote:
> Is it possible to install a puppet agent on a new system by the puppet
> master?
> If so how it works?
>
> --
> 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/120d73fe-7165-4c86-9e46-08cb5509cf93%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Pete Brown
Director and Primary Systems Engineer
Abstract IT Pty Ltd.

-- 
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/CAM8R_x_uE%3D_N_JoBjUH-WyFYd2OhFoZ1enWFDC5JAazK-HuOpA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.