Jira (PUP-10478) Add getvar lookup-key Hiera backend

0 views
Skip to first unread message

Enis Inan (Jira)

unread,
Apr 29, 2020, 5:43:04 PM4/29/20
to puppe...@googlegroups.com
Enis Inan created an issue
 
Puppet / Task PUP-10478
Add getvar lookup-key Hiera backend
Issue Type: Task Task
Assignee: Unassigned
Created: 2020/04/29 2:42 PM
Fix Versions: PUP 6.15.0
Priority: Normal Normal
Reporter: Enis Inan

Configuring this would look something like

  - name: "ServiceNow hiera data"
     lookup_key: getvar
     path: trusted.external.servicenow.hiera_data

where path resolves to a Hash value whose key you're looking up. The allowable path}}s are {{trusted. and facts. (so anything in the trusted or facts hash). All other paths will raise an error. This is to prevent people from using (unsafe) top-scope variables to get Hiera data (bad practice). However, we will still support unsafe access via an unsafe option. Configuring that would look something like

```

  • name: "unsafe hiera data"
    lookup_key: getvar
    path: foo.bar
    unsafe: true
    ```
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v8.5.2#805002-sha1:a66f935)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages