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

Centos 7, missing package policycoreutils-python #119

Closed
marcin-github opened this issue Sep 12, 2019 · 2 comments
Closed

Centos 7, missing package policycoreutils-python #119

marcin-github opened this issue Sep 12, 2019 · 2 comments

Comments

@marcin-github
Copy link

<192.168.128.22> (0, b'', b'')
The full traceback is:
Traceback (most recent call last):
  File "/tmp/ansible_seport_payload_dzPIxt/__main__.py", line 110, in <module>
    import seobject
ImportError: No module named seobject

fatal: [graylog4]: FAILED! => {
    "changed": false,
    "invocation": {
        "module_args": {
            "ignore_selinux_state": false,
            "ports": [
                "27017"
            ],
            "proto": "tcp",
            "reload": true,
            "setype": "mongod_port_t",
            "state": "present"
        }
    },
    "msg": "Failed to import the required Python library (policycoreutils-python) on graylog4.in.sprawy.it's Python /usr/bin/python. Please read module documentation and install in the appropriate location"
}

@ArthurSens
Copy link

Had the same problem

Modifing vars/RedHat.yml as seen below solved for me:

---

graylog_server_defaults_file_path:    "/etc/sysconfig/graylog-server"
graylog_mongodb_data_path:            "/var/lib/mongo"
graylog_mongodb_package_dependencies:
  - "libselinux-python"
  - "policycoreutils-python"
graylog_java:                         "java-1.8.0-openjdk-headless.x86_64"

@icanhazpython
Copy link

Had the same problem

Modifing vars/RedHat.yml as seen below solved for me:

---

graylog_server_defaults_file_path:    "/etc/sysconfig/graylog-server"
graylog_mongodb_data_path:            "/var/lib/mongo"
graylog_mongodb_package_dependencies:
  - "libselinux-python"
  - "policycoreutils-python"
graylog_java:                         "java-1.8.0-openjdk-headless.x86_64"

This worked for me as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants