dtk-node-agent 0.7.6 → 0.7.7

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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjA3OGJiNzJiYjM2NWRhMGFkNWU3YjIwOTM3YWVmN2Q0OWIxZWRlMg==
4
+ M2RlMGM1NDc2OTAzNzRiOWUzZjNjZjFkYmE1NTU4OTJmNTFkZTUzYg==
5
5
  data.tar.gz: !binary |-
6
- ODNiNWE2NTQ0NmVkYWJmMDIzNzE0NDNiYTE1N2U1NGRmNTk5Zjk5MQ==
6
+ OTA4Mzg4MjVhOGYxYTlkZmI2MWIxZDViOTA4MDM5NjZlOGFmM2FmZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGU2ZjJjMzdjNjVlMzQ2ZmFhNDUxNWI1ZjNmMjAwMTQ0YzA0MWNlNmNlNzE0
10
- ZGM3OTY3ZmQ5ZjA4NzVkMzYwYmJlYWFkMzExZDJiMzIyNmVlNzdhNzg1NmFj
11
- OGM5NmFjY2JkNDZlZjc4MzllOWJkNDkxMTUwNTg3NTI0MGVhNDY=
9
+ YTcyYmUzN2ZiYmQ0OWQ2ZDEzNGVjZGVmZDJjNDgwYTM1ODliYTY5MTA0MGE5
10
+ YzhlYTRkM2E3Y2I3OWY0YzQ2OWQxYmIyY2EwZGJlYzRhZGMwN2FjYzNlYmQz
11
+ YWQ4OTllYmQ1ZDc2ZGZkNGUyNWEzYWFjNTQxZmQ0ZjUxYTdhZTM=
12
12
  data.tar.gz: !binary |-
13
- YzkwNDM4NTEzNGE1ZGIzMmQ1MGJkODRhYzljN2ZiZmViZTdhYWY2YzdhYWY1
14
- YTA5MzhjYzM4YTE4MTE5MmZlYjAwYWFlN2VlZGI5Y2IzYzA4M2I3Njg2MGU2
15
- MTUzOWFhZGZlMGRhMmYyZmJkNWIxNWY5NTQwODVhZTg5Y2M2ZDI=
13
+ ZDBjNzQzMDBlMjI2NGE5NjlmNGVjZGYyZWRhMzgyNjU5NWUwMTc1MzQyNTZm
14
+ MmY1MmJmY2NlMDk3N2NlMGVlYWQ4ODE4ZDE4MDliYmFlNzJjZTIyM2NjYTU1
15
+ NmQ2YzVhNGQ3Y2M4NjAwYTUwNzNmMDBiMTMwZDk1Njc3NTUxYWU=
@@ -1,3 +1,3 @@
1
1
  module DtkNodeAgent
2
- VERSION="0.7.6"
2
+ VERSION="0.7.7"
3
3
  end
@@ -4,6 +4,6 @@ metadata :name => "action agent",
4
4
  :license => "",
5
5
  :version => "",
6
6
  :url => "",
7
- :timeout => 180
7
+ :timeout => 0
8
8
  action "run_command", :description => "Run provided command on system" do
9
9
  end
@@ -289,6 +289,8 @@ module MCollective
289
289
  end
290
290
  Puppet::Util::Log.close_all()
291
291
  end
292
+ @log.info("Debuging response from mcollective (RESPONSE):")
293
+ @log.info(ret)
292
294
  ret
293
295
  end
294
296
 
@@ -36,13 +36,14 @@ module Puppet
36
36
  if resource[:name] =~ /(^.+)\.(.+$)/
37
37
  cmp_name = $1
38
38
  attr_name = $2
39
-
39
+
40
40
  cmp_ref = cmp_name.gsub(/[.]/,"::")
41
41
  if def_key = resource[:definition_key]
42
42
  cmp_ref = "#{cmp_ref}[#{def_key}]"
43
43
  end
44
44
  p = (Thread.current[:exported_files] ||= Hash.new)[cmp_ref] ||= Hash.new
45
45
  p[attr_name] = filename
46
+ File.open('/tmp/dtk_exported_files', 'w') { |f| f.write(Marshal.dump(p)) }
46
47
  else
47
48
  raise Puppet::Error, "ill-formed component with name (#{resource[:name]})"
48
49
  end
@@ -1,10 +1,11 @@
1
- define "r8::export_variable", :content => Puppet::Parser::AST::Leaf::Undef.new({:value => '***'}) do
1
+ define "r8::export_variable", :content => Puppet::Parser::AST::Leaf::Undef.new({:value => '***'}) do
2
2
  if @name =~ /(^.+)::(.+$)/
3
3
  component = $1
4
4
  attribute = $2
5
- if content = (@content == '***' ? scope.lookupvar(@name) : @content)
5
+ if content = (@content == '***' ? scope.lookupvar(@name) : @content)
6
6
  p = Thread.current[:exported_variables] ||= Hash.new
7
- (p[component] ||= Hash.new)[attribute] = content
7
+ (p[component] ||= Hash.new)[attribute] = content
8
+ File.open('/tmp/dtk_exported_variables', 'w') { |f| f.write(Marshal.dump(p)) }
8
9
  end
9
10
  end
10
- end
11
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dtk-node-agent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.6
4
+ version: 0.7.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rich PELAVIN
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-18 00:00:00.000000000 Z
11
+ date: 2016-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puppet