Project

General

Profile

« Previous | Next » 

Revision 75520d2c

Added by Alex Fisher over 2 years ago

Add `foreman_hostgroup` type

View differences:

lib/puppet_x/foreman/common.rb
module PuppetX
module Foreman
module Common
FOREMAN_HOST_PARAMS = Proc.new do
ensurable
newparam(:name, :namevar => true) do
desc 'The name of the resource.'
end
newparam(:hostname) do
desc 'The name of the host.'
end
# Parameters common to several types that use the rest_v3 api provider
REST_API_COMMON_PARAMS = Proc.new do
ensurable
newparam(:base_url) do
desc 'Foreman\'s base url.'
......
end
autorequire(:anchor) do
['foreman::service']
['foreman::service','foreman::providers::oauth']
end
end
FOREMAN_HOST_PARAMS = Proc.new do
newparam(:name, :namevar => true) do
desc 'The name of the resource.'
end
newparam(:hostname) do
desc 'The name of the host.'
end
end
end

Also available in: Unified diff