Skip to content

Commit d9c8123

Browse files
committed
Merge branch 'master' of github.com:ansiblebit/primogen
2 parents b3ee0cf + ec05bdc commit d9c8123

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

tests/Vagrantfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
4343
end

tests/test_idempotence.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,12 @@ LOGFILE="log/${BOX}_${VIRTUALENV_NAME}.log"
8686
EXTRA_ARGS=''
8787
if [ $BOX == "localhost" ]; then
8888
EXTRA_ARGS="--connection=local --extra-vars idempotence=yes"
89+
else
90+
EXTRA_ARGS="--u vagrant"
8991
fi
9092

9193
echo "[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)

0 commit comments

Comments
 (0)