Vagrant + puPHPet provision shell scripts execution order
In which order a Vagrant VM created with puPHPet runs bootstrap shell scripts?
The files are organized in subdirectories of <host vm basedir>/puphpet/files/
and executed alphabetically. That's the order with which these subdirectories are run:
-
files/startup-once (executed only on first
vagrant up
, to re-execute dovagrant ssh
thensudo rm /.puphpet-stuff/startup-once-ran
) -
files/startup-always (executed only on every
vagrant up
) -
files/startup-once-unprivileged (executed only on first
vagrant up
, to re-execute dovagrant ssh
thensudo rm /.puphpet-stuff/startup-once-unprivileged-ran
) -
files/startup-always-unprivileged (executed only on every
vagrant up
) -
files/exec-preprovision (executed only on first
vagrant up
, to re-execute dovagrant ssh
thensudo rm /.puphpet-stuff/exec-preprovision-ran
) -
config.yml (actual file provisioning e.g.
apt-get install ...
) -
files/exec-once (executed only on first
vagrant up
, to re-execute dovagrant ssh
thensudo rm /.puphpet-stuff/exec-once-ran
) -
files/exec-always (executed only on every
vagrant up
) -
files/startup-once (executed only on first
vagrant up
, to re-execute dovagrant ssh
thensudo rm /.puphpet-stuff/startup-once-ran
) -
files/startup-always (executed only on every
vagrant up
) -
files/exec-once-unprivileged (executed only on first
vagrant up
, to re-execute dovagrant ssh
thensudo rm /.puphpet-stuff/exec-once-unprivileged-ran
) -
files/exec-always-unprivileged (executed only on every
vagrant up
) -
files/startup-once-unprivileged (executed only on first
vagrant up
, to re-execute dovagrant ssh
thensudo rm /.puphpet-stuff/startup-once-unprivileged-ran
) -
files/startup-always-unprivileged (executed only on every
vagrant up
)
Written by Andrea Collet
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vagrant
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#