New Question

puck's profile - activity

2016-08-25 17:08:20 +0200 received badge  Famous Question (source)
2016-08-18 02:52:09 +0200 answered a question Newlines in UserData?



# The Telnet server needs to be enabled
install-windowsfeature "telnet-server"
install-windowsfeature "telnet-client"
install-windowsfeature -name AD-Domain-Services -IncludeManagementTools

cmd /C netsh advfirewall set allprofiles state off
cmd /C tlntadmn config maxconn=1024

cmd /C net localgroup /add telnetclients "authenticated users"
cmd /C sc config tlntsvr start=auto
cmd /C sc start tlntsvr

We're saving that to a file called "userdata.txt" then giving it to Nova as: nova boot ... --user-data userdata.txt

If we just save that into a file on our Linux boxes, it fails. If I run todos userdata.txt before doing the boot, then it works.

Cheers, Andrew

2016-07-27 06:56:56 +0200 received badge  Notable Question (source)
2016-07-25 13:28:01 +0200 received badge  Popular Question (source)
2016-07-22 01:01:07 +0200 asked a question Newlines in UserData?


We have an inconsistency with a UserData script from a customer. It works against the evaluation Windows image provided by, but not against the Windows images we've created - both are Windows Server 2012 R2.

Our image has Cloudbase-init v0.9.9 and Python 3.4.3.

Now, I have been able to get the UserData script to run, but I had to change the newlines in it. So, the script that ran again the image had Unix newlines (\n), but against our image we needed Windows newlines (\r\n).

Is there something we're missing in our image to do the conversion, or to allow this to run?

Cheers, Andrew

2016-07-21 00:34:22 +0200 answered a question Issue running powershell scripts in user_data (openstack configdriver)

Something to check - I just discovered this yesterday - what newlines are in your file? Unix style (just \n) won't work, you need \r\n. Try running "todos user_data" (or similar).

2016-07-18 13:10:50 +0200 received badge  Famous Question (source)
2016-07-16 14:15:39 +0200 received badge  Notable Question (source)
2016-07-16 14:15:39 +0200 received badge  Popular Question (source)
2016-07-15 03:26:38 +0200 asked a question vendor_data for cloudbase-init?


Has anyone looked into extending cloudbase-init to support passing in vendor_data for cloudbase-init ?

Cheers, Andrew