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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ffd59553ea2c724931ed5523bc8677f88a366bf
4
- data.tar.gz: 5ed4ecaa74bc4350839d094604decbdcef8d0e69
3
+ metadata.gz: 833edeed8ec76c60048f4f5492c70824f2faefb1
4
+ data.tar.gz: c2fb59966d84c4c5da4fc5acf4af62d83df3249d
5
5
  SHA512:
6
- metadata.gz: eaf257bfcd85e2ed470997d92a89235aa914c56ba28870679f0420dd690b2fcb0784f1bfbab4b2fdcd0055fac69c0f2b3fc0f10c133c01ea9ade2e858ed2bb05
7
- data.tar.gz: a657f4de01aa9b4ec3ddebf4df06f865565bcfe072a8e9eb5be0b46e5d194735ea79946f75c939389dd2abaad908662f92871144d5afec84606c7a2c38efd7d1
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) with the filename "apps.json".
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
 
@@ -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(:chef_data_bags_path)}/servers/*.json") do |fname|
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 = File.join fetch(:apps_config_path, "/home/#{fetch(:ssh_options)[:user]}"), "apps.json"
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))
@@ -1,3 +1,3 @@
1
1
  config/deploy/*.rb
2
2
  kitchen/nodes/*.json
3
- log/*.log
3
+ log
@@ -1,3 +1,3 @@
1
1
  module Toquen
2
- VERSION = "2.0.1"
2
+ VERSION = "2.0.2"
3
3
  end
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.1
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-08 00:00:00.000000000 Z
11
+ date: 2016-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano