File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,12 @@ Vagrant.configure('2') do |config|
3232 end
3333 end
3434 end
35+ end
3536
36- # puts "[DEBUG] provisioning #{box_name} using ansible vagrant playbook..."
37- config . vm . provision 'ansible' do |ansible |
38- ansible . playbook = PLAYBOOK
39- ansible . verbose = 'v'
40- end
4137
38+ # puts "[DEBUG] provision using ansible vagrant playbook..."
39+ config . vm . provision 'ansible' do |ansible |
40+ ansible . playbook = PLAYBOOK
41+ ansible . verbose = 'v'
4242 end
4343end
Original file line number Diff line number Diff line change @@ -86,10 +86,12 @@ LOGFILE="log/${BOX}_${VIRTUALENV_NAME}.log"
8686EXTRA_ARGS=' '
8787if [ $BOX == " localhost" ]; then
8888 EXTRA_ARGS=" --connection=local --extra-vars idempotence=yes"
89+ else
90+ EXTRA_ARGS=" --u vagrant"
8991fi
9092
9193echo " [INFO] ${BOX} ${VIRTUALENV_NAME} running idempotence test..."
92- ansible-playbook -i ${INVENTORY} --limit ${BOX} ${PLAYBOOK} ${EXTRA_ARGS} 2>&1 | tee ${LOGFILE} | \
94+ ansible-playbook -i ${INVENTORY} --limit ${BOX} , ${PLAYBOOK} ${EXTRA_ARGS} 2>&1 | tee ${LOGFILE} | \
9395 grep " ${BOX} " | grep -q " ${PASS_CRITERIA} " && \
9496 echo -ne " [TEST] ${BOX} ${VIRTUALENV_NAME} idempotence : ${GREEN} PASS${NC} \n" || \
9597 (echo -ne " [TEST] ${BOX} ${VIRTUALENV_NAME} idempotence : ${RED} FAILED${NC} ${PASS_CRITERIA} \n" && exit 1)
You can’t perform that action at this time.
0 commit comments