Skip to content

Commit

Permalink
Change the tests to look for maxretry = 3
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjj committed Jun 29, 2014
1 parent 8dc63a2 commit 2293425
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ script:
|| (echo 'Idempotence test: fail' && exit 1)
- >
sudo cat /etc/fail2ban/jail.local
| grep -q '\[ssh\]\|\[postfix\]\|enabled = true\|maxretry = 6'
| grep -q '\[ssh\]\|\[postfix\]\|enabled = true\|maxretry = 3'
&& (echo 'Services added test: pass' && exit 0)
|| (echo 'Services added test: fail' && exit 1)
1 change: 1 addition & 0 deletions tests/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
port: smtp,ssmtp
filter: postfix
logpath: /var/log/mail.log
maxretry: 3

roles:
- ansible-fail2ban

0 comments on commit 2293425

Please sign in to comment.