orats 0.4.8 → 0.4.9

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: f6be8354b96425f8478851e1ea045f6403e9495d
4
- data.tar.gz: 1899d9273b725545dab8c42aa15c7b3ccef81653
3
+ metadata.gz: faeeee4eabfcbe7dfaf68eefd4f35829731c86d2
4
+ data.tar.gz: 341436c9d23fd6a6020073095279cee80d80db72
5
5
  SHA512:
6
- metadata.gz: af1717c6c523ce94d1de05ef9f3c1297ba6da8c6793f3cb5f7c0ad50495e9f3531f923131d825d456767fe4d974e84df8b407e4a99052847ddbdd2881349054b
7
- data.tar.gz: ffafb1ff48b0d58918aa1468109d14c2c137a3f7fa2e5edda6dc958d55ff98de06b664380fc7dd0283260042570ff0f5098c005e73947ec93ff5459b36d6dce5
6
+ metadata.gz: b68d46cbb12e94936b6ac9951794e7c06a760f9a5d47d567615b8a1976321b3c6774ebe0a50645aae9c8391c1a7a0e04e86430ec030a412e1242679d9447e683
7
+ data.tar.gz: d25c4c21a6212f709a7742c29f1122c0482f3e5356ce81a204214b3aef2b688e4a40c192a96767aed1a39c5e87778d929dd4f9244f5487e4c789b43e62449433
@@ -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", ': greatsecurity', ": #{@options[:redis_password]}"
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:4096 -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"
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:4096 -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"
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
@@ -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: greatsecurity
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 }}"
@@ -1,3 +1,3 @@
1
1
  module Orats
2
- VERSION = '0.4.8'
2
+ VERSION = '0.4.9'
3
3
  end
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.8
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-30 00:00:00.000000000 Z
11
+ date: 2014-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor