kubernetes/cluster/saltbase/salt/nginx/init.sls
Joe Beda 894a7e3282 Move everything out of src and reorganize scripts.
Fixed up some scripts to be more robust.  Changed the e2e test setup to use g1-small instances.  Fixed up documentation to reflect the new script locations.  Disabled the "curl | bash" cluster launch as it hasn't been well tested and doesn't include the cloudcfg tool yet.
2014-06-06 21:41:19 -07:00

53 lines
997 B
Plaintext

nginx:
pkg:
- installed
service:
- running
- watch:
- pkg: nginx
- file: /etc/nginx/nginx.conf
- file: /etc/nginx/sites-enabled/default
- file: /usr/share/nginx/htpasswd
- cmd: /usr/share/nginx/server.cert
/usr/share/nginx/server.cert:
cmd.script:
- source: salt://nginx/make-cert.sh
- cwd: /
- user: root
- group: root
- shell: /bin/bash
- stateful: True
/etc/nginx/nginx.conf:
file:
- managed
- source: salt://nginx/nginx.conf
- user: root
- group: root
- mode: 644
/etc/nginx/sites-enabled/default:
file:
- managed
- source: salt://nginx/kubernetes-site
- user: root
- group: root
- mode: 644
/usr/share/nginx/htpasswd:
file:
- managed
- source: salt://nginx/htpasswd
- user: root
- group: root
- mode: 644
/usr/share/nginx/make-cert.sh:
file:
- managed
- source: salt://nginx/make-cert.sh
- user: root
- group: root
- mode: 755