o2webappizer 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c45a6ef674aff3dcfd4017b9f2f552a0ecb45ee
4
- data.tar.gz: 1a18d695ef3f01be8d711f6df89c45dc8af92ecc
3
+ metadata.gz: 81c1ffab198f0938b4589a61b6db6b218094f04e
4
+ data.tar.gz: a4095aa67db899864148c9f3a4761bca0b878735
5
5
  SHA512:
6
- metadata.gz: b9f484f506728431c87d937b1ae8f736e57d308e2e887c2184016299c636c6ac5981f71b0b263cdcc2601ec446396911cf133725a924f95592606368482f1fa8
7
- data.tar.gz: d758115a677fa77f5655264bf9d6cabb89319f9d483720f35506407c1aac08a93da440f778912a004103fcfc7d3a1e045c333b765898ae52b943bbb17786eb06
6
+ metadata.gz: 3b5a0fe0cd810342b901b5b2449f92ba42bfac1198aa38ab5830134297aeb8bd2f11db36c7facb480fc4c4aa673b3b7ae717280564e68ef2904b47189ce1df78
7
+ data.tar.gz: da30ce620452488028f410681a67cd164107ebbb207f54b0cbf46524c85832ba45541f7a2c0d992fb12a04f36726af78c5e94dfe86006428cb2b0b080d6770bf
@@ -1,5 +1,5 @@
1
1
  module O2webappizer
2
- VERSION = "0.1.13"
2
+ VERSION = "0.1.14"
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
4
  RAILS_VERSION = "4.2"
5
5
  end
@@ -52,6 +52,7 @@ server {
52
52
  gzip_static on;
53
53
  expires 1M;
54
54
  add_header Cache-Control public;
55
+ access_log off;
55
56
  }
56
57
  <% end %>
57
58
  }
@@ -0,0 +1,9 @@
1
+ <%= @attributes.deploy_to %><%= @attributes.env_stage %>/current/log/*.log {
2
+ weekly
3
+ missingok
4
+ rotate 6
5
+ compress
6
+ delaycompress
7
+ notifempty
8
+ copytruncate
9
+ }
@@ -0,0 +1,15 @@
1
+ if sunzi.to_be_done "install analysers"; then
2
+ echo "deb http://deb.goaccess.io/ $(lsb_release -cs) main" | tee -a /etc/apt/sources.list.d/goaccess.list
3
+ wget -O - http://deb.goaccess.io/gnugpg.key | apt-key add -
4
+
5
+ sunzi.mute "apt-get update"
6
+
7
+ sunzi.install "goaccess"
8
+ sunzi.install "iotop"
9
+ sunzi.install "sysstat"
10
+
11
+ sed -i 's/ENABLED="false"/ENABLED="true"/' /etc/default/sysstat
12
+ /etc/init.d/sysstat restart
13
+
14
+ sunzi.done "install analysers"
15
+ fi
@@ -0,0 +1,7 @@
1
+ if sunzi.to_be_done "setup logrotate"; then
2
+ mv files/rails_logs /etc/logrotate.d/rails_logs
3
+ chown root:root /etc/logrotate.d/rails_logs
4
+ chmod 0644 /etc/logrotate.d/rails_logs
5
+
6
+ sunzi.done "setup logrotate"
7
+ fi
@@ -13,7 +13,8 @@ source recipes/mysql.sh
13
13
  <% end -%>
14
14
  source recipes/passenger.sh
15
15
  source recipes/user.sh
16
- source recipes/sysstat.sh
16
+ source recipes/analysers.sh
17
+ source recipes/logrotate.sh
17
18
 
18
19
  sunzi.elapsed_time $start
19
20
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: o2webappizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrice Lebel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-26 00:00:00.000000000 Z
11
+ date: 2016-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -132,9 +132,12 @@ files:
132
132
  - templates/config/routes.rb.tt
133
133
  - templates/config/secrets.yml.tt
134
134
  - templates/config/sunzi/files/authorized_keys
135
+ - templates/config/sunzi/files/rails_logs
135
136
  - templates/config/sunzi/files/sudoers
136
137
  - templates/config/sunzi/install.sh
138
+ - templates/config/sunzi/recipes/analysers.sh
137
139
  - templates/config/sunzi/recipes/libraries.sh
140
+ - templates/config/sunzi/recipes/logrotate.sh
138
141
  - templates/config/sunzi/recipes/mysql.sh
139
142
  - templates/config/sunzi/recipes/nodejs.sh
140
143
  - templates/config/sunzi/recipes/passenger.sh
@@ -142,7 +145,6 @@ files:
142
145
  - templates/config/sunzi/recipes/ruby.sh
143
146
  - templates/config/sunzi/recipes/setup.sh
144
147
  - templates/config/sunzi/recipes/sunzi.sh
145
- - templates/config/sunzi/recipes/sysstat.sh
146
148
  - templates/config/sunzi/recipes/update.sh
147
149
  - templates/config/sunzi/recipes/user.sh
148
150
  - templates/config/sunzi/roles/admin.sh
@@ -207,3 +209,4 @@ signing_key:
207
209
  specification_version: 4
208
210
  summary: Project Boilerplate Builder used by O2Web
209
211
  test_files: []
212
+ has_rdoc:
@@ -1,9 +0,0 @@
1
- if sunzi.to_be_done "install sysstat"; then
2
- sunzi.install "sysstat"
3
- sunzi.install "iotop"
4
-
5
- sed -i 's/ENABLED="false"/ENABLED="true"/' /etc/default/sysstat
6
- /etc/init.d/sysstat restart
7
-
8
- sunzi.done "install sysstat"
9
- fi