Jira (PUP-7808) puppet resource <...> --to_yaml mishandles structured resource values
Title: Message Title Josh Cooper commented on PUP-7808 Re: puppet resource <...> --to_yaml mishandles structured resource values Thanks Iain Buclaw. I filed a new ticket PUP-10105. Can you comment how you're are generating that output on the new ticket, including which version of the mysql module you're using? 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.203387.1501606043000.2823.1571239080285%40Atlassian.JIRA.
Jira (PUP-7808) puppet resource <...> --to_yaml mishandles structured resource values
Title: Message Title Iain Buclaw commented on PUP-7808 Re: puppet resource <...> --to_yaml mishandles structured resource values This change caused a regression. The option --to_yaml no longer generates syntactically valid YAML. 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.203387.1501606043000.2737.1571236560563%40Atlassian.JIRA.
Jira (PUP-7808) puppet resource <...> --to_yaml mishandles structured resource values
Title: Message Title Jean Bond updated an issue Puppet / PUP-7808 puppet resource <...> --to_yaml mishandles structured resource values Change By: Jean Bond 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.203387.1501606043000.120190.1569864060355%40Atlassian.JIRA.
Jira (PUP-7808) puppet resource <...> --to_yaml mishandles structured resource values
Title: Message Title Josh Cooper updated an issue Puppet / PUP-7808 puppet resource <...> --to_yaml mishandles structured resource values Change By: Josh Cooper Release Notes Summary: The "puppet resource --to_yaml" and "puppet device --to_yaml" did not generate valid YAML when the output contained special characters such as a single quote. Release Notes: Bug Fix 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.203387.1501606043000.101506.1568738580527%40Atlassian.JIRA.
Jira (PUP-7808) puppet resource <...> --to_yaml mishandles structured resource values
Title: Message Title Josh Cooper commented on PUP-7808 Re: puppet resource <...> --to_yaml mishandles structured resource values Merged to 5.5.x in https://github.com/puppetlabs/puppet/commit/0cfcb63c4599ee50e1a664c850e46d281f2bf68d 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.203387.1501606043000.98755.1568426820799%40Atlassian.JIRA.
Jira (PUP-7808) puppet resource <...> --to_yaml mishandles structured resource values
Title: Message Title Josh Cooper updated an issue Puppet / PUP-7808 puppet resource <...> --to_yaml mishandles structured resource values Change By: Josh Cooper Fix Version/s: PUP 6.4.z Fix Version/s: PUP 6.10.0 Fix Version/s: PUP 6.4.4 Fix Version/s: PUP 5.5.17 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 view this discussion on the web visit https://groups.google.co
Jira (PUP-7808) puppet resource <...> --to_yaml mishandles structured resource values
Title: Message Title Josh Cooper assigned an issue to Josh Cooper Puppet / PUP-7808 puppet resource <...> --to_yaml mishandles structured resource values 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.203387.1501606043000.98405.1568410502422%40Atlassian.JIRA.
Jira (PUP-7808) puppet resource <...> --to_yaml mishandles structured resource values
Title: Message Title Josh Cooper updated an issue Puppet / PUP-7808 puppet resource <...> --to_yaml mishandles structured resource values 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.203387.1501606043000.98407.1568410502435%40Atlassian.JIRA.
Jira (PUP-7808) puppet resource <...> --to_yaml mishandles structured resource values
Title: Message Title Josh Cooper updated an issue Puppet / PUP-7808 puppet resource <...> --to_yaml mishandles structured resource values Change By: Josh Cooper Fix Version/s: PUP 6.4.z 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.203387.1501606043000.94720.1568238121015%40Atlassian.JIRA.
Jira (PUP-7808) puppet resource <...> --to_yaml mishandles structured resource values
Title: Message Title Steve Marlow commented on PUP-7808 Re: puppet resource <...> --to_yaml mishandles structured resource values I have also been seeing this with a client. They're using `puppet resource pe_node_group` on PE which outputs: pe_node_group: PE Certificate Authority: ensure : 'present' classes : { 'puppet_enterprise::profile::certificate_authority' => { } } The classes parameter is a Hash internally. YAML implementations can't parse the above output. As a workaround we found that a simple s/=>/:/g fixes the problem, but obviously that's not ideal. The --to_yaml option in Puppet::Application::Resource ends up invoking Puppet::Resource.to_hierayaml. This function outputs the YAML with the following code: # In Puppet::Resource.to_hierayaml ... attributes = attr.collect { |k|
Jira (PUP-7808) puppet resource <...> --to_yaml mishandles structured resource values
Title: Message Title Craig Castle-Mead commented on PUP-7808 Re: puppet resource <...> --to_yaml mishandles structured resource values I've been working through converting a brownfield AWS environment to Puppet managed and there's a significant amount of nested json coming through when using the --to_yaml (-y) flag with puppet resource. Having the output correctly formatted at all layers in yaml would be a huge help. 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-7808) puppet resource <...> --to_yaml mishandles structured resource values
Title: Message Title Josh Cooper updated an issue Puppet / PUP-7808 puppet resource <...> --to_yaml mishandles structured resource values Change By: Josh Cooper Team: Platform Core 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-7808) puppet resource <...> --to_yaml mishandles structured resource values
Title: Message Title Edwin Wiles commented on PUP-7808 Re: puppet resource <...> --to_yaml mishandles structured resource values The gist links are identical? What I'm getting from a custom resource is the following, which is a reasonable translation into a .pp format. dpw_wsendpointremoterewriterules { 'BAR:FOO_WEBSERVICE': {{ ensure => 'present',}} {{ domain => 'BAR',}} {{ rules => [}} {{ {}} {{ 'ServicePortMatchRegexp' => '^{https://foo/webservice/}barGet$',}} {{ 'RemoteEndpointProtocol' => 'https',}} {{ 'RemoteEndpointHostname' => 'mock',}} {{ 'RemoteEndpointPort' => 8443,}} {{ 'RemoteEndpointURI' => '/webservice/bar.asmx',}} {{ 'RemoteMQQM' => '',}} {{ 'RemoteTibcoEMS' => '',}} {{ 'RemoteWebSphereJMS' => ''}} {{ }, ...}} But when I specify --to_yaml, I'm getting this half/n/half translation. The rules, which are an array of hashes are not being translated correctly. dpw_wsendpointremoterewriterules: BAR:FOO_WEBSERVICE: ensure: 'present' domain: 'BAR' rules : [ { 'ServicePortMatchRegexp' => '^{https://foo/webservice/}barGet$', 'RemoteEndpointProtocol' => 'https', 'RemoteEndpointHostname' => 'mock', 'RemoteEndpointPort' => 8443, 'RemoteEndpointURI' => '/webservice/bar.asmx', 'RemoteMQQM' => '', 'RemoteTibcoEMS' => '', 'RemoteWebSphereJMS' => '' }, ... I would instead expect to see the following: dpw_wsendpointremoterewriterules: BAR:FOO_WEBSERVICE: ensure: 'present' domain: 'BAR' rules: - 'ServicePortMatchRegexp' => '^{https://foo/webservice/}barGet$', 'RemoteEndpointProtocol' => 'https', 'RemoteEndpointHostname' => 'mock', 'RemoteEndpointPort' => 8443, 'RemoteEndpointURI' => '/webservice/bar.asmx', 'RemoteMQQM' => '', 'RemoteTibcoEMS' => '', 'RemoteWebSphereJMS' => '' - ... Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Jira (PUP-7808) puppet resource <...> --to_yaml mishandles structured resource values
Title: Message Title Josh Cooper updated an issue Puppet / PUP-7808 puppet resource <...> --to_yaml mishandles structured resource values Change By: Josh Cooper Team: Platform Core 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-7808) puppet resource <...> --to_yaml mishandles structured resource values
Title: Message Title Wyatt Alt created an issue Puppet / PUP-7808 puppet resource <...> --to_yaml mishandles structured resource values Issue Type: Bug Assignee: Unassigned Created: 2017/08/01 9:47 AM Priority: Normal Reporter: Wyatt Alt I'm specifically experiencing this with puppet resource ec2_instance --to_yaml using the puppetlabs-aws module from the forge. The module itself doesn't seem to be touching any yaml related stuff. Without the yaml flag I get this data: https://gist.github.com/wkalt/a97a42b84b1afc3cd23236ea32eed3fa and using the yaml flag I get https://gist.github.com/wkalt/a97a42b84b1afc3cd23236ea32eed3fa . Note that the former has ruby maps embedded, which is the bug.