Skip to content

Commit

Permalink
test(ubuntu-1804): fix ipv6 bind problem on ubuntu 18.04 in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperTux88 committed Oct 11, 2020
1 parent 8203e6c commit 07346a1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ suites:
'*':
- diaspora._mapdata
- diaspora
- redis
pillars:
top.sls:
base:
Expand All @@ -203,6 +204,9 @@ suites:
pillars_from_files:
diaspora.sls: pillar.example
tests.sls: test/salt/pillar/tests.sls
dependencies:
- name: redis
path: test/salt/states
verifier:
inspec_tests:
- path: test/integration/_mapdata
Expand Down
11 changes: 11 additions & 0 deletions test/salt/states/redis/init.sls
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{%- if grains.osfinger == 'Ubuntu-18.04' %}
redis_config:
file.replace:
- name: '/etc/redis/redis.conf'
- pattern: '^bind .*$'
- repl: 'bind 127.0.0.1'
- require:
- pkg: redis_package
- require_in:
- service: redis_service
{%- endif %}

0 comments on commit 07346a1

Please sign in to comment.