Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add kickstart file changes for AWS EC2
Undo cloud-init cfg settings that come from manageiq-appliance repo. For AWS EC2, need to disable root/password login, and only allow ssh key access. The default user cloud-init creates on CentOS is "centos". https://bugzilla.redhat.com/show_bug.cgi?id=1371637
- Loading branch information
Showing
4 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
cat >> /etc/cloud/cloud.cfg.d/20_miq_user.cfg << EOF | ||
disable_root: true | ||
ssh_pwauth: false | ||
users: | ||
- default | ||
EOF | ||
|
||
# Lock root account | ||
usermod -L root |