Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

host-deploy: condition for adding fapolicy rules #256

Merged
merged 1 commit into from
Apr 12, 2022

Conversation

hbraha
Copy link
Contributor

@hbraha hbraha commented Apr 11, 2022

remove ansible_distribution == 'RedHat' since we already check if the service is running.
fapolicyd < 1.1 doesn't have /etc/fapolicyd/rules.d/,add check if the directory exists.

remove ansible_distribution == 'RedHat' since we already check if the service is running.
fapolicyd < 1.1 doesn't have /etc/fapolicyd/rules.d/,add check if the directory exists.
@hbraha hbraha requested a review from mwperina as a code owner April 11, 2022 17:04
@hbraha
Copy link
Contributor Author

hbraha commented Apr 11, 2022

/ost

Copy link
Member

@mwperina mwperina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@@ -64,6 +64,11 @@
command: vdsm-tool configure --force
changed_when: True

- name: Verify fapolicyd.rules file
stat:
path: /etc/fapolicyd/fapolicyd.rules
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should check if /etc/fapolicyd/rules.d exists since you add the new rule to this directory.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Crap, I've completely missed that, sorry :-(

Fixed in #259

mwperina added a commit to mwperina/ovirt-engine that referenced this pull request Apr 12, 2022
Fixes fapolicy configuration path introduced in
oVirt#256

Signed-off-by: Martin Perina <mperina@redhat.com>
mwperina added a commit to mwperina/ovirt-engine that referenced this pull request Apr 12, 2022
Fixes fapolicy configuration path introduced in
oVirt#256

Signed-off-by: Martin Perina <mperina@redhat.com>
mwperina added a commit to mwperina/ovirt-engine that referenced this pull request Apr 12, 2022
Fixes fapolicy configuration path introduced in
oVirt#256 and
oVirt#259

Signed-off-by: Martin Perina <mperina@redhat.com>
mwperina added a commit to mwperina/ovirt-engine that referenced this pull request Apr 12, 2022
Fixes fapolicy configuration path introduced in
oVirt#256

Signed-off-by: Martin Perina <mperina@redhat.com>
mwperina added a commit that referenced this pull request Apr 12, 2022
Fixes fapolicy configuration path introduced in
#256

Signed-off-by: Martin Perina <mperina@redhat.com>
mwperina added a commit to mwperina/ovirt-engine that referenced this pull request Apr 12, 2022
Fixes fapolicy configuration path introduced in
oVirt#256

Signed-off-by: Martin Perina <mperina@redhat.com>
mwperina added a commit to mwperina/ovirt-engine that referenced this pull request Apr 13, 2022
Fixes fapolicy configuration path introduced in
oVirt#256

Signed-off-by: Martin Perina <mperina@redhat.com>
bennyz pushed a commit to bennyz/ovirt-engine that referenced this pull request Apr 14, 2022
Fixes fapolicy configuration path introduced in
oVirt#256

Signed-off-by: Martin Perina <mperina@redhat.com>
mwperina added a commit that referenced this pull request Apr 14, 2022
Fixes fapolicy configuration path introduced in
#256

Signed-off-by: Martin Perina <mperina@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants