def display_motd
      if ::File.exists?("/var/run/motd.dynamic")
        # Ubuntu 14.04+ motd location
        puts ::File.read("/var/run/motd.dynamic")
      elsif ::File.exists?("/var/run/motd")
        # Ubuntu 12.04 motd location
        puts ::File.read("/var/run/motd")
      elsif ::File.exists?("/etc/motd")
        # Legacy (CentOS 6 style)
        puts ::File.read("/etc/motd")
      end
    rescue 
      nil
    end
def display_motd
      if ::File.exists?("/var/run/motd.dynamic")
        # Ubuntu 14.04+ motd location
        puts ::File.read("/var/run/motd.dynamic")
      elsif ::File.exists?("/var/run/motd")
        # Ubuntu 12.04 motd location
        puts ::File.read("/var/run/motd")
      elsif ::File.exists?("/etc/motd")
        # Legacy (CentOS 6 style)
        puts ::File.read("/etc/motd")
      end
    rescue 
      nil
    end
Display the Message of the Day if it exists.