#!/bin/bash
mkdir -p /var/opt/chef-marketplace/
touch /var/opt/chef-marketplace/cloud_init_running
chef-marketplace-ctl setup --preconfigure
touch /var/opt/chef-marketplace/preconfigured
rm -rf /var/opt/chef-marketplace/cloud_init_running

#!/bin/bash
export HOME="/root"

mkdir -p /var/opt/chef-marketplace/
touch /var/opt/chef-marketplace/cloud_init_running
chef-marketplace-ctl setup --preconfigure && touch /var/opt/chef-marketplace/preconfigured

rm -rf /var/opt/chef-marketplace/cloud_init_running

Set HOME directory for Metered AWS offering.
Set HOME directory for Metered AWS offering.

This ports the changes from cset 4d6a136 to the Merered AWS offering.
The metered offer bakes the cloud-init user data scripts into the AMI
which I didn't previously realize.
