Auto Enroll Your Servers to JumpCloud - Linux Servers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
โ03-18-2024 04:10 AM
Hi Folks,
Last week I posted a Terraform script to auto-deploy JumpCloud agent on the Windows servers, and it's only fair we spread the same love to Linux, right? ๐
Prerequisites
TL;DL - Check out the new code in my repo.
- Ensure you have the latest version of Terraform installed.
- Setup Use profile based auth for the AWS Cli. If you're yet to configure JumpCloud SSO for AWS to facilitate this scenario,I highly recommend checking out this guide.
Outcome
I have tested the script on 3 of the most common distros: Ubuntu 22.04, REHL and AmazonLinux2, and they all worked perfectly. Feel free to pick a distro or add others in var.tf (starting at line 2). Here is the list of JumpCloud support distro.
Once you have fired up the instance, the output looks like this:
Hostnames
Although I have pre-set the hostnames for these Linux instances (and they don't require reboot ๐), but you might have your own standard to follow - feel free to modify line 28 in "linux.tf". Or you can follow this guide to rename the device retrospectively via JumpCloud Command.
Enjoy!
![](/skins/images/C210B62239BAF37B0AB0FAEB086BB5F1/responsive_peak/images/icon_anonymous_message.png)
![](/skins/images/C210B62239BAF37B0AB0FAEB086BB5F1/responsive_peak/images/icon_anonymous_message.png)