[Puppet Users] puppet 2.7.9 init.pp error

2012-10-03 Thread SDM
Hello all,

I have the current configuration with puppet 2.7.9:

in modules/app/manifests

init.pp

import "*"

facesquare.pp

class app::facesquare {
...
}

twitstagram.pp

class app::twitstagram {
 
}

in node file 

include app::facesquare
include app::twitstagram

When i run puppet i get : 
*Erreur**Could not retrieve catalog from remote server: Error 400 on 
SERVER: Could not find class app::facesquare*
If i remove the init.pp file it works correctly.

In fact i have to upgrade a master with puppet 2.6.4 to 2.7.9. But old 
puppet scripts generate errors cause of the init.pp file (i suppose). 

Is the init.pp file still usefull with puppet 2.7.9 ?

Thx for your help.

Seb.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/VhubDVUjuAQJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.



[Puppet Users] custom fact with variables

2013-01-07 Thread SDM
Hi,

do you know if it's possible to pass value to custom fact. 

I have a custom fact that check the presence of lv. The idea is to replace 
the lv name by a variable and check different lv.

in my .rb file :

Facter.add(:lv_dd_adm) do
  confine :kernel => "Linux"
  setcode do
Facter::Util::Resolution.exec('lvs | grep -i lv_dd_adm | cut -c3-11')
  end
end

in my site.pp :
$variable = $::lv_dd_adm

Thanks in advance.
Regards


Seb

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/A4BAxQ7nA00J.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.