orats 0.4.8 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/orats/shell.rb +4 -4
- data/lib/orats/templates/base.rb +1 -1
- data/lib/orats/templates/includes/inventory/group_vars/all.yml +0 -1
- data/lib/orats/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: faeeee4eabfcbe7dfaf68eefd4f35829731c86d2
|
4
|
+
data.tar.gz: 341436c9d23fd6a6020073095279cee80d80db72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b68d46cbb12e94936b6ac9951794e7c06a760f9a5d47d567615b8a1976321b3c6774ebe0a50645aae9c8391c1a7a0e04e86430ec030a412e1242679d9447e683
|
7
|
+
data.tar.gz: d25c4c21a6212f709a7742c29f1122c0482f3e5356ce81a204214b3aef2b688e4a40c192a96767aed1a39c5e87778d929dd4f9244f5487e4c789b43e62449433
|
data/lib/orats/shell.rb
CHANGED
@@ -28,7 +28,7 @@ module Orats
|
|
28
28
|
log_message 'root', 'Adding the redis password'
|
29
29
|
|
30
30
|
gsub_file "#{@active_path}/config/initializers/sidekiq.rb", '//', "//:#{ENV['#{@app_name.upcase}_CACHE_PASSWORD']}@"
|
31
|
-
gsub_file "#{@active_path}/.env", ':
|
31
|
+
gsub_file "#{@active_path}/.env", 'HE_PASSWORD: ', "HE_PASSWORD: #{@options[:redis_password]}"
|
32
32
|
gsub_file "#{@active_path}/config/application.rb", "# pass", "pass"
|
33
33
|
end
|
34
34
|
|
@@ -154,7 +154,7 @@ module Orats
|
|
154
154
|
save_secret_string "#{secrets_path}/devise_pepper_token"
|
155
155
|
|
156
156
|
log_message 'shell', 'Modifying secrets path in group_vars/all.yml'
|
157
|
-
gsub_file "#{path}/inventory/group_vars/all.yml", '~/tmp/testproj/secrets/', secrets_path
|
157
|
+
gsub_file "#{path}/inventory/group_vars/all.yml", '~/tmp/testproj/secrets/', File.expand_path(secrets_path)
|
158
158
|
|
159
159
|
log_message 'shell', 'Modifying the place holder app name in group_vars/all.yml'
|
160
160
|
gsub_file "#{path}/inventory/group_vars/all.yml", 'testproj', File.basename(path)
|
@@ -164,10 +164,10 @@ module Orats
|
|
164
164
|
run "ssh-keygen -t rsa -P '' -f #{secrets_path}/id_rsa"
|
165
165
|
|
166
166
|
log_message 'shell', 'Creating self signed ssl certificates'
|
167
|
-
run "openssl req -new -newkey rsa:
|
167
|
+
run "openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 -subj '/C=US/ST=Foo/L=Bar/O=Baz/CN=qux.com' -keyout #{secrets_path}/sslkey.key -out #{secrets_path}/sslcert.crt"
|
168
168
|
|
169
169
|
log_message 'shell', 'Creating monit pem file'
|
170
|
-
run "openssl req -new -newkey rsa:
|
170
|
+
run "openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 -subj '/C=US/ST=Foo/L=Bar/O=Baz/CN=qux.com' -keyout #{secrets_path}/monit.pem -out #{secrets_path}/monit.pem && openssl gendh 512 >> #{secrets_path}/monit.pem"
|
171
171
|
end
|
172
172
|
|
173
173
|
private
|
data/lib/orats/templates/base.rb
CHANGED
@@ -118,7 +118,7 @@ RAILS_ENV: development
|
|
118
118
|
#{app_name_upper}_CACHE_HOST: localhost
|
119
119
|
#{app_name_upper}_CACHE_PORT: 6379
|
120
120
|
#{app_name_upper}_CACHE_DATABASE: 0
|
121
|
-
#{app_name_upper}_CACHE_PASSWORD:
|
121
|
+
#{app_name_upper}_CACHE_PASSWORD:
|
122
122
|
|
123
123
|
#{app_name_upper}_PUMA_THREADS_MIN: 0
|
124
124
|
#{app_name_upper}_PUMA_THREADS_MAX: 1
|
@@ -15,7 +15,6 @@ secrets_rails_token: "{{ lookup('password', secrets_load_path + 'rails_token') }
|
|
15
15
|
secrets_devise_token: "{{ lookup('password', secrets_load_path + 'devise_token') }}"
|
16
16
|
secrets_devise_pepper_token: "{{ lookup('password', secrets_load_path + 'devise_pepper_token') }}"
|
17
17
|
|
18
|
-
|
19
18
|
# postgres login credentials
|
20
19
|
postgres_user: "{{ user_name }}"
|
21
20
|
postgres_password: "{{ secrets_postgres_password }}"
|
data/lib/orats/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Janetakis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|