Jira (PDB-4514) Support case-insensitive regular expressions in puppetdb

6 views
Skip to first unread message

Kyle Hansel (JIRA)

unread,
Sep 25, 2019, 1:51:03 PM9/25/19
to puppe...@googlegroups.com
Kyle Hansel created an issue
 
PuppetDB / New Feature PDB-4514
Support case-insensitive regular expressions in puppetdb
Issue Type: New Feature New Feature
Assignee: Unassigned
Components: PuppetDB
Created: 2019/09/25 10:50 AM
Priority: Normal Normal
Reporter: Kyle Hansel

Feature request to be able to perform regex search in console for case-insensitive searches on nodes.

 

Example: 

Performing a lookup for pe-201911-agent.puppetdebug.vlan within the console through a regex for example (?i)PE-201911-agent.puppetdebug.vlan, should return the node regardless of case.

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

Austin Blatt (JIRA)

unread,
Sep 25, 2019, 2:19:04 PM9/25/19
to puppe...@googlegroups.com
Austin Blatt commented on New Feature PDB-4514
 
Re: Support case-insensitive regular expressions in puppetdb

We rely on postgres for our regex support, so the syntax is defined in their docs. Case-insensitive regex can be configured by prefixing your regex with (?i)

A query would look like

nodes[certname] {
    certname ~ "(?i)HOST"
}

Austin Blatt (JIRA)

unread,
Sep 25, 2019, 2:19:05 PM9/25/19
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages