Check if Vagrant provisioning has been done

前端 未结 4 1089
忘了有多久
忘了有多久 2021-01-02 03:43

I am using Vagrant to deploy VMs for development. One of the requirements is that vagrant provision creates a new user (done in a provisioning script I wrote)

4条回答
  •  既然无缘
    2021-01-02 04:23

    I can't find a straightforward way of doing this. Sounds like the simplest solution would be to check the provision result i.e. can you log in with user created after provisioning?

    Another option would be to always run vagrant reload --provision to ensure the box is in a provisioned state before continuing.

提交回复
热议问题