gerhalt/mining-camp

Automatic Auto-Provisioning

gerhalt opened this issue · 0 comments

Right now, instances need to be provisioned remotely after they're launched. It'd be much more robust to run Ansible provisioning locally on the box as part of the bootstrap process. I think the easiest way to set this up is:

  1. Create a new set of tagged Ansible tasks that archive the local /ansible contents and push them to the same S3 minecraft bucket already used for server archives and backups.
  2. Add user data to the launch configuration, which should:
    a. Install any prerequisites needed to run Ansible locally.
    b. Pull and extract the archive created above to a temporary directory.
    c. Run the startup playbook.