Re: [Puppet Users] Re: Sidedoor module

2016-06-03 Thread James Pryor
Has the solaris 10 VM run a "puppet agent -t" and is has had it's SSL
certificate signed by the master?
If so, have you moved beyond a basic Hello World module?
https://docs.puppet.com/pe/2015.2/quick_start_helloworld.html

If so, have you classified that solaris 10VM in the PE Console?
https://docs.puppet.com/pe/2015.2/quick_start_adding_class_nix.html

If so, do you have output of the puppet agent run on the solaris 10 VM
where it it is failing?
Perform the following on the solaris 10 VM:
puppet agent -t --verbose

Have you considered running the puppet client agent on the solaris 10 VM
locally, as in without speaking to the master server, via a:
puppet apply --noop
A "puppet apply" requires the sidedoor code to be on the solaris 10VM
https://docs.puppet.com/guides/tests_smoke.html#testing-in-brief

Regards,
James

On Sat, Jun 4, 2016 at 12:55 AM, Warron French 
wrote:

> I have posted this twice and haven't gotten any replies on my questions.
> Are my questions confusing?
>
> It's kind of weird that there hasn't been any replies at all on this
> post.  None!
>
>
>
> On 6/2/2016 10:31 PM, warron.french wrote:
>
>
> I have created, a Puppet Module using PE-2015.2.
>
> The module is called Sidedoor (as opposed to backdoor) and the intent is
> to do the following (as I am evolving it):
>
>1. Create a system-group with GID=300, and ensure it is in place,
>2. Create a user (mine for example) with starting UID=(300 + serial of
>userID {starting at 1...n})
>
> Here is my current manifests/init.pp (and I am not ready for senior level
> programming input/best practices yet),
> *sidedoor/manifests/init.pp: *# Class: sidedoor
> # ===
> #
> #
> #
> class sidedoor {
>
> #  Create a Group for the localusers to be added to.
>
> group { 'sidedoor':
>   ensure => 'present',
>   system => 'true',
>   gid=> '300',
> }
>
> user { 'wsf29221':
>   ensure   => 'present',
>   forcelocal   => 'true',
>   password =>
> '$6$Bw0KWK673BvjQU/W$WAiTDgk7EN3sD02xUaMngmIB02qQ/G4sRTeP6ySZToWylblcawuekIO4WSUgVMllbjrXP2QOLH96jTfA1xdz1/',
>   password_max_age => '180',
>   password_min_age => '0',
>   gid  => '300',
>   uid  => '301',
>   comment  => 'Sidedoor_Acct-Warron',
>   managehome   => 'true',
>   home => '/home/wsf29221',
>   shell=> '/bin/bash',
> }
>
> file { '/home/wsf29221':
>   ensure   => 'directory',
>   owner=> '301',
>   group=> '300',
>   mode => '0750',
>   source   => [ "puppet:///modules/sidedoor/files/wsf29221", ],
> }
>
> }
>
> *I believe I am not getting the file resource built correctly (yet). *
> The code above *doesn't properly work on a Solaris 10 x86 VM* that I have
> at all; it doesn't even try for some reason, but *more importantl*y, it 
> d*oesn't
> create the homedi*r for the user's account, *even though the managehom**e*
> attribute is being set.
>
> I have this module written (and tested from)
> /etc/puppetlabs/code/environments/production/modules, and I purposely
> created the wsf29221 user account and it's home directory with matching
> user-attributes to generate a /home/wsf29221 directory; then I copied that
> subdirectory into
> */etc/puppetlabs/code/environments/production/modules/sidedoor/files/.*
>
> Can someone please help me get the directory creation/population portion
> of this module working?
>
> I am trying to learn how to write modules; not necessarily best practices
> yet.
>
> Thanks,
> Warron
>
>
> --
> 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/3838ef60-f94a-5ecb-6df8-62f4417b94cb%40gmail.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/CAOsPUchk%3D22eiZ%3D1n9-0MvsxDj%3D%3DEXh%2ButmXN-35Hke3O5%2BnrA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Sidedoor module

2016-06-03 Thread Warron French
I have posted this twice and haven't gotten any replies on my 
questions.  Are my questions confusing?


It's kind of weird that there hasn't been any replies at all on this 
post.  None!




On 6/2/2016 10:31 PM, warron.french wrote:


I have created, a Puppet Module using PE-2015.2.

The module is called Sidedoor (as opposed to backdoor) and the intent 
is to do the following (as I am evolving it):


 1. Create a system-group with GID=300, and ensure it is in place,
 2. Create a user (mine for example) with starting UID=(300 + serial
of userID {starting at 1...n})

Here is my current manifests/init.pp (and I am not ready for senior 
level programming input/best practices yet), *sidedoor/manifests/init.pp:

*# Class: sidedoor
# ===
#
#
#
class sidedoor {

#  Create a Group for the localusers to be added to.

group { 'sidedoor':
  ensure => 'present',
  system => 'true',
  gid=> '300',
}

user { 'wsf29221':
  ensure   => 'present',
  forcelocal   => 'true',
  password => 
'$6$Bw0KWK673BvjQU/W$WAiTDgk7EN3sD02xUaMngmIB02qQ/G4sRTeP6ySZToWylblcawuekIO4WSUgVMllbjrXP2QOLH96jTfA1xdz1/',

  password_max_age => '180',
  password_min_age => '0',
  gid  => '300',
  uid  => '301',
  comment  => 'Sidedoor_Acct-Warron',
  managehome   => 'true',
  home => '/home/wsf29221',
  shell=> '/bin/bash',
}

file { '/home/wsf29221':
  ensure   => 'directory',
  owner=> '301',
  group=> '300',
  mode => '0750',
  source   => [ "puppet:///modules/sidedoor/files/wsf29221", ],
}

}

*I believe I am not getting the file resource built correctly (yet). * 
The code above *doesn't properly work on a Solaris 10 x86 VM* that I 
have at all; it doesn't even try for some reason, but _more 
importantl_y, it d_oesn't create the homedi_r for the user's account, 
_even though the managehom__e_ attribute is being set.


I have this module written (and tested from) 
/etc/puppetlabs/code/environments/production/modules, and I purposely 
created the wsf29221 user account and it's home directory with 
matching user-attributes to generate a /home/wsf29221 directory; then 
I copied that subdirectory into 
*/etc/puppetlabs/code/environments/production/modules/sidedoor/files/.*


Can someone please help me get the directory creation/population 
portion of this module working?


I am trying to learn how to write modules; not necessarily best 
practices yet.


Thanks,
Warron



--
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/3838ef60-f94a-5ecb-6df8-62f4417b94cb%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Trouble creating a release RPM from puppetlabs/puppet source repo

2016-06-03 Thread jcbollinger


On Friday, June 3, 2016 at 1:51:10 PM UTC-5, LinuxDan wrote:
>
> First Silly Question: Why ?
> What do you need to do that cannot be done with the RPM's from a 
> Puppetlabs repo ?
>

If I were undertaking the exercise, it would be to avoid the AIO 
structure.  I may one day undertake that exercise, but until now I have 
instead just avoided upgrading to Puppet 4.


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/c0e0549e-5414-40b9-9fd4-93c7c967da03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Hiera Hash Merge Issues

2016-06-03 Thread Leonard Smith
I'm having a little trouble verify via the command line because we are 
using the 'module_data' backend so the hiera data in question is specific 
to the module. But when I query the data via the module directly it works 
as expected

% hiera --hash -c ./hiera.yaml rabbitmq_profile::vhosts
WARN: 2016-06-03 15:52:02 -0400: Not using Hiera::Puppet_logger. It does 
not report itself to be suitable.
{"/"=>{"ensure"=>"present"},
 "p2"=>{"ensure"=>"present"},
 "test"=>{"ensure"=>"present"}}

So it might be something with the way module_data is requesting.

On Friday, June 3, 2016 at 2:42:45 PM UTC-4, Leonard Smith wrote:
>
> I've been trying to track down a problem with hiera_hash not merging.
>
> puppet-3.8.6-1.el7
> hiera-1.3.4-1.el7
>
> ## hiera.yaml
> :hierarchy:
>   - test
>   - common
>
> ## test.yaml
> ---
> rabbitmq_profile::vhosts:
>   'test' :
> ensure: present
>
> ## common.yaml
> ---
> rabbitmq_profile::vhosts:
>   '/' :
> ensure: present
>
> ## rabbitmq_profile.pp
>
> class rabbitmq_profile (
>
> $vhosts = hiera_hash('rabbitmq_profile::vhosts',{})
>
> ) {
>
>   notify { "<>$vhosts": }
>   create_resources(rabbitmq_vhost, $vhosts )
> }
>
> ## END
>
>
> When I apply the manifest it creates the vhost specified in test.yaml but 
> not the one in comon.yaml. I expected it to merge the has from both yamls 
> and create the '/' and 'test' vhosts.
>
>  If I remove test from hiera.yaml it creates the '/' vhost fine. I've 
> tried setting the merge_behavior explicitly to native, deep and deeper, but 
> I still see the behavior where it picks up the hash form the first yaml 
> file it encounters and ignores the rest.
>
>
>

-- 
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/e8f77b9d-a0e3-48ee-a6e0-7eb8cd64f8e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Trouble creating a release RPM from puppetlabs/puppet source repo

2016-06-03 Thread Stefan Heijmans
Have you tried using the source RPMs from here;

https://yum.puppetlabs.com/el/6/PC1/SRPMS/


On Friday, June 3, 2016 at 8:44:20 PM UTC+2, Matt Larson wrote:
>
>
> I'm trying to create an RPM from source on a stock RHEL6-based (CentOS6) 
> instance, but I'm seeing errors.  I also posted in 
> https://ask.puppet.com/question/26388/trouble-creating-a-release-rpm-from-puppetlabspuppet-source-repo/
>  
>
> The output actually gets pretty far along, but stops at with this error: 
> "install: cannot stat ext/redhat/puppet.conf: no such file or directory". 
> If I fix that problem by manually editing the SPEC file, I just get more 
> errors, so clearly there is no need to go down a rabbit hole since this 
> must work for someone else, right?
>
> I'm also posted in 
> https://ask.puppet.com/question/26388/trouble-creating-a-release-rpm-from-puppetlabspuppet-source-repo/
>
> Ideas?
>
> Thanks in Advance,
> Matt
>

-- 
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/89acad2c-e900-4629-978c-db1b24dd1cf6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Hiera Hash Merge Issues

2016-06-03 Thread Ramin K
That looks correct and you are also correct that the deep merge gem is 
not required for simple top level key merges. Only for sub keys. I 
believe the hiera_hash merge example here is still valid,

https://ask.puppet.com/question/13592/when-to-use-hiera-hiera_array-and-hiera_hash/

## rabbitmq_profile.pp
class rabbitmq_profile (
  $vhosts = hiera_hash('rabbitmq_profile::vhosts',{})
) {

I'd make sure that actually the code you're using. If you're using hiera 
or databindings it'll default to hiera() as well. That would certainly 
explain the behavior you're seeing.


You might try running the master in debug so you can see the hiera 
lookups it's attempting.


Ramin

On 6/3/16 11:57 AM, Leonard Smith wrote:

Deep gem is installed. However this should work with native correct if
all I am looking to have it do is create both '/' and 'test' vhost,
without ovverriding each other.



On Friday, June 3, 2016 at 2:47:45 PM UTC-4, Peter Kristolaitis wrote:

Did you install the deep_merge gem when using the deeper merge
option?  The gem is required when using deep or deeper merging.


On 2016-06-03 02:38 PM, Leonard Smith wrote:

I've been trying to track down a problem with hiera_hash not merging.

puppet-3.8.6-1.el7
hiera-1.3.4-1.el7

## hiera.yaml
:hierarchy:
  - test
  - common

## test.yaml
---
rabbitmq_profile::vhosts:
  'test' :
ensure: present

## common.yaml
---
rabbitmq_profile::vhosts:
  '/' :
ensure: present

## rabbitmq_profile.pp

class rabbitmq_profile (

$vhosts = hiera_hash('rabbitmq_profile::vhosts',{})

) {

  notify { "<>$vhosts": }
  create_resources(rabbitmq_vhost, $vhosts )
}

## END


When I apply the manifest it creates the vhost specified in
test.yaml but not the one in comon.yaml. I expected it to merge
the has from both yamls and create the '/' and 'test' vhosts.

 If I remove test from hiera.yaml it creates the '/' vhost fine.
I've tried setting the merge_behavior explicitly to native, deep
and deeper, but I still see the behavior where it picks up the
hash form the first yaml file it encounters and ignores the rest.


--
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/9073d972-61d4-4454-bf0a-8dad4f889062%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/dda7b1bd-3380-48dc-89d8-5a5c64d5fce0%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/299bd1e5-719f-8d0b-44af-e5da6dda0a78%40badapple.net.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Hiera Hash Merge Issues

2016-06-03 Thread Dan White

Try command line.  Use the debug option
Dan White | d_e_wh...@icloud.com

“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 Jun 03, 2016, at 03:03 PM, Leonard Smith  wrote:

Clarificaiton. I had tried in the hiera.yaml setting

:merge_behavior: deeper
 
the 
:merge_behavior: deep

and

:merge_behavior: native.

I unset it as well as from my understanding, from the documentation I am not 
concerned with deep merging. I just want to be able to specify two 
non-colliding 'vhosts' in two different YAML files and have both be created. 
The deep/deeper is only needed if the same key  exists and I want to merge the 
underlying key/values. 


On Friday, June 3, 2016 at 2:42:45 PM UTC-4, Leonard Smith wrote:
I've been trying to track down a problem with hiera_hash not merging.

puppet-3.8.6-1.el7
hiera-1.3.4-1.el7

## hiera.yaml
:hierarchy:
  - test
  - common

## test.yaml
---
rabbitmq_profile::vhosts:
  'test' :
    ensure: present

## common.yaml
---
rabbitmq_profile::vhosts:
  '/' :
    ensure: present

## rabbitmq_profile.pp

class rabbitmq_profile (

$vhosts = hiera_hash('rabbitmq_profile::vhosts',{})

) {

  notify { "<>$vhosts": }
  create_resources(rabbitmq_vhost, $vhosts )
}

## END


When I apply the manifest it creates the vhost specified in test.yaml but not 
the one in comon.yaml. I expected it to merge the has from both yamls and 
create the '/' and 'test' vhosts.

 If I remove test from hiera.yaml it creates the '/' vhost fine. I've tried 
setting the merge_behavior explicitly to native, deep and deeper, but I still 
see the behavior where it picks up the hash form the first yaml file it 
encounters and ignores the rest.



--
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/ad8306b9-a2ef-4d8b-8f2b-2f54196b6844%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/45e7dc49-245d-4d67-9ff4-028c67a95ec1%40me.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: Hiera Hash Merge Issues

2016-06-03 Thread Leonard Smith
Clarificaiton. I had tried in the hiera.yaml setting

:merge_behavior: deeper
 
the 
:merge_behavior: deep

and

:merge_behavior: native.

I unset it as well as from my understanding, from the documentation I am 
not concerned with deep merging. I just want to be able to specify two 
non-colliding 'vhosts' in two different YAML files and have both be 
created. The deep/deeper is only needed if the same key  exists and I want 
to merge the underlying key/values. 


On Friday, June 3, 2016 at 2:42:45 PM UTC-4, Leonard Smith wrote:
>
> I've been trying to track down a problem with hiera_hash not merging.
>
> puppet-3.8.6-1.el7
> hiera-1.3.4-1.el7
>
> ## hiera.yaml
> :hierarchy:
>   - test
>   - common
>
> ## test.yaml
> ---
> rabbitmq_profile::vhosts:
>   'test' :
> ensure: present
>
> ## common.yaml
> ---
> rabbitmq_profile::vhosts:
>   '/' :
> ensure: present
>
> ## rabbitmq_profile.pp
>
> class rabbitmq_profile (
>
> $vhosts = hiera_hash('rabbitmq_profile::vhosts',{})
>
> ) {
>
>   notify { "<>$vhosts": }
>   create_resources(rabbitmq_vhost, $vhosts )
> }
>
> ## END
>
>
> When I apply the manifest it creates the vhost specified in test.yaml but 
> not the one in comon.yaml. I expected it to merge the has from both yamls 
> and create the '/' and 'test' vhosts.
>
>  If I remove test from hiera.yaml it creates the '/' vhost fine. I've 
> tried setting the merge_behavior explicitly to native, deep and deeper, but 
> I still see the behavior where it picks up the hash form the first yaml 
> file it encounters and ignores the rest.
>
>
>

-- 
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/ad8306b9-a2ef-4d8b-8f2b-2f54196b6844%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Hiera Hash Merge Issues

2016-06-03 Thread Dan White

UNless the hiera.yaml you provided is incomplete, you did not tur on deep 
merging.

https://docs.puppet.com/hiera/3.1/configuring.html#deepmergeoptions
Dan White | d_e_wh...@icloud.com

“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 Jun 03, 2016, at 02:57 PM, Leonard Smith  wrote:

Deep gem is installed. However this should work with native correct if all I am 
looking to have it do is create both '/' and 'test' vhost, without ovverriding 
each other.



On Friday, June 3, 2016 at 2:47:45 PM UTC-4, Peter Kristolaitis wrote:
Did you install the deep_merge gem when using the deeper merge option?  The gem 
is required when using deep or deeper merging.


On 2016-06-03 02:38 PM, Leonard Smith wrote:
I've been trying to track down a problem with hiera_hash not merging.

puppet-3.8.6-1.el7
hiera-1.3.4-1.el7

## hiera.yaml
:hierarchy:
  - test
  - common

## test.yaml
---
rabbitmq_profile::vhosts:
  'test' :
    ensure: present

## common.yaml
---
rabbitmq_profile::vhosts:
  '/' :
    ensure: present

## rabbitmq_profile.pp

class rabbitmq_profile (

$vhosts = hiera_hash('rabbitmq_profile::vhosts',{})

) {

  notify { "<>$vhosts": }
  create_resources(rabbitmq_vhost, $vhosts )
}

## END


When I apply the manifest it creates the vhost specified in test.yaml but not 
the one in comon.yaml. I expected it to merge the has from both yamls and 
create the '/' and 'test' vhosts.

 If I remove test from hiera.yaml it creates the '/' vhost fine. I've tried 
setting the merge_behavior explicitly to native, deep and deeper, but I still 
see the behavior where it picks up the hash form the first yaml file it 
encounters and ignores the rest.


--
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/9073d972-61d4-4454-bf0a-8dad4f889062%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/dda7b1bd-3380-48dc-89d8-5a5c64d5fce0%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/e77e61c8-54c8-408c-b865-e213c9368beb%40me.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Hiera Hash Merge Issues

2016-06-03 Thread Leonard Smith
Deep gem is installed. However this should work with native correct if all 
I am looking to have it do is create both '/' and 'test' vhost, without 
ovverriding each other.



On Friday, June 3, 2016 at 2:47:45 PM UTC-4, Peter Kristolaitis wrote:
>
> Did you install the deep_merge gem when using the deeper merge option?  
> The gem is required when using deep or deeper merging.
>
>
> On 2016-06-03 02:38 PM, Leonard Smith wrote:
>
> I've been trying to track down a problem with hiera_hash not merging. 
>
> puppet-3.8.6-1.el7
> hiera-1.3.4-1.el7
>
> ## hiera.yaml
> :hierarchy:
>   - test
>   - common
>
> ## test.yaml
> ---
> rabbitmq_profile::vhosts:
>   'test' :
> ensure: present
>
> ## common.yaml
> ---
> rabbitmq_profile::vhosts:
>   '/' :
> ensure: present
>
> ## rabbitmq_profile.pp
>
> class rabbitmq_profile (
>
> $vhosts = hiera_hash('rabbitmq_profile::vhosts',{})
>
> ) {
>
>   notify { "<>$vhosts": }
>   create_resources(rabbitmq_vhost, $vhosts )
> }
>
> ## END
>
>
> When I apply the manifest it creates the vhost specified in test.yaml but 
> not the one in comon.yaml. I expected it to merge the has from both yamls 
> and create the '/' and 'test' vhosts.
>
>  If I remove test from hiera.yaml it creates the '/' vhost fine. I've 
> tried setting the merge_behavior explicitly to native, deep and deeper, but 
> I still see the behavior where it picks up the hash form the first yaml 
> file it encounters and ignores the rest.
>
>
> -- 
> 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/9073d972-61d4-4454-bf0a-8dad4f889062%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/dda7b1bd-3380-48dc-89d8-5a5c64d5fce0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Trouble creating a release RPM from puppetlabs/puppet source repo

2016-06-03 Thread Dan White

First Silly Question: Why ?
What do you need to do that cannot be done with the RPM's from a Puppetlabs 
repo ?
Dan White | d_e_wh...@icloud.com

“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 Jun 03, 2016, at 02:44 PM, Matt Larson  wrote:


I'm trying to create an RPM from source on a stock RHEL6-based (CentOS6) instance, but I'm seeing errors.  I also posted in https://ask.puppet.com/question/26388/trouble-creating-a-release-rpm-from-puppetlabspuppet-source-repo/ 


The output actually gets pretty far along, but stops at with this error: "install: 
cannot stat ext/redhat/puppet.conf: no such file or directory". If I fix that 
problem by manually editing the SPEC file, I just get more errors, so clearly there is no 
need to go down a rabbit hole since this must work for someone else, right?

I'm also posted in 
https://ask.puppet.com/question/26388/trouble-creating-a-release-rpm-from-puppetlabspuppet-source-repo/

Ideas?

Thanks in Advance,
Matt

--
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/8d532582-be4b-4e58-813e-0e3519043a3f%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/ae44b8cd-f8a9-4f2a-b983-17c31dc61438%40me.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Hiera Hash Merge Issues

2016-06-03 Thread Dan White

Better suggestion.
Thanks, Peter.
Dan White | d_e_wh...@icloud.com

“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 Jun 03, 2016, at 02:47 PM, Peter Kristolaitis  wrote:

Did you install the deep_merge gem when using the deeper merge option?  The gem 
is required when using deep or deeper merging.


On 2016-06-03 02:38 PM, Leonard Smith wrote:
I've been trying to track down a problem with hiera_hash not merging.

puppet-3.8.6-1.el7
hiera-1.3.4-1.el7

## hiera.yaml
:hierarchy:
  - test
  - common

## test.yaml
---
rabbitmq_profile::vhosts:
  'test' :
    ensure: present

## common.yaml
---
rabbitmq_profile::vhosts:
  '/' :
    ensure: present

## rabbitmq_profile.pp

class rabbitmq_profile (

$vhosts = hiera_hash('rabbitmq_profile::vhosts',{})

) {

  notify { "<>$vhosts": }
  create_resources(rabbitmq_vhost, $vhosts )
}

## END


When I apply the manifest it creates the vhost specified in test.yaml but not 
the one in comon.yaml. I expected it to merge the has from both yamls and 
create the '/' and 'test' vhosts.

 If I remove test from hiera.yaml it creates the '/' vhost fine. I've tried 
setting the merge_behavior explicitly to native, deep and deeper, but I still 
see the behavior where it picks up the hash form the first yaml file it 
encounters and ignores the rest.


--
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/9073d972-61d4-4454-bf0a-8dad4f889062%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/5751D0C8.2030806%40alter3d.ca.
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/88383a91-f48a-42fd-a512-cfe0d469665f%40me.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Hiera Hash Merge Issues

2016-06-03 Thread Peter Kristolaitis
Did you install the deep_merge gem when using the deeper merge option?  
The gem is required when using deep or deeper merging.



On 2016-06-03 02:38 PM, Leonard Smith wrote:

I've been trying to track down a problem with hiera_hash not merging.

puppet-3.8.6-1.el7
hiera-1.3.4-1.el7

## hiera.yaml
:hierarchy:
  - test
  - common

## test.yaml
---
rabbitmq_profile::vhosts:
  'test' :
ensure: present

## common.yaml
---
rabbitmq_profile::vhosts:
  '/' :
ensure: present

## rabbitmq_profile.pp

class rabbitmq_profile (

$vhosts = hiera_hash('rabbitmq_profile::vhosts',{})

) {

  notify { "<>$vhosts": }
  create_resources(rabbitmq_vhost, $vhosts )
}

## END


When I apply the manifest it creates the vhost specified in test.yaml 
but not the one in comon.yaml. I expected it to merge the has from 
both yamls and create the '/' and 'test' vhosts.


 If I remove test from hiera.yaml it creates the '/' vhost fine. I've 
tried setting the merge_behavior explicitly to native, deep and 
deeper, but I still see the behavior where it picks up the hash form 
the first yaml file it encounters and ignores the rest.



--
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/9073d972-61d4-4454-bf0a-8dad4f889062%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/5751D0C8.2030806%40alter3d.ca.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Hiera Hash Merge Issues

2016-06-03 Thread Dan White

Have you tried hiera command line debugging ?
Dan White | d_e_wh...@icloud.com

“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 Jun 03, 2016, at 02:42 PM, Leonard Smith  wrote:

I've been trying to track down a problem with hiera_hash not merging.

puppet-3.8.6-1.el7
hiera-1.3.4-1.el7

## hiera.yaml
:hierarchy:
  - test
  - common

## test.yaml
---
rabbitmq_profile::vhosts:
  'test' :
    ensure: present

## common.yaml
---
rabbitmq_profile::vhosts:
  '/' :
    ensure: present

## rabbitmq_profile.pp

class rabbitmq_profile (

$vhosts = hiera_hash('rabbitmq_profile::vhosts',{})

) {

  notify { "<>$vhosts": }
  create_resources(rabbitmq_vhost, $vhosts )
}

## END


When I apply the manifest it creates the vhost specified in test.yaml but not 
the one in comon.yaml. I expected it to merge the has from both yamls and 
create the '/' and 'test' vhosts.

 If I remove test from hiera.yaml it creates the '/' vhost fine. I've tried 
setting the merge_behavior explicitly to native, deep and deeper, but I still 
see the behavior where it picks up the hash form the first yaml file it 
encounters and ignores the rest.



--
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/9073d972-61d4-4454-bf0a-8dad4f889062%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/968448da-1bc7-4e09-90f9-3119e09ae21f%40me.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Trouble creating a release RPM from puppetlabs/puppet source repo

2016-06-03 Thread Matt Larson

I'm trying to create an RPM from source on a stock RHEL6-based (CentOS6) 
instance, but I'm seeing errors.  I also posted in 
https://ask.puppet.com/question/26388/trouble-creating-a-release-rpm-from-puppetlabspuppet-source-repo/
 


The output actually gets pretty far along, but stops at with this error: 
"install: cannot stat ext/redhat/puppet.conf: no such file or directory". 
If I fix that problem by manually editing the SPEC file, I just get more 
errors, so clearly there is no need to go down a rabbit hole since this 
must work for someone else, right?

I'm also posted in 
https://ask.puppet.com/question/26388/trouble-creating-a-release-rpm-from-puppetlabspuppet-source-repo/

Ideas?

Thanks in Advance,
Matt

-- 
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/8d532582-be4b-4e58-813e-0e3519043a3f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Hiera Hash Merge Issues

2016-06-03 Thread Leonard Smith
I've been trying to track down a problem with hiera_hash not merging.

puppet-3.8.6-1.el7
hiera-1.3.4-1.el7

## hiera.yaml
:hierarchy:
  - test
  - common

## test.yaml
---
rabbitmq_profile::vhosts:
  'test' :
ensure: present

## common.yaml
---
rabbitmq_profile::vhosts:
  '/' :
ensure: present

## rabbitmq_profile.pp

class rabbitmq_profile (

$vhosts = hiera_hash('rabbitmq_profile::vhosts',{})

) {

  notify { "<>$vhosts": }
  create_resources(rabbitmq_vhost, $vhosts )
}

## END


When I apply the manifest it creates the vhost specified in test.yaml but 
not the one in comon.yaml. I expected it to merge the has from both yamls 
and create the '/' and 'test' vhosts.

 If I remove test from hiera.yaml it creates the '/' vhost fine. I've tried 
setting the merge_behavior explicitly to native, deep and deeper, but I 
still see the behavior where it picks up the hash form the first yaml file 
it encounters and ignores the rest.


-- 
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/9073d972-61d4-4454-bf0a-8dad4f889062%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] PuppetDB Query based on facts

