-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from crushlovely/dev
adding passenger log file to conform with new passenger update
- Loading branch information
Showing
11 changed files
with
85 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,19 @@ | ||
--- | ||
app_name: test | ||
app_path: /srv/test/public | ||
app_user: ubuntu | ||
app_group: ubuntu | ||
server_env: production | ||
ssl: 'false' | ||
passenger: 'true' | ||
updates: 'true' | ||
custom: 'true' | ||
nginx: | ||
version: 1.6.2 | ||
upstream_port: 5000 | ||
ssl_cert: | ||
crt: "" | ||
key: "" | ||
passenger: | ||
version: 5.0.6 | ||
prestart: http://test.com | ||
app: | ||
user: ubuntu | ||
group: ubuntu | ||
nginx_version: 1.6.2 | ||
nginx_upstream_port: 5000 | ||
nginx_ssl_cert: | ||
nginx_crt: "" | ||
nginx_key: "" | ||
nginx_passenger_version: 5.0.6 | ||
nginx_passenger_prestart: http://test.com | ||
nginx_passenger_log_file: "{{ app_path }}/log.log" | ||
domains: test.com | ||
server_env: production |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ galaxy_info: | |
- web | ||
- system | ||
dependencies: [] | ||
version: 1.0.0 | ||
version: 2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
--- | ||
- name: Create Sites Enabled Directory | ||
- name: Custom | Create Sites Enabled Directory | ||
file: path=/etc/nginx/sites-enabled state=directory owner=root group=root | ||
sudo: yes | ||
|
||
- name: Apply defaultserver conf file | ||
- name: Custom | Apply defaultserver conf file | ||
template: src=defaultserver.j2 dest=/etc/nginx/sites-enabled/zzzzzdefaultserver owner=root group=root | ||
sudo: yes | ||
|
||
- name: Apply site conf file | ||
- name: Custom | Apply site conf file | ||
template: src=site.com.j2 dest=/etc/nginx/sites-enabled/{{ app_name }} owner=root group=root | ||
sudo: yes | ||
when: passenger == "false" | ||
|
||
- name: Apply Passenger site conf file | ||
- name: Custom | Apply Passenger site conf file | ||
template: src=passenger.site.j2 dest=/etc/nginx/sites-enabled/{{ app_name }} owner=root group=root | ||
sudo: yes | ||
when: passenger == "true" | ||
|
||
- name: Custom Config template placement | ||
- name: Custom | Custom Config template placement | ||
template: src=passenger.conf.j2 dest=/etc/nginx/conf.d/passenger.conf owner=root group=root | ||
sudo: yes | ||
when: passenger == "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
--- | ||
- name: Download Passenger modules | ||
get_url: url=https://codeload.github.com/phusion/passenger/tar.gz/release-{{ nginx.passenger.version }} dest=/opt/passenger.tar.gz | ||
- name: Passenger | Download Passenger modules | ||
get_url: url=https://codeload.github.com/phusion/passenger/tar.gz/release-{{ nginx_passenger_version }} dest=/opt/passenger.tar.gz | ||
|
||
- name: Unzip Passenger Tar | ||
- name: Passenger | Unzip Passenger Tar | ||
unarchive: src=/opt/passenger.tar.gz dest=/opt/ copy=no | ||
|
||
- include: sudoers.yml | ||
|
||
- name: Change Directory & Configure Passenger | ||
shell: ./configure --user=www-data --group=www-data --prefix=/opt/nginx --sbin-path=/usr/sbin --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --lock-path=/var/run/nginx.lock --pid-path=/var/run/nginx.pid --with-http_geoip_module --with-http_gzip_static_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --with-mail --with-mail_ssl_module --add-module=modules/ngx_http_auth_pam_module-1.2 --add-module=modules/echo-nginx-module-0.51 --add-module=modules/nginx-upstream-fair --add-module=modules/nginx-dav-ext-module-0.0.3 --add-module=/opt/passenger/ext/nginx chdir=/opt/nginx-{{ nginx.version }} | ||
- name: Passenger | Change Directory & Configure Passenger | ||
shell: ./configure --user=www-data --group=www-data --prefix=/opt/nginx --sbin-path=/usr/sbin --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --lock-path=/var/run/nginx.lock --pid-path=/var/run/nginx.pid --with-http_geoip_module --with-http_gzip_static_module --with-http_realip_module --with-http_stub_status_module --with-http_ssl_module --with-http_sub_module --with-http_xslt_module --with-ipv6 --with-sha1=/usr/include/openssl --with-md5=/usr/include/openssl --with-mail --with-mail_ssl_module --add-module=modules/ngx_http_auth_pam_module-1.2 --add-module=modules/echo-nginx-module-0.51 --add-module=modules/nginx-upstream-fair --add-module=modules/nginx-dav-ext-module-0.0.3 --add-module=/opt/passenger/ext/nginx chdir=/opt/nginx-{{ nginx_version }} | ||
|
||
- name: Create Sites Enabled Directory | ||
- name: Passenger | Create Sites Enabled Directory | ||
file: path=/etc/nginx/sites-enabled state=directory owner=root group=root | ||
sudo: yes | ||
sudo: yes | ||
|
||
- name: Passenger | Build Native Support | ||
command: /opt/passenger/bin/passenger-config build-native-support |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
--- | ||
- name: Create SSL directory | ||
- name: SSL | Create SSL directory | ||
file: path=/etc/nginx/ssl/ state=directory owner=root group=root | ||
sudo: yes | ||
|
||
- name: Apply ssl site conf file | ||
- name: SSL | Apply SSL VHOST file | ||
template: src=passenger.ssl.site.j2 dest=/etc/nginx/sites-enabled/{{ app_name }} owner=root group=root | ||
sudo: yes | ||
when: passenger == "true" | ||
|
||
- name: Copy SSL Certs to server | ||
copy: src={{ nginx.ssl_cert.crt }} dest=/etc/nginx/ssl/ owner=root group=root force=yes | ||
- name: SSL | Copy SSL Certs to server | ||
copy: src={{ nginx_ssl_crt }} dest=/etc/nginx/ssl/ owner=root group=root force=yes | ||
sudo: yes | ||
|
||
- name: Copy SSL Certs to server | ||
copy: src={{ nginx.ssl_cert.key }} dest=/etc/nginx/ssl/ owner=root group=root force=yes | ||
- name: SSL | Copy SSL Certs to server | ||
copy: src={{ nginx_ssl_key }} dest=/etc/nginx/ssl/ owner=root group=root force=yes | ||
sudo: yes | ||
|
||
- name: SSL | Create DHPARAM cert | ||
command: openssl dhparam -outform pem -out /etc/nginx/ssl/dhparam2048.pem 2048 | ||
sudo: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
--- | ||
- name: Symlink Passenger directory | ||
file: src=/opt/passenger-release-{{ nginx.passenger.version }} path=/opt/passenger state=link | ||
file: src=/opt/passenger-release-{{ nginx_passenger_version }} path=/opt/passenger state=link | ||
|
||
- name: Copy passenger-path file | ||
- name: Sudoers | Copy passenger-path file | ||
copy: src=passenger-path.sh dest=/etc/profile.d/passenger-path.sh owner=root group=root | ||
sudo: yes | ||
|
||
- name: Copy Sudoers template | ||
- name: Sudoers | Copy Sudoers template | ||
copy: src=sudoers dest=/etc/sudoers owner=root group=root validate='visudo -cf %s' | ||
sudo: yes | ||
sudo: yes | ||
|
||
- name: Restart ssh | ||
service: name=ssh state=restarted | ||
sudo: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters