Sha256: b36ffe1a5476bc65e0fb7f5003f6d595d5eb901c2964e4c556d891e71c1804d1

Contents?: true

Size: 470 Bytes

Versions: 16

Compression:

Stored size: 470 Bytes

Contents

Puppet::Type.newtype(:r8_export_variable) do
  @doc = "r8 export variable content"

  ensurable

  newparam(:name) do
    desc "component and attribute name in dot notation"

    validate do |value|
      unless value =~ /.*::.*/
        raise ArgumentError, "name attribute: #{value} is in invalid format, should be in <component>::<attribute> format"
      end
    end
  end

  newparam(:content) do
    desc "variable content to store in specific attribute"
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dtk-node-agent-0.12.2 puppet_additions/modules/r8/lib/puppet/type/r8_export_variable.rb
dtk-node-agent-0.12.1 puppet_additions/modules/r8/lib/puppet/type/r8_export_variable.rb
dtk-node-agent-0.12.0 puppet_additions/modules/r8/lib/puppet/type/r8_export_variable.rb
dtk-node-agent-0.11.4 puppet_additions/modules/r8/lib/puppet/type/r8_export_variable.rb
dtk-node-agent-0.11.3 puppet_additions/modules/r8/lib/puppet/type/r8_export_variable.rb
dtk-node-agent-0.11.2 puppet_additions/modules/r8/lib/puppet/type/r8_export_variable.rb
dtk-node-agent-0.11.1 puppet_additions/modules/r8/lib/puppet/type/r8_export_variable.rb
dtk-node-agent-0.11.0 puppet_additions/modules/r8/lib/puppet/type/r8_export_variable.rb
dtk-node-agent-0.10.7 puppet_additions/modules/r8/lib/puppet/type/r8_export_variable.rb
dtk-node-agent-0.10.6 puppet_additions/modules/r8/lib/puppet/type/r8_export_variable.rb
dtk-node-agent-0.10.5 puppet_additions/modules/r8/lib/puppet/type/r8_export_variable.rb
dtk-node-agent-0.10.4 puppet_additions/modules/r8/lib/puppet/type/r8_export_variable.rb
dtk-node-agent-0.10.3 puppet_additions/modules/r8/lib/puppet/type/r8_export_variable.rb
dtk-node-agent-0.10.2 puppet_additions/modules/r8/lib/puppet/type/r8_export_variable.rb
dtk-node-agent-0.10.1 puppet_additions/modules/r8/lib/puppet/type/r8_export_variable.rb
dtk-node-agent-0.10.0 puppet_additions/modules/r8/lib/puppet/type/r8_export_variable.rb