Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion roles/smartctl_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ smartctl_exporter_log_level: "info"
smartctl_exporter_log_format: "logfmt"

smartctl_exporter_binary_install_dir: "/usr/local/bin"
smartctl_exporter_system_group: "smartctl-exp"
smartctl_exporter_system_group: "root"
smartctl_exporter_system_user: "{{ smartctl_exporter_system_group }}"
smartctl_exporter_config_dir: "/etc/smartctl_exporter"

Expand Down
4 changes: 2 additions & 2 deletions roles/smartctl_exporter/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ argument_specs:
description:
- "I(Advanced)"
- "System group for Smartctl exporter"
default: "smartctl-exp"
default: "root"
smartctl_exporter_system_user:
description:
- "I(Advanced)"
- "Smartctl exporter user"
default: "smartctl-exp"
default: "root"
smartctl_exporter_local_cache_path:
description: "Local path to stash the archive and its extraction"
default: "/tmp/smartctl_exporter-{{ ansible_facts['system'] | lower }}-{{ _smartctl_exporter_go_ansible_arch }}/{{ smartctl_exporter_version }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ def test_files(host):


def test_user(host):
assert host.group("smartctl-exp").exists
assert "smartctl-exp" in host.user("smartctl-exp").groups
assert host.user("smartctl-exp").shell == "/usr/sbin/nologin"
assert host.group("root").exists
assert "root" in host.user("root").groups
assert host.user("root").shell == "/usr/sbin/nologin"


def test_service(host):
Expand Down