orats 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/orats/shell.rb +2 -5
- data/lib/orats/version.rb +1 -1
- metadata +2 -4
- data/lib/orats/templates/includes/secrets/sslcert.crt +0 -21
- data/lib/orats/templates/includes/secrets/sslkey.key +0 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86f08bf4b89efe8a4391f8171f65f37831f2001d
|
4
|
+
data.tar.gz: 941d3a91ca8a12ef09339fd76f3c3421427a53ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed96c10f2a2d6b9a9a81d66aac2d6d3a71dccdf0938fbda512944698ac35f3c320455b649358fc70f8ca5ebb63d2866d570604b815ef7fd1c20118c8cfc635e6
|
7
|
+
data.tar.gz: ab24c18b622e8c26483856e4a7d275927c573c7ac2e261c147f9bef07499efbe458835fce765231d3c392e6dac3095f3e91a3fdb1b54fc5c4ea5bc5755997382
|
data/README.md
CHANGED
@@ -13,7 +13,7 @@ Everything is accessed through the [orats gem](#installation).
|
|
13
13
|
I will be updating them as new versions come out and when the gems used are proven to work. All important gems in the Gemfile
|
14
14
|
are locked using the pessimistic operator `~>` so you can be sure that everything plays nice as long as rubygems.org is up!
|
15
15
|
|
16
|
-
## System dependencies that
|
16
|
+
## System dependencies that must be on your dev box
|
17
17
|
|
18
18
|
- [The orats gem](#installation)
|
19
19
|
- To download each rails template and automate running certain tasks.
|
@@ -247,6 +247,7 @@ check out each role then here's a link to their repos:
|
|
247
247
|
- https://github.com/DavidWittman/ansible-redis
|
248
248
|
|
249
249
|
You will need to install the roles onto your workstation before you can use them. You can do that by running this command:
|
250
|
+
|
250
251
|
`ansible-galaxy install nickjj.user nickjj.security nickjj.postgres nickjj.ruby nickjj.nodejs nickjj.nginx nickjj.rails DavidWittman.redis --force`
|
251
252
|
|
252
253
|
### Try it
|
data/lib/orats/shell.rb
CHANGED
@@ -150,13 +150,10 @@ module Orats
|
|
150
150
|
update_secrets_path secrets_path
|
151
151
|
|
152
152
|
log_message 'shell', 'Creating ssh keypair'
|
153
|
-
run "
|
153
|
+
run "ssh-keygen -t rsa -P '' -f #{secrets_path}/id_rsa"
|
154
154
|
|
155
155
|
log_message 'shell', 'Creating self signed ssl certificates'
|
156
|
-
|
157
|
-
# SSL on your web app before switching to signed keys from a trusted vendor
|
158
|
-
copy_from_includes 'secrets/sslcert.crt', path
|
159
|
-
copy_from_includes 'secrets/sslkey.key', path
|
156
|
+
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"
|
160
157
|
end
|
161
158
|
|
162
159
|
private
|
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.1
|
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-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -92,8 +92,6 @@ files:
|
|
92
92
|
- lib/orats/templates/includes/Gemfile
|
93
93
|
- lib/orats/templates/includes/inventory/group_vars/all.yml
|
94
94
|
- lib/orats/templates/includes/inventory/hosts
|
95
|
-
- lib/orats/templates/includes/secrets/sslcert.crt
|
96
|
-
- lib/orats/templates/includes/secrets/sslkey.key
|
97
95
|
- lib/orats/templates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