freedomofpress / ansible-role-elk

Installs a turnkey ELK stack for log aggregation and analysis, with optional Riemann support for alerting
18 stars 13 forks source link

Fix check for default permissions for /opt/kibana to root:root 775 #51

Closed techraf closed 8 years ago

techraf commented 8 years ago

The role created from scratch did not pass molecule test.

The default permissions for /opt/kibana are set to 775 and the Serverspec check was expecting 755:

vagrant@logserver:~$ ls -ld /opt/kibana
drwxrwxr-x 10 root root 4096 Aug  6 05:25 /opt/kibana
vagrant@logserver:~$
conorsch commented 8 years ago

Confirmed, this patch to the tests is good. :+1:

@techraf What version of Ansible are you using? I'm also seeing failures on the apt source lists (checking for 420, but they're currently 644) due to a bugfix in the apt module. Looks like the fix was backported to all 2.1+ versions of Ansible, so I may set that min_ansible_version: 2.1 in the meta info.