toquen 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/toquen/capistrano.rb +2 -2
- data/lib/toquen/templates/gitignore +1 -1
- data/lib/toquen/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: 833edeed8ec76c60048f4f5492c70824f2faefb1
|
4
|
+
data.tar.gz: c2fb59966d84c4c5da4fc5acf4af62d83df3249d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de3d318ee334a66cdd7bdc42ce37dc84f4d0fc47d5a4632223accf821f35002f81055fefa94b244962294e290e683e2c3fe6c709ad1fd071bf42e2fdbc46c142
|
7
|
+
data.tar.gz: 0e7b0556f75f879d39fc6c56e6ee49c51dc1bec3f0af88ba15d092e0c27c9646f9d757605f6fe481eb5128b440326ea8208784f8e47e45560453eb9b072b5049
|
data/README.md
CHANGED
@@ -168,7 +168,7 @@ Toquen can also drop off a config file meant for use by applications on your sys
|
|
168
168
|
|
169
169
|
1. Toquen creates a hash that contains a list of all of your servers and all of their details (based on your servers data_bag)
|
170
170
|
1. Toquen looks for a file named "apps.json" in your config folder, and if it's found, Toquen pulls out all of the keys that correspond with the server's roles and environments, and then it merges them together with the hash it's building (if this file contains secrets, consider *not* including in revision control)
|
171
|
-
1. The resulting hash is dropped off in your user's home directory (this can be overridden with the `apps_config_path` config variable)
|
171
|
+
1. The resulting hash is dropped off in your user's home directory with the filename "apps.json" (this can be overridden with the `apps_config_path` config variable).
|
172
172
|
|
173
173
|
Most likely, you'll want to add this line to your deploy.rb:
|
174
174
|
|
data/lib/toquen/capistrano.rb
CHANGED
@@ -53,10 +53,10 @@ task :update_appconfig do
|
|
53
53
|
if File.exists?('config/apps.json')
|
54
54
|
apps = JSON.parse(File.read('config/apps.json'))
|
55
55
|
config = { "_description" => "Dropped off by Toquen/Chef.", "servers" => [] }.merge(apps['default'] || {})
|
56
|
-
Dir.glob("#{fetch(:
|
56
|
+
Dir.glob("#{fetch(:chef_nodes_path)}/*.json") do |fname|
|
57
57
|
open(fname, 'r') { |f| config['servers'] << JSON.parse(f.read) }
|
58
58
|
end
|
59
|
-
dest =
|
59
|
+
dest = fetch(:apps_config_path, "/home/#{fetch(:ssh_options)[:user]}/apps.json")
|
60
60
|
|
61
61
|
on roles(:all), in: :parallel do |host|
|
62
62
|
appconfig = Marshal.load(Marshal.dump(config))
|
data/lib/toquen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toquen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Muller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|