Method: Beaker::DSL::InstallUtils::AIODefaults#add_platform_aio_defaults

Defined in:
lib/beaker/dsl/install_utils/aio_defaults.rb

#add_platform_aio_defaults(host, platform) ⇒ Object

Add the appropriate aio defaults to the host object so that they can be accessed using host, set host = aio

Parameters:

  • host (Host)

    A single host to act upon

  • platform (String)

    The platform type of this host, one of windows or unix



34
35
36
37
38
39
40
41
42
43
44
# File 'lib/beaker/dsl/install_utils/aio_defaults.rb', line 34

def add_platform_aio_defaults(host, platform)
  AIO_DEFAULTS[platform].each_pair do |key, val|
    host[key] = val
  end
  # add group and type here for backwards compatability
  if host['platform'] =~ /windows/
    host['group'] = 'Administrators'
  else
    host['group'] = 'puppet'
  end
end