hello, i have some trouble with virtual ressources. I use this on my backupo server recipe (his fdqn is backup01.myserver.com): File <<| tags == "$fqdn" |>> and this on my clients: @@file { "/etc/BackupPC/serveurs/$fqdn": content => template("aqueosbackup/hostfile.erb"), owner => ''sauvegarde'', group => www-data, mode => 644, tag => "backup01.myserver.com", notify => Exec[''create-BackupPC-hosts'']; } so i should have the file created but it does not work. If i do only a File <<| |>> it works but of course this is a little too broad :) i use: (root)> puppetd --version 0.24.5 debian lenny package for this. Anything i am doing wrong ? regards, Jean. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
For the stored config i use this: in the client node i do : include backupset::client backupset::client::backupme{ ''mybackup'': } inside the backupset::client class i have: define backupme( $periode=''1'', $rsyncversion=''29+'', $serveur=''backup01.myserver.com''){ @@file { "/etc/BackupPC/serveurs/$fqdn": content => template("backupset/hostfile.erb"), tag => "$serveur"; } } in the server node i got : include backupset::server inside the backupset::server class i have : File <<| tag == "$fqdn" |>> but this never create any files on the server side :( i got : err: Could not retrieve catalog: Puppet::Parser::Compiler failed with error NameError: uninitialized constant ParamValue on node backup01.myserver.com i am kind of lost here on why it does not work:) regards, Jean. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
On May 7, 2009, at 2:42 PM, Jean Spirat wrote:> > For the stored config i use this: > > in the client node i do : > > include backupset::client > backupset::client::backupme{ ''mybackup'': } > > > > inside the backupset::client class i have: > > define backupme( $periode=''1'', > $rsyncversion=''29+'', > $serveur=''backup01.myserver.com''){ > > @@file { "/etc/BackupPC/serveurs/$fqdn": > content => > template("backupset/hostfile.erb"), > tag => "$serveur"; > } > } > > > > in the server node i got : > > include backupset::server > > > inside the backupset::server class i have : > > File <<| tag == "$fqdn" |>> > > > but this never create any files on the server side :( > > i got : > err: Could not retrieve catalog: Puppet::Parser::Compiler failed with > error NameError: uninitialized constant ParamValue on node > backup01.myserver.com > > > i am kind of lost here on why it does not work:)This is a problem with our Rails integration. Modify your lib/puppet/ rails/resource.rb file to have this at the top: has_many :param_values, :dependent => :destroy, :class_name => "Puppet::Rails::ParamValue" has_many :param_names, :through => :param_values, :class_name => "Puppet::Rails::ParamName" has_many :resource_tags, :dependent => :destroy, :class_name => "Puppet::Rails::ResourceTag" has_many :puppet_tags, :through => :resource_tags, :class_name => "Puppet::Rails::PuppetTag" Replacing the existing code, of course. -- Charm is a way of getting the answer yes without asking a clear question. -- Albert Camus --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---