Re: [Puppet Users] puppetdb query return values

2019-12-13 Thread Austin Blatt
Hi Matt,

You should be able to do that now that we've finished PDB-2634
, which is available in
PuppetDB 6.7.0+.

The { } are still required, so a query could look like

resources[certname, parameters.address] {
  type = "Postgresql::Server::Pg_hba_rule"
  and parameters.address ~ ".*"
}


On Fri, Dec 13, 2019 at 9:54 AM Matt Zagrabelny  wrote:

> Greetings,
>
> I've looked through the puppetdb docs, in particular the PQL docs, to find
> out if I can extract a single parameter in the return value(s).
>
> I have as a PQL:
>
> resources[parameters] { type = "Postgresql::Server::Pg_hba_rule" and
> parameters.address ~ "."}
>
> I'd like to get the "address" parameter. So some pseudocode like:
>
> resources[parameters.address]
>
> I know I can post process the results, but is there a way to get a single
> parameter in PQL?
>
> Thanks,
>
> -m
>
> --
> 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/CAOLfK3UZuh5jvdFjq5giQbifcM5RU6--oL-KDoLo0SuPMCu2KQ%40mail.gmail.com
> 
> .
>


-- 
*Austin Blatt*
Software Engineer
austin.bl...@puppet.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/CADVW12PXbtWAgqcjoq3c8op%2BB5iNg-7616u2ZkVtkFbRgh%3DL3A%40mail.gmail.com.


[Puppet Users] puppetdb query return values

2019-12-13 Thread Matt Zagrabelny
Greetings,

I've looked through the puppetdb docs, in particular the PQL docs, to find
out if I can extract a single parameter in the return value(s).

I have as a PQL:

resources[parameters] { type = "Postgresql::Server::Pg_hba_rule" and
parameters.address ~ "."}

I'd like to get the "address" parameter. So some pseudocode like:

resources[parameters.address]

I know I can post process the results, but is there a way to get a single
parameter in PQL?

Thanks,

-m

-- 
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/CAOLfK3UZuh5jvdFjq5giQbifcM5RU6--oL-KDoLo0SuPMCu2KQ%40mail.gmail.com.


Re: [Puppet Users] Github actions for Puppet module deploy

2019-12-13 Thread David Schmitt
This was just a topic of conversation on the community slack (
https://puppetcommunity.slack.com/archives/C11LCKKQ9/p1576194567348200)

* There is no finished example yet
* PDK 1.15.0 (due next week) will have a `pdk release` subcommand that will
handle most of the puppet-specific workflow
* The content team (which I'm am part of) is currently supercharging a lot
of our processes through github actions, so expect some development from us
in the next weeks.


Cheers, David Schmitt

On Thu, 12 Dec 2019 at 12:17, Thomas Bendler 
wrote:

> Hi @all,
>
> are there any official Github Actions available to deploy Puppet modules
> to the Puppet forge? I know they exist for TravisCI (
> https://docs.travis-ci.com/user/deployment/puppetforge/) but didn't find
> the equivalent for Github Actions yet. Does anyone know more?
>
> Kind regards Thomas
> --
> Linux ... enjoy the ride!
>
> --
> 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/CAELoU1M%2BiKsH3Y_G7P3KrHC0PDQjv5NytVNWbFXP1hPWqFkOow%40mail.gmail.com
> 
> .
>

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