Jira (BOLT-1264) Allow puppetdb plugin to set host and name independently

30 views
Skip to first unread message

Alex Dreyer (JIRA)

unread,
Apr 23, 2019, 11:59:03 AM4/23/19
to puppe...@googlegroups.com
Alex Dreyer created an issue
 
Puppet Task Runner / New Feature BOLT-1264
Allow puppetdb plugin to set host and name independently
Issue Type: New Feature New Feature
Assignee: Unassigned
Created: 2019/04/23 8:58 AM
Priority: Normal Normal
Reporter: Alex Dreyer

The puppetdb plugin will only accept a query that returns a certname and then set that certname to be the targets uri. For some users the node is not accessible through the certname so they need to lookup an IP address and set the name and certname of the target separately.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Alex Dreyer (JIRA)

unread,
Apr 23, 2019, 12:16:27 PM4/23/19
to puppe...@googlegroups.com

David Kramer (JIRA)

unread,
May 14, 2019, 12:47:03 PM5/14/19
to puppe...@googlegroups.com
David Kramer updated an issue
Change By: David Kramer
Sprint: Bolt Ready for Grooming Kanban

Nick Lewis (JIRA)

unread,
May 14, 2019, 12:53:03 PM5/14/19
to puppe...@googlegroups.com
Nick Lewis updated an issue
Change By: Nick Lewis
The puppetdb plugin will only accept a query that returns a certname and then set that certname to be the targets {{uri}}. For some users the node is not accessible through the certname so they need to lookup an IP address and set the name and certname of the target separately.

The plugin will take a {{config}} section where each map value is the name of a fact to lookup from PuppetDB. The plugin will gather the list of certnames from the {{query}} field as well as all the facts that are used in the {{config}} mapping and automatically make a second query to retrieve all of the necessary fact values.

If a fact isn't set for a node, the config setting for that fact should not be set.

Lucy Wyman (JIRA)

unread,
May 14, 2019, 7:19:03 PM5/14/19
to puppe...@googlegroups.com

Lucy Wyman (JIRA)

unread,
May 17, 2019, 12:54:03 PM5/17/19
to puppe...@googlegroups.com
Lucy Wyman updated an issue
The puppetdb plugin will only accept a query that returns a certname and then set that certname to be the targets {{uri}}. For some users the node is not accessible through the certname so they need to lookup an IP address and set the name and certname of the target separately.

The plugin will take a {{config}} section where each map value is the name of a fact to lookup from PuppetDB. The plugin will gather the list of certnames from the {{query}} field as well as all the facts that are used in the {{config}} mapping and automatically make a second query to retrieve all of the necessary fact values.

If a fact isn't set for a node, the config setting for that fact should not be set.


Make a new key under the puppetdb plugin {{db_data}}, which will look up values from puppetdb (facts endpoint for now inventory when it's open source) at the same level as config and vars etc.

Lucy Wyman (JIRA)

unread,
May 17, 2019, 12:55:04 PM5/17/19
to puppe...@googlegroups.com
Lucy Wyman updated an issue
The puppetdb plugin will only accept a query that returns a certname and then set that certname to be the targets {{uri}}. For some users the node is not accessible through the certname so they need to lookup an IP address and set the name and certname of the target separately.

The plugin will take a {{config}} section where each map value is the name of a fact to lookup from PuppetDB. The plugin will gather the list of certnames from the {{query}} field as well as all the facts that are used in the {{config}} mapping and automatically make a second query to retrieve all of the necessary fact values.

If a fact isn't set for a node, the config setting for that fact should not be set.

Make a new key under the puppetdb plugin {{ db_data pdb_data }}, which will look up values from puppetdb (facts endpoint for now inventory when it's open source) at the same level as config and vars etc.

Lucy Wyman (JIRA)

unread,
May 17, 2019, 12:56:04 PM5/17/19
to puppe...@googlegroups.com
Lucy Wyman updated an issue
The puppetdb plugin will only accept a query that returns a certname and then set that certname to be the targets {{uri}}. For some users the node is not accessible through the certname so they need to lookup an IP address and set the name and certname of the target separately.

The plugin will take a {{config}} section where each map value is the name of a fact to lookup from PuppetDB. The plugin will gather the list of certnames from the {{query}} field as well as all the facts that are used in the {{config}} mapping and automatically make a second query to retrieve all of the necessary fact values.

If a fact isn't set for a node, the config setting for that fact should not be set.

Make a new key under the puppetdb plugin {{pdb_data}}, which will look up values from puppetdb (facts endpoint for now inventory when it's open source) at the same level as config and vars etc.

{code}
query: ...
pdb_data:
  name: certname
  config:
    ssh: facts.
      host: ifconfig.ifo.ipad0
{code}

Lucy Wyman (JIRA)

unread,
May 17, 2019, 12:57:04 PM5/17/19
to puppe...@googlegroups.com
Lucy Wyman updated an issue
The puppetdb plugin will only accept a query that returns a certname and then set that certname to be the targets {{uri}}. For some users the node is not accessible through the certname so they need to lookup an IP address and set the name and certname of the target separately.

The plugin will take a {{config}} section where each map value is the name of a fact to lookup from PuppetDB. The plugin will gather the list of certnames from the {{query}} field as well as all the facts that are used in the {{config}} mapping and automatically make a second query to retrieve all of the necessary fact values.

If a fact isn't set for a node, the config setting for that fact should not be set.

Make a new key under the puppetdb plugin {{pdb_data}}, which will look up values from puppetdb (facts endpoint for now inventory when it's open source) at the same level as config and vars etc.

If name or uri is set in pdb_data don't magic set uri, otherwise do magic set uri to certname.

{code}
query: ...
pdb_data:
  name: certname
  config:
    ssh: facts.
      host: ifconfig.ifo.ipad0
{code}

Lucy Wyman (JIRA)

unread,
May 17, 2019, 1:04:03 PM5/17/19
to puppe...@googlegroups.com

Cas Donoghue (JIRA)

unread,
May 29, 2019, 12:24:04 PM5/29/19
to puppe...@googlegroups.com

Cas Donoghue (JIRA)

unread,
May 29, 2019, 12:24:04 PM5/29/19
to puppe...@googlegroups.com

Cas Donoghue (JIRA)

unread,
May 29, 2019, 5:41:03 PM5/29/19
to puppe...@googlegroups.com
Cas Donoghue updated an issue
Change By: Cas Donoghue
Release Notes Summary: The PuppetDB plugin can no be used to lookup configuration values for the `name`, `uri`, and `config` inventory options for each target.
Release Notes: New Feature

Lucy Wyman (JIRA)

unread,
May 29, 2019, 5:51:02 PM5/29/19
to puppe...@googlegroups.com
Lucy Wyman updated an issue
Change By: Lucy Wyman
Release Notes Summary: The PuppetDB plugin can no now be used to lookup configuration values from PuppetDB facts for the `name`, `uri`, and `config` inventory options for each target.

Melissa Amos (JIRA)

unread,
May 30, 2019, 2:54:05 PM5/30/19
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages