Jira (PUP-4182) add a flag to get JSON output from puppet resource
Title: Message Title Josh Cooper updated an issue Puppet / PUP-4182 add a flag to get JSON output from puppet resource Change By: Josh Cooper Labels: Easy Add Comment This message was sent by Atlassian Jira (v8.20.11#820011-sha1:0629dd8) -- 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.71139.1426089626000.49656.1666235580032%40Atlassian.JIRA.
Jira (PUP-4182) add a flag to get JSON output from puppet resource
Title: Message Title Josh Cooper commented on PUP-4182 Re: add a flag to get JSON output from puppet resource I would really like to get JSON out of puppet resource 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-4182) add a flag to get JSON output from puppet resource
Title: Message Title Josh Cooper updated an issue Puppet / PUP-4182 add a flag to get JSON output from puppet resource Change By: Josh Cooper Team: Puppet Developer Experience 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-4182) add a flag to get JSON output from puppet resource
<<< text/html; charset="UTF-8": Unrecognized >>>
Jira (PUP-4182) add a flag to get JSON output from puppet resource
Title: Message Title Jeremy Adams commented on PUP-4182 Re: add a flag to get JSON output from puppet resource Larissa Lane FYI, we were wrestling with this earlier today, trying to get a list of ec2_instance resources with certain tags. Turns out that YAML output is somewhat broken and thus workarounds don't work. Also, modern tools are expected to have JSON output option. https://tickets.puppetlabs.com/browse/PUP-7808 https://ask.puppet.com/question/4847/can-puppet-resource-user-answer-json/ Add Comment This message was sent by Atlassian JIRA (v7.0.2#70111-sha1:88534db) -- 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-4182) add a flag to get JSON output from puppet resource
Title: Message Title Daniel Dreier commented on PUP-4182 Re: add a flag to get JSON output from puppet resource The really compelling thing about JSON here is basically the jq CLI tool; I'm not aware of a similarly good tool for working with YAML. That said, I don't have an immediate use case for this so it's probably not worth prioritizing. 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-4182) add a flag to get JSON output from puppet resource
Title: Message Title Moses Mendoza updated an issue Puppet / PUP-4182 add a flag to get JSON output from puppet resource Change By: Moses Mendoza Labels: 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-4182) add a flag to get JSON output from puppet resource
Title: Message Title Gareth Rushgrove commented on PUP-4182 Re: add a flag to get JSON output from puppet resource Note that this already works for YAML, ie. puppet resource package --to_yaml There are lots of oneliners for converting yaml to json as well: http://www.commandlinefu.com/commands/view/12218/convert-yaml-to-json 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-4182) add a flag to get JSON output from puppet resource
Title: Message Title Moses Mendoza commented on PUP-4182 Re: add a flag to get JSON output from puppet resource Daniel Dreier can you re-open if this doesn't work for you? 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-4182) add a flag to get JSON output from puppet resource
Title: Message Title Moses Mendoza commented on PUP-4182 Re: add a flag to get JSON output from puppet resource Daniel Dreier is that sufficient? 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-4182) add a flag to get JSON output from puppet resource
Title: Message Title Moses Mendoza commented on PUP-4182 Re: add a flag to get JSON output from puppet resource `puppet resource` currently has a `--to_yaml` option that outputs resource in yaml. 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-4182) add a flag to get JSON output from puppet resource
Title: Message Title Doug Rosser updated an issue Puppet / PUP-4182 add a flag to get JSON output from puppet resource Change By: Doug Rosser Labels: 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-4182) add a flag to get JSON output from puppet resource
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-4182 add a flag to get JSON output from puppet resource Change By: Henrik Lindberg Team: Puppet Developer Support 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-4182) add a flag to get JSON output from puppet resource
Title: Message Title Daniel Dreier created an issue Puppet / PUP-4182 add a flag to get JSON output from puppet resource Issue Type: New Feature Assignee: Unassigned Created: 2015/03/11 9:00 AM Priority: Normal Reporter: Daniel Dreier As I discussed with Henrik Lindberg, I'd like an option to get JSON (and perhaps YAML) output from the puppet resource command. I can see two use cases: 1) For YAML, ability to go directly from existing puppet resources to YAML entries I can put into hiera to feed into create_resource 2) for JSON, as an extension point to use puppet in the context of shell scripts, python fabric scripts, etc. For example, using the puppetlabs-aws module, you could loop over the output of a puppet resource command listing all ec2_instances, use jq in bash (or python json parsing, etc) to select instances that lack appropriate tags, modify the JSON to add the appropriate tags, then feed that back into puppet apply to update the resources. Ideally, I'd like some ability to pipe JSON into a puppet resource to set parameters, as well, but that's less important because I can use puppet functions in a puppet apply. Add Comment
Jira (PUP-4182) add a flag to get JSON output from puppet resource
Title: Message Title Gareth Rushgrove commented on PUP-4182 Re: add a flag to get JSON output from puppet resource Just a note that I'd love to see this too. I think for managing environment/remote resources puppet resource is actually quite a killer feature. The AWS module is hugely improved by having a Puppet native command line interface. I would imagine other cloud-provider resources, and some of the other ideas like Kubernetes, Docker Swarm, Mesos Aurora/Marathon/Chronos, will see the same thing too. Add Comment This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-4182) add a flag to get JSON output from puppet resource
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-4182 add a flag to get JSON output from puppet resource Change By: Henrik Lindberg Scrum Team: Language Story Points: 3 Add Comment This message was sent by Atlassian JIRA (v6.3.10#6340-sha1:7ea293a) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.