2016-06-03 Thread Mike Sharpton
I was messing around in psql to see if I could figure out the table 
structure and just query without the API wrapper, I couldn't before you 
replied.  Price is right losing horn.

On Friday, June 3, 2016 at 1:37:59 PM UTC-5, Mike Sharpton wrote:
>
> Doh!  Quotes matter, didn't think of it.  That appears to work, I grepped 
> and piped and have my list.  Thanks very much again, you have saved me work 
> twice now.  
>
> Mike
>
> On Friday, June 3, 2016 at 12:43:17 PM UTC-5, Wyatt Alt wrote:
>>
>> Mike,
>>
>> Where I was going with that is you might get results with
>>
>> curl -X GET http://localhost:8080/pdb/query/v4/nodes -d 'query=["and", 
>> ["=", ["fact", "operatingsystemmajrelease"], "7"], ["=", ["fact", "facta"], 
>> "true"]]'
>>
>> or
>>
>> curl -X GET http://localhost:8080/pdb/query/v4/nodes -d 'query=["and", 
>> ["=", ["fact", "operatingsystemmajrelease"], "7"], ["=", ["fact", "facta"], 
>> "True"]]'
>>
>> Let me know if one of those does it.
>>
>> Wyatt
>>
>>
>> On Fri, Jun 3, 2016 at 10:37 AM, Mike Sharpton  wrote:
>>
>>> Yep, the value of my fact is a string.  I will keep googling around to 
>>> see what I can find.  Thanks,
>>>
>>> Mike
>>>
>>>
>>> On Friday, June 3, 2016 at 11:31:28 AM UTC-5, Wyatt Alt wrote:

 Hey Mike, 

 I think operatingsystemmajrelease might be a string instead of an int, 
 based on https://tickets.puppetlabs.com/browse/FACT-962. You also 
 might 
 verify that facta is valued with a real boolean instead of a 
 stringified 
 bool (the reference to casing made me wonder.) 

 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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/puppet-users/08f94fe4-c922-4ead-aced-400212c7a058%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/95fc0dbb-8c04-441f-97b3-1da4841b7f4f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] PuppetDB Query based on facts

2016-06-03 Thread Mike Sharpton
Doh!  Quotes matter, didn't think of it.  That appears to work, I grepped 
and piped and have my list.  Thanks very much again, you have saved me work 
twice now.  

Mike

On Friday, June 3, 2016 at 12:43:17 PM UTC-5, Wyatt Alt wrote:
>
> Mike,
>
> Where I was going with that is you might get results with
>
> curl -X GET http://localhost:8080/pdb/query/v4/nodes -d 'query=["and", 
> ["=", ["fact", "operatingsystemmajrelease"], "7"], ["=", ["fact", "facta"], 
> "true"]]'
>
> or
>
> curl -X GET http://localhost:8080/pdb/query/v4/nodes -d 'query=["and", 
> ["=", ["fact", "operatingsystemmajrelease"], "7"], ["=", ["fact", "facta"], 
> "True"]]'
>
> Let me know if one of those does it.
>
> Wyatt
>
>
> On Fri, Jun 3, 2016 at 10:37 AM, Mike Sharpton  > wrote:
>
>> Yep, the value of my fact is a string.  I will keep googling around to 
>> see what I can find.  Thanks,
>>
>> Mike
>>
>>
>> On Friday, June 3, 2016 at 11:31:28 AM UTC-5, Wyatt Alt wrote:
>>>
>>> Hey Mike, 
>>>
>>> I think operatingsystemmajrelease might be a string instead of an int, 
>>> based on https://tickets.puppetlabs.com/browse/FACT-962. You also might 
>>> verify that facta is valued with a real boolean instead of a stringified 
>>> bool (the reference to casing made me wonder.) 
>>>
>>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/puppet-users/08f94fe4-c922-4ead-aced-400212c7a058%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/3419859f-6b0b-4a70-adad-4e910fa7c74f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Announce: Puppet Agent 1.5.1 available

2016-06-03 Thread Stefan Heijmans
Hi Eric,

Think you ment these release notes:
https://docs.puppet.com/puppet/latest/reference/release_notes_agent.html

Stefan

-- 
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/4c172ef3-9669-4a59-8694-dafee118dc02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] PuppetDB Query based on facts

2016-06-03 Thread Mike Sharpton
Yep, the value of my fact is a string.  I will keep googling around to see 
what I can find.  Thanks,

Mike

On Friday, June 3, 2016 at 11:31:28 AM UTC-5, Wyatt Alt wrote:
>
> Hey Mike, 
>
> I think operatingsystemmajrelease might be a string instead of an int, 
> based on https://tickets.puppetlabs.com/browse/FACT-962. You also might 
> verify that facta is valued with a real boolean instead of a stringified 
> bool (the reference to casing made me wonder.) 
>
> 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/08f94fe4-c922-4ead-aced-400212c7a058%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] PuppetDB Query based on facts

2016-06-03 Thread Wyatt Alt
Mike,

Where I was going with that is you might get results with

curl -X GET http://localhost:8080/pdb/query/v4/nodes -d 'query=["and",
["=", ["fact", "operatingsystemmajrelease"], "7"], ["=", ["fact", "facta"],
"true"]]'

or

curl -X GET http://localhost:8080/pdb/query/v4/nodes -d 'query=["and",
["=", ["fact", "operatingsystemmajrelease"], "7"], ["=", ["fact", "facta"],
"True"]]'

Let me know if one of those does it.

Wyatt


On Fri, Jun 3, 2016 at 10:37 AM, Mike Sharpton  wrote:

> Yep, the value of my fact is a string.  I will keep googling around to see
> what I can find.  Thanks,
>
> Mike
>
>
> On Friday, June 3, 2016 at 11:31:28 AM UTC-5, Wyatt Alt wrote:
>>
>> Hey Mike,
>>
>> I think operatingsystemmajrelease might be a string instead of an int,
>> based on https://tickets.puppetlabs.com/browse/FACT-962. You also might
>> verify that facta is valued with a real boolean instead of a stringified
>> bool (the reference to casing made me wonder.)
>>
>> 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/08f94fe4-c922-4ead-aced-400212c7a058%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/CAJDiH3FAaY40bD_ZYgSP0QNY3znz83Wto7rdD2dZk7y2erYCCg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Announce: Puppet Agent 1.5.1 available

2016-06-03 Thread Eric Sorenson
Puppet Agent 1.5.1 is now available. This is a bugfix release that includes 
Puppet and Facter versions with a handful of fixes; no other components are 
update from the Puppet Agent 1.5.0 release a couple of weeks ago.

Notably, a couple of erroneous facts on Solaris are now correct 
("solaris_zones" and "productname"); Chuck Schweitzer found (and Thomas 
Hallgren fixed) a problem using Data in Modules with Hiera; and the 
Henrik/Thomas wrecking crew also fixed a problem with autorequires that broke 
puppetlabs-aws and puppet-archive, among other modules.

Check out the full release notes here: 
https://docs.puppet.com/puppetserver/latest/release_notes.html

To install or upgrade puppet-agent, follow the getting started directions: 
http://docs.puppetlabs.com/puppet/latest/reference/index.html


Eric Sorenson - eric.soren...@puppet.com - freenode #puppet: eric0
puppet platform // coffee // techno // bicycles

-- 
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/4B23907C-50EA-40E6-A7D9-E1A8819465D8%40puppet.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] PuppetDB Query based on facts

2016-06-03 Thread Mike Sharpton
Wyatt,

Thanks for your reply.  I changed out my url and facta to my fact name, 
nothing is returned except this.

[ ]

To ensure it wasn't my fact that was messing this up, I tried another 
standard fact is_pe.  The value should be uppercase "False" but this 
returns a 500 when run that post/GET.

:8080/pdb/query/v4/nodes -d 'query=["and", ["=", ["fact", 
"operatingsystemmajrelease"], 7], ["=", ["fact", "is_pe"], False]]'

This returns nothing as well.  I have about 350 nodes of this type.

:8080/pdb/query/v4/nodes -d 'query=["and", ["=", ["fact", 
"operatingsystemmajrelease"], 7], ["=", ["fact", "is_pe"], false]]'

My fact value is lowercase as well, true is the value.  Any ideas?  

Thanks in advance,
Mike



On Friday, June 3, 2016 at 9:56:41 AM UTC-5, Wyatt Alt wrote:
>
> Hey Mike,
> I'm thinking you want something like this:
>
> curl -X GET http://localhost:8080/pdb/query/v4/nodes -d 'query=["and", 
> ["=", ["fact", "operatingsystemmajrelease"], 7], ["=", ["fact", "facta"], 
> true]]'
>
> Wyatt
>
>
>
> On Fri, Jun 3, 2016 at 6:40 AM, Mike Sharpton  > wrote:
>
>> Hey all,
>>
>> I am trying to do what should be a simple thing.  I need to query 
>> PuppetDB to gather a list of machines based on arbitrary facta being equal 
>> to true and the operatingsystemmajrelease fact being 7.  I have searched 
>> around and found a few examples, but can't get them to work properly.  I 
>> saw and example from Wyatt on here, but I must be doing something wrong as 
>> I can't even get that to run.  I have PuppetDB 3.2.0.
>>
>> I'm not sure if I should be running my query against this endpoint 
>> /pdb/query/v4/facts/, or drill into the facta uri and run a in/and against 
>> the operatingsystemmajrelease fact to get what I need.  All I need back is 
>> the certname of the machines in which facta is true and 
>> operatingsystemmajrelease is 7.  If someone has a quick one liner, it would 
>> be appreciated, otherwise I can bust out the data and filter it with 
>> Excel.  Thanks,
>>
>> Mike
>>
>> -- 
>> 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/5a1fec0e-1d02-442f-9465-9660a6087a8f%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/5560a1c7-b2a9-482c-a1cd-e493b3dad2b0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] PuppetDB Query based on facts

2016-06-03 Thread Wyatt Alt
Hey Mike,
I'm thinking you want something like this:

curl -X GET http://localhost:8080/pdb/query/v4/nodes -d 'query=["and",
["=", ["fact", "operatingsystemmajrelease"], 7], ["=", ["fact", "facta"],
true]]'

Wyatt



On Fri, Jun 3, 2016 at 6:40 AM, Mike Sharpton  wrote:

> Hey all,
>
> I am trying to do what should be a simple thing.  I need to query PuppetDB
> to gather a list of machines based on arbitrary facta being equal to true
> and the operatingsystemmajrelease fact being 7.  I have searched around and
> found a few examples, but can't get them to work properly.  I saw and
> example from Wyatt on here, but I must be doing something wrong as I can't
> even get that to run.  I have PuppetDB 3.2.0.
>
> I'm not sure if I should be running my query against this endpoint
> /pdb/query/v4/facts/, or drill into the facta uri and run a in/and against
> the operatingsystemmajrelease fact to get what I need.  All I need back is
> the certname of the machines in which facta is true and
> operatingsystemmajrelease is 7.  If someone has a quick one liner, it would
> be appreciated, otherwise I can bust out the data and filter it with
> Excel.  Thanks,
>
> Mike
>
> --
> 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/5a1fec0e-1d02-442f-9465-9660a6087a8f%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/CAJDiH3HK%3DihNjuz8PGWcKM_XsQsHcQ46DCqBw-o8etY8uG-JpQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] Puppet-in-Docker

2016-06-03 Thread Rich Burroughs
I was starting to play around with rolling my own puppetserver container a
few weeks ago and I was wondering if there would ever be an official one.
So thanks for reading my mind :)


Rich
On Fri, Jun 3, 2016 at 6:23 AM Gareth Rushgrove 
wrote:

> Hi All
>
> A few folks might have seen this yesterday, but just in case.
>
>
> https://puppet.com/blog/puppet-docker-running-puppet-container-centric-infrastructure
>
> I've been working on a set of Docker images for running Puppet
> software, so Puppet Server, PuppetDB, etc. The blog post above covers
> why and when this might be useful, but a few examples:
>
> * You want to run Puppet on something like CoreOS, PhotonOS or Atomic
> where containers are the defacto way of installing software
> * You want a full local development environment (including on WIndows
> or OSX) with minimal overhead
>
> The Dockerfiles and various build tools are available on GitHub:
>
> https://github.com/puppetlabs/puppet-in-docker
>
> And the images are available today on Docker Hub:
>
> https://hub.docker.com/u/puppet/
>
> We've also created a number of examples that show a few tips and
> tricks, including standing up the server stack using Docker compose:
>
> https://github.com/puppetlabs/puppet-in-docker-examples
>
> These are an experimental way of packaging up and releasing Puppet
> software intended for those people already familiar with Docker. We'd
> love any feedback about what you like and don't like, what you'd like
> to see in the future or anything vaguely related.
>
> And a quick thanks to all the people in the Puppet community who have
> rolled their own versions of this at some point or another. By having
> an official Puppet repo we're hoping that for the common case we can
> get everyone collaborating on a shared set of Dockerfiles/images, and
> that with many eyes come all the good ideas, but we want to make them
> a good starting point for advanced users too.
>
> Cheers
>
> Gareth
>
>
>
> --
> 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_6yJiXCCBoBeZCB90oi9JGSCbVbirYrG2ha460L3aHgTsHg%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/CAPGcbtDYfcA5_hwxL%2BnhuygKfpcNDp-jd_3WT7UiRxjbq%2BiQig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] PuppetDB Query based on facts

2016-06-03 Thread Mike Sharpton
Hey all,

I am trying to do what should be a simple thing.  I need to query PuppetDB 
to gather a list of machines based on arbitrary facta being equal to true 
and the operatingsystemmajrelease fact being 7.  I have searched around and 
found a few examples, but can't get them to work properly.  I saw and 
example from Wyatt on here, but I must be doing something wrong as I can't 
even get that to run.  I have PuppetDB 3.2.0.

I'm not sure if I should be running my query against this endpoint 
/pdb/query/v4/facts/, or drill into the facta uri and run a in/and against 
the operatingsystemmajrelease fact to get what I need.  All I need back is 
the certname of the machines in which facta is true and 
operatingsystemmajrelease is 7.  If someone has a quick one liner, it would 
be appreciated, otherwise I can bust out the data and filter it with Excel. 
 Thanks,

Mike

-- 
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/5a1fec0e-1d02-442f-9465-9660a6087a8f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Puppet-in-Docker

2016-06-03 Thread Gareth Rushgrove
Hi All

A few folks might have seen this yesterday, but just in case.

https://puppet.com/blog/puppet-docker-running-puppet-container-centric-infrastructure

I've been working on a set of Docker images for running Puppet
software, so Puppet Server, PuppetDB, etc. The blog post above covers
why and when this might be useful, but a few examples:

* You want to run Puppet on something like CoreOS, PhotonOS or Atomic
where containers are the defacto way of installing software
* You want a full local development environment (including on WIndows
or OSX) with minimal overhead

The Dockerfiles and various build tools are available on GitHub:

https://github.com/puppetlabs/puppet-in-docker

And the images are available today on Docker Hub:

https://hub.docker.com/u/puppet/

We've also created a number of examples that show a few tips and
tricks, including standing up the server stack using Docker compose:

https://github.com/puppetlabs/puppet-in-docker-examples

These are an experimental way of packaging up and releasing Puppet
software intended for those people already familiar with Docker. We'd
love any feedback about what you like and don't like, what you'd like
to see in the future or anything vaguely related.

And a quick thanks to all the people in the Puppet community who have
rolled their own versions of this at some point or another. By having
an official Puppet repo we're hoping that for the common case we can
get everyone collaborating on a shared set of Dockerfiles/images, and
that with many eyes come all the good ideas, but we want to make them
a good starting point for advanced users too.

Cheers

Gareth



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


Re: [Puppet Users] Re: not able to sign the certificate of puppet master

2016-06-03 Thread Lowe Schmidt
Vivek, the solution is already in this thread. Read jcbollingers answer

--
Lowe Schmidt | +46 723 867 157

On 3 June 2016 at 09:25, Vivek Mishra  wrote:

> Hi John,
>
> I am facing a similar type of error. Can you help me.
>
> sudo puppet agent -tWarning: Unable to fetch my node definition, but the
> agent run will continue:Warning: getaddrinfo: Name or service not knownInfo:
> Retrieving pluginfactsError: /File[/var/lib/puppet/facts.d]: Failed to
> generate additional resources using 'eval_generate': getaddrinfo: Name or
> service not knownError: /File[/var/lib/puppet/facts.d]: Could not
> evaluate: Could not retrieve file metadata for 
> puppet://puppet1-puppet-master/pluginfacts:
> getaddrinfo: Name or service not knownInfo: Retrieving pluginError:
> /File[/var/lib/puppet/lib]: Failed to generate additional resources using
> 'eval_generate': getaddrinfo: Name or service not knownError:
> /File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve file
> metadata for puppet://puppet1-puppet-master/plugins: getaddrinfo: Name or
> service not knownError: Could not retrieve catalog from remote server:
> getaddrinfo: Name or service not knownWarning: Not using cache on failed
> catalogError: Could not retrieve catalog; skipping runError: Could not
> send report: getaddrinfo: Name or service not known
>
>
> On Wednesday, September 3, 2014 at 11:22:58 PM UTC+5:30, jcbollinger wrote:
>
>>
>>
>> On Tuesday, September 2, 2014 8:55:15 AM UTC-5, Spriya wrote:
>>>
>>> Hi,
>>>
>>> I installed puppet using open source. when i tryied to run puppet agent
>>> -t it is throwing me error.
>>>
>>> puppet agent -t
>>> Warning: Unable to fetch my node definition, but the agent run will
>>> continue:
>>> Warning: getaddrinfo: Name or service not known
>>> Info: Retrieving pluginfacts
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *Error: /File[/var/lib/puppet/facts.d]: Failed to generate additional
>>> resources using 'eval_generate': getaddrinfo: Name or service not
>>> knownError: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not
>>> retrieve file metadata for puppet://puppet/pluginfacts: getaddrinfo: Name
>>> or service not knownWrapped exception:getaddrinfo: Name or service not
>>> knownInfo: Retrieving pluginError: /File[/var/lib/puppet/lib]: Failed to
>>> generate additional resources using 'eval_generate': getaddrinfo: Name or
>>> service not knownError: /File[/var/lib/puppet/lib]: Could not evaluate:
>>> Could not retrieve file metadata for puppet://puppet/plugins: getaddrinfo:
>>> Name or service not knownWrapped exception:getaddrinfo: Name or service not
>>> known*
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> *[main]# The Puppet log directory.# The default value is
>>> '$vardir/log'.logdir = /var/log/puppet# Where Puppet PID files are
>>> kept.# The default value is '$vardir/run'.rundir =
>>> /var/run/puppet# Where SSL certificates are kept.# The default
>>> value is '$confdir/ssl'.ssldir = $vardir/ssl[agent]# The file in
>>> which puppetd stores a list of the classes# associated with the
>>> retrieved configuratiion.  Can be loaded in# the separate ``puppet``
>>> executable using the ``--loadclasses``# option.# The default value
>>> is '$confdir/classes.txt'.classfile = $vardir/classes.txt# Where
>>> puppetd caches the local configuration.  An# extension indicating the
>>> cache format is added automatically.# The default value is
>>> '$confdir/localconfig'.localconfig =
>>> $vardir/localconfig[master] certname = hostname*
>>>
>>>
>>> please help me
>>>
>>>
>>
>> The agent does not know the correct hostname of the master.  It is trying
>> to look it up via the default name, 'puppet,' but the system's resolver
>> does not find anything by that name.  Add a
>>
>> server = 
>>
>> to the [agent] section of your puppet.conf.
>>
>>
>> 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/fc097b9a-3028-4651-aca1-ac2eae32056a%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-wWcTiWC6w8gy55yybj5a2o3LGEfqkrUJYvxaJ67NpLMvQiw%40mail.gmail.com.
For more options, visit 

