~smoser/ec2-init/ec2-init.smoser

Viewing all changes in revision 47.

  • Committer: Soren Hansen
  • Date: 2009-08-10 20:12:01 UTC
  • Revision ID: soren@canonical.com-20090810201201-bz996dhu1xqq0alw
run_once_per_ami() and run_once_per_instance() are equivalent, so nuke run_once_per_instance().

There are three cases:
You want to run the script every time. In that case, simply do not wrap it.

You want to rerun the script every time the AMI has been rebundled. Wrap it in run_once_per_ami.

You want to run the script only once, ever. Wrap it in run_once_ever.

If I'm missing a case, please tell me. 

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: