[Puppet Users] Puppet external CA Vs Puppet CA

2017-08-10 Thread DJ
Hello,

I want to know what is recommended way for puppet CA, is internal Puppet CA 
works or if we have company standard CA we should use that, can anyone 
highlight pros and cons of each method ?

Thanks,
DJ

-- 
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/1724387a-a239-4421-ab97-15b64c505ec6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] PQL questions

2017-08-10 Thread R.I.Pienaar
I want to do dot based fact queries in PQL, basic example:

   inventory[certname] {facts.os.distro.release.major = "7"}

Great, no problems so far that works, but I cannot figure out how to say
!= "7"

in the fact endpoint I can do:

   facts {name = "%s" and !(value = "%s")}

However this does not support the dot notation so thats not useful here.

The AST docs[1] says there is and, or and not but I cant figure out how
to use it there, the error messages various attempts give me are:

   inventory[certname] {facts.os.distro.release.major not "7"
   Expected one of:

   is not null
   is null
   in
   =
   >
   <
   <=
   >=
   ~>
   ~

This rather makes me think a basic not isn't supported here? But the old
AST docs[1] suggests it should be, so I am guessing some support is
missing in PQL here?

I'd also like to be able to do > etc on string values, which I think the
AST based queries also support?


[1]
https://docs.puppet.com/puppetdb/5.0/api/query/v4/ast.html#dot-notation

-- 
R.I.Pienaar / www.devco.net / @ripienaar

-- 
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/1502382772.1240443.1069431136.3BC482C6%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] fstab not cleared if unmount fails

2017-08-10 Thread João Matos
Hi guys

managing nfs mounts with ghoneycutt/puppet-module-nfs when setting a busy 
mount to absent it fails the unmount and doesnt remove the fstab.
Failing the unmount, fine - O.S. stuff -  but clearing the fstab doesnt 
make sense. Unless the mount type code doing the task cannot handle the 
unmount failure and proceed?


-- 
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/26f747e2-aa7b-4417-a6c7-10f4434cc4c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[Puppet Users] Re: fstab not cleared if unmount fails

2017-08-10 Thread João Matos
note this is PE 3.8

On Thursday, 10 August 2017 19:10:53 UTC+1, João Matos wrote:
>
> Hi guys
>
> managing nfs mounts with ghoneycutt/puppet-module-nfs when setting a busy 
> mount to absent it fails the unmount and doesnt remove the fstab.
> Failing the unmount, fine - O.S. stuff -  but clearing the fstab doesnt 
> make sense. Unless the mount type code doing the task cannot handle the 
> unmount failure and proceed?
>
>
>

-- 
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/9e8dba73-4caf-4a51-9454-d137feba2468%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [Puppet Users] PQL questions

2017-08-10 Thread R.I.Pienaar


On Thu, Aug 10, 2017, at 18:32, R.I.Pienaar wrote:
> I want to do dot based fact queries in PQL, basic example:
> 
>inventory[certname] {facts.os.distro.release.major = "7"}
> 
> Great, no problems so far that works, but I cannot figure out how to say
> != "7"
> 
> in the fact endpoint I can do:
> 
>facts {name = "%s" and !(value = "%s")}
> 
> However this does not support the dot notation so thats not useful here.
> 
> The AST docs[1] says there is and, or and not but I cant figure out how
> to use it there, the error messages various attempts give me are:
> 
>inventory[certname] {facts.os.distro.release.major not "7"
>Expected one of:
> 
>is not null
>is null
>in
>=
>>
><
><=
>>=
>~>
>~
> 
> This rather makes me think a basic not isn't supported here? But the old
> AST docs[1] suggests it should be, so I am guessing some support is
> missing in PQL here?
> 

flaf on IRC said to try this:

inventory[certname] {!(facts.os.distro.release.major = "7")}

This works, still to figure out string compares :)

> I'd also like to be able to do > etc on string values, which I think the
> AST based queries also support?
> 
> 
> [1]
> https://docs.puppet.com/puppetdb/5.0/api/query/v4/ast.html#dot-notation
> 
> -- 
> R.I.Pienaar / www.devco.net / @ripienaar
> 
> -- 
> 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/1502382772.1240443.1069431136.3BC482C6%40webmail.messagingengine.com.
> For more options, visit https://groups.google.com/d/optout.


-- 
R.I.Pienaar / www.devco.net / @ripienaar

-- 
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/1502389226.1271678.1069542560.5886EF84%40webmail.messagingengine.com.
For more options, visit https://groups.google.com/d/optout.