Jira (PUP-9055) Compile catalogs on demand with user-specified facts

2022-05-06 Thread David Sandilands (Jira)
Title: Message Title


 
 
 
 

 
 
 

 
   
 David Sandilands commented on  PUP-9055  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
 I have a question from JPMC relating to this ticket, I think I am misunderstanding what can be done here, can I run puppet catalog compile --run_mode master pe-server-davidsand-0-ff18d2.ty4x0b4hbguu1p40qhokw3zp2f.xx.internal.cloudapp.net and as long as I have a  pe-server-davidsand-0-ff18d2.ty4x0b4hbguu1p40qhokw3zp2f.xx.internal.cloudapp.net.json file with facts it should behave like puppet compile master command?  
 

  
 
 
 
 

 
 
 

 
 
 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.102767.1445629515000.25242.1651840260090%40Atlassian.JIRA.


Jira (PUP-9055) Compile catalogs on demand with user-specified facts

2019-06-11 Thread Heston Hoffman (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Heston Hoffman updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Heston Hoffman  
 
 
Labels: 
 resolved-issue-added  
 

  
 
 
 
 

 
 
 

 
 
 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.102767.1445629515000.43303.1560297241613%40Atlassian.JIRA.
For more options, visit https://groups.google.com/d/optout.


Jira (PUP-9055) Compile catalogs on demand with user-specified facts

2019-04-23 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Release Notes Summary: 
 The "puppet catalog compile" action will compile a catalog in the same way that the "puppet master --compile" application did, before being removed in Puppet 6. The command must be run on the puppetserver with access to modules, hiera data, etc  
 
 
Release Notes: 
 Enhancement  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2019-04-23 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Fix Version/s: 
 PUP 6.y  
 
 
Fix Version/s: 
 PUP 6.5.0  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2019-04-23 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-9055  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
 Watchers on the ticket: Alan Smith contributed a PR to restore the functionality of puppet master --compile using puppet catalog compile, and it's been merged to master in https://github.com/puppetlabs/puppet/commit/5d30e1e091199729b9d10dbe7c1566b4bcd7cded. It has the same limitation that puppet master had where you have to "preload" the facts for the node being compiled by saving a facts file with the name $certname.yaml. But at least we've restored the capabilities that were removed when puppet master --compile was removed. If folks are interested in explicitly passing the facts to use on the command line, let's file a new ticket and link to this one.  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2019-04-19 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Sprint: 
 Platform Core KANBAN  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2019-04-19 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Sprint: 
 Platform Core KANBAN  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2019-04-19 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Sprint: 
 Coremunity Grooming Platform Core KANBAN  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2019-04-19 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper assigned an issue to Josh Cooper  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Assignee: 
 Josh Cooper  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2019-04-09 Thread Alan Smith (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Alan Smith commented on  PUP-9055  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
 Josh Cooper I've also [submitted a PR](https://github.com/puppetlabs/puppet/pull/7477), seconds ago, that takes a slightly different approach: it replicates the old `puppet master --compile` behavior by setting the "run mode". I think it gives everyone who relied on `master --compile` something to work with and migrate to. It would do everything I needed it to do. Let me know what you think!  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2019-04-09 Thread Trevor Vaughan (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Trevor Vaughan commented on  PUP-9055  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
 Josh Cooper I'm not sure if this can be done, but would it be possible to generate a fact template based on a target manifest set? Basically, if I need a bunch of facts, it would be nice to have a 'fill in the blanks' YAML file that could be output by puppet itself. Ideally, you could amend the file so that it adds on new facts as the compile gets further along. I'm assuming that this would be an extension to the Facter hooks in Puppet.  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2019-04-09 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-9055  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
 I've added a PR https://github.com/puppetlabs/puppet/pull/7476 which provides the ability to compile a catalog for an arbitrary node with arbitrary facts (as YAML). It must be executed on the puppetserver host (or otherwise have access to the same environments, modules, manifests, hiera data, etc that puppetserver does). For example: compile catalog for the current node  
 
 
 
 
 $ bx puppet catalog compile  
 
 
 bx puppet catalog compile  
 
 
 Notice: Compiled catalog for localhost in environment production in 0.20 seconds  
 
 
 {  
 
 
   "tags": [  
 
 
 "settings",  
 
 
 "default",  
 
 
 "node"  
 
 
   ],  
 
 
   "name": "localhost",  
 
 
   ...  
 
 
 }
  
 
 
 
  compile catalog for a 

Jira (PUP-9055) Compile catalogs on demand with user-specified facts

2019-03-28 Thread Alan Smith (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Alan Smith commented on  PUP-9055  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
 Justin Stoller Thanks for the clarification, but the issue remains of needing a long-running puppetserver available to perform what used to be possible with a one-off ruby CLI. Starting, stopping, and configuring a puppetserver for this task involves very different configuration/supporting code than does a simple CLI.  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2019-03-26 Thread Justin Stoller (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Justin Stoller commented on  PUP-9055  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
 Just to clarify: with the API call you don't have to stand up a new puppetserver every time you would have called `puppet master --compile` you can leave a puppetserver running and, as long as it has access to the code needed to compile, continually hit the API for additional catalogs.  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2019-03-26 Thread Alan Smith (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Alan Smith commented on  PUP-9055  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
 Our upgrade from 4 to 6 is on hold because `puppet master --compile` is gone, as we rely on it heavily to compile catalogs offline. I see the updates about a http endpoint on puppetserver but creating temporary puppetservers is both impractical and slow (`puppet master --compile` does not have the startup overhead that puppetserver does) on a developer's workstation. Our usage now involves repeatedly calling `puppet master --compile` with different facts/ENC data and puppet code, offline. This is both cheap on resources and fast (no puppetserver setup/teardown costs). If it was rearchitected to work offline with puppetserver, it would be neither cheap nor fast. What are the alternatives to puppetserver and its use of JRuby? Can the code needed for `puppet master --compile` specifically be put back without the rest of the webrick/rack support code?  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2019-03-18 Thread Maggie Dreyer (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Maggie Dreyer commented on  PUP-9055  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
 In Puppet Server 6.3.0, we are releasing the endpoint mentioned above. See details on SERVER-2434.  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2018-12-19 Thread Maggie Dreyer (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Maggie Dreyer commented on  PUP-9055  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
 We are looking at adding several new catalog compilation endpoints that compile more arbitrary catalogs (rather than just the one for the requesting node). This feels somewhat related, and the code that winds up being used to do that might also be exposable via CLI. Since webrick/rack were fully removed in Puppet 6 even without this capability, I'm going to move this to another epic and close PUP-3834 out.  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2018-12-10 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Fix Version/s: 
 PUP 6.1.0  
 
 
Fix Version/s: 
 PUP 6.y  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2018-12-10 Thread Kenn Hussey (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Kenn Hussey commented on  PUP-9055  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
 Josh Cooper this needs to land before EOD on Wednesday in order to make the cut for Puppet 6.1.  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2018-10-08 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Sprint: 
 Coremunity  Hopper  Grooming  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2018-09-26 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Fix Version/s: 
 PUP 6.y  
 
 
Fix Version/s: 
 PUP 6.1.0  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2018-09-24 Thread Henrik Lindberg (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Henrik Lindberg commented on  PUP-9055  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
 

Some cons of using the PAL approach: 
 
It must be run on the master (same as puppet master --compile)) 
 
 How is this a con if it is the same? Don't get this point. (Actually I do, but if it is to be a replacement for master --compile then REST isn't strictly needed is it? Running over REST also makes this less useful - see comment below for "catalog find"). 

 
binary content is handled differently for agents that don't support richdata (PSON vs Binary data type) 
 
 Easy to add "withPsonEncoding". I assume you want to control rich/not-rich - my sample had rich_data hardcoded. 

 
It doesn't support per-environment configuration (rich-data, manifest, modulepath, static catalogs) 
 
 It really should if PAL is called to use an existing environment on disk - like "production". Complicates things a lot though as I would rather not make PAL more dependent on the settings system. (This to be able to one day swap it out). My sample runs in a tmp env, it can naturally not have settings like that. 
 
 
It doesn't perform the same transformations that the compiler terminus does: 
 
removing virtual resources 
  
 
 I thought it did that. It should - if not its a bug. 
 
 
 
 
inlining static content 
adding server and trusted facts 
  
 
 It does use trusted facts, you have to give them in an actual node - the PAL part does not know things like how the node was obtained and how the fact where authenticated. I thought it did add the server facts already. If not, then that is a bug. 

Jira (PUP-9055) Compile catalogs on demand with user-specified facts

2018-09-24 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-9055  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
 Some cons of using the PAL approach: 
 
It must be run on the master (same as puppet master --compile)) 
binary content is handled differently for agents that don't support richdata (PSON vs Binary data type) 
It doesn't support per-environment configuration (rich-data, manifest, modulepath, static catalogs) 
It doesn't perform the same transformations that the compiler terminus does: 
 
removing virtual resources 
inlining static content 
adding server and trusted facts 
collecting performance metrics 
  
 Some cons of using the puppet catalog find approach: 
 
It writes facts to puppetdb as a side-effect 
Need to have a clientcert for the catalog being requested 
 One big problem is the ability to request a catalog in an arbitrary environment. In the PAL case, we can control that, however, it's misleading as the agent won't necessary be classified in that environment when it next runs. In the catalog find case, we'll use whatever environment the agent is classified for, which may be different than what we requested.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA 

Jira (PUP-9055) Compile catalogs on demand with user-specified facts

2018-09-18 Thread Henrik Lindberg (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Henrik Lindberg commented on  PUP-9055  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
 I think the easiest is to use the PAL since it now supports catalog compilation. Since master --compile was something I have been using a lot, I hacked something up using PAL when master --compile was dropped. Here is what I am using for small snippets at the moment:  
 
 
 
 
 Puppet.initialize_settings  
 
 
 Puppet[:rich_data]=true  
 
 
 result = Puppet::Pal.in_tmp_environment('production', modulepath: [], facts: {}) do |pal|  
 
 
   pal.with_catalog_compiler do |c|  
 
 
 c.evaluate_string(ARGV[0])  
 
 
 c.with_json_encoding { |encoder| encoder.encode }  
 
 
   end  
 
 
 end  
 
 
 puts result
  
 
 
 
  For example used as:  
 
 
 
 
 bundle exec ruby to_catalog.rb 'notify { test: message => "we have a catalog"}'
  
 
 
 
  Obviously the example 

Jira (PUP-9055) Compile catalogs on demand with user-specified facts

2018-09-13 Thread Kenn Hussey (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Kenn Hussey updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Kenn Hussey  
 
 
Flagged: 
 Impediment  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2018-09-10 Thread Rob Braden (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rob Braden updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Rob Braden  
 
 
Fix Version/s: 
 PUP 6.y  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2018-09-10 Thread Jorie Tappa (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jorie Tappa updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Jorie Tappa  
 
 
Fix Version/s: 
 PUP 6.0.0  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2018-09-10 Thread Jorie Tappa (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jorie Tappa updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Jorie Tappa  
 
 
Component/s: 
 DOCS  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2018-09-10 Thread Kenn Hussey (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Kenn Hussey updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Kenn Hussey  
 
 
Flagged: 
 Impediment  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2018-08-30 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-9055  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
 Adding a facts option to the catalog find action is a little bit harder than expected, because the application is implemented as a face, and find is one of the standard actions. Will need to research if it's easy to override the find behavior, though honestly the easiest thing might be to rewrite the useful parts of puppet catalog as a non-face application.  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2018-08-13 Thread Rob Braden (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rob Braden updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Rob Braden  
 
 
Sprint: 
 Platform Core Hopper  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2018-08-13 Thread Rob Braden (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rob Braden updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Rob Braden  
 
 
Sprint: 
 Platform Core Hopper  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2018-08-13 Thread Rob Braden (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rob Braden updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Rob Braden  
 
 
Sprint: 
 Platform Core  Grooming  Hopper  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2018-08-13 Thread Rob Braden (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rob Braden updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Rob Braden  
 
 
Sprint: 
 Platform Core Grooming  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2018-08-10 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Team: 
 Server Coremunity  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2018-08-10 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper commented on  PUP-9055  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
 Moving to PUP since it will be implemented either in the puppet catalog application or catalog-preview. If it's the latter, it will be moved to the MODULES project.  
 

  
 
 
 
 

 
 
 

 
 
 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-9055) Compile catalogs on demand with user-specified facts

2018-08-10 Thread Josh Cooper (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Josh Cooper updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Puppet /  PUP-9055  
 
 
  Compile catalogs on demand with user-specified facts   
 

  
 
 
 
 

 
Change By: 
 Josh Cooper  
 
 
Summary: 
 puppetserver should have the ability to compile Compile  catalogs on demand  with user-specified facts  
 

  
 
 
 
 

 
 
 

 
 
 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.