hi, I was wondering, can we create stored virtual ressources like a @@file on a node and have it realized on another node ? 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 -~----------~----~----~----~------~----~------~--~---
Hi> I was wondering, can we create stored virtual ressources like a @@file > on a node and have it realized on another node ?yes, we can. ;) cheers pete --~--~---------~--~----~------------~-------~--~----~ 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 Fri, May 8, 2009 at 8:37 AM, Peter Meier <peter.meier@immerda.ch> wrote:> > Hi > >> I was wondering, can we create stored virtual ressources like a @@file >> on a node and have it realized on another node ? > > yes, we can. ;) > > cheers pete >Um cool, but how does that work? I am still trying to get a handle on virtual resources. As I rewrite my not so great original manifests I am thinking the whole virttual resources is going to be very very handy. Evan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi>> >>> I was wondering, can we create stored virtual ressources like a @@file >>> on a node and have it realized on another node ? >> >> yes, we can. ;) >> >> cheers pete >> > Um cool, but how does that work? I am still trying to get a handle on > virtual resources. As I rewrite my not so great original manifests I > am thinking the whole virttual resources is going to be very very > handy.node A: @@file{''/tmp/foo'': tag => $fqdnofothernode } other node: File<<| tag == $fqdn |>> cheers pete --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
> node A: > > @@file{''/tmp/foo'': tag => $fqdnofothernode } > > other node: > > File<<| tag == $fqdn |>> > > cheers petefor me this fails with: err: Could not retrieve catalog: Puppet::Parser::Compiler failed with error NameError: uninitialized constant ParamValue on node xxxxx class mybackup::server inherits mybackup { File <<| tag == $fqdn |>> } class mybackup::client inherits mybackup { @@file{"/tmp/$fqdn": content => "$fqdn", tag => ''backup01.myserver.net'';} } i include the mybackup::client on one node, mybackup::server on the node ''backup01.myserver.net'' and it fails with: err: Could not retrieve catalog: Puppet::Parser::Compiler failed with error NameError: uninitialized constant ParamValue on node xxxxx Even with direct config in the nodes: node ''main-1'' { @@file{"/tmp/$fqdn": content => "$fqdn", tag => ''backup01'';} } node ''backup01'' { File <<| tag == ''backup01'' |>> } 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 -~----------~----~----~----~------~----~------~--~---
Hi puppet version? Did you turn stored configs on? etc. I assume you have followed http://reductivelabs.com/trac/puppet/wiki/ExportedResources ? cheers pete --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Peter Meier a écrit :> Hi > > puppet version? Did you turn stored configs on? etc. > > I assume you have followed > http://reductivelabs.com/trac/puppet/wiki/ExportedResources ? > > cheers pete >yes, i have the lenny puppet package running on both and yes i have stored config running i see mysql query being done :) facterversion => 1.5.1 puppetversion => 0.24.5 (root)> mysql -V mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486) using readline 5.2 if i just invert the nodes i have the very same error on the other node: node ''main-1'' { File <<| tag == ''backup01'' |>> } node ''backup01'' { @@file{"/tmp/$fqdn": content => "$fqdn", tag => ''backup01'';} } err: Could not retrieve catalog: Puppet::Parser::Compiler failed with error NameError: uninitialized constant ParamValue on node main-1 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 -~----------~----~----~----~------~----~------~--~---
Jean Spirat a écrit :> Peter Meier a écrit : > >> Hi >> >> puppet version? Did you turn stored configs on? etc. >> >> I assume you have followed >> http://reductivelabs.com/trac/puppet/wiki/ExportedResources ? >> >> cheers pete >> >>:) when i put: File <<| tag == $fqdn |>> or File <<| tag == "$fqdn" |>> then it fails with err: Could not retrieve catalog: Puppet::Parser::Compiler failed with error NameError: uninitialized constant ParamValue on node backup01 If i put: File <<| tag == testme |>> i just do nothing (obviously) but if i change the file tag to : tag=> testme then i got the same error. , emptying the tables of the puppetd server do not change the behavior :( If i put: File <<| |>> then the files are created... :( so there is an issue i cannot see here in the " tag == " part of the thing ... 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 11, 2009, at 6:38 AM, Jean Spirat wrote:> > Peter Meier a écrit : >> Hi >> >> puppet version? Did you turn stored configs on? etc. >> >> I assume you have followed >> http://reductivelabs.com/trac/puppet/wiki/ExportedResources ? >> >> cheers pete >> > yes, > > i have the lenny puppet package running on both and yes i have stored > config running i see mysql query being done :) > > facterversion => 1.5.1 > puppetversion => 0.24.5This is likely your problem. The bug you''re encountering didn''t hit everyone, but it basically is a Rails constant lookup issue. You can add some lines to your rails/resource.rb file, something like: 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" Or you can upgrade. :)> > (root)> mysql -V > mysql Ver 14.12 Distrib 5.0.51a, for debian-linux-gnu (i486) using > readline 5.2 > > > if i just invert the nodes i have the very same error on the other > node: > > node ''main-1'' { > > File <<| tag == ''backup01'' |>> > } > > > node ''backup01'' { > > @@file{"/tmp/$fqdn": content => "$fqdn", tag > => ''backup01'';} > } > > > err: Could not retrieve catalog: Puppet::Parser::Compiler failed with > error NameError: uninitialized constant ParamValue on node main-1 > > > > > regards, > Jean > > > >-- Talent hits a target no one else can hit; Genius hits a target no one else can see. -- Arthur Schopenhauer --------------------------------------------------------------------- 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 -~----------~----~----~----~------~----~------~--~---
>> >> i have the lenny puppet package running on both and yes i have stored >> config running i see mysql query being done :) >> >> facterversion => 1.5.1 >> puppetversion => 0.24.5 >> > > This is likely your problem. The bug you''re encountering didn''t hit > everyone, but it basically is a Rails constant lookup issue. You can > add some lines to your rails/resource.rb file, something like: > > 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" > > Or you can upgrade. :) > >i would like to upgrade but this is the package of the debian lenny which is the latest so perhaps a backport would be the solution but i couldn''t find anyone, using the squeeze pinning of apt i need to upgrade all those: apt apt-utils aptitude base-files base-passwd bash binutils bsd-mailx coreutils cpio cpp cpp-4.3 debconf debconf-i18n debianutils dpkg dpkg-dev facter findutils g++ g++-4.3 gcc gcc-4.3 gcc-4.3-base gnupg gpgv grep groff-base gzip info iproute iptables irb1.8 libc6 libc6-dev libdb4.6 libdbd-mysql-perl libdbi-perl libdevmapper1.02.1 libept0 libgcc1 libgcrypt11 libgdbm3 libgmp3c2 libgnutls26 libgomp1 libgpg-error0 libgpm2 libjs-prototype liblog4r-ruby1.8 libmocha-ruby1.8 libmpfr1ldbl libmysql-ruby libmysql-ruby1.8 libncurses5 libncursesw5 libnet-daemon-perl libopenssl-ruby1.8 libpam-modules libpam-runtime libpam0g libpcre3 libplrpc-perl libreadline-ruby1.8 libreadline5 libredcloth-ruby1.8 libruby1.8 libsasl2-2 libselinux1 libsepol1 libsqlite3-0 libssl0.9.8 libstdc++6 libstdc++6-4.3-dev libtasn1-3 libxapian15 libxml-simple-ruby locales locate login logrotate lsb-base lsb-release mailx man-db manpages mawk mktemp module-init-tools ncurses-base ncurses-bin net-tools passwd python python-minimal python2.5 python2.5-minimal rails rake rdoc1.8 readline-common rsyslog ruby1.8 ruby1.8-dev rubygems1.8 sed sudo tar traceroute tzdata vim vim-common vim-runtime vim-tiny wwwconfig-common zip zlib1g zlib1g-dev so...this seems quite a lot of change to the basic system for just puppet :) Thanks for the patch it works now. 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 2009-May-12, at 2:30 AM, Jean Spirat wrote:> i would like to upgrade but this is the package of the debian lenny > which is the latest so perhaps a backport would be the solution but i > couldn''t find anyone, using the squeeze pinning of apt i need to > upgrade > all those:I was able to get the latest puppet from unstable without it messing with anything else. I warn you that I don''t understand this all that well and this is largely based on Google + trial and error, but it seems to work well. My /etc/apt/preferences looks like this: Package: * Pin: release a=stable Pin-Priority: 900 Package: * Pin: release a=testing Pin-Priority: 700 Package: * Pin: release a=unstable Pin-Priority: 600 And I added these lines to /etc/apt/sources.list (adjust to point to your local mirror): # Testing and Unstable (low priority) deb http://ftp.uwsg.indiana.edu/linux/debian/ testing main non-free deb-src http://ftp.uwsg.indiana.edu/linux/debian/ testing main non-free deb http://ftp.uwsg.indiana.edu/linux/debian/ unstable main non- free deb-src http://ftp.uwsg.indiana.edu/linux/debian/ unstable main non-free Then you can run: aptitude update aptitude install puppet/unstable # or aptitude install puppetmaster/unstable -- Rob McBroom <http://www.skurfer.com/> Don''t try to tell me a thing is important to you if the whole of your "support" entails forcing other to spend time and money on it. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---