Skip to Content
Infrastructure as Code Cookbook
book

Infrastructure as Code Cookbook

by Stephane Jourdan, Pierre Pomès
February 2017
Intermediate to advanced
440 pages
8h 45m
English
Packt Publishing
Content preview from Infrastructure as Code Cookbook

Managing users, keys, and credentials using cloud-init

There's a high probability we won't plan to use the default root account, or even the default user account from our distribution (those ubuntu or centos users). There's an even higher probability we'll need a Unix account very early in the process, even before the proper configuration management tool enters the game.

Let's say our IT security policy wants us to have an emergency user account in a group named infosec for the IT security team with passwordless sudo rights and the simple /bin/sh shell. This account has one authorized public key automatically populated. The policy is also to remove the default ubuntu account.

Getting ready

To step through this recipe, you will need:

  • Access to a cloud-config ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Infrastructure as Code

Infrastructure as Code

Kief Morris
Implementing Modern DevOps

Implementing Modern DevOps

David Gonzalez, Danny Varghese

Publisher Resources

ISBN: 9781786464910