Sha256: 253e22ae675ed0335529144a7305c38c77086c94bf88c4c9c23af3dbdaae5ceb

Contents?: true

Size: 965 Bytes

Versions: 16

Compression:

Stored size: 965 Bytes

Contents

Puppet::Type.newtype(:bmcuser) do
  @doc = "Manage BMC devices"


  ensurable do
    newvalue(:present) do
      provider.create
    end

    newvalue(:absent) do
      provider.destroy
    end
  end

  newproperty(:id) do
    desc 'The id of the user, gathered from the bmc user list'
  end

  newparam(:name) do
    desc 'The name of the resource'
  end

  newproperty(:username, :namevar => true) do
    desc "The username to be added"

  end

  newproperty(:userpass) do
    desc "The password of the user to create"
    def change_to_s(current, desire)
      "userpass is different, changing to specified password"
    end
  end

  newparam(:force) do
    desc "The force parameter will set the password of the user with every puppet run"
    newvalues(true, false)
  end

  newproperty(:privlevel) do
    desc "The privilege level type for the user"
    defaultto :ADMIN
    newvalues(:ADMIN, :USER, :OPERATOR, :CALLBACK, :ADMINISTRATOR, :NOACCESS)
  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
puppet-retrospec-1.8.0 spec/fixtures/types/bmcuser.rb
puppet-retrospec-1.7.0 spec/fixtures/types/bmcuser.rb
puppet-retrospec-1.6.1 spec/fixtures/types/bmcuser.rb
puppet-retrospec-1.6.0 spec/fixtures/types/bmcuser.rb
puppet-retrospec-1.5.0 spec/fixtures/types/bmcuser.rb
puppet-retrospec-1.4.1 spec/fixtures/types/bmcuser.rb
puppet-retrospec-1.4.0 spec/fixtures/types/bmcuser.rb
puppet-retrospec-1.3.2 spec/fixtures/types/bmcuser.rb
puppet-retrospec-1.3.1 spec/fixtures/types/bmcuser.rb
puppet-retrospec-1.3.0 spec/fixtures/types/bmcuser.rb
puppet-retrospec-1.2.1 spec/fixtures/types/bmcuser.rb
puppet-retrospec-1.2.0 spec/fixtures/types/bmcuser.rb
puppet-retrospec-1.1.0 spec/fixtures/types/bmcuser.rb
puppet-retrospec-1.0.0 spec/fixtures/types/bmcuser.rb
puppet-retrospec-0.12.1 spec/fixtures/types/bmcuser.rb
puppet-retrospec-0.12.0 spec/fixtures/types/bmcuser.rb