added element for nginx-plus

Change-Id: I42588a5212038d45517c07492201ae5389b8d3df
This commit is contained in:
David Lenwell 2015-05-07 22:53:45 -07:00
parent 92cf4d83eb
commit caac0c478f
3 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,3 @@
Before using this element copy your nginx-repo.key and nginx-repo.crt into ./bin

View File

@ -0,0 +1,2 @@
cloud-init-datasources
source-repositories

View File

@ -0,0 +1,19 @@
#!/bin/bash
# this is an install script for nginx plus
# make nginx ssl dir
mkdir /etc/ssl/nginx
cp $(dirname $0)/../bin/* /etc/ssl/nginx/
wget https://cs.nginx.com/static/files/CA.crt -P /etc/ssl/nginx/
wget http://nginx.org/keys/nginx_signing.key -P /etc/ssl/nginx/
apt-key add nginx_signing.key
printf "deb https://plus-pkgs.nginx.com/debian `lsb_release -cs` nginx-plus\n" >/etc/apt/sources.list.d/nginx-plus.list
wget https://cs.nginx.com/static/files/90nginx -P /etc/apt/apt.conf.d
apt-get update
apt-get install nginx-plus -y