From the course: Learning Puppet (2017)
Unlock the full course today
Join today to access over 23,400 courses taught by industry experts.
Solution: Installing SSH and adding hosts - Puppet Tutorial
From the course: Learning Puppet (2017)
Solution: Installing SSH and adding hosts
- Let's go through an example solution to the ssh challenge. First, I'm going to generate an ssh key pair that we can use. Logged in as root, on the master, just run ssh-keygen. We'll accept the default file locations, and leave the passphrase blank. I'm going to cat that file out, so that I can copy it, and use it in my puppet code. We want the public key. I'm just going to copy this middle part, right up until root@master.puppet.vm. Back in the control_repo, I'm going to add that key into the ssh_server class that was provided in the exercise files. So, I'll go to site/profile, and I've already added in that file. I'm going to click the pencil, and it should be pasted right in here, under key. We'll make sure that we have the right quotes at the end of this really long string. So, we need a single quote before that comma. Now, I'll commit the changes. To get our notes set up with the ssh_server, we have a few options. We could add the profile to each role, but I'm actually going to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
(Locked)
Manage more nodes5m 41s
-
(Locked)
Expand site.pp2m 28s
-
(Locked)
Connect agent nodes to the master5m 25s
-
(Locked)
Orchestration in Puppet3m 38s
-
(Locked)
Understand the Puppet run1m 34s
-
(Locked)
Facter5m 5s
-
(Locked)
Challenge: Installing SSH and adding hosts43s
-
(Locked)
Solution: Installing SSH and adding hosts4m 58s
-
(Locked)
-
-