Jira (PUP-6400) lookup cli has no way to set arbitrary scope values

2022-05-28 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-6400  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: lookup cli has no way to set arbitrary scope values   
 

  
 
 
 
 

 
 Coming back to this. It is currently possible to override the certname trusted fact by specifying the certname option:  
 
 
 
 
 $ cat /home/josh/.puppetlabs/etc/code/environments/trusted/hiera.yaml    
 
 
 ---  
 
 
 version: 5  
 
 
 hierarchy:  
 
 
   - name: "Environment"  
 
 
     paths:  
 
 
     - "%{trusted.certname}"  
 
 
 $ cat /home/josh/.puppetlabs/etc/code/environments/trusted/data/foo.com  
 
 
 ---  
 
 
 key: 42  
 
 
 $ bundle exec puppet lookup key -E trusted --certname foo.com            
 
 
 --- 42   
 
 
 
  It is also possible to specify facts that are used to derive the "certname" (though if you specify one value, then you have to specify all of them:  

Jira (PUP-6400) lookup cli has no way to set arbitrary scope values

2022-02-22 Thread Molly Waggett (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Molly Waggett updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-6400  
 
 
  lookup cli has no way to set arbitrary scope values   
 

  
 
 
 
 

 
Change By: 
 Molly Waggett  
 
 
Labels: 
 final_triage  needs_decision  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.136438.1465556167000.21405.164020125%40Atlassian.JIRA.


Jira (PUP-6400) lookup cli has no way to set arbitrary scope values

2021-12-22 Thread David McTavish (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 David McTavish updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-6400  
 
 
  lookup cli has no way to set arbitrary scope values   
 

  
 
 
 
 

 
Change By: 
 David McTavish  
 
 
Team: 
 Froyo  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.20.2#820002-sha1:829506d)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.136438.1465556167000.10387.1640197860046%40Atlassian.JIRA.


Jira (PUP-6400) lookup cli has no way to set arbitrary scope values

2021-12-06 Thread David McTavish (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 David McTavish updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-6400  
 
 
  lookup cli has no way to set arbitrary scope values   
 

  
 
 
 
 

 
Change By: 
 David McTavish  
 
 
Priority: 
 Normal Low  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.136438.1465556167000.21079.1638815520253%40Atlassian.JIRA.


Jira (PUP-6400) lookup cli has no way to set arbitrary scope values

2021-12-06 Thread David McTavish (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 David McTavish updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-6400  
 
 
  lookup cli has no way to set arbitrary scope values   
 

  
 
 
 
 

 
Change By: 
 David McTavish  
 
 
Issue Type: 
 Bug Improvement  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.136438.1465556167000.20759.1638808320301%40Atlassian.JIRA.


Jira (PUP-6400) lookup cli has no way to set arbitrary scope values

2021-12-06 Thread David McTavish (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 David McTavish updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-6400  
 
 
  lookup cli has no way to set arbitrary scope values   
 

  
 
 
 
 

 
Change By: 
 David McTavish  
 
 
Labels: 
 final_triage needs_decision  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.136438.1465556167000.20758.1638808320257%40Atlassian.JIRA.


Jira (PUP-6400) lookup cli has no way to set arbitrary scope values

2021-08-18 Thread Josh Cooper (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-6400  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: lookup cli has no way to set arbitrary scope values   
 

  
 
 
 
 

 
 The lack of trusted facts will be fixed in PUP-8094, but I'll leave this open regarding the ability to specify arbitrary variables.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v8.13.2#813002-sha1:c495a97)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.136438.1465556167000.111525.1629317880026%40Atlassian.JIRA.


Jira (PUP-6400) lookup cli has no way to set arbitrary scope values

2018-11-30 Thread Rob Braden (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rob Braden updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-6400  
 
 
  lookup cli has no way to set arbitrary scope values   
 

  
 
 
 
 

 
Change By: 
 Rob Braden  
 
 
Sub-team: 
 Language  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6400) lookup cli has no way to set arbitrary scope values

2018-11-30 Thread Rob Braden (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rob Braden updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-6400  
 
 
  lookup cli has no way to set arbitrary scope values   
 

  
 
 
 
 

 
Change By: 
 Rob Braden  
 
 
Team: 
 Platform Core Server  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

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

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6400) lookup cli has no way to set arbitrary scope values

2017-05-16 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6400 
 
 
 
  lookup cli has no way to set arbitrary scope values  
 
 
 
 
 
 
 
 
 

Change By:
 
 Moses Mendoza 
 
 
 

Team:
 
 Agent 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6400) lookup cli has no way to set arbitrary scope values

2017-05-16 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza assigned an issue to Eric Sorenson 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6400 
 
 
 
  lookup cli has no way to set arbitrary scope values  
 
 
 
 
 
 
 
 
 

Change By:
 
 Moses Mendoza 
 
 
 

Assignee:
 
 R.I.Pienaar Eric Sorenson 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6400) lookup cli has no way to set arbitrary scope values

2017-05-16 Thread Moses Mendoza (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Moses Mendoza updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6400 
 
 
 
  lookup cli has no way to set arbitrary scope values  
 
 
 
 
 
 
 
 
 

Change By:
 
 Moses Mendoza 
 
 
 

Labels:
 
 needs_decision triaged 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6400) lookup cli has no way to set arbitrary scope values

2016-07-16 Thread R.I.Pienaar (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 R.I.Pienaar commented on  PUP-6400 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: lookup cli has no way to set arbitrary scope values  
 
 
 
 
 
 
 
 
 
 
Eric Sorenson no can't say I got this to work tbh 
 
 
 
 
 
 
irb(main):002:0> JSON.parse(File.read("facts.json")) 
 
 
 
 
=> {"trusted"=>{"certname"=>"foo.com"}}
 
 
 
 
 
 
 
 
 
 
 
 
 
:hierarchy: 
 
 
 
 
  - "%{trusted.certname}"
 
 
 
 
 
 
 
 
 
 
 
 
 
# puppet lookup --facts facts.json --debug some::data 
 
 
 
 
Debug: hiera(): Looking up lookup_options in YAML backend 
 
 
 
 
Debug: hiera(): Looking for data source dev3.devco.net 
 
 
 
 
...
 
 
 
 

Jira (PUP-6400) lookup cli has no way to set arbitrary scope values

2016-07-15 Thread Eric Sorenson (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Eric Sorenson assigned an issue to R.I.Pienaar 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
R.I.Pienaar do henrik's suggestions address your concerns? sounds like there is a way to achieve this - pls put the ticket back to me iff not. 
 
 
 
 
 
 
 
 
 
 Puppet /  PUP-6400 
 
 
 
  lookup cli has no way to set arbitrary scope values  
 
 
 
 
 
 
 
 
 

Change By:
 
 Eric Sorenson 
 
 
 

Assignee:
 
 R.I.Pienaar 
 
 
 

Fix Version/s:
 
 PUP 4.6.0 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6400) lookup cli has no way to set arbitrary scope values

2016-06-10 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg updated an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6400 
 
 
 
  lookup cli has no way to set arbitrary scope values  
 
 
 
 
 
 
 
 
 

Change By:
 
 Henrik Lindberg 
 
 
 

Fix Version/s:
 
 PUP 4.6.0 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6400) lookup cli has no way to set arbitrary scope values

2016-06-10 Thread Henrik Lindberg (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 Henrik Lindberg commented on  PUP-6400 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
  Re: lookup cli has no way to set arbitrary scope values  
 
 
 
 
 
 
 
 
 
 
You should be able to feed in $trusted stuff by having the fact 'trusted' set to the correct (expected) values. (I am unsure if we tested that though, it may work because we do get $trusted as a node parameter in some cases, and IIRC, that is how we deal with the facts given on the CLI). Love to hear if that works or not. 
For arbitrary variables; since that is supported at runtime, the CLI should support those too. (Not having support for that is an oversight). The easiest is to add yet another flag that accepts a reference to a file with variables, or we need to redesign the options to accept a combination of facts and variables in one and the same file. Not sure what is best (also considering backwards compatibility). 
 
 
 
 
 
 
 
 
 
 
 
 

 
 Add Comment 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 
 
 

 This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) 
 
 
 
 
  
 
 
 
 
 
 
 
 
   





-- 
You received this message because you are subscribed to the Google Groups "Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-bugs@googlegroups.com.
Visit this group at https://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-6400) lookup cli has no way to set arbitrary scope values

2016-06-10 Thread R.I.Pienaar (JIRA)
Title: Message Title
 
 
 
 
 
 
 
 
 
 
  
 
 R.I.Pienaar created an issue 
 
 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 
 Puppet /  PUP-6400 
 
 
 
  lookup cli has no way to set arbitrary scope values  
 
 
 
 
 
 
 
 
 

Issue Type:
 
  Bug 
 
 
 

Affects Versions:
 

 PUP 4.5.1 
 
 
 

Assignee:
 

 Unassigned 
 
 
 

Components:
 

 CLI 
 
 
 

Created:
 

 2016/06/10 3:56 AM 
 
 
 

Priority:
 
  Normal 
 
 
 

Reporter:
 
 R.I.Pienaar 
 
 
 
 
 
 
 
 
 
 
When constructing hierarchies it's best to use $trusted wherever possible and there are legit use cases for using random in scope vars. 
The old CLI let you specify arbitrary scope which would be used to satisfy testing these on the CLI, with new lookup this is pretty hard/impossible. 
It lets you supply facts from a file which then is only accessible as facts.foo for example, no way to do trusted or random vars. 
I might have missed a obvious way to achieve this so this ticket could be a non issue but could not find it.