generic/fedora-18-x86_64-cloud.ks

Matthew Miller mattdm at fedoraproject.org
Fri Dec 14 20:51:13 UTC 2012


 generic/fedora-18-x86_64-cloud.ks |   11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

New commits:
commit c506093cac633a5e6711feaf4be7f966f8d75f9b
Author: Matthew Miller <mattdm at mattdm.org>
Date:   Fri Dec 14 15:49:39 2012 -0500

    Add commented-out block toggling to root instead of ec2-user in case
    we want to go that way.

diff --git a/generic/fedora-18-x86_64-cloud.ks b/generic/fedora-18-x86_64-cloud.ks
index 86ff68e..9d0d51c 100644
--- a/generic/fedora-18-x86_64-cloud.ks
+++ b/generic/fedora-18-x86_64-cloud.ks
@@ -136,9 +136,14 @@ echo .
 echo "Disabling tmpfs for /tmp."
 systemctl mask tmp.mount
 
-# this is a kludge for an unexpected change in cloud-init. New
-# fedora package coming soon will make this unnecessary.
-sed -i '/system_info:/ a\  default_user: ec2-user' /etc/cloud/cloud.cfg
+# Uncomment this if you want to use cloud init but suppress the creation
+# of an "ec2-user" account. This will, in the absence of further config,
+# cause the ssh key from a metadata source to be put in the root account.
+#cat <<EOF > /etc/cloud/cloud.cfg.d/50_suppress_ec2-user_use_root.cfg
+#users: []
+#disable_root: 0
+#EOF
+
 
 
 echo "Zeroing out empty space."




More information about the cloud mailing list