Alon Bar-Lev has posted comments on this change.

Change subject: Engine: Enable Cloud-Init SSH login via public key
......................................................................


Patch Set 1:

(1 comment)

not sure what cloudinit, but usually you do not allow root but regular user 
that can su.

anyway, minor comments.

http://gerrit.ovirt.org/#/c/25625/1/backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/CloudInitHandler.java
File 
backend/manager/modules/vdsbroker/src/main/java/org/ovirt/engine/core/vdsbroker/vdsbroker/CloudInitHandler.java:

Line 216:         // set disable_root=0 for enabling root ssh login and
Line 217:         // datasource_list in cloud.cfg
Line 218:         bootcmd.add("sed -i '/^disable_root: /d' 
/etc/cloud/cloud.cfg");
Line 219:         bootcmd.add("echo 'disable_root: 0' >> /etc/cloud/cloud.cfg");
Line 220:         bootcmd.add("sed -i '/^datasource_list: /d' 
/etc/cloud/cloud.cfg");
consider single sed:

 sed -i -e '/../d' -e '/.../d' -e '$ a xxx: 0' -e '$ a kkk: ooo' file
Line 221:         bootcmd.add("echo 'datasource_list: [\"NoCloud\", 
\"ConfigDrive\"]' >> /etc/cloud/cloud.cfg");
Line 222:         userData.put("bootcmd", bootcmd);
Line 223: 
Line 224:         Map<String, Object> opts = new HashMap<String, Object>();


-- 
To view, visit http://gerrit.ovirt.org/25625
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: Idb48fe4306f803aca801c03ddf29f010eaeb635f
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Shahar Havivi <[email protected]>
Gerrit-Reviewer: Alon Bar-Lev <[email protected]>
Gerrit-Reviewer: Itamar Heim <[email protected]>
Gerrit-Reviewer: Michal Skrivanek <[email protected]>
Gerrit-Reviewer: Omer Frenkel <[email protected]>
Gerrit-Reviewer: Shahar Havivi <[email protected]>
Gerrit-Reviewer: [email protected]
Gerrit-Reviewer: oVirt Jenkins CI Server
Gerrit-HasComments: Yes
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to