Hi Andy,
The way i approach for this, was i took my code and first run it in ruby
parser and also in my test server to execute first in ruby.After executing
that ruby script then i tried to convert ruby script into puppet facts.
like Facter.add to retireve the result.
My question was, when i exec
On Thu, Oct 9, 2014 at 7:02 AM, Supriya Uppalapati <
supriya.uppalap...@gmail.com> wrote:
> Hi,
>
> when i tested my code with irb, it is executing the output. when in facts
> it is not resulting any output
>
> Here is my output of irb
>
> *irb*
> *irb(main):001:0> logfile = '/home/suppalapati/jav
Hi,
when i tested my code with irb, it is executing the output. when in facts
it is not resulting any output
Here is my output of irb
*irb*
*irb(main):001:0> logfile = '/home/suppalapati/java.txt'*
*=> "/home/suppalapati/java.txt"*
*irb(main):002:0> line_num=0*
*=> 0*
*irb(main):003:0> require
Hi,
I did the same way you told me. Still not returning any output
irb
irb(main):001:0> logfile = '/home/suppalapati/java.txt'
=> "/home/suppalapati/java.txt"
irb(main):002:0> line_num=0
=> 0
irb(main):004:0> require 'facter/util/file_read'
=> true
irb(main):005:0> log = Facter::Util::FileRead.rea
On Wed, Oct 8, 2014 at 12:59 PM, Supriya Uppalapati <
supriya.uppalap...@gmail.com> wrote:
> Hi Andrey,
>
> When i tried your example, It is not returning any values
>
> require 'facter/util/file_read'
> => true
> irb(main):005:0> log =
> Facter::Util::FileRead.read("/home/suppalapati/java.txt")
>
Hi,
My question is
*require 'facter/util/file_read'*
*=> true*
*irb(main):005:0> log =
Facter::Util::FileRead.read("/home/suppalapati/java.txt")*
*=>
"\n/usr/java/jdk1.7.0_25/jre/bin/java\n/usr/java/jdk1.7.0_25/bin/java\n/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.45.x86_64/jre/bin/java\n/usr/lib/jv
Hi Andrey,
When i tried your example, It is not returning any values
require 'facter/util/file_read'
=> true
irb(main):005:0> log =
Facter::Util::FileRead.read("/home/suppalapati/java.txt")
=>
"\n/usr/java/jdk1.7.0_25/jre/bin/java\n/usr/java/jdk1.7.0_25/bin/java\n/usr/lib/jvm/java-1.7.0-openjdk-1
On Wed, Oct 8, 2014 at 12:32 PM, Supriya Uppalapati <
supriya.uppalap...@gmail.com> wrote:
> Hi,
>
> It isn't executing anything. it means it is not showing individual fact
> for each java version. yes my facts(java_version_count ) is showing me how
> many lines(means java) i have in java.txt. yes
Hi,
It isn't executing anything. it means it is not showing individual fact for
each java version. yes my facts(java_version_count ) is showing me how many
lines(means java) i have in java.txt. yes i placed in wright location.I
followed the link which you provided me.
I feel some thing is wrong
On Wed, Oct 8, 2014 at 11:26 AM, Supriya Uppalapati <
supriya.uppalap...@gmail.com> wrote:
> Hi All,
>
> I am trying to get all the java versions and paths where it is located. I
> got all java_paths in a fact called java_path. Now i need those versions in
> each custom facts.
>
> I wrote a code b
Hi All,
I am trying to get all the java versions and paths where it is located. I
got all java_paths in a fact called java_path. Now i need those versions in
each custom facts.
I wrote a code but this not executing .
Please help me
*require 'rexml/document'*
*require 'facter'*
*Facter.add("j
11 matches
Mail list logo