In this lab you will learn how to:
- Install the open source Bolt utility on Linux machines.
- Execute a simple command to validate that Bolt is working.
The steps below explain how to connect to a target Linux machine from your student Windows host machine (used above). If you would rather connect directly from your own laptop, you will have to translate these instructions to the utilities available on your laptop. The private key for the Linux target machine can be downloaded from the Welcome page.
There are many distributions of Linux. This classroom environment uses CentOS, but Bolt supports many different versions. See the official documentation for more details. The guide below is for CentOS 7.
In this lab you will install Bolt using the built-in package manager of the Linux distribution on your target machine.
-
On your Windows student machine, open a PowerShell window
-
Launch PuTTY:
PS C:\Users\Administrator> putty
-
In the Host Name field, copy and paste the Linux target machine’s hostname from the Welcome page.
-
In the left-hand menu, expand SSH and click Auth.
-
Under Private key file for authentication, click Browse.
-
Select the pre-loaded private key from
C:\keys
. -
Select private_key.ppk and click Open.
-
Under the Connection category, click Data.
-
In the Auto-login username field, enter centos
-
Return to the session view by clicking Session on the left-hand menu in PuTTY.
-
In the Saved Sessions box, enter linux_machine and click Save on the right side.
-
Click Open. If prompted about the host key not being cached, select Yes.
For any future connections to this host, you can now simply double-click linux_machine in the Saved Sessions window.
-
On your Windows student machine, open a PowerShell window
-
Install openssh using chocolatey:
PS C:\Users\Administrator> choco install openssh
-
When the install is done, restart PowerShell. You can then use the credentials already on the host.
-
Re-open PowerShell and run:
PS C:\Users\Administrator> ssh centos@<your-linux-machine>.classroom.puppet.com
On the Linux machine, add the required YUM repository and install the Bolt package:
$ sudo yum install -y puppet-bolt
Note that your version might be slightly different.
$ bolt --version
1.39.0
$ bolt help
or simply:
$ bolt
This provides a page of helpful information for running Bolt. We will come back to Bolt after setting up the rest of the lab.
Next Step
======
Windows Lab 2.1 Install Puppet Bolt
| Previous Lab | Next Lab |