{"action":"created","issue":{"url":"https://api.github.com/repos/wazuh/wazuh-ansible/issues/78","repository_url":"https://api.github.com/repos/wazuh/wazuh-ansible","labels_url":"https://api.github.com/repos/wazuh/wazuh-ansible/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/wazuh/wazuh-ansible/issues/78/comments","events_url":"https://api.github.com/repos/wazuh/wazuh-ansible/issues/78/events","html_url":"https://github.com/wazuh/wazuh-ansible/issues/78","id":377444892,"node_id":"MDU6SXNzdWUzNzc0NDQ4OTI=","number":78,"title":"Create configuration templates based on Operating Systems","user":{"login":"SitoRBJ","id":8913336,"node_id":"MDQ6VXNlcjg5MTMzMzY=","avatar_url":"https://avatars3.githubusercontent.com/u/8913336?v=4","gravatar_id":"","url":"https://api.github.com/users/SitoRBJ","html_url":"https://github.com/SitoRBJ","followers_url":"https://api.github.com/users/SitoRBJ/followers","following_url":"https://api.github.com/users/SitoRBJ/following{/other_user}","gists_url":"https://api.github.com/users/SitoRBJ/gists{/gist_id}","starred_url":"https://api.github.com/users/SitoRBJ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SitoRBJ/subscriptions","organizations_url":"https://api.github.com/users/SitoRBJ/orgs","repos_url":"https://api.github.com/users/SitoRBJ/repos","events_url":"https://api.github.com/users/SitoRBJ/events{/privacy}","received_events_url":"https://api.github.com/users/SitoRBJ/received_events","type":"User","site_admin":false},"labels":[{"id":562560928,"node_id":"MDU6TGFiZWw1NjI1NjA5Mjg=","url":"https://api.github.com/repos/wazuh/wazuh-ansible/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":562560931,"node_id":"MDU6TGFiZWw1NjI1NjA5MzE=","url":"https://api.github.com/repos/wazuh/wazuh-ansible/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-05T15:16:53Z","updated_at":"2018-12-11T19:14:29Z","closed_at":null,"author_association":"MEMBER","body":"Hello team, \r\n\r\nReferring to the issue #77, \r\n\r\nTo complement the quick response solution, but doing a more detailed work, we will proceed to create different configuration templates of the agent depending on the operating system in which it is installed to avoid errors monitoring non-existent directories and to avoid losing events by not monitoring files as for example was the case of /var/logs/auth.log.\r\n\r\nTherefore, we should identify the main cases like RPM, DEBIAN and WINDOWS (where we install agents via ansible) and create a specific configuration, adapting it if necessary to specific versions. This work will be useful in the future when we share the configurations from the manager using the groups. \r\n\r\nAdditionally, we should replicate what we do in a simple installation and keep the configuration shared from the empty manager. \r\n\r\nRegards,\r\n\r\nAlfonso \r\n"},"comment":{"url":"https://api.github.com/repos/wazuh/wazuh-ansible/issues/comments/446325428","html_url":"https://github.com/wazuh/wazuh-ansible/issues/78#issuecomment-446325428","issue_url":"https://api.github.com/repos/wazuh/wazuh-ansible/issues/78","id":446325428,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NjMyNTQyOA==","user":{"login":"paulcalabro","id":585059,"node_id":"MDQ6VXNlcjU4NTA1OQ==","avatar_url":"https://avatars1.githubusercontent.com/u/585059?v=4","gravatar_id":"","url":"https://api.github.com/users/paulcalabro","html_url":"https://github.com/paulcalabro","followers_url":"https://api.github.com/users/paulcalabro/followers","following_url":"https://api.github.com/users/paulcalabro/following{/other_user}","gists_url":"https://api.github.com/users/paulcalabro/gists{/gist_id}","starred_url":"https://api.github.com/users/paulcalabro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulcalabro/subscriptions","organizations_url":"https://api.github.com/users/paulcalabro/orgs","repos_url":"https://api.github.com/users/paulcalabro/repos","events_url":"https://api.github.com/users/paulcalabro/events{/privacy}","received_events_url":"https://api.github.com/users/paulcalabro/received_events","type":"User","site_admin":false},"created_at":"2018-12-11T19:14:29Z","updated_at":"2018-12-11T19:14:29Z","author_association":"CONTRIBUTOR","body":"Nice that you guys are considering restructuring this! I was actually thinking of making a PR for this. What I'd recommend is something like this:\r\n\r\n```\r\n- name: Include variables based on distribution and operating system family\r\n  include_vars: \"{{ item }}\"\r\n  with_first_found:\r\n    - \"{{ ansible_distribution }}.yaml\"\r\n    - \"{{ ansible_os_family }}.yaml\"\r\n    - default.yaml\r\n```\r\n\r\n...and then create the **same** variable in each YAML file with the appropriate values based on the distribution and operating system family. "}}
{"actor":{"display_login":"paulcalabro"}}