Skip to content

Commit

Permalink
refactor(pillar): factorize some defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
faudebert committed Jul 2, 2020
1 parent 324b0b8 commit 19a6656
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 26 deletions.
6 changes: 5 additions & 1 deletion nginx/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
# vim: ft=yaml
---
nginx:
lookup: {}
lookup:
package: nginx
service: nginx
conf_file: /etc/nginx/nginx.conf
snippets_dir: /etc/nginx/snippets
install_from_source: false
install_from_ppa: false
install_from_repo: false
Expand Down
25 changes: 0 additions & 25 deletions nginx/osfamilymap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,30 +3,22 @@
---
Debian:
lookup:
package: nginx
passenger_package: passenger
passenger_config_file: /etc/nginx/conf.d/passenger.conf
service: nginx
webuser: www-data
conf_file: /etc/nginx/nginx.conf
server_available: /etc/nginx/sites-available
server_enabled: /etc/nginx/sites-enabled
snippets_dir: /etc/nginx/snippets
server_use_symlink: true
pid_file: /run/nginx.pid
openssl_package: openssl

CentOS:
lookup:
package: nginx
passenger_package: passenger
passenger_config_file: /etc/nginx/conf.d/passenger.conf
service: nginx
webuser: nginx
conf_file: /etc/nginx/nginx.conf
server_available: /etc/nginx/conf.d
server_enabled: /etc/nginx/conf.d
snippets_dir: /etc/nginx/snippets
server_use_symlink: false
pid_file: /run/nginx.pid
rh_os_releasever: $releasever
Expand All @@ -36,15 +28,11 @@ CentOS:

RedHat:
lookup:
package: nginx
passenger_package: passenger
passenger_config_file: /etc/nginx/conf.d/passenger.conf
service: nginx
webuser: nginx
conf_file: /etc/nginx/nginx.conf
server_available: /etc/nginx/conf.d
server_enabled: /etc/nginx/conf.d
snippets_dir: /etc/nginx/snippets
server_use_symlink: false
pid_file: /run/nginx.pid
rh_os_releasever: $releasever
Expand All @@ -58,13 +46,9 @@ RedHat:

Suse:
lookup:
package: nginx
service: nginx
webuser: nginx
conf_file: /etc/nginx/nginx.conf
server_available: /etc/nginx/vhosts.d
server_enabled: /etc/nginx/vhosts.d
snippets_dir: /etc/nginx/snippets
server_use_symlink: false
pid_file: /run/nginx.pid
gpg_check: true
Expand All @@ -74,33 +58,24 @@ Suse:

Arch:
lookup:
package: nginx
service: nginx
webuser: http
conf_file: /etc/nginx/nginx.conf
server_available: /etc/nginx/sites-available
server_enabled: /etc/nginx/sites-enabled
snippets_dir: /etc/nginx/snippets
server_use_symlink: true
openssl_package: openssl

Gentoo:
lookup:
package: www-servers/nginx
service: nginx
webuser: nginx
conf_file: /etc/nginx/nginx.conf
server_available: /etc/nginx/sites-available
server_enabled: /etc/nginx/sites-enabled
snippets_dir: /etc/nginx/snippets
server_use_symlink: true
openssl_package: dev-libs/openssl

FreeBSD:
lookup:
package: nginx
passenger_package: passenger
service: nginx
webuser: www
conf_file: /usr/local/etc/nginx/nginx.conf
server_available: /usr/local/etc/nginx/sites-available
Expand Down

0 comments on commit 19a6656

Please sign in to comment.