Installing Nomad Server for Use in Dev Mode

30 minutes
  • 4 Learning Objectives

About this Hands-on Lab

If you want to use HashiCorp’s Nomad in Development mode, there are a couple of ways to do this, and we will be covering one of these methods in this hands-on lab.

In this hands-on lab, you will need to install Nomad and get it running on a single server in both Server and Client mode.

You will need to make changes to ensure that a datacenter of `dc1` is being used.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Log into the provided server.

You have been provided with a server. Log in to the server as the provided cloud_user with the provided password.

Add the correct repository for installing Nomad.

You will be installing Nomad by using the Red Hat repository that HashiCorp provides.

Use the appropriate commands to add the following repository to your server.

Install Nomad and configure it to run as the dc1 datacenter, then start it as a service.

Using appropriate system commands, install Nomad onto the server.

Once installed, you should make changes as required to the /etc/nomad.d/nomad.hcl file to enable you to run jobs in the dc1 datacenter.

This will require changes to the Nomad configuration file.

Once the changes have been made, start the Nomad service and enable the nomad service to autostart on a system reboot.

Ensure that Nomad works and says it is in the dc1 datacenter.

Your Nomad should now be running.

You should do the following:

Use Nomad commands to show the server members. Should show one member.
Use Nomad commands to show any client nodes. Should show one member.

Note: It may take a minute or so before the Nomad nodes show up as expected.

It is not part of this lab, but your Nomad installation is now ready to run jobs if you choose.

Additional Resources

Your manager has heard good things about Nomad and wants to know how easy it is to install and get up and running.

For this task, they want you to install Nomad using the HashiCorp yum repository. Once that has been completed, you are to ensure that Nomad is running as a service and that you can see a Server Agent and a Client Agent running on the node.

Since your environment uses a datacenter called dc1, you should ensure this has been configured as the datacenter for use in Nomad.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?