sunzi-rails 0.2.15 → 0.2.16
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 +4 -4
- data/README.md +1 -1
- data/lib/sunzi/cli.rb +8 -12
- data/lib/sunzi/version.rb +1 -1
- data/lib/templates/create/files/rails_logs +9 -0
- data/lib/templates/create/recipes/analysers.sh +15 -0
- data/lib/templates/create/recipes/logrotate.sh +7 -0
- data/lib/templates/create/roles/admin.sh +2 -1
- metadata +6 -3
- data/lib/templates/create/recipes/sysstat.sh +0 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cd0647135cab2984456b5b16552e119fcac36910
|
|
4
|
+
data.tar.gz: 5d75cef20a7a01c113d1d3dfa87e72b3e9f538e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dae65e6a0d65e9788c53bc3ae5213922ec1e83f05ca91d9c49146f4acebe2d3dc91d504fb16c07092c4b19f6af6c0d0666904a810f6f1010d093996c5a175229
|
|
7
|
+
data.tar.gz: 8c4aa0f48fbfe6934801d88b24bf245df81716985d6aae466769e5ea53ca9fc661ebafee17eed158f06306155bd23e7efe2b848c236a2304fe6996d0b0c6b043
|
data/README.md
CHANGED
|
@@ -60,7 +60,7 @@ Finally, add `/compiled` to your `.gitignore` file.
|
|
|
60
60
|
|
|
61
61
|
All those settings can be overriden in your `sunzi.yml` file within `attributes`.
|
|
62
62
|
|
|
63
|
-
Also, contextual attributes are available through `@attributes`:
|
|
63
|
+
Also, deploy.rb, deploy/[stage].rb, database.yml (prefixed with `db_`), secrets.yml and contextual attributes (prefixed with `env_`) are available through `@attributes`:
|
|
64
64
|
|
|
65
65
|
```ruby
|
|
66
66
|
@attributes.env_stage
|
data/lib/sunzi/cli.rb
CHANGED
|
@@ -103,18 +103,14 @@ module Sunzi
|
|
|
103
103
|
|
|
104
104
|
@config = YAML.load(File.read(based("sunzi.yml")))
|
|
105
105
|
|
|
106
|
-
@attributes = Database.load_env(@stage)
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
env_host: @host,
|
|
115
|
-
env_port: @port
|
|
116
|
-
)
|
|
117
|
-
.merge(@config['attributes'] || {})
|
|
106
|
+
@attributes = cap.merge(Database.load_env(@stage)).merge(Secrets.load_env(@stage)).merge(
|
|
107
|
+
env_stage: @stage,
|
|
108
|
+
env_role: @role,
|
|
109
|
+
env_sudo: options.sudo?,
|
|
110
|
+
env_user: @user,
|
|
111
|
+
env_host: @host,
|
|
112
|
+
env_port: @port
|
|
113
|
+
).merge(@config['attributes'] || {})
|
|
118
114
|
end
|
|
119
115
|
|
|
120
116
|
def compile_attributes
|
data/lib/sunzi/version.rb
CHANGED
|
@@ -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
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sunzi-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.16
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kenn Ejima
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2016-01-
|
|
12
|
+
date: 2016-01-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|
|
@@ -124,9 +124,12 @@ files:
|
|
|
124
124
|
- lib/sunzi/utility.rb
|
|
125
125
|
- lib/sunzi/version.rb
|
|
126
126
|
- lib/templates/create/files/authorized_keys
|
|
127
|
+
- lib/templates/create/files/rails_logs
|
|
127
128
|
- lib/templates/create/files/sudoers
|
|
128
129
|
- lib/templates/create/install.sh
|
|
130
|
+
- lib/templates/create/recipes/analysers.sh
|
|
129
131
|
- lib/templates/create/recipes/libraries.sh
|
|
132
|
+
- lib/templates/create/recipes/logrotate.sh
|
|
130
133
|
- lib/templates/create/recipes/mysql.sh
|
|
131
134
|
- lib/templates/create/recipes/nodejs.sh
|
|
132
135
|
- lib/templates/create/recipes/passenger.sh
|
|
@@ -134,7 +137,6 @@ files:
|
|
|
134
137
|
- lib/templates/create/recipes/ruby.sh
|
|
135
138
|
- lib/templates/create/recipes/setup.sh
|
|
136
139
|
- lib/templates/create/recipes/sunzi.sh
|
|
137
|
-
- lib/templates/create/recipes/sysstat.sh
|
|
138
140
|
- lib/templates/create/recipes/update.sh
|
|
139
141
|
- lib/templates/create/recipes/user.sh
|
|
140
142
|
- lib/templates/create/roles/admin.sh
|
|
@@ -167,3 +169,4 @@ signing_key:
|
|
|
167
169
|
specification_version: 4
|
|
168
170
|
summary: Server provisioning utility for minimalists
|
|
169
171
|
test_files: []
|
|
172
|
+
has_rdoc:
|