From 6f5ac946d10586cbe7d98363cd07f169c9805818 Mon Sep 17 00:00:00 2001 From: "Bernhard M. Wiedemann" Date: Thu, 20 Dec 2018 12:37:46 +0100 Subject: [PATCH] Add support for SUSE OSes like openSUSE and SLES --- nginx/map.jinja | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/nginx/map.jinja b/nginx/map.jinja index b467106..67f93ee 100644 --- a/nginx/map.jinja +++ b/nginx/map.jinja @@ -41,4 +41,25 @@ 'install_prefix': '/usr/local/nginx', 'make_flags': '-j2' }, + 'Suse': { + 'apache_utils': 'apache2-utils', + 'group_action': 'pkg.installed', + 'group_pkg': 'patterns-devel-base-devel_rpm_build', + 'libpcre_dev': 'pcre-devel', + 'libssl_dev': 'openssl-devel', + 'pid_path': '/run/nginx.pid', + 'package': 'nginx', + 'default_user': 'nginx', + 'default_group': 'nginx', + 'disable_before_rename': True, + 'old_init_disable': 'chkconfig --del nginx', + 'use_upstart': False, + 'use_sysvinit': False, + 'home': '/srv/www', + 'conf_dir': '/etc/nginx', + 'log_dir': '/var/log/nginx', + 'sbin_dir': '/usr/sbin', + 'install_prefix': '/usr/local/nginx', + 'make_flags': '-j2' + }, }, grain='os_family', merge=salt['pillar.get']('nginx:lookup'), default='Debian') %}