Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Heat run user-data before create user

Hello everyone,

I'm trying to run HOT chefserver script and I got this error:

Expected process to exit with [0], but received '1'
---- Begin output of bin/bootstrap-chef-server ----
STDOUT:
STDERR: erlexec: HOME must be set
---- End output of bin/bootstrap-chef-server ----

But when I log in to the VM, the HOME was already set:

echo $HOME
/home/ec2-user

I guessed this error happens because user-data was run before ec2-user created. I used Ubuntu image, it auto-create ec2-user

Is my guess true? How can I solve this problem?