Jira (PUP-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Eric Thompson updated an issue Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Eric Thompson QA Status: Reviewed 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Eric Thompson updated an issue Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Eric Thompson QA Contact: KurtWall EricThompson 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Henrik Lindberg commented on PUP-1640 Re: Provide agnostic mechanism for Hiera Based Data in Modules Nicholas Fagerlund Added links to blog posts. 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Henrik Lindberg Component/s: DOCS 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Eric Thompson assigned an issue to Unassigned Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Eric Thompson Assignee: EricSorenson 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Steve Barlow updated an issue Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Steve Barlow Sprint: PlatformServer2014-11-26,PlatformServer2014-12-17,Language2015-01-21 ,Language2015-02-04 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title R.I.Pienaar commented on PUP-1640 Re: Provide agnostic mechanism for Hiera Based Data in Modules Glad it was not just me, was going to catch up with you in Ghent to work around what I tried, but I guess there's a bigger problem thanks Henrik Lindberg 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Henrik Lindberg commented on PUP-1640 Re: Provide agnostic mechanism for Hiera Based Data in Modules I started working on a sample, and ran into issues with delivering data providers in a separate module. Will log tickets for those. Currently it is possible to review the built in support though, but the feature as such is not ready for release due to the problems I found. 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Steve Barlow updated an issue Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Steve Barlow Sprint: PlatformServer2014-11-26,PlatformServer2014-12-17 ,Language2015-01-21 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Kylo Ginsberg updated an issue Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Kylo Ginsberg Scrum Team: Language 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Kurt Wall assigned an issue to Unassigned Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Kurt Wall Assignee: KurtWall Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Eric Sorenson assigned an issue to Eric Sorenson Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Eric Sorenson Assignee: EricSorenson Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Kurt Wall assigned an issue to Kurt Wall Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Kurt Wall Assignee: KurtWall Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Hailee Kenney commented on PUP-1640 Re: Provide agnostic mechanism for Hiera Based Data in Modules Merged into master in 74c07fb Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Hailee Kenney assigned an issue to Hailee Kenney Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Hailee Kenney Assignee: HaileeKenney Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Steve Barlow updated an issue Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Steve Barlow Sprint: PlatformServer2014-11-26 ,PlatformServer2014-12-17 Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Damon Atkins commented on PUP-1640 Re: Provide agnostic mechanism for Hiera Based Data in Modules We just want a function which looks up a name file in a module data dir. E.g. heira_local_data (relative file name, key). It does not have to do bindings for params. E.g.heira_local_data($osfamily,'packagename') Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Henrik Lindberg commented on PUP-1640 Re: Provide agnostic mechanism for Hiera Based Data in Modules Damon Atkins That is something slightly different. With the mechanism amde available for this ticket, you can just use the data function directly - it returns a hash. If you really want to have a local hiera, you need to wait for the hiera module-data plugin support and that a function like you suggest is included. If you want to try out the function support I can show you an example - do you have a small sample of what you want to do that I can base the example on? Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Henrik Lindberg commented on PUP-1640 Re: Provide agnostic mechanism for Hiera Based Data in Modules PR is now ready. (The main branch as mentioned in the document linked to this ticket has been rebased and has a rewritten history). Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Henrik Lindberg commented on PUP-1640 Re: Provide agnostic mechanism for Hiera Based Data in Modules I started on an implementation of what I first suggested, but I soon realized that the solution was still both hiera specific, and very specific to the particular way that the hiera data in modules module had to be implemented due to the way the resource implementation looks up the one and only hiera to get default data. Doing the implementation that way has several problems (cannot support directory environments well, and they are standard in Puppet 4.0.0), there are issues with file watching (not evicting caches for environments that come and go) etc. The implementation I came up with is agnostic, and it clearly separates the older API (left unchanged) with an extendable/plugin mechanism to lookup data in an environment, and in modules. A write up of this implementation is found here: https://docs.google.com/a/puppetlabs.com/document/d/1N5xnmhrC4v0EqXaxjneAzVjNvlAZA31O0y6KRLym7bE/edit# I believe that it should be possible to use this very simple API to implement a data provider for hiera both for environments and modules, but I realize that the hiera config manipulation API may still be needed due to hiera's singleton nature. It would be a positive thing to not have to do all that hiera patching - which may be possible since the new API differentiates between the global singleton hiera, a call to lookup for the environment, and a call to lookup in a module, and these providers can have their own lifecycle and associate caches with either the environment, or the compiler (depending on what is being cached). The work is available on branches as noted in the document - for people to play with and give feedback. Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- 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
Jira (PUP-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Henrik Lindberg assigned an issue to Henrik Lindberg Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Henrik Lindberg Assignee: HenrikLindberg Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Steve Barlow updated an issue Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Steve Barlow Sprint: PlatformServer2014- 12 11 - 10 26 Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Henrik Lindberg Sprint: PlatformServer2014-12-10 Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Henrik Lindberg Fix Version/s: PUP4.x Fix Version/s: PUP4.0.0 Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Patrick Morton commented on an issue Re: Provide agnostic mechanism for Hiera Based Data in Modules Peter wright claimed that, following the imposed reading to the other involvement, eden reactivated the variety ad 20 adderall 20 mg for a winning species. adderall withdrawal http://www.surveyanalytics.com//userimages/sub-2/2007589/3153260/29851518/7787453-29851518-stopadd37.html The united states has a guitar of three activity forms that extend actually. Add Comment Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules A mechanism is wanted that allows support for hiera based data in modules such that: * A module author that wants this feature makes the module depend on the hiera - 'data-in-modules' module. * The use of 'hiera-data-in-modules' does not monopolize how data/lookup and injection is performed at a user site * The solution does not make the now avail... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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
Jira (PUP-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Baptiste Grenier updated an issue Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Baptiste Grenier A ddA mechanismiswantedthatallowssupportforhierabaseddatainmodulessuchthat:*Amoduleauthorthatwantsthisfeaturemakesthemoduledependonthehiera-'data-in-modules'module.*Theuseof'hiera-data-in-modules'doesnotmonopolizehowdata/lookupandinjectionisperformedatausersite*Thesolutiondoesnotmakethenowavailable'hiera-data-in-modules'theonlypossibleimplementation.Thecurrentimplementationof'hiera-data-in-modules'performsmonkeypatchingtowirethesupportforanewtypeofhierabackend.Thiswasrequiredtomakethelogickickinearlyenough.Theideaistousethebinder/injectorsinceitkicksinearly.Twothingscanbebound:*HieraConfigManipulator-allowsmultiplemanipulatorstobebound,eachiscalledwithahashcontainingthehiera.yamlconfigandreturnsa(possibly)manipulatedconfigfile.*HiraConfigOrganizer-isresponsiblefordeterminingtheorderinwhichtheHieraConfigManipulatorsarecalled.InitiallytherewillbeanimplementationoftheHieraConfigOrganizerthatsimplycallsthemanipulatorsinanundefinedorder(thisbecausethereiscurrentlyonlyoneknownimplementationofhieramanipulator).Ifadefinedorderiswanted,itshouldbepossibletobindanarraywithnamesofthemanipulatorstodefinetheorderinwhichtheyarecalled.Thisdesignhasbeendiscussedwith[~ripienaar]Ideainabitmoredetail:{code}classHieraConfigManipulator#@param[Hash]hiera_config_hash#@returns[Hash]-amanipulatedhieraconfighashdefmanipulate(hiera_config_hash)#...endclassHieraConfigOrganizerdeforganize(*config_manipulators)order=injector.lookup('Array[String]','hiera::manipulators::order',[])manipulators_hash=lookup('Hash[Ruby[HieraConfigManipulator]]','hiera::manipulator')#processmanipulatorsend{code}Themodulethatprovidesamanipulatorneedstomakeabinding-i.e.roughlydothis:{code}Puppet::Bindings.newbindings('hiera_data_in_modules::default')dobind{name'hiera_data_in_modules'to_instance'Puppetx::MyModule::MyManipulator'in_multibind('puppetx::puppet::hiera_config_manipulators')}end{code}Thecodeaboveisjustaroughideaofhowthisisdone,detailstobeworkedoutwhileimplementing.Theideaistomakethisavailablein3.6.0whenusing---parserfuture-+--binder+andthatitbecomesstandardinPuppet4. Add Comment
Jira (PUP-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Henrik Lindberg ddA A mechanismiswantedthatallowssupportforhierabaseddatainmodulessuchthat:*Amoduleauthorthatwantsthisfeaturemakesthemoduledependonthehiera-'data-in-modules'module.*Theuseof'hiera-data-in-modules'doesnotmonopolizehowdata/lookupandinjectionisperformedatausersite*Thesolutiondoesnotmakethenowavailable'hiera-data-in-modules'theonlypossibleimplementation.Thecurrentimplementationof'hiera-data-in-modules'performsmonkeypatchingtowirethesupportforanewtypeofhierabackend.Thiswasrequiredtomakethelogickickinearlyenough.Theideaistousethebinder/injectorsinceitkicksinearly.Twothingscanbebound:*HieraConfigManipulator-allowsmultiplemanipulatorstobebound,eachiscalledwithahashcontainingthehiera.yamlconfigandreturnsa(possibly)manipulatedconfigfile.*HiraConfigOrganizer-isresponsiblefordeterminingtheorderinwhichtheHieraConfigManipulatorsarecalled.InitiallytherewillbeanimplementationoftheHieraConfigOrganizerthatsimplycallsthemanipulatorsinanundefinedorder(thisbecausethereiscurrentlyonlyoneknownimplementationofhieramanipulator).Ifadefinedorderiswanted,itshouldbepossibletobindanarraywithnamesofthemanipulatorstodefinetheorderinwhichtheyarecalled.Thisdesignhasbeendiscussedwith[~ripienaar]Ideainabitmoredetail:{code}classHieraConfigManipulator#@param[Hash]hiera_config_hash#@returns[Hash]-amanipulatedhieraconfighashdefmanipulate(hiera_config_hash)#...endclassHieraConfigOrganizerdeforganize(*config_manipulators)order=injector.lookup('Array[String]','hiera::manipulators::order',[])manipulators_hash=lookup('Hash[Ruby[HieraConfigManipulator]]','hiera::manipulator')#processmanipulatorsend{code}Themodulethatprovidesamanipulatorneedstomakeabinding-i.e.roughlydothis:{code}Puppet::Bindings.newbindings('hiera_data_in_modules::default')dobind{name'hiera_data_in_modules'to_instance'Puppetx::MyModule::MyManipulator'in_multibind('puppetx::puppet::hiera_config_manipulators')}end{code}Thecodeaboveisjustaroughideaofhowthisisdone,detailstobeworkedoutwhileimplementing.Theideaistomakethisavailablein3.6.0whenusing---parserfuture-+--binder+andthatitbecomesstandardinPuppet4. Add Comment
Jira (PUP-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Andy Parker updated an issue Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Andy Parker Fix Version/s: 3.7.0 Fix Version/s: 4.x Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Henrik Lindberg created an issue Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Issue Type: New Feature Assignee: Unassigned Created: 11/Feb/14 7:01 AM Fix Versions: 3.6.0 Priority: Normal Reporter: Henrik Lindberg A mechanism is wanted that allows support for hiera based data in modules such that: A module author that wants this feature makes the module depend on the hiera - 'data-in-modules' module. The use of 'hiera-data-in-modules' does not monopolize how data/lookup and injection is performed at a user site The solution does not make the now available 'hiera-data-in-modules' the only possible implementation. The current implementation of 'hiera-data-in-modules' performs monkey patching to wire the support for a new type of hiera backend. This was required to make the logic kick in early enough. The idea is to use the binder/injector since it kicks in early. Two things can be bound: HieraConfigManipulator - allows multiple
Jira (PUP-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Henrik Lindberg commented on an issue Re: Provide agnostic mechanism for Hiera Based Data in Modules ping Eric Sorenson - any additional input / comments ? Add Comment Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules A mechanism is wanted that allows support for hiera based data in modules such that: * A module author that wants this feature makes the module depend on the hiera - 'data-in-modules' module. * The use of 'hiera-data-in-modules' does not monopolize how data/lookup and injection is performed at a user site * The solution does not make the now avail... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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/groups/opt_out.
Jira (PUP-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title R.I.Pienaar commented on an issue Re: Provide agnostic mechanism for Hiera Based Data in Modules Hmm, I think I missed in our discussion that you wanted to limit the 3.6.x inclusion of this only to those who have --parser=future. Do not think that would be that useful Any chance we can come up with something that will work for everyone? I know this is old code and stuff, but for it to be useful it needs to work for everyone not just those willing to enable the experimental parser Add Comment Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules A mechanism is wanted that allows support for hiera based data in modules such that: * A module author that wants this feature makes the module depend on the hiera - 'data-in-modules' module. * The use of 'hiera-data-in-modules' does not monopolize how data/lookup and injection is performed at a user site * The solution does not make the now avail... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the Google Groups Puppet Bugs group. To unsubscribe from
Jira (PUP-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Jan rnstedt commented on an issue Re: Provide agnostic mechanism for Hiera Based Data in Modules I support R.I.Pienaar that it is needed even when running the old parser. Publish modules depending on the future parser will limit the collaboration on modules. Add Comment Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules A mechanism is wanted that allows support for hiera based data in modules such that: * A module author that wants this feature makes the module depend on the hiera - 'data-in-modules' module. * The use of 'hiera-data-in-modules' does not monopolize how data/lookup and injection is performed at a user site * The solution does not make the now avail... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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
Jira (PUP-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Henrik Lindberg commented on an issue Re: Provide agnostic mechanism for Hiera Based Data in Modules Oops, my mistake, the real requirement is not on --parser future but on rgen being installed since the bindings require this, and it has to be an opt in since making rgen required breaks people. Turning on --bindings has the same effect as --parser future in that respect. (To be clear, using --parser future is not required). Is it ok to require that users turn on --bindings and that they should have Rgen installed? (That is something I think we discussed, and then it sounded like it was ok). Add Comment Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules A mechanism is wanted that allows support for hiera based data in modules such that: * A module author that wants this feature makes the module depend on the hiera - 'data-in-modules' module. * The use of 'hiera-data-in-modules' does not monopolize how data/lookup and injection is performed at a user site * The solution does not make the now avail... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) --
Jira (PUP-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules Change By: Henrik Lindberg Amechanismiswantedthatallowssupportforhierabaseddatainmodulessuchthat:*Amoduleauthorthatwantsthisfeaturemakesthemoduledependonthehiera-'data-in-modules'module.*Theuseof'hiera-data-in-modules'doesnotmonopolizehowdata/lookupandinjectionisperformedatausersite*Thesolutiondoesnotmakethenowavailable'hiera-data-in-modules'theonlypossibleimplementation.Thecurrentimplementationof'hiera-data-in-modules'performsmonkeypatchingtowirethesupportforanewtypeofhierabackend.Thiswasrequiredtomakethelogickickinearlyenough.Theideaistousethebinder/injectorsinceitkicksinearly.Twothingscanbebound:*HieraConfigManipulator-allowsmultiplemanipulatorstobebound,eachiscalledwithahashcontainingthehiera.yamlconfigandreturnsa(possibly)manipulatedconfigfile.*HiraConfigOrganizer-isresponsiblefordeterminingtheorderinwhichtheHieraConfigManipulatorsarecalled.InitiallytherewillbeanimplementationoftheHieraConfigOrganizerthatsimplycallsthemanipulatorsinanundefinedorder(thisbecausethereiscurrentlyonlyoneknownimplementationofhieramanipulator).Ifadefinedorderiswanted,itshouldbepossibletobindanarraywithnamesofthemanipulatorstodefinetheorderinwhichtheyarecalled.Thisdesignhasbeendiscussedwith[~ripienaar]Ideainabitmoredetail:{code}classHieraConfigManipulator#@param[Hash]hiera_config_hash#@returns[Hash]-amanipulatedhieraconfighashdefmanipulate(hiera_config_hash)#...endclassHieraConfigOrganizerdeforganize(*config_manipulators)order=injector.lookup('Array[String]','hiera::manipulators::order',[])manipulators_hash=lookup('Hash[Ruby[HieraConfigManipulator]]','hiera::manipulator')#processmanipulatorsend{code}Themodulethatprovidesamanipulatorneedstomakeabinding-i.e.roughlydothis:{code}Puppet::Bindings.newbindings('hiera_data_in_modules::default')dobind{name'hiera_data_in_modules'to_instance'Puppetx::MyModule::MyManipulator'in_multibind('puppetx::puppet::hiera_config_manipulators')}end{code}Thecodeaboveisjustaroughideaofhowthisisdone,detailstobeworkedoutwhileimplementing.Theideaistomakethisavailablein3.6.0whenusing-- - parserfuture -+--binder+ andthatitbecomesstandardinPuppet4. Add Comment
Jira (PUP-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title R.I.Pienaar commented on an issue Re: Provide agnostic mechanism for Hiera Based Data in Modules Sure - in hindsight the mere fact that you're talking about bindings and such should have been hint enough to me that this would be a requirement. The way I think of it, for this to be useful we might have a feature in the module system that says 'requires puppet version x' we're unlikely to have a feature that says 'requires puppet version x with y flag enabled'. Similarly if people want to rely on this feature in their module, the first statement is one they could acceptably document but the 2nd becomes too hard to really maintain the feeling of having written a reusable module. Add Comment Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules A mechanism is wanted that allows support for hiera based data in modules such that: * A module author that wants this feature makes the module depend on the hiera - 'data-in-modules' module. * The use of 'hiera-data-in-modules' does not monopolize how data/lookup and injection is performed at a user site * The solution does not make the now avail... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)
Jira (PUP-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title R.I.Pienaar commented on an issue Re: Provide agnostic mechanism for Hiera Based Data in Modules Hmm, can make the same argument 'must have puppet version x with gem y' isn't that different from 'must have puppet version x with flag y' (since that flag requires the gem). I get why you're reluctant, just saying the desired user experience is that for a certain version of puppet it just works Add Comment Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules A mechanism is wanted that allows support for hiera based data in modules such that: * A module author that wants this feature makes the module depend on the hiera - 'data-in-modules' module. * The use of 'hiera-data-in-modules' does not monopolize how data/lookup and injection is performed at a user site * The solution does not make the now avail... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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
Jira (PUP-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Henrik Lindberg commented on an issue Re: Provide agnostic mechanism for Hiera Based Data in Modules I read that as dependency on rgen gem is ok, but not adding the --binder flag. Is that what you meant? Will discuss with others if it is ok to automatically turn on binder if the rgen gem is available. That would be the simplest solution. I want to avoid having to invent yet another setting/ early boot config thing that is special purpose. Add Comment Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules A mechanism is wanted that allows support for hiera based data in modules such that: * A module author that wants this feature makes the module depend on the hiera - 'data-in-modules' module. * The use of 'hiera-data-in-modules' does not monopolize how data/lookup and injection is performed at a user site * The solution does not make the now avail... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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
Jira (PUP-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Henrik Lindberg commented on an issue Re: Provide agnostic mechanism for Hiera Based Data in Modules The use of rgen can probably be expressed as a required feature - not sure if that can be expressed in modules? There are other such cases in the indirector where certain formats are only available if an extra gem is installed. I do understand the desired user experience - I also like when things just works , and I am not dead-set on this being done one way or the other. Lets just talk about this until we have a decent solution... Add Comment Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules A mechanism is wanted that allows support for hiera based data in modules such that: * A module author that wants this feature makes the module depend on the hiera - 'data-in-modules' module. * The use of 'hiera-data-in-modules' does not monopolize how data/lookup and injection is performed at a user site * The solution does not make the now avail... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- You received this message because you are subscribed to the
Jira (PUP-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title R.I.Pienaar commented on an issue Re: Provide agnostic mechanism for Hiera Based Data in Modules Kewl, thanks. When I was looking at ways to plug into this I found several existing plugin systems. One seems to be in place to allow the PE CA cert count checks to function. It was tantalisingly close to what I needed but could do with just a little bit more - iirc I think if it just looked in the module libdirs rather than just the normal ruby libdirs for a named file it would have worked fine. Could we add a slight enhancement to that for 3.x nodes and I drop one file in that patches hiera like I do today. Once 4 is out we do a proper thing as you proposed and then I add hooks in for that in the module. This way the fix is small to a existing bit of code and it has a natural EOL built into it as it would be 3.x only? Now I am not 100% up to scratch with that plugin system and the code paths there but it's an option that might be worth exploring? Add Comment Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules A mechanism is wanted that allows support for hiera based data in modules such that: * A module author that wants this feature makes the module depend on the hiera - 'data-in-modules' module. * The use of 'hiera-data-in-modules' does not monopolize how data/lookup and injection is performed at a user site * The solution does not make the now avail... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)
Jira (PUP-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title Henrik Lindberg commented on an issue Re: Provide agnostic mechanism for Hiera Based Data in Modules We are working on the overall boot of the puppet runtime and towards having only one plugin mechanism. We introduced something known as the Context and it has a simplified kind of injector in the 3.x branch. I think I rather make use of that and more explicitly do what the binder would do - at least with respect to the class that gets the configuration. The parts of the binder that deals with loading can probably still be used as that is not tied to Rgen IIRC. That way we would replace the explicit and very specific call to say load one manipulator with a more general solution. The module with the hiera data in modules will have to change for 4.0 as the bindings then needs to be there. I would probably implement the proposed solution based on the binder first - and then make it work without the binder being present. (The binder based implementation is trivial - is is pretty much just the code that I posted as a rough outline). Add Comment Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules A mechanism is wanted that allows support for hiera based data in modules such that: * A module author that wants this feature makes the module depend on the hiera - 'data-in-modules' module. * The use of 'hiera-data-in-modules' does not monopolize how data/lookup and injection is performed at a user site * The solution does not make the now avail... This message was sent by
Jira (PUP-1640) Provide agnostic mechanism for Hiera Based Data in Modules
Title: Message Title R.I.Pienaar commented on an issue Re: Provide agnostic mechanism for Hiera Based Data in Modules ok- not aware of the context stuff but this sounds like the right direction Add Comment Puppet / PUP-1640 Provide agnostic mechanism for Hiera Based Data in Modules A mechanism is wanted that allows support for hiera based data in modules such that: * A module author that wants this feature makes the module depend on the hiera - 'data-in-modules' module. * The use of 'hiera-data-in-modules' does not monopolize how data/lookup and injection is performed at a user site * The solution does not make the now avail... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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/groups/opt_out.