Issue #1775 has been reported by Marten.
----------------------------------------
Bug #1775: included variables not included on command line
http://projects.reductivelabs.com/issues/show/1775
Author: Marten
Status: Unreviewed
Priority: Normal
Assigned to:
Category:
Target version:
Complexity: Unknown
Keywords:
facter does not show added variables
all on the client
lib in /root/.facts/facter/ :
Facter.add("diskmode") do
setcode do
File.open('/root/.facts/facter/DISK_MODE', 'r') do |f1|
while line = f1.gets
ENV['line'] = line.chomp
end
end
ENV['line']
end
end
#cat /root/.facts/facter/DISK_MODE
MIRROR
#facter diskmode
<empty>
#facter |grep diskmode
dnsdomainname: Unknown host
diskmode => MIRROR
thanks for your work!
kind regards,
Marten
----------------------------------------
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://reductivelabs.com/redmine/my/account
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en
-~----------~----~----~----~------~----~------~--~---