Sha256: 8df80aadb56e06309aefb15f8ef8b1f8915bb95b75631c77dded89d23be1846f
Contents?: true
Size: 548 Bytes
Versions: 7
Compression:
Stored size: 548 Bytes
Contents
module Vagrant module Guest class Suse < Redhat def network_scripts_dir '/etc/sysconfig/network/' end def change_host_name(name) # Only do this if the hostname is not already set if !vm.channel.test("sudo hostname | grep '#{name}'") vm.channel.sudo("echo #{name} > /etc/HOSTNAME") vm.channel.sudo("hostname #{name}") vm.channel.sudo("sed -i 's@^\\(127[.]0[.]0[.]1[[:space:]]\\+\\)@\\1#{name} #{name.split('.')[0]} @' /etc/hosts") end end end end end
Version data entries
7 entries across 7 versions & 4 rubygems