Is there a way to detect whether "up" or "provision" is run?
44 views
Skip to first unread message
sbrau...@gmail.com
unread,
Sep 18, 2015, 12:48:13 PM9/18/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Vagrant
I am setting up a vagrant testbed for our puppet repo. I want to pass no arguments to puppet_args on initial 'vagrant up' but pass '--test' on subsequent 'vagrant provision' as I would like to see the diffs of my changes. I don't want to see the diffs on initial provisioning because there's so much spam there... I just want to be able to verify that the changes I do produce the changes I think it should. Is this possible?
Stig
Alvaro Miranda Aguilera
unread,
Sep 18, 2015, 9:42:12 PM9/18/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vagra...@googlegroups.com
Hello,
This is very simple "but hey, it works!" ( c ) ( tm )
You can put something like this on your Vagrantfile
mypuppet_args =""
mypuppet_args ="--test" if ARGV[0] == "provision"