Sha256: 1a10a89c847492ac48bc86e4532e65dca1f7adf7aa9816213399638c41fb7ef1
Contents?: true
Size: 545 Bytes
Versions: 75
Compression:
Stored size: 545 Bytes
Contents
module VagrantPlugins module GuestSolaris module Cap class ChangeHostName def self.change_host_name(machine, name) su_cmd = machine.config.solaris.suexec_cmd # Only do this if the hostname is not already set if !machine.communicate.test("#{su_cmd} hostname | grep '#{name}'") machine.communicate.execute("#{su_cmd} sh -c \"echo '#{name}' > /etc/nodename\"") machine.communicate.execute("#{su_cmd} uname -S #{name}") end end end end end end
Version data entries
75 entries across 68 versions & 10 rubygems