Linode CLI Stackscripts problem

Hi,

I wonder if someone can help me, I'm trying to create a VM and run a script, is this the correct json syntax?

linode create Node03 –location dallas --plan linode1024 --payment-term 1 --distribution 'Ubuntu 12.04' --group HTTPCluster --stackscript 12 --stackscriptjson { "dbpassword": "test12345" } --password test12345

I get this error

The JSON provided is invalid. Re-run with 'linode rebuild Node03 …'

Many thanks

1 Reply

Due to how bash parses your command, the JSON you define is actually: '{', which is invalid.

Replace:

--stackscriptjson { "db_password": "test12345" }

with:

--stackscriptjson '{ "db_password": "test12345" }'

to tell the CLI to interpret your JSON string as 1 command-line parameter

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct