Class: PSWindows::Host

Inherits:
Beaker::Host show all
Includes:
Exec, File, Group, Pkg, User
Defined in:
lib/beaker/host/pswindows.rb

Constant Summary

Constants included from Exec

Exec::ABS_CMD, Exec::CMD

Constants inherited from Beaker::Host

Beaker::Host::SELECT_TIMEOUT

Instance Attribute Summary

Attributes included from Beaker::CommandFactory

#assertions

Attributes inherited from Beaker::Host

#defaults, #logger, #name

Class Method Summary collapse

Methods included from Pkg

#check_for_command, #check_for_package, #install_package, #uninstall_package

Methods included from Beaker::CommandFactory

#execute, #fail_test

Methods included from Exec

#echo, #get_ip, #path, #rm_rf, #touch

Methods included from File

#file_exist?, #path_split, #tmpdir, #tmpfile

Methods included from Group

#group_absent, #group_get, #group_gid, #group_list, #group_present

Methods included from User

#user_absent, #user_get, #user_list, #user_present

Methods inherited from Beaker::Host

#+, #[], #[]=, #add_env_var, #close, #connection, create, #delete_env_var, #determine_if_x86_64, #do_rsync_to, #do_scp_from, #do_scp_to, #exec, #get_env_var, #get_ip, #graceful_restarts?, #has_key?, #hostname, #initialize, #ip, #is_cygwin?, #is_pe?, #is_using_passenger?, #is_x86_64?, #log_prefix, #merge_defaults_for_type, #mirror_env_to_profile_d, #mkdir_p, #node_name, #pkg_initialize, #platform, #port_open?, #puppet, #reachable_name, #rm_rf, #to_s, #to_str, #up?, #use_service_scripts?, #uses_passenger!

Constructor Details

This class inherits a constructor from Beaker::Host

Class Method Details

.foss_defaultsObject



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/beaker/host/pswindows.rb', line 35

def self.foss_defaults
  h = Beaker::Options::OptionsHash.new
  h.merge({
    'user'              => 'Administrator',
    'group'             => 'Administrators',
    'distmoduledir'     => 'C:\\ProgramData\\PuppetLabs\\puppet\\etc\\modules',
    'sitemoduledir'     => 'C:\\usr\\share\\puppet\\modules',
    'hieralibdir'       => 'C:\\opt\\puppet-git-repos\\hiera\\lib',
    'hierapuppetlibdir' => 'C:\\opt\\puppet-git-repos\\hiera-puppet\\lib',
    'hierabindir'       => 'C:\\opt\\puppet-git-repos\\hiera\\bin',
    'pathseparator'     => ';',
    'puppetpath'        => '"C:\\Program Files (x86)\\Puppet Labs\\Puppet\\etc";"C:\\Program Files\\Puppet Labs\\Puppet\\etc"',
    'hieraconf'         => '"C:\\Program Files (x86)\\Puppet Labs\\Puppet\\etc\\hiera.yaml";"C:\\Program Files\\Puppet Labs\\Puppet\\etc\\hiera.yaml"',
    'puppetvardir'      => '"C:\\Program Files (x86)\\Puppet Labs\\Puppet\\var";"C:\\Program Files\\Puppet Labs\\Puppet\\var"',
    'puppetbindir'      => '"C:\\Program Files (x86)\\Puppet Labs\\Puppet\\bin";"C:\\Program Files\\Puppet Labs\\Puppet\\bin"',
  })
end

.pe_defaultsObject



17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/beaker/host/pswindows.rb', line 17

def self.pe_defaults
  h = Beaker::Options::OptionsHash.new
  h.merge({
    'user'          => 'Administrator',
    'group'         => 'Administrators',
    'distmoduledir' => 'C:\\ProgramData\\PuppetLabs\\puppet\\etc\\modules',
    'sitemoduledir' => 'C:\\usr\\share\\puppet\\modules',
    'puppetservice' => 'pe-httpd',
    'pathseparator' => ';',
    'puppetpath'    => 'C:\\ProgramData\\PuppetLabs\\puppet\\etc',
    'puppetconfdir' => 'C:\\ProgramData\\PuppetLabs\\puppet\\etc',
    'puppetcodedir' => 'C:\\ProgramData\\PuppetLabs\\puppet\\etc',
    'hieraconf'     => 'C:\\ProgramData\\PuppetLabs\\puppet\\etc\\hiera.yaml',
    'puppetvardir'  => 'C:\\ProgramData\\PuppetLabs\\puppet\\var',
    'puppetbindir'  => '"C:\\Program Files (x86)\\PuppetLabs\\Puppet Enterprise\\bin";"C:\\Program Files\\PuppetLabs\\Puppet Enterprise\\bin"'
  })
end