Displaying 2 results from an estimated 2 matches for "custom_funct".
Did you mean:
custom_fact
2012 Feb 16
2
Basic string manipulation in puppet
Hi all,
Been searching the net for a few hours now.
I have a basic operation I wish to perform but, cannot find examples
close enough to what I''m after to implement it myself.
This is what I want to do:
$version = ''10.2.0''
I want to manipulate the string to make a new var ($cutversion), equal
just 102.
For example in perl (since I know it):
$version =
2013 Oct 13
24
exporting custom facts to puppet agents
Dear all,
I have a custom fact, that reads a file and then generate the values
dynamically based on the file content. It''s something like this:
inFile = "/home/admin/OSs.txt"
> gos = {}
>
> if File.exist?(inFile)
> open(inFile, ''r'').each do |line|
> next if line =~ /^\s*(#|$)/
> parts =