Skip to content

Commit

Permalink
Fix os family fact
Browse files Browse the repository at this point in the history
  • Loading branch information
deric committed Jan 22, 2025
1 parent 3d13819 commit 4e04227
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions spec/spec_helper_local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def get_os_info(facts)
zookeeper_shell: nil,
}

case facts[:osfamily]
case facts[:os]['family']
when 'Debian'
info[:service_name] = 'zookeeper'
info[:environment_file] = '/etc/zookeeper/conf/environment'
Expand All @@ -33,6 +33,8 @@ def get_os_info(facts)
info[:should_install_zookeeperd] = false
info[:zookeeper_shell] = '/bin/false'
info[:init_provider] = 'systemd'
else
raise "Unsupported OS: #{facts[:os]['family']}"
end

case info[:init_provider]
Expand All @@ -49,6 +51,5 @@ def get_os_info(facts)
else
"#{info[:init_dir]}/#{info[:service_name]}"
end

info
end

0 comments on commit 4e04227

Please sign in to comment.