Jira (PUP-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Sean Griffin assigned an issue to Unassigned Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Change By: Sean Griffin Assignee: Sean Griffin Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Sean Griffin updated an issue Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Change By: Sean Griffin Release Notes Summary: Not needed. Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Sean Griffin updated an issue Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Change By: Sean Griffin Attachment: pup-6220-manifest Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Sean Griffin commented on PUP-6220 Re: Add TypeSet type to the Puppet Type System Tested on Centos-7 using puppet checkin sha a2b42b44c791c5b434183a6db2c4dbf35de9c65b, master. Applied attached setup manifest to configure system as suggested in the description. root@i1cmtrtj3j3iq1y puppet]# puppet apply ~/04-pup-6220-manifest Notice: Compiled catalog for i1cmtrtj3j3iq1y.delivery.puppetlabs.net in environment production in 0.06 seconds Notice: /Stage[main]/Main/File[/etc/puppetlabs/code/environments/production/modules/hello/types/bar.pp]/content: content changed '{md5}24bc1df3a5a618f02e0d4d6abd8bcc7b' to '{md5}77e3dc5fabde05afb02fd673173a6db4' Notice: Applied catalog in 0.06 seconds [root@i1cmtrtj3j3iq1y puppet]# puppet apply /etc/puppetlabs/code/environments/production/modules/../manifests/site.pp Notice: Scope(Class[Hello]): hello from production/hello Notice: Scope(Class[Hello]): TypeSet[{pcore_version => '1.0.0', name_authority => 'http://puppet.com/2016.1/runtime', name => 'Hello::Foo', version => '0.1.0', types => {MyInt => Integer[80, 90], NegativeInt => Hello::Bar::Negative}, references => {Bar => {'name' => 'Hello::Bar', 'version_range' => '0.x'}}}] Notice: Scope(Class[Hello]): true Notice: Compiled catalog for i1cmtrtj3j3iq1y.delivery.puppetlabs.net in environment production in 0.10 seconds
Jira (PUP-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Sean Griffin assigned an issue to Sean Griffin Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Change By: Sean Griffin Assignee: qa Sean Griffin Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Sean Griffin assigned an issue to qa Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Change By: Sean Griffin Status: Ready for CI Test Assignee: qa Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Steve Barlow updated an issue Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Change By: Steve Barlow Sprint: Language 2016-05-04, Language 2016-06-01 , Language 2016-06-15 Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Change By: Henrik Lindberg Acceptance Criteria: That the examples in the description works. (This is part of a larger feature and the set of directly useful features in the puppet language is at present limited). Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Change By: Henrik Lindberg A new {{TypeSet}} type, that groups a set of {{Object}} and {{TypeAlias}} types into one unit should be added to the Puppet Type system. The {{TypeSet}} is similar to a Ruby module or Java package in that it describes a namespace.The {{TypeSet}} should have the following attributes:{code}namespace_authority => URI # The namespace authority namespace_prefix => QRef # The namespace prefix for all contained objects version => SemVer # A semver versionname => TypeName # Colloquial fully qualified name for the type set. Typically same as last segment in namespace_prefix types => Hash[QRef, Type] # The types contained in the TypeSetreferences => Array Hash [ QRef, TypeSetReference]{code}A TypeSetReference has the following attributes{code}namespace_authority => URI # The namespace authority namespace_prefix name => QRef # The namespace prefix for all contained objectsversion_range => SemVerRange # SemVer version range{code}The {{namespace_authority}} is optional and will default to the {{namespace_authority}} used when the typeset is referenced.The {{ namespace_prefix name }} will be used by the loader to locate a {{TypeSet}} type. It can be left out from the actual declaration and instead assigned using an alias-like assignment, e.g.{code:puppet}type Some::Module = TypeSet[...]{code}will create and bind a {{TypeSet}} with the namespace_prefix "Some::Module" that will be found by the loader using the name "Some::Module".Types contained in the same {{TypeSet}} must reference each other using names relative to the type set's {{ namespace_prefix name }}, thus making the set as a whole relocatable (it is illegal to reference types using an initial '::' in the name). Example:{code:puppet}# In /foo/types/foo.pptype Foo::Foo = TypeSet[{ pcore_version => '1.0.0', version => '0.1.0', name => 'Foo::Foo', references => {Bar => { name => 'Foo::Bar', version_range => '0.x' } }, types => {MyInt => Integer[80,90],NegativeInt => Bar::Negative,}}]# In /foo/types/bar.pptype Foo::Bar = TypeSet[{ pcore_version => '1.0.0', version => '0.1.0', name => 'Foo::Bar', types => {MyInt => Integer[80,90],Negative => Integer[default, -1],Over100 => Integer[100]}}]{code}The types in Foo, can then be used by first referencing the typeset itself (will change later), and then using the types in the type set.{code}puppet apply -e 'notice Foo::Foo; notice( -4 =~ Foo::Foo::NegativeInt)'Notice: Scope(Class[main]): TypeSet[{pcore_version => '1.1.0', name_authority => 'http://puppet.com/2016.1/runtime', name => 'Foo::Foo', version => '0.1.0', types => {MyInt => Integer[80, 90], NegativeInt => Foo::Bar::Negative}, references => {Bar => {'name' => 'Foo::Bar', 'version_range' => '0.x'}}}]Notice: Scope(Class[main]): true{code}
Jira (PUP-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Henrik Lindberg assigned an issue to Unassigned Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Change By: Henrik Lindberg Assignee: Henrik Lindberg Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Henrik Lindberg commented on PUP-6220 Re: Add TypeSet type to the Puppet Type System merged to master at: 79c5939 Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Henrik Lindberg assigned an issue to Henrik Lindberg Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Change By: Henrik Lindberg Assignee: Henrik Lindberg Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Sean Griffin updated an issue Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Change By: Sean Griffin QA Risk Assessment: Medium QA Status: Reviewed Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Steve Barlow updated an issue Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Change By: Steve Barlow Fix Version/s: PUP 4.5.0 Fix Version/s: PUP 4.6.0 Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Change By: Henrik Lindberg Sprint: Language 2016-05-04, Language 2016 2106 - 05 06 - 18 01 Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Steve Barlow updated an issue Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Change By: Steve Barlow Sprint: Language 2016-05-04 , Language 2016-05-18 Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Change By: Henrik Lindberg A new {{TypeSet}} type, that groups a set of {{Object}} and {{TypeAlias}} types into one unit should be added to the Puppet Type system. The {{TypeSet}} is similar to a Ruby module or Java package in that it describes a namespace.The {{TypeSet}} should have the following attributes:{code}namespace_authority => URI # The namespace authoritynamespace_prefix => QRef # The namespace prefix for all contained objectsversion => SemVer # A semver versionname => TypeName # Colloquial name for the type set. Typically same as last segment in namespace_prefixtypes => Hash[QRef, Type] # The types contained in the TypeSetreferences => Array[TypeSetReference]{code}A TypeSetReference has the following attributes{code}namespace_authority => URI # The namespace authoritynamespace_prefix => QRef # The namespace prefix for all contained objectsversion_range => SemVerRange # SemVer version range{code}The {{namespace_authority}} is optional and will default to the {{namespace_authority}} used when the typeset is referenced.The {{namespace_prefix}} will be used by the loader to locate a {{TypeSet}} type. It can be left out from the actual declaration and instead assigned using an alias-like assignment, e.g.{code:puppet}type Some::Module = TypeSet[...]{code}will create and bind a {{TypeSet}} with the namespace_prefix "Some::Module" that will be found by the loader using the name "Some::Module".Types contained in the same {{TypeSet}} can (and should) must reference each other using names relative to the {{namespace_prefix}}, thus making the set as a whole relocatable (it is illegal to reference types using an initial '::' in the name) . Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Jira (PUP-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Henrik Lindberg commented on PUP-6220 Re: Add TypeSet type to the Puppet Type System Thomas Hallgren The description does not have the pcore URI equivalent entry. Should a reference to a pcore version in references be required, or should it be a separate attribute. We really do want it to be an open ended definition (someone else may want to experiment with a version of pcore - so a full reference is needed. Since they may call it something else than pcore, we cannot find it in general among the references - this motivates that it is a separate attribute - what is the meta model of this type set"). Since it should be a reference, suggest we add that as: pcore_reference => { namespace_prefix = Puppet::Pcore, version_range => "2016.1" } I don't mind keeping it as pcore_uri though, i.e. something like "http://puppet.com/urns/pcore/2016.1". Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Henrik Lindberg commented on PUP-6220 Re: Add TypeSet type to the Puppet Type System Updated description - expanded ns_ to namespace_ for increased readability. (The expanded names are used in the specification). Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Change By: Henrik Lindberg A new {{TypeSet}} type, that groups a set of {{Object}} and {{TypeAlias}} types into one unit should be added to the Puppet Type system. The {{TypeSet}} is similar to a Ruby module or Java package in that it describes a namespace.The {{TypeSet}} should have the following attributes:{code}namespace_authority => URI # The namespace authoritynamespace_prefix => QRef # The namespace prefix for all contained objectsversion => SemVer # A semver versionname => TypeName # Colloquial name for the type set. Typically same as last segment in namespace_prefixtypes => Hash[QRef, Type] # The types contained in the TypeSetreferences => Array[TypeSetReference]{code}A TypeSetReference has the following attributes{code}namespace_authority => URI # The namespace authoritynamespace_prefix => QRef # The namespace prefix for all contained objectsversion_range => SemVerRange # SemVer version range{code}The {{namespace_authority}} is optional and will default to the {{ ns_authority namespace_authority }} used when the typeset is referenced.The {{namespace_prefix}} will be used by the loader to locate a {{TypeSet}} type. It can be left out from the actual declaration and instead assigned using an alias-like assignment, e.g.{code:puppet}type Some::Module = TypeSet[...]{code}will create and bind a {{TypeSet}} with the namespace_prefix "Some::Module" that will be found by the loader using the name "Some::Module".Types contained in the same {{TypeSet}} can (and should) reference each other using names relative to the {{namespace_prefix}}, thus making the set as a whole relocatable. Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Jira (PUP-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Change By: Henrik Lindberg A new {{TypeSet}} type, that groups a set of {{Object}} and {{TypeAlias}} types into one unit should be added to the Puppet Type system. The {{TypeSet}} is similar to a Ruby module or Java package in that it describes a namespace.The {{TypeSet}} should have the following attributes:{code} ns_authority namespace_authority => URI # The namespace authority ns_prefix namespace_prefix => QRef # The namespace prefix for all contained objectsversion => SemVer # A semver versionname => TypeName # Colloquial name for the type set. Typically same as last segment in ns_prefixtypes => Hash[QRef, Type] # The types contained in the TypeSetreferences => Array[TypeSetReference]{code}A TypeSetReference has the following attributes{code} ns_authority namespace_authority => URI # The namespace authority ns_prefix namespace_prefix => QRef # The namespace prefix for all contained objectsversion_range => SemVerRange # SemVer version range{code}The {{ ns_authority namespace_authority }} is optional and will default to the {{ns_authority}} used when the typeset is referenced.The {{ ns_prefix namespace_prefix }} will be used by the loader to locate a {{TypeSet}} type. It can be left out from the actual declaration and instead assigned using an alias-like assignment, e.g.{code:puppet}type Some::Module = TypeSet[...]{code}will create and bind a {{TypeSet}} with the ns_prefix namespace_prefix "Some::Module" that will be found by the loader using the name "Some::Module".Types contained in the same {{TypeSet}} can (and should) reference each other using names relative to the {{ ns_prefix namespace_prefix }}, thus making the set as a whole relocatable. Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Jira (PUP-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Change By: Henrik Lindberg A new {{TypeSet}} type, that groups a set of {{Object}} and {{TypeAlias}} types into one unit should be added to the Puppet Type system. The {{TypeSet}} is similar to a Ruby module or Java package in that it describes a namespace.The {{TypeSet}} should have the following attributes:{code}namespace_authority => URI # The namespace authoritynamespace_prefix => QRef # The namespace prefix for all contained objectsversion => SemVer # A semver versionname => TypeName # Colloquial name for the type set. Typically same as last segment in ns_prefix namespace_prefix types => Hash[QRef, Type] # The types contained in the TypeSetreferences => Array[TypeSetReference]{code}A TypeSetReference has the following attributes{code}namespace_authority => URI # The namespace authoritynamespace_prefix => QRef # The namespace prefix for all contained objectsversion_range => SemVerRange # SemVer version range{code}The {{namespace_authority}} is optional and will default to the {{ns_authority}} used when the typeset is referenced.The {{namespace_prefix}} will be used by the loader to locate a {{TypeSet}} type. It can be left out from the actual declaration and instead assigned using an alias-like assignment, e.g.{code:puppet}type Some::Module = TypeSet[...]{code}will create and bind a {{TypeSet}} with the namespace_prefix "Some::Module" that will be found by the loader using the name "Some::Module".Types contained in the same {{TypeSet}} can (and should) reference each other using names relative to the {{namespace_prefix}}, thus making the set as a whole relocatable. Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Jira (PUP-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Henrik Lindberg commented on PUP-6220 Re: Add TypeSet type to the Puppet Type System Thomas Hallgren Can you update the description with a note about how types in a referenced type set should be adressed when using those types. (e.g. if referencing Foo::Bar::Fee::Fum::X, it becomes a chore to use the full name everywhere - it could be shortened if references is a hash with a local alias for the namespace to TypeSetReference mapping). Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9) -- 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-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Change By: Henrik Lindberg A new {{TypeSet}} type, that groups a set of {{Object}} and {{TypeAlias}} types into one unit should be added to the Puppet Type system. The {{TypeSet}} is similar to a Ruby module or Java package in that it describes a namespace.The {{TypeSet}} should have the following attributes:{code}ns_authority => URI # The namespace authorityns_prefix => QRef # The namespace prefix for all contained objectsversion => SemVer # A semver versionname => TypeName # Colloquial name for the type set. Typically same as last segment in ns_prefixtypes => Hash[QRef, Type] # The types contained in the TypeSetreferences => Array[TypeSetReference]{code}A TypeSetReference has the following attributes{code}ns_authority => URI # The namespace authorityns_prefix => QRef # The namespace prefix for all contained objectsversion_range => SemVerRange # SemVer version range{code}The {{ns_authority}} is optional and will default to the {{ns_authority}} used when the typeset is referenced.The {{ns_prefix}} will be used by the loader to locate a {{TypeSet}} type. It can be left out from the actual declaration and instead assigned using an alias-like assignment, e.g.{code:puppet}type Some::Module = TypeSet[...]{code}will create and bind a {{TypeSet}} with the ns_prefix "Some::Module" that will be found by the loader using the name "Some::Module".Types contained in the same {{TypeSet}} can (and should) reference each other using names relative to the {{ns_prefix}}, thus making the set as a whole relocatable. Add Comment This message was sent by Atlassian JIRA (v6.4.13#64028-sha1:b7939e9)
Jira (PUP-6220) Add TypeSet type to the Puppet Type System
Title: Message Title Thomas Hallgren created an issue Puppet / PUP-6220 Add TypeSet type to the Puppet Type System Issue Type: New Feature Assignee: Thomas Hallgren Created: 2016/04/22 5:00 AM Fix Versions: PUP 4.5.0 Priority: Normal Reporter: Thomas Hallgren A new TypeSet type, that groups a set of Object and TypeAlias types into one unit should be added to the Puppet Type system. The TypeSet is similar to a Ruby module or Java package in that it describes a namespace. The TypeSet should have the following attributes: ns_authority => URI # The namespace authority ns_prefix => QRef # The namespace prefix for all contained objects version => SemVer # A semver version