Re: [Puppet Users] How to access $facts['os'] in a manifest

2016-06-03 Thread Marc Haber
On Thu, Jun 02, 2016 at 06:10:42PM +0200, Henrik Lindberg wrote:
> With future parser you can do:
> 
> notice($os =~ Hash)
> 
> Which will notice 'true' if $os is a hash

$ sudo puppet apply -e '$hmpf=is_hash($os) notify{"foo ${hmpf}":}'
Notice: Compiled catalog for hostname in environment production in 0.02 seconds
Notice: foo false
Notice: /Stage[main]/Main/Notify[foo false]/message: defined 'message' as 'foo 
false'
Notice: Finished catalog run in 0.25 seconds

So we have stringify_facts turned the wrong way here. Thanks for
helping.

Greetings
Marc

-- 
-
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Leimen, Germany|  lose things."Winona Ryder | Fon: *49 6224 1600402
Nordisch by Nature |  How to make an American Quilt | Fax: *49 6224 1600421

-- 
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/20160603102653.GX14027%40torres.zugschlus.de.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: not able to sign the certificate of puppet master

2016-06-03 Thread Vivek Mishra
Hi John,

I am facing a similar type of error. Can you help me.

sudo puppet agent -tWarning: Unable to fetch my node definition, but the 
agent run will continue:Warning: getaddrinfo: Name or service not knownInfo: 
Retrieving pluginfactsError: /File[/var/lib/puppet/facts.d]: Failed to 
generate additional resources using 'eval_generate': getaddrinfo: Name or 
service not knownError: /File[/var/lib/puppet/facts.d]: Could not evaluate: 
Could not retrieve file metadata for 
puppet://puppet1-puppet-master/pluginfacts: 
getaddrinfo: Name or service not knownInfo: Retrieving pluginError: 
/File[/var/lib/puppet/lib]: Failed to generate additional resources using 
'eval_generate': getaddrinfo: Name or service not knownError: 
/File[/var/lib/puppet/lib]: Could not evaluate: Could not retrieve file 
metadata for puppet://puppet1-puppet-master/plugins: getaddrinfo: Name or 
service not knownError: Could not retrieve catalog from remote server: 
getaddrinfo: Name or service not knownWarning: Not using cache on failed 
catalogError: Could not retrieve catalog; skipping runError: Could not send 
report: getaddrinfo: Name or service not known

On Wednesday, September 3, 2014 at 11:22:58 PM UTC+5:30, jcbollinger wrote:

>
>
> On Tuesday, September 2, 2014 8:55:15 AM UTC-5, Spriya wrote:
>>
>> Hi,
>>
>> I installed puppet using open source. when i tryied to run puppet agent 
>> -t it is throwing me error.
>>
>> puppet agent -t 
>> Warning: Unable to fetch my node definition, but the agent run will 
>> continue:
>> Warning: getaddrinfo: Name or service not known
>> Info: Retrieving pluginfacts
>>
>>
>>
>>
>>
>>
>>
>>
>> *Error: /File[/var/lib/puppet/facts.d]: Failed to generate additional 
>> resources using 'eval_generate': getaddrinfo: Name or service not 
>> knownError: /File[/var/lib/puppet/facts.d]: Could not evaluate: Could not 
>> retrieve file metadata for puppet://puppet/pluginfacts: getaddrinfo: Name 
>> or service not knownWrapped exception:getaddrinfo: Name or service not 
>> knownInfo: Retrieving pluginError: /File[/var/lib/puppet/lib]: Failed to 
>> generate additional resources using 'eval_generate': getaddrinfo: Name or 
>> service not knownError: /File[/var/lib/puppet/lib]: Could not evaluate: 
>> Could not retrieve file metadata for puppet://puppet/plugins: getaddrinfo: 
>> Name or service not knownWrapped exception:getaddrinfo: Name or service not 
>> known*
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> *[main]# The Puppet log directory.# The default value is 
>> '$vardir/log'.logdir = /var/log/puppet# Where Puppet PID files are 
>> kept.# The default value is '$vardir/run'.rundir = 
>> /var/run/puppet# Where SSL certificates are kept.# The default 
>> value is '$confdir/ssl'.ssldir = $vardir/ssl[agent]# The file in 
>> which puppetd stores a list of the classes# associated with the 
>> retrieved configuratiion.  Can be loaded in# the separate ``puppet`` 
>> executable using the ``--loadclasses``# option.# The default value 
>> is '$confdir/classes.txt'.classfile = $vardir/classes.txt# Where 
>> puppetd caches the local configuration.  An# extension indicating the 
>> cache format is added automatically.# The default value is 
>> '$confdir/localconfig'.localconfig = 
>> $vardir/localconfig[master] certname = hostname*
>>
>>
>> please help me
>>
>>
>
> The agent does not know the correct hostname of the master.  It is trying 
> to look it up via the default name, 'puppet,' but the system's resolver 
> does not find anything by that name.  Add a 
>
> server = 
>
> to the [agent] section of your puppet.conf.
>
>
> 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/fc097b9a-3028-4651-aca1-ac2eae32056a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.