Browse Source

test(ubuntu-1804): fix ipv6 bind problem on ubuntu 18.04 in docker

tags/v1.0.0
Benjamin Neff 4 years ago
parent
commit
07346a13fb
No account linked to committer's email address
2 changed files with 15 additions and 0 deletions
  1. +4
    -0
      kitchen.yml
  2. +11
    -0
      test/salt/states/redis/init.sls

+ 4
- 0
kitchen.yml View File

'*': '*':
- diaspora._mapdata - diaspora._mapdata
- diaspora - diaspora
- redis
pillars: pillars:
top.sls: top.sls:
base: base:
pillars_from_files: pillars_from_files:
diaspora.sls: pillar.example diaspora.sls: pillar.example
tests.sls: test/salt/pillar/tests.sls tests.sls: test/salt/pillar/tests.sls
dependencies:
- name: redis
path: test/salt/states
verifier: verifier:
inspec_tests: inspec_tests:
- path: test/integration/_mapdata - path: test/integration/_mapdata

+ 11
- 0
test/salt/states/redis/init.sls View File

{%- 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 %}

Loading…
Cancel
Save