From a4aac51e0cf8606678ea56b591d0d68fcfa95b59 Mon Sep 17 00:00:00 2001 From: Cristovao Cordeiro Date: Mon, 25 Sep 2023 17:29:58 +0200 Subject: [PATCH] feat: add NGINX slices for Mantic --- slices/nginx-common.yaml | 60 ++++++++++++++++++++++++++++++++++++++++ slices/nginx.yaml | 16 +++++++++++ 2 files changed, 76 insertions(+) create mode 100644 slices/nginx-common.yaml create mode 100644 slices/nginx.yaml diff --git a/slices/nginx-common.yaml b/slices/nginx-common.yaml new file mode 100644 index 000000000..ad6d5c449 --- /dev/null +++ b/slices/nginx-common.yaml @@ -0,0 +1,60 @@ +package: nginx-common + +slices: + # Leaving the debconf dependency out as we don't currently need pkg mgmt. + # Also, debconf is especially used for the maintainer scripts, which are + # handled differently in Chisel. + # There's also no need (yet) for any init- and systemd-related files. + config: + contents: + /etc/logrotate.d/nginx: + /etc/nginx/fastcgi.conf: + /etc/nginx/fastcgi_params: + /etc/nginx/koi-utf: + /etc/nginx/koi-win: + /etc/nginx/mime.types: + /etc/nginx/nginx.conf: + /etc/nginx/proxy_params: + /etc/nginx/scgi_params: + /etc/nginx/sites-available/default: + /etc/nginx/snippets/fastcgi-php.conf: + /etc/nginx/snippets/snakeoil.conf: + /etc/nginx/uwsgi_params: + /etc/nginx/win-utf: + # Created by the maintainer scripts + /var/log/nginx/: {make: true, mode: 0755} + /var/log/nginx/access.log: {text: "", mode: 640} + /var/log/nginx/error.log: {text: "", mode: 640} + /etc/nginx/sites-enabled/default: {symlink: /etc/nginx/sites-available/default} + /var/www/html/: {make: true} + /var/lib/nginx/: {make: true} + + ufw-config: + contents: + /etc/ufw/applications.d/nginx: + + apport: + contents: + /usr/share/apport/package-hooks/source_nginx.py: + + index: + contents: + /usr/share/nginx/html/index.html: + /var/www/html/index.nginx-debian.html: {copy: /usr/share/nginx/html/index.html} + + modules: + contents: + /usr/share/nginx/modules: + + vim-addons: + essential: + - nginx-common_vim-config + contents: + /usr/share/vim/addons/ftdetect/nginx.vim: + /usr/share/vim/addons/ftplugin/nginx.vim: + /usr/share/vim/addons/indent/nginx.vim: + /usr/share/vim/addons/syntax/nginx.vim: + + vim-config: + contents: + /usr/share/vim/registry/nginx.yaml: diff --git a/slices/nginx.yaml b/slices/nginx.yaml new file mode 100644 index 000000000..41976021b --- /dev/null +++ b/slices/nginx.yaml @@ -0,0 +1,16 @@ +package: nginx + +slices: + bins: + essential: + # iproute2 seems to only be required for executing the maintainer + # scripts, which is something that is handled differently in Chisel. + # - iproute2_bins + - libc6_libs + - libcrypt1_libs + - libpcre2-8-0_libs + - libssl3_libs + - nginx-common_config + - zlib1g_libs + contents: + /usr/sbin/nginx: