Skip to content

Commit

Permalink
Molecule: add cgroupns_mode to fix CI workflow
Browse files Browse the repository at this point in the history
Add cgroupns_mode: host
Change /sys/fs/cgroup:/sys/fs/cgroup:ro to /sys/fs/cgroup:/sys/fs/cgroup:rw

ansible/molecule#3665
  • Loading branch information
vitabaks committed Dec 7, 2022
1 parent f699460 commit 42b56fd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 10 deletions.
15 changes: 10 additions & 5 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ platforms:
- 2380/tcp
command: ""
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
groups:
Expand All @@ -39,7 +40,8 @@ platforms:
- 2380/tcp
command: ""
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
groups:
Expand All @@ -56,7 +58,8 @@ platforms:
- 2380/tcp
command: ""
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
groups:
Expand All @@ -74,7 +77,8 @@ platforms:
- 6432/tcp
command: ""
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
groups:
Expand All @@ -94,7 +98,8 @@ platforms:
- 6432/tcp
command: ""
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
groups:
Expand Down
15 changes: 10 additions & 5 deletions molecule/postgrespro/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ platforms:
- 2380/tcp
command: ""
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
env:
Expand All @@ -37,7 +38,8 @@ platforms:
- 2380/tcp
command: ""
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
env:
Expand All @@ -57,7 +59,8 @@ platforms:
- 2380/tcp
command: ""
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
env:
Expand All @@ -78,7 +81,8 @@ platforms:
- 6432/tcp
command: ""
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
env:
Expand All @@ -101,7 +105,8 @@ platforms:
- 6432/tcp
command: ""
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
- /sys/fs/cgroup:/sys/fs/cgroup:rw
cgroupns_mode: host
privileged: true
pre_build_image: true
env:
Expand Down

0 comments on commit 42b56fd

Please sign in to comment.