search for: parsejson

Displaying 7 results from an estimated 7 matches for "parsejson".

Did you mean: parse_json
2011 Oct 17
2
puppet dashboard and complex data
So I am messing around with puppet dashboard and for the most part for what I am working on it fits the bill for an ENC. The only question I have is I need to pass information about a customer to set up resources and the system can have multiple customers on it. What is the best way to handle complex data? Would I be able to pass json data for example? -- You received this message because you
2011 Aug 25
7
How to safely embed JSON object in HTML document
...quot;:"&lt;/ script&gt;&lt;b&gt;I can do something bad here&lt;/ b&gt;","color":"red"}]; I thought about storing JSON string in a <script type="application/ json" id="json_string"> tag, and then doing something like $.parseJSON($("#json_string").html()) but that also has the same problem of escaping, like in the above example. Is there any easy (Rails) way to do that? Or am I doing it wrong to begin with? Cheers! -- You received this message because you are subscribed to the Google Groups "Ruby on Rai...
2015 Jun 29
1
puppet files denied by SELinux
...lib/puppet/lib/puppet/parser/functions/is_float.rb]: > Dependency File[/var/lib/puppet/lib] has failures: true > Warning: /File[/var/lib/puppet/lib/puppet/parser/functions/is_float.rb]: > Skipping because of failed dependencies > Notice: /File[/var/lib/puppet/lib/puppet/parser/functions/parsejson.rb]: > Dependency File[/var/lib/puppet/lib] has failures: true > Warning: /File[/var/lib/puppet/lib/puppet/parser/functions/parsejson.rb]: > Skipping because of failed dependencies > Notice: /File[/var/lib/puppet/lib/puppet/parser/functions/validate_cmd.rb]: > Dependency File[/var/li...
2010 Oct 31
0
Error in rendering json
...=> params[:callback] I would expect (for example) following to be rendered: callback({"name":"Computer","price":500}) Instead, it renders: callback([{"name":"Computer","price":500}]) Notice the square brackets which disables $.parseJSON (jQuery) from parsing it. Don''t you know what am I doing wrong? How can I get rid of those brackets? When I tried ActiveSupport::JSON.encode() there were no square brackets. Thank you very much, Jakub Svehla -- You received this message because you are subscribed to the Google Groups &q...
2015 Jun 21
2
puppet files denied by SELinux
Hi all, Thanks for all your suggestions. Here's where I'm at with this. Can you give details about your puppetmasterd setup ? it seems that > you're using Foreman as puppet ENC. > Yes, I'm on foreman 1.7.4 and puppet 3.75. You are correct that I'm using foreman, sorry I hadn't thought to mention it! > Foreman works fine with selinux enabled : that's what
2015 Jun 21
0
puppet files denied by SELinux
...Notice: /File[/var/lib/puppet/lib/puppet/parser/functions/is_float.rb]: Dependency File[/var/lib/puppet/lib] has failures: true Warning: /File[/var/lib/puppet/lib/puppet/parser/functions/is_float.rb]: Skipping because of failed dependencies Notice: /File[/var/lib/puppet/lib/puppet/parser/functions/parsejson.rb]: Dependency File[/var/lib/puppet/lib] has failures: true Warning: /File[/var/lib/puppet/lib/puppet/parser/functions/parsejson.rb]: Skipping because of failed dependencies Notice: /File[/var/lib/puppet/lib/puppet/parser/functions/validate_cmd.rb]: Dependency File[/var/lib/puppet/lib] has failure...
2012 Sep 27
0
Retrieve initial content of files when using audit => content
...pd/conf/magic\"]" When I use this in my manifest this works and the files goto bucket. I get the bucket md5 sum for each file in the same run using a wrapper script. In my manifest I iterate of the items in $::audit_files == init.pp START == if $::audit_files { $files_array = parsejson($::audit_files) notify { $files_array : } audit { $files_array : } } == init.pp END == I have a define to audit content and tag the files. The Exec does the actual backup of the file. == audit.pp START == define audit($audit_dir = $filevi...