7wyvva
Last Updated: September 11, 2016
·
394
· ifthenelse
Decadenza

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 do vagrant ssh then sudo 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 do vagrant ssh then sudo 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 do vagrant ssh then sudo 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 do vagrant ssh then sudo 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 do vagrant ssh then sudo 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 do vagrant ssh then sudo 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 do vagrant ssh then sudo rm /.puphpet-stuff/startup-once-unprivileged-ran)
  • files/startup-always-unprivileged (executed only on every vagrant up)
Say Thanks
Respond
Filed Under