Re: Ubuntu instances + cloud-init

2014-04-16 Thread Nux!
On 15.04.2014 22:02, Rafael Weingartner wrote: If that one does not work, I can show you mine. I use Ubuntu 12.04 templates ;) Do show anyhow, don't be shy. :) Lucian -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro

Re: Ubuntu instances + cloud-init

2014-04-16 Thread Rafael Weingartner
Sure ;) On my Ubuntu 12.04 templates I use two scripts. One to change the root password, and the other to change the host name according to the one that was defined on CS. one is in /etc/init.d/, and it is called cloud-set-guest-password. (The script is attached). and the second one is in

RE: Ubuntu instances + cloud-init

2014-04-16 Thread Geoff Higginbottom
...@shapeblue.com From: Rafael Weingartner [mailto:rafaelweingart...@gmail.com] Sent: 16 April 2014 12:55 To: users@cloudstack.apache.org Subject: Re: Ubuntu instances + cloud-init Sure ;) On my Ubuntu 12.04 templates I use two scripts. One to change the root password, and the other to change

Re: Ubuntu instances + cloud-init

2014-04-16 Thread Jonathan Gowar
On Wed, 2014-04-16 at 08:54 -0300, Rafael Weingartner wrote One to change the root password, and the other to change the host name according to the one that was defined on CS. one is in /etc/init.d/, and it is called cloud-set-guest-password. (The script is attached). and the second

Re: Ubuntu instances + cloud-init

2014-04-16 Thread Rafael Weingartner
Welll, I do not remember finding this on CS docs. I found them googling. cloud-set-guest-password (I registered it on init.d) #!/bin/bash # # Init file for Password Download Client # # chkconfig: 345 98 02 # description: Password Download Client # Licensed to the Apache Software

Re: Ubuntu instances + cloud-init

2014-04-16 Thread Jonathan Gowar
On Wed, 2014-04-16 at 10:04 -0300, Rafael Weingartner wrote: #!/bin/sh # dhclient change hostname script for Ubuntu # /etc/dhcp/dhclient-exit-hooks.d/sethostname # logs in /var/log/upstart/network-interface-eth0.log # for debugging: echo cloudstack-sethostname BEGIN export set -x

Re: Ubuntu instances + cloud-init

2014-04-16 Thread Rafael Weingartner
to my knowledge it is not distro specific. We are using that on Ubuntu 12.04 (Which is basically a Debian). We have just tried on a Debian 7.4 and that IF condition works. On Wed, Apr 16, 2014 at 2:38 PM, Jonathan Gowar j...@whiteheat.org.ukwrote: On Wed, 2014-04-16 at 14:30 -0300, Rafael

Re: Ubuntu instances + cloud-init

2014-04-15 Thread Rafael Weingartner
what script are you talking about ? the one to enable password changes? On Tue, Apr 15, 2014 at 12:43 PM, Nux! n...@li.nux.ro wrote: Hello, Those who are running Ubuntu instances, do you use cloud-init or the Cloudstack scripts? I'm trying to build some templates with 12.04 but can't find

Re: Ubuntu instances + cloud-init

2014-04-15 Thread Carlos Reátegui
Hi Nux, You can have a look at the patch that I created to fix the default cloud-init version on 12.04: https://github.com/creategui/CloudStackImageScripts The file you are looking for is DataSourceCloudStack.patch Regards, -Carlos On Apr 15, 2014, at 10:32 AM, Nux! n...@li.nux.ro wrote: On

Re: Ubuntu instances + cloud-init

2014-04-15 Thread Rafael Weingartner
If that one does not work, I can show you mine. I use Ubuntu 12.04 templates ;) On Tue, Apr 15, 2014 at 3:50 PM, Nux! n...@li.nux.ro wrote: On 15.04.2014 19:43, Carlos Reátegui wrote: Hi Nux, You can have a look at the patch that I created to fix the default cloud-init version on 12.04: