Class: Unix::Host

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

Direct Known Subclasses

Aix::Host

Constant Summary

Constants included from Pkg

Pkg::DEBIAN_PLATFORM_CODENAMES

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, #deploy_apt_repo, #deploy_package_repo, #deploy_yum_repo, #deploy_zyp_repo, #install_package, #pkg_initialize, #uninstall_package, #update_apt_if_needed, #upgrade_package

Methods included from Beaker::CommandFactory

#execute, #fail_test

Methods included from Exec

#echo, #get_ip, #path, #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_scp_from, #do_scp_to, #exec, #get_ip, #graceful_restarts?, #has_key?, #hostname, #initialize, #ip, #is_pe?, #is_using_passenger?, #is_x86_64?, #log_prefix, #merge_defaults_for_type, #mkdir_p, #node_name, #pkg_initialize, #port_open?, #puppet, #reachable_name, #to_s, #to_str, #up?, #use_service_scripts?, #uses_passenger!

Constructor Details

This class inherits a constructor from Beaker::Host

Class Method Details

.aio_defaultsObject



59
60
61
62
63
64
65
66
67
68
# File 'lib/beaker/host/unix.rb', line 59

def self.aio_defaults
  h = self.foss_defaults
  h['puppetbindir'] = '/opt/puppetlabs/agent/bin'
  h['puppetpath'] = '/opt/puppetlabs/agent'
  h['puppetvardir'] = '/opt/puppetlabs/agent/cache'
  h['distmoduledir'] = '/opt/puppetlabs/agent/modules'
  h['sitemoduledir'] = '/etc/puppetlabs/agent/modules'
  h['hieraconf'] = ' /etc/puppetlabs/agent/hiera.conf'
  h
end

.foss_defaultsObject



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/beaker/host/unix.rb', line 37

def self.foss_defaults
  h = Beaker::Options::OptionsHash.new
  h.merge({
    'user'              => 'root',
    'group'             => 'puppet',
    'puppetserver-confdir' => '/etc/puppetserver/conf.d',
    'puppetservice'     => 'puppetmaster',
    'puppetpath'        => '/etc/puppet',
    'puppetvardir'      => '/var/lib/puppet',
    'puppetbin'         => '/usr/bin/puppet',
    'puppetbindir'      => '/usr/bin',
    'hieralibdir'       => '/opt/puppet-git-repos/hiera/lib',
    'hierapuppetlibdir' => '/opt/puppet-git-repos/hiera-puppet/lib',
    'hierabindir'       => '/opt/puppet-git-repos/hiera/bin',
    'hieradatadir'      => '/etc/puppet/hieradata',
    'hieraconf'         => '/etc/puppet/hiera.yaml',
    'distmoduledir'     => '/etc/puppet/modules',
    'sitemoduledir'     => '/usr/share/puppet/modules',
    'pathseparator'     => ':',
  })
end

.pe_defaultsObject



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

def self.pe_defaults
  h = Beaker::Options::OptionsHash.new
  h.merge({
    'user'          => 'root',
    'group'         => 'pe-puppet',
    'puppetserver-confdir' => '/etc/puppetlabs/puppetserver/conf.d',
    'puppetservice'    => 'pe-httpd',
    'puppetpath'       => '/etc/puppetlabs/puppet',
    'puppetbin'        => '/opt/puppet/bin/puppet',
    'puppetbindir'     => '/opt/puppet/bin',
    'puppetsbindir'    => '/opt/puppet/sbin',
    'puppetvardir'     => '/var/opt/lib/pe-puppet',
    'hieradatadir'     => '/var/lib/hiera',
    'hieraconf'        => '/etc/puppetlabs/puppet/hiera.yaml',
    'distmoduledir'    => '/etc/puppetlabs/puppet/modules',
    'sitemoduledir'    => '/opt/puppet/share/puppet/modules',
    'pathseparator'    => ':',
  })
end