Method: Beaker::OpenStack#enable_root
- Defined in:
- lib/beaker/hypervisor/openstack.rb
#enable_root(host) ⇒ Object
enable root on a single host (the current one presumably) but only if the username isn’t ‘root’
309 310 311 312 313 314 315 316 |
# File 'lib/beaker/hypervisor/openstack.rb', line 309 def enable_root(host) if host['user'] != 'root' copy_ssh_to_root(host, @options) enable_root_login(host, @options) host['user'] = 'root' host.close end end |