[Puppet Users] Baltimore PUG Catalog Diff Tool with Beaker

2015-11-23 Thread Trevor Vaughan
Hi All,

Just wanted to let you know that the Baltimore PUG threw together a proof
of concept catalog diff tool for helping users upgrade their FOSS Puppet
code from Puppet 3 to Puppet 4.

The code can be found at
https://github.com/baltimore-puppet-users-group/2015_11_Beaker_Catalog_Diff
and we'd love to get some feature enhancements in there.

It was a good time getting it all to work and hopefully we'll be doing more
work like this in the future.

http://www.meetup.com/Baltimore-Puppet-User-Group/events/226530296/

Thanks,

Trevor

-- 
Trevor Vaughan
Vice President, Onyx Point, Inc
(410) 541-6699

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


Re: [Puppet Users] Debian jessie and puppet packages

2015-11-23 Thread warron.french
John hello, have you heard about the Puppet labs training VM?
On Nov 23, 2015 1:40 PM, "John Gateley"  wrote:

> Hello,
>
> I'm a complete novice at puppet, trying to set up a couple of debian
> systems with puppet on them.
>
> With a brand new install of Debian 8 (jessie), I have used both the
> default packages from Debian, and the packages from puppetlabs (available
> after installing the puppetlabs-release-jessie.deb package).
>
> With both puppet-master and puppet, the "facter rubysitedir" returns a
> non-existent directory (/usr/local/lib/site_ruby/2.1.0). I think it should
> return /usr/lib/ruby/vendor_ruby/.
>
> With puppet, the command "puppet resource service" fails with:
>
> Error: Could not run: Execution of '/bin/systemctl show -pSourcePath
> autovt@' returned 1: Failed to get properties: Unit name autovt@.service
> is not valid.
>
> Does Debian 8 support puppet via packages only? Or do I need to install
> from source?
>
> I also set up Debian 7, and that worked, but it was with puppet 2.7.23,
> which is quite old (both Puppet 3 and 4 are now available).
>
> Google search didn't help with this.
>
> Would I have more luck with Ubuntu?
>
> Thank you, and my apologies for the novice questions.
>
> 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/d45b50b6-8d84-4ade-8ee0-4b1f59418336%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/CAJdJdQnR2zGvBzUQO_oyrhx5nv_CdWpPmV8jm%3Dh7DgjNB5SXzQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Debian jessie and puppet packages

2015-11-23 Thread John Gateley
Hi Kylo,

Thank you for the reply, your suggestion fixed my issue.

I was following (outdated?) instructions here:
https://docs.puppetlabs.com/guides/install_puppet/install_debian_ubuntu.html?_ga=1.64264812.215601368.1448036026

and they were referencing the old package names.

Thanks again for the quick reply.

John

On Monday, November 23, 2015 at 2:08:57 PM UTC-6, Kylo Ginsberg wrote:
>
> Hi John,
>
> As you found, the default debian packages lag, so I'd definitely recommend 
> using the puppetlabs packages.
>
> Two other things to note:
> * the package names of interest have changed: you'll want to install 
> 'puppet-agent' and 'puppetserver' (not 'puppet' and 'puppet-master', which 
> it sounds like you may have done)
> * the package install does *not* update your path, but it puts 
> puppet/facter/hiera/puppetserver/mco in /opt/puppetlabs/bin
>
> There are instructions on using the puppetlabs repos here: 
> https://docs.puppetlabs.com/guides/puppetlabs_package_repositories.html
>
> Hope that helps!
>
> Kylo
>
> On Mon, Nov 23, 2015 at 10:31 AM, John Gateley  > wrote:
>
>> Hello,
>>
>> I'm a complete novice at puppet, trying to set up a couple of debian 
>> systems with puppet on them.
>>
>> With a brand new install of Debian 8 (jessie), I have used both the 
>> default packages from Debian, and the packages from puppetlabs (available 
>> after installing the puppetlabs-release-jessie.deb package).
>>
>> With both puppet-master and puppet, the "facter rubysitedir" returns a 
>> non-existent directory (/usr/local/lib/site_ruby/2.1.0). I think it should 
>> return /usr/lib/ruby/vendor_ruby/.
>>
>> With puppet, the command "puppet resource service" fails with:
>>
>> Error: Could not run: Execution of '/bin/systemctl show -pSourcePath 
>> autovt@' returned 1: Failed to get properties: Unit name autovt@.service is 
>> not valid.
>>
>> Does Debian 8 support puppet via packages only? Or do I need to install 
>> from source?
>>
>> I also set up Debian 7, and that worked, but it was with puppet 2.7.23, 
>> which is quite old (both Puppet 3 and 4 are now available).
>>
>> Google search didn't help with this.
>>
>> Would I have more luck with Ubuntu?
>>
>> Thank you, and my apologies for the novice questions.
>>
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/d45b50b6-8d84-4ade-8ee0-4b1f59418336%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Kylo Ginsberg | ky...@puppetlabs.com  | irc: kylo | twitter: 
> @kylog
>
>

-- 
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/11d08725-dae7-435a-9b16-9ef62426b916%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Announce: Puppet Server 2.2.0 available!

2015-11-23 Thread Ellison Marks
This was the missing information for me. Looking again on the auth.conf 
page, there is one link to that page, but it's down at the bottom of the 
allow-header-cert-info section. The writeup on the old auth.conf seems much 
more clear on how to use it: 
https://docs.puppetlabs.com/puppet/latest/reference/config_file_auth.html.

On Saturday, November 21, 2015 at 9:19:54 AM UTC-8, Jeremy Barlow wrote:
>
>
> ...
>
> If you were looking for even more detailed information on each of the 
> settings in the new rule format, you could also look here: 
> https://github.com/puppetlabs/trapperkeeper-authorization/blob/master/doc/authorization-config.md
> .
>
> ...
>
>

-- 
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/3f74f27c-d5a4-4dec-980e-7453ed402898%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Debian jessie and puppet packages

2015-11-23 Thread Kylo Ginsberg
Hi John,

As you found, the default debian packages lag, so I'd definitely recommend
using the puppetlabs packages.

Two other things to note:
* the package names of interest have changed: you'll want to install
'puppet-agent' and 'puppetserver' (not 'puppet' and 'puppet-master', which
it sounds like you may have done)
* the package install does *not* update your path, but it puts
puppet/facter/hiera/puppetserver/mco in /opt/puppetlabs/bin

There are instructions on using the puppetlabs repos here:
https://docs.puppetlabs.com/guides/puppetlabs_package_repositories.html

Hope that helps!

Kylo

On Mon, Nov 23, 2015 at 10:31 AM, John Gateley 
wrote:

> Hello,
>
> I'm a complete novice at puppet, trying to set up a couple of debian
> systems with puppet on them.
>
> With a brand new install of Debian 8 (jessie), I have used both the
> default packages from Debian, and the packages from puppetlabs (available
> after installing the puppetlabs-release-jessie.deb package).
>
> With both puppet-master and puppet, the "facter rubysitedir" returns a
> non-existent directory (/usr/local/lib/site_ruby/2.1.0). I think it should
> return /usr/lib/ruby/vendor_ruby/.
>
> With puppet, the command "puppet resource service" fails with:
>
> Error: Could not run: Execution of '/bin/systemctl show -pSourcePath
> autovt@' returned 1: Failed to get properties: Unit name autovt@.service
> is not valid.
>
> Does Debian 8 support puppet via packages only? Or do I need to install
> from source?
>
> I also set up Debian 7, and that worked, but it was with puppet 2.7.23,
> which is quite old (both Puppet 3 and 4 are now available).
>
> Google search didn't help with this.
>
> Would I have more luck with Ubuntu?
>
> Thank you, and my apologies for the novice questions.
>
> 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/d45b50b6-8d84-4ade-8ee0-4b1f59418336%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Kylo Ginsberg | k...@puppetlabs.com | irc: kylo | twitter: @kylog

-- 
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/CALsUZFEe_BjHeJcYzfBGkDgWf7SWpqVMAwdTnFcG4L1-JiJwyA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Debian jessie and puppet packages

2015-11-23 Thread John Gateley
Hello,

I'm a complete novice at puppet, trying to set up a couple of debian 
systems with puppet on them.

With a brand new install of Debian 8 (jessie), I have used both the default 
packages from Debian, and the packages from puppetlabs (available after 
installing the puppetlabs-release-jessie.deb package).

With both puppet-master and puppet, the "facter rubysitedir" returns a 
non-existent directory (/usr/local/lib/site_ruby/2.1.0). I think it should 
return /usr/lib/ruby/vendor_ruby/.

With puppet, the command "puppet resource service" fails with:

Error: Could not run: Execution of '/bin/systemctl show -pSourcePath 
autovt@' returned 1: Failed to get properties: Unit name autovt@.service is 
not valid.

Does Debian 8 support puppet via packages only? Or do I need to install 
from source?

I also set up Debian 7, and that worked, but it was with puppet 2.7.23, 
which is quite old (both Puppet 3 and 4 are now available).

Google search didn't help with this.

Would I have more luck with Ubuntu?

Thank you, and my apologies for the novice questions.

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/d45b50b6-8d84-4ade-8ee0-4b1f59418336%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] augeasproviders_pam and some account entries (iteration in puppet 3)

2015-11-23 Thread Arnau
Hello all,

I'm trying to configure pam.d/password-auth file with the pam
augeasprovider from herculesteam
 . I'm
running RH6 system with puppet 3.7 and version 2.1 of augeasprovider.

I'd like to configure pam from a list of groups. Something like:

class::allowed:
 -graoupA
 -groupB
 -groupC


and the result should be:

account [default=ignore success=3]   pam_succeed_if.so uid < 1000 quiet
account [default=ignore success=2]   pam_succeed_if.so user ingroup
groupA
account [default=ignore success=1]   pam_succeed_if.so user ingroup
groupB
account [default=bad success=ignore] pam_succeed_if.so user ingroup
groupC

I should configure some entries like:

  'Add account in system-auth 1' :
ensure   => present,
service  => 'system-auth',
type => 'account',
control  => '[default=ignore success=2] ',
control_is_param => true,
module   => 'pam_succeed_if.so',
arguments  => ['uid < 1000 quiet];

  'Add account in system-auth 2' :
ensure   => present,
service  => 'system-auth',
type => 'account',
control  => '[default=ignore success=1] ',
control_is_param => true,
module   => 'pam_succeed_if.so',
arguments  => ['user ingroup groupA'];

and so on...


I need some iteration when creating the pam entries as the "success" value
is based the number of entries in $allowed. And also some case/if for the
first/ last entry.

I've looking for away and found something like "recursion in puppet
",
or even using a file template and add some ruby, but I'm wondering if there
is another approach for this problem using augeasproviders_pam . And
upgrade to puppet 4 is not an option.


Thanks in advance,
Arnau

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAM69jx_y_JOHa0L1S0nVm_AL5RJ9JaNOA2OdY%3DaMtwVdtNucgQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] How can i send a complete file from on agent to another agent......?

2015-11-23 Thread Matthew Burgess
What manages the file on client 1?  If it's not currently Puppet, can
Puppet be instructed to manage the file?  If so, you can simply then
get Puppet to serve the same file out to both agents.

On 23 November 2015 at 07:48,   wrote:
> Any one can share code which take file from client side and send complete
> file to another agent? Please help me out?
>
> --
> 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/1453676e-1347-424d-9ff5-a2e885c9c945%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/CAKUTv3Ks7T3%2Bcm87rzs-k3Yb0Jx_VBQmwskrV4MZ826pohE6wA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: How can i send a complete file from on agent to another agent......?

2015-11-23 Thread Thomas Müller


Am Montag, 23. November 2015 14:23:52 UTC+1 schrieb mahmad@gmail.com:
>
> Any one can share code which take file from client side and send complete 
> file to another agent? Please help me out?
>

IMHO: Puppet is not a file transfer tool. 

But maybe you could use exported resources 
somehow? https://docs.puppetlabs.com/puppet/latest/reference/lang_exported.html

Or just use puppet to copy files by scp or the like.

- Thomas
 

-- 
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/75c29374-7841-45cf-b734-d7affd46373f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] How can i send a complete file from on agent to another agent......?

2015-11-23 Thread mahmad . comsats
Any one can share code which take file from client side and send complete 
file to another agent? Please help me out?

-- 
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/1453676e-1347-424d-9ff5-a2e885c9c945%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.