dust-deploy 0.13.5 → 0.13.6
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.
- data/bin/dust +1 -1
- data/changelog.md +6 -0
- data/lib/dust/recipes/cups_client.rb +8 -5
- data/lib/dust/recipes/etc_hosts.rb +1 -1
- data/lib/dust/recipes/resolv_conf.rb +1 -1
- data/lib/dust/version.rb +1 -1
- metadata +2 -2
data/bin/dust
CHANGED
@@ -84,7 +84,7 @@ module Dust
|
|
84
84
|
@nodes.each_with_index do |node, i|
|
85
85
|
if $parallel
|
86
86
|
threads[i] = Thread.new do
|
87
|
-
Thread.current['hostname'] = node['hostname'] if run_recipes node, '
|
87
|
+
Thread.current['hostname'] = node['hostname'] if run_recipes node, 'status'
|
88
88
|
end
|
89
89
|
else
|
90
90
|
run_recipes node, 'status'
|
data/changelog.md
CHANGED
@@ -1,12 +1,15 @@
|
|
1
1
|
class CupsClient < Recipe
|
2
2
|
desc 'cups_client:deploy', 'maintains /etc/cups/client.conf'
|
3
3
|
def deploy
|
4
|
-
return false unless install
|
5
|
-
|
6
4
|
return @node.messages.add('no printserver specified.').failed unless @config
|
7
|
-
|
8
|
-
@
|
9
|
-
|
5
|
+
|
6
|
+
if @config == 'remove'
|
7
|
+
@node.rm('/etc/cups/client.conf')
|
8
|
+
else
|
9
|
+
return false unless install
|
10
|
+
@node.messages.add("setting servername to: #{@config}").ok
|
11
|
+
@node.write '/etc/cups/client.conf', "ServerName #{@config}\n"
|
12
|
+
end
|
10
13
|
end
|
11
14
|
|
12
15
|
desc 'cups_client:status', 'shows current /etc/cups/client.conf'
|
@@ -30,7 +30,7 @@ class ResolvConf < Recipe
|
|
30
30
|
msg.ok
|
31
31
|
end
|
32
32
|
|
33
|
-
@config['nameservers'].each do |nameserver|
|
33
|
+
@config['nameservers'].to_array.each do |nameserver|
|
34
34
|
msg = @node.messages.add("adding nameserver #{nameserver}", :indent => 2)
|
35
35
|
config_file << "nameserver #{nameserver}\n"
|
36
36
|
msg.ok
|
data/lib/dust/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dust-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json
|