Skip to content

Commit

Permalink
Merge pull request #39 from hwoarang/add-suse-support
Browse files Browse the repository at this point in the history
Add SUSE support
  • Loading branch information
evrardjp authored Mar 21, 2017
2 parents 0b2d13a + e815ac3 commit f8244a8
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ galaxy_info:
versions:
- trusty
- xenial
- name: opensuse
versions:
- all
categories:
- clustering
dependencies: []
21 changes: 21 additions & 0 deletions tasks/keepalived_install_zypper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# Copyright 2017, SUSE LINUX GmbH.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

- name: Install keepalived
zypper:
name: "{{ keepalived_package_name }}"
state: "{{ keepalived_use_latest_stable | bool | ternary('latest','present') }}"
tags:
- keepalived-zypper-packages
6 changes: 6 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
tags:
- install-yum

- include: keepalived_install_zypper.yml
when:
- ansible_pkg_mgr == 'zypper'
tags:
- install-zypper

- include: keepalived_selinux.yml
when:
- ansible_selinux.status is defined
Expand Down
18 changes: 18 additions & 0 deletions vars/suse.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
# Copyright 2017, SUSE LINUX GmbH.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

keepalived_package_name: "keepalived"
keepalived_service_name: "keepalived"
keepalived_config_file_path: "/etc/keepalived/keepalived.conf"

0 comments on commit f8244a8

Please sign in to comment.