Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add suse and opensuse support #122

Merged
merged 1 commit into from Sep 2, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions .kitchen.yml
Expand Up @@ -75,6 +75,14 @@ platforms:
pid_one_command: /usr/lib/systemd/systemd
intermediate_instructions:
- RUN dnf install -y yum
- name: opensuse-42
driver:
image: opensuse:42.1
pid_one_command: /usr/lib/systemd/systemd
- name: opensuse-13
driver:
image: opensuse:13.2
pid_one_command: /usr/lib/systemd/systemd

suites:
- name: default
Expand Down
9 changes: 7 additions & 2 deletions attributes/default.rb
Expand Up @@ -24,14 +24,19 @@
default['sshclient']['package'] = 'openssh-clients'
when 'debian', 'ubuntu'
default['sshclient']['package'] = 'openssh-client'
when 'arch'
when 'arch', 'suse', 'opensuse'
default['sshclient']['package'] = 'openssh'
else
default['sshclient']['package'] = 'openssh-client'
end

# Define the server package name
default['sshserver']['package'] = 'openssh-server'
case node['platform']
when 'suse', 'opensuse'
default['sshserver']['package'] = 'openssh'
else
default['sshserver']['package'] = 'openssh-server'
end

# Define the service name for sshd
case node['platform_family']
Expand Down