Creating an Ubuntu 18.04 Server Foreman: Difference between revisions

No edit summary
No edit summary
Line 28: Line 28:
Verify that it worked
Verify that it worked
<pre>ifconfig</pre>
<pre>ifconfig</pre>
== Host Name Setup ==
Ensure the Hostname is Set Correctly
<pre>sudo hostnamectl set-hostname devops-master.bpopp.net</pre>
Modify the /etc/hosts file:
<pre>127.0.0.1 localhost
192.168.1.41 devops-master.bpopp.net devops-master
# The following lines are desirable for IPv6 capable hosts
::1    ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
</pre>

Revision as of 18:44, 18 August 2019

Install

Just do a basic install using ubuntu-18.04.3-live-server-amd64.iso

Prevent Floppy Errors

If your server does not have a floppy, Ubuntu will report errors. This can be prevented by preventing the loading of a floppy driver on the clients:

echo "blacklist floppy" | sudo tee /etc/modprobe.d/blacklist-floppy.conf
sudo rmmod floppy
sudo update-initramfs -u

Enable Netowrking

Create a netplan in /etc/netplans (note that because it's YAML, indentation is important)

network:
  version: 2
  renderer: networkd
  ethernets:
    ens160:
      dhcp4: true

Apply the netplan

sudo netplan apply

Verify that it worked

ifconfig

Host Name Setup

Ensure the Hostname is Set Correctly

sudo hostnamectl set-hostname devops-master.bpopp.net

Modify the /etc/hosts file:

127.0.0.1 localhost
192.168.1.41 devops-master.bpopp.net devops-master

# The following lines are desirable for IPv6 capable hosts
::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters