# -*- coding: utf-8 -*-
from setuphelpers import *


def install():
    conf_path = makepath("/", "var", "ossec", "etc")
    # Installing the software
    install_yum("./" + glob.glob("wazuh-agent*.rpm")[0])
    filecopyto("ossec.conf", conf_path)
    run("systemctl enable wazuh-agent")
    run("systemctl restart wazuh-agent")
