lib/beaker/dsl/install_utils/foss_utils.rb
# Installs Puppet and dependencies from msi on provided host(s).
#
# @param [Host, Array<Host>, String, Symbol] hosts    One or more hosts to act upon,
#                            or a role (String or Symbol) that identifies one or more hosts.
# @param [Hash{Symbol=>String}] opts An options hash
# @option opts [String] :version The version of Puppet to install
# @option opts [String] :puppet_agent_version The version of the
#     puppet-agent package to install, required if version is 4.0.0 or greater
# @option opts [String] :win_download_url The url to download puppet from
#
# @note on windows, the +:ruby_arch+ host parameter can determine in addition
# to other settings whether the 32 or 64bit install is used
Installs Puppet and dependencies from msi on provided host(s).
Installs Puppet and dependencies from msi on provided host ( s ) .
def install_puppet_from_msi_on( hosts, opts )
          block_on hosts do |host|
            version = opts[:version]
            if version && !version_is_less(version, '4.0.0')
              if opts[:puppet_agent_version].nil?
                raise "You must specify the version of puppet agent you " +
                      "want to install if you want to install Puppet 4.0 " +
                      "or greater on Windows"
              end
              opts[:version] = opts[:puppet_agent_version]
              install_puppet_agent_from_msi_on(host, opts)
            else
              compute_puppet_msi_name(host, opts)
              install_a_puppet_msi_on(host, opts)
            end
            configure_type_defaults_on( host )
          end
        end
def install_puppet_from_msi_on ( hosts , opts ) block_on hosts do | host | version = opts [ :version ] if version && ! version_is_less ( version , '4.0.0' ) if opts [ :puppet_agent_version ] . nil? raise "You must specify the version of puppet agent you " + "want to install if you want to install Puppet 4.0 " + "or greater on Windows" end opts [ :version ] = opts [ :puppet_agent_version ] install_puppet_agent_from_msi_on ( host , opts ) else compute_puppet_msi_name ( host , opts ) install_a_puppet_msi_on ( host , opts ) end configure_type_defaults_on ( host ) end end
Installs Puppet and dependencies from msi on provided host(s).
Installs Puppet and dependencies from msi on provided host ( s ) .
hosts
<not_specific>
opts
:win_download_url The url to download puppet from
: win_download_url The url to download puppet from
<not_specific>
opts An options hash
opts An options hash
note
on windows, the +:ruby_arch+ host parameter can determine in addition to other settings whether the 32 or 64bit install is used
on windows the + : ruby_arch + host parameter can determine in addition to other settings whether the 32 or 64bit install is used