Commit f0cdc797 authored by Lance Albertson's avatar Lance Albertson
Browse files

Rename from package to name for namevar and update manifests

parent cf64285e
...@@ -11,7 +11,7 @@ Puppet::Type.type(:package_keywords).provide(:parsed, ...@@ -11,7 +11,7 @@ Puppet::Type.type(:package_keywords).provide(:parsed,
text_line :comment, :match => /^#/; text_line :comment, :match => /^#/;
text_line :blank, :match => /^\s*$/; text_line :blank, :match => /^\s*$/;
record_line :parsed, :fields => %w{package keywords}, record_line :parsed, :fields => %w{name keywords},
:joiner => ' ', :joiner => ' ',
:rts => true do |line| :rts => true do |line|
hash = {} hash = {}
......
...@@ -11,7 +11,7 @@ Puppet::Type.type(:package_use).provide(:parsed, ...@@ -11,7 +11,7 @@ Puppet::Type.type(:package_use).provide(:parsed,
text_line :comment, :match => /^#/; text_line :comment, :match => /^#/;
text_line :blank, :match => /^\s*$/; text_line :blank, :match => /^\s*$/;
record_line :parsed, :fields => %w{package use_flags}, record_line :parsed, :fields => %w{name use_flags},
:joiner => ' ', :joiner => ' ',
:rts => true do |line| :rts => true do |line|
hash = {} hash = {}
......
...@@ -2,14 +2,14 @@ Puppet::Type.newtype(:package_keywords) do ...@@ -2,14 +2,14 @@ Puppet::Type.newtype(:package_keywords) do
@doc = "Set keywords for a package @doc = "Set keywords for a package
package_keywords { 'app-admin/puppet': package_keywords { 'app-admin/puppet':
package => 'app-admin/puppet',
keywords => ['~x86', '-hppa'], keywords => ['~x86', '-hppa'],
target => 'puppet',
}" }"
ensurable ensurable
newproperty(:package) do newparam(:name) do
desc "The package" desc "The package name"
isnamevar isnamevar
end end
......
Puppet::Type.newtype(:package_use) do Puppet::Type.newtype(:package_use) do
@doc = "Set use flags for a package @doc = "Set use flags for a package
package_use { 'puppet': package_use { 'app-admin/puppet':
package => 'app-admin/puppet',
use_flags => ['augeas', '-rrdtool'], use_flags => ['augeas', '-rrdtool'],
target => 'puppet',
}" }"
ensurable ensurable
newparam(:package) do newparam(:name) do
desc "The package" desc "The package name"
isnamevar isnamevar
end end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment