Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
custom facts in legacy puppet 0.24.[89]
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
sHaggY_caT  
View profile  
 More options Jun 18 2010, 2:07 pm
From: sHaggY_caT <galia....@gmail.com>
Date: Fri, 18 Jun 2010 11:07:47 -0700 (PDT)
Local: Fri, Jun 18 2010 2:07 pm
Subject: custom facts in legacy puppet 0.24.[89]
Hi all!

How i may use in legacy puppet (0.24.[89]) custom facts in functions?
In new documentation not good faq about this:
http://docs.reductivelabs.com/guides/plugins_in_modules.html  this
documentation has information about new versions (25.5) and very old
(prior 0.24.4),
not about our 0.24.8 >>>> 0.24.9 (we in migration now, we don'nt may
change version to 25.[0-9] in production now becouse compability)

Also i try http://projects.puppetlabs.com/projects/puppet/wiki/Adding_Facts
my version of puppet don't know key of t  and, my puppet don't retrive
facts. I'm put facts in dir:
/<module>/plugins/facter
also, i have module mod_mysql, and put fact:
/path_to_modules_of_this_enviroment/mod_mysql/plugins/facter/mysql.rb
http://paste.org.ru/?0rs4fb but client does'nt see this fact

i add in config of this enviroment option of pluginsync
also, i try add this fact in dir: /usr/lib/ruby/site_ruby/1.8/facter
manually.

Config of puppet enviroment and code of fact:

[root@puppet2 facter]# cat /var/lib/puppet/modules/modules_development/
mod_mysql/plugins/facter/mysql.rb
Facter.add("mysql_exists") do
    ENV["PATH"]="/bin:/sbin:/usr/bin:/usr/sbin"

    setcode do
        mysqlexists = system "which mysql > /dev/null 2>&1"
        ($?.exitstatus == 0)
    end
end
[root@puppet2 facter]#

[root@puppet2 facter]# cat /etc/puppet/puppet.conf | grep -A4 "\
[development"
[development]
pluginsync = true
    modulepath = /etc/puppet/projects:/var/lib/puppet/modules/
modules_development
    manifest   = /etc/puppet/manifests/development_site.pp

[root@puppet2 facter]#


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »