Jira (PUP-10038) Add Report HTTP service
Title: Message Title Josh Cooper updated an issue Puppet / PUP-10038 Add Report HTTP service Change By: Josh Cooper Release Notes: Enhancement Not Needed 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.326131.1569367572000.18745.1578609300427%40Atlassian.JIRA.
Jira (PUP-10038) Add Report HTTP service
Title: Message Title Josh Cooper commented on PUP-10038 Re: Add Report HTTP service Passed CI in 605187329a 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.326131.1569367572000.17680.1578541320135%40Atlassian.JIRA.
Jira (PUP-10038) Add Report HTTP service
Title: Message Title Melissa Stone updated an issue Puppet / PUP-10038 Add Report HTTP service Change By: Melissa Stone Release Notes Summary: The new HTTP code now has a report service it can use for submitting reports 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.326131.1569367572000.14580.1578418140407%40Atlassian.JIRA.
Jira (PUP-10038) Add Report HTTP service
Title: Message Title Josh Cooper updated an issue Puppet / PUP-10038 Add Report HTTP service Change By: Josh Cooper Fix Version/s: PUP 6.12.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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.326131.1569367572000.14267.1578409800320%40Atlassian.JIRA.
Jira (PUP-10038) Add Report HTTP service
Title: Message Title Josh Cooper commented on PUP-10038 Re: Add Report HTTP service Merged to master in https://github.com/puppetlabs/puppet/commit/539749b170efce94f3a781ed186cdfdc5c4d2053 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.326131.1569367572000.14269.1578409800371%40Atlassian.JIRA.
Jira (PUP-10038) Add Report HTTP service
Title: Message Title Melissa Stone assigned an issue to Melissa Stone Puppet / PUP-10038 Add Report HTTP service Change By: Melissa Stone Assignee: Melissa Stone 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.326131.1569367572000.9929.1577731860619%40Atlassian.JIRA.
Jira (PUP-10038) Add Report HTTP service
Title: Message Title Melissa Stone updated an issue Puppet / PUP-10038 Add Report HTTP service Change By: Melissa Stone Sprint: Coremunity Hopper 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.326131.1569367572000.9927.1577731860531%40Atlassian.JIRA.
Jira (PUP-10038) Add Report HTTP service
Title: Message Title Josh Cooper updated an issue Puppet / PUP-10038 Add Report HTTP service Change By: Josh Cooper Implement a report service with support for the following method:{noformat}put_report(name, report, environment: , :ssl_context: nil ){noformat}* Submit the report to {{/puppet/v3/report/}}* Include Require the {{environment}} argument and send it as an HTTP query parameter* Serialize report via Use {{ Puppet[:preferred_serialization_format]}} to select the formatter:{code:ruby}formatter = Puppet::Network::FormatHandler.format_for(Puppet[:preferred_serialization_format]){code}* Set the request body to the serialized report : {{formatter .render (report) }} , and pass * Set the {{Content- Length}} to the number of bytes in the serialized report* Set the {{Content- Type}} as header to {{ report formatter .mime}}* Set the {{ Accept }} header to to the mime types that we support for the Report* Accept response content as {{application/json, application/x-msgpack, text/pson}}. See For example: { { code:ruby}model = Puppet:: Indirector Transaction :: Rest#headers Reportmodel.supported_formats.reject { |f| f == :yaml } } for how this list is generated for each .map { |f| model .get_format ( Report, Catalog, etc f ). mime } {code} * If we fail to send the report, the server version is < 5 and the current serialization format is not pson, then emit an error that {{preferred_serialization_format}} should be set to {{pson}}.See puppet/indirector/report/rest.rb Add Comment This message
Jira (PUP-10038) Add Report HTTP service
Title: Message Title Josh Cooper updated an issue Puppet / PUP-10038 Add Report HTTP service Change By: Josh Cooper Implement a report service with support for the following method :{noformat} PUT put_report(name, report, environment:, :ssl_context: nil){noformat}* Submit the report to {{ /puppet/v3/report/< certname name > {noformat } } * Include the report's {{ environment as a }} query parameter* Serialize request body as JSON with report via {{ report.render}}, and pass {{ Content-Type : application/json }} * Use as {{ puppet/v3 report.mime }} prefix * Accept response content as {{application/json, application/x-msgpack, text/pson}} . See {{Puppet::Indirector::Rest#headers}} for how this list is generated for each model (Report, Catalog, etc). * If we fail to send the report, the server version is < 5 and the current serialization format is not pson, then emit an error that {{preferred_serialization_format}} should be set to {{pson}}. See puppet/indirector/report/rest.rb Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Jira (PUP-10038) Add Report HTTP service
Title: Message Title Melissa Stone updated an issue Puppet / PUP-10038 Add Report HTTP service Change By: Melissa Stone Sprint: Coremunity 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.326131.1569367572000.39505.1574205300287%40Atlassian.JIRA.
Jira (PUP-10038) Add Report HTTP service
Title: Message Title Josh Cooper updated an issue Puppet / PUP-10038 Add Report HTTP service Change By: Josh Cooper Implement a report service with support for the following:{noformat}PUT /puppet/v3/ report / {noformat}* Include the report's environment as a query parameter* Serialize request body as JSON with {{Content-Type: application/json}}* Use {{puppet/v3}} prefix* Accept response content as {{application/json, application/x-msgpack, text/pson}}* If we fail to send the report, the server version is < 5 and the current serialization format is not pson, then emit an error that {{preferred_serialization_format}} should be set to {{pson}}. 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
Jira (PUP-10038) Add Report HTTP service
Title: Message Title Josh Cooper created an issue Puppet / PUP-10038 Add Report HTTP service Issue Type: Improvement Assignee: Unassigned Created: 2019/09/24 4:26 PM Priority: Normal Reporter: Josh Cooper Implement a report service with support for the following: PUT report Include the report's environment as a query parameter Serialize request body as JSON with Content-Type: application/json Use puppet/v3 prefix Accept response content as application/json, application/x-msgpack, text/pson If we fail to send the report, the server version is < 5 and the current serialization format is not pson, then emit an error that preferred_serialization_format should be set to pson.