search for: _timestamp

Displaying 5 results from an estimated 5 matches for "_timestamp".

Did you mean: timestamp
2010 May 18
0
:_timestamp format changed???
Hi, We have a puppet 24.7 server for most of our legacy clients and a 25.4 server for newer ones and I notice that the :_timestamp format in the yaml has changed between the two. Old version: :_timestamp: 2010-05-18 10:10:57.751111 -07:00 New Version: :_timestamp: Tue May 18 09:34:59 -0700 2010 I probably wouldn''t have noticed the change if it weren''t for the fact that I''ve written code against th...
2015 Mar 04
0
Failsafe AGI using AEL
...e to prevent race condition if (${TRYLOCK(${breaker})}) { Noop(AGI Breaker '${breaker}' is currently 'tripped' Checking elapsed time and elapsed calls.); if (${${breaker}_calls} > ${SM_AGI_BREAKER_MAX_CALLS} || ${MATH(${STRFTIME(,,%s)}-${${breaker}_timestamp},int)} > ${SM_AGI_BREAKER_MAX_ELAPSED}) { System(/bin/echo "AGI breaker '${breaker}' reset on '${SM_NODE}' after '${MATH(${STRFTIME(,,%s)}-${${breaker}_timestamp},int)}' seconds and '${${breaker}_calls}' calls. Normal call processing has resu...
2012 Jul 05
1
hash to_yaml in erb template not giving valid yaml
...#content => inline_template("<%= { \"a\" => 1, \"b\"=> 2}.to_yaml %>"), content => inline_template("<%= facts = {}; scope.to_hash.each_pair {|k,v| facts[k.to_s] = v.to_s unless k.to_s =~ /pkg_|_hours|_seconds|memoryfree|plugin_|config|_timestamp/ }; facts.to_yaml.sort %>"), } After a run the content is indented with 2 spaces and some facts give me garbage values. If I verify this on e.g. http://yamllint.com/ I have a syntax error with the 2 leading spaces. Snippet from ''/etc/mcollective/facts.yaml'' [root~]# c...
2011 Oct 12
4
Python yaml help
Sorry for being off topic. am trying the following and yaml fails to construct the object: The inventory document, from Puppet dashboard inventory service, looks like: --- !ruby/object:Puppet::Node::Facts name: pirates.uis.example.com values: productname: VMware Virtual Platform kernelmajversion: "2.6" My code: class PuppetFacts(yaml.YAMLObject): yaml_tag =
2012 Dec 14
11
Puppet and Mcollective yaml file changing when it shouldn't
Has anyone else ran into this? debug: /Stage[main]/Mcollective/File[/var/tmp/facts.yaml]/content: Executing ''diff -u /var/tmp/facts.yaml /tmp/puppet-file20121214-13448-933j3r-0'' notice: /Stage[main]/Mcollective/File[/var/tmp/facts.yaml]/content: --- /var/tmp/facts.yaml 2012-12-14 00:53:20.000000000 +0000 +++ /tmp/puppet-file20121214-13448-933j3r-0 2012-12-14