lib/puppet_x/coi/jboss/type/resourceadapter.rb
# A module for Type::ResourceAdapter
module PuppetX::Coi::Jboss::Type::ResourceAdapter
def self.define(type)
type.instance_eval do
@doc = 'Manages resource adapters on JBoss Application Server'
ensurable
newparam(:name) do
desc 'The name/ID of resource adapter.'
isnamevar
isrequired
end
newproperty(:archive) do
desc 'The resource adapter archive.'
isrequired
end
newproperty(:transactionsupport) do
desc 'The resource adapter transaction support type.'
isrequired
end
newproperty(:jndiname, :array_matching => :all) do
desc 'The resource adapter connection definition jndi name.'
isrequired
end
newproperty(:classname) do
desc 'The resource adapter connection definition class name.'
isrequired
end
newproperty(:security) do
desc 'The resource adapter connection definition security.'
isrequired
defaultto 'application'
end
newproperty(:backgroundvalidation, :boolean => true) do
desc 'The resource adapter connection definition class name.'
isrequired
defaultto true
end
end
PuppetX::Coi::Jboss::Type::Meta.define(type)
end
end