-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor libvirt to be host installed
This commit removed installation of of libvirt as a container and converts to doing a host level install. The molecule tests are enhanced to allow testing this and we revert to using ceph config from /etc/ceph.
- Loading branch information
1 parent
804d7af
commit fb13daa
Showing
35 changed files
with
274 additions
and
453 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
roles/edpm_libvirt/molecule/default/test-helpers/verify_sockets_exits.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
- name: Verify libvirt sockets are created with correct permissions {{ item }} | ||
block: | ||
- name: Check that libvirt sockets exist {{ item }} | ||
become: true | ||
ansible.builtin.stat: | ||
path: "{{ item }}" | ||
register: socket_exists | ||
- name: Assert that libvirt sockets exist {{ item }} | ||
ansible.builtin.assert: | ||
that: | ||
- socket_exists.stat.exists | ||
- socket_exists.stat.issock | ||
fail_msg: "libvirt socket {{ item }} does not exist" | ||
- name: Assert that libvirt socket is owned by root and has libvirt group {{ item }} | ||
ansible.builtin.assert: | ||
that: | ||
- socket_exists.stat.pw_name == 'root' | ||
- socket_exists.stat.gr_name == 'libvirt' | ||
fail_msg: "libvirt socket {{ item }} is not owned by root:libvirt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.