how to run a provisioner only for a specific provider?

32 views
Skip to first unread message

Brett Swift

unread,
Feb 4, 2016, 3:00:19 PM2/4/16
to Vagrant
For some reason the puppet provisioner doesn't work for me on AWS - not the way I have my stuff set up. 

I have to do an inline shell provisioner for my puppet apply when it's on AWS,  but I want to use my puppet provisioner on virtualbox. 

I can't seem to find a value that I can do a conditional check on for this. 

I've also looked at giving the provisioner a name and overriding that named provisioner in the AWS provider as well but no luck. 

I deserialized the 'vm' object but it doesn't contain any provider information.   I'm sure this isn't the first time someone has come across this... 

pixel fairy

unread,
Feb 10, 2016, 2:42:09 PM2/10/16
to Vagrant
pixel$ vagrant provision --help
Usage: vagrant provision [vm-name] [--provision-with x,y,z]
       
--provision-with x,y,z       Enable only certain provisioners, by type or by name.
   
-h, --help                       Print this help

Reply all
Reply to author
Forward
0 new messages