Mikel Lindsaar
2008-May-20 13:46 UTC
[Puppet Users] Setting env vars in OpenBSD for Puppet
Hello all, New to puppet, loving it so far. But I spent a bit of time googling around and looking through the reductive labs site... can''t seem to find an answer to this. May 20 23:28:42 puppet puppetmasterd[26269]: (//puppet/svn/Package[subversion]/ensure) change from absent to present failed: You must specify a package source for BSD packages The module''s init file is: # SVN - Ensure SVN is installed on a host class svn { package { "subversion": ensure => installed } } Now, obviously I need to set the PKG_PATH env variable: export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.3/packages/i386/ I found a FreeBSD page which suggests putting it into the rc.conf / rc.local, while this might work for OpenBSD, it seems a bit hackish... is that the right way? Is there another way that I can just globally specify it in puppet? I was thinking: Exec { pkg_path => "ftp://ftp.openbsd.org/pub/OpenBSD/4.3/packages/i386/" } But that doesn''t work. Pointers? Regards Mikel --~--~---------~--~----~------------~-------~--~----~ 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
2008-May-20 14:06 UTC
[Puppet Users] Re: Setting env vars in OpenBSD for Puppet
Hi> New to puppet, loving it so far. But I spent a bit of time googling > around and looking through the reductive labs site... can''t seem to > find an answer to this. > > May 20 23:28:42 puppet puppetmasterd[26269]: > (//puppet/svn/Package[subversion]/ensure) change from absent to > present failed: You must specify a package source for BSD packages > > The module''s init file is: > > # SVN - Ensure SVN is installed on a host > class svn { > package { "subversion": ensure => installed } > } > > Now, obviously I need to set the PKG_PATH env variable: > > export PKG_PATH=ftp://ftp.openbsd.org/pub/OpenBSD/4.3/packages/i386/ > > I found a FreeBSD page which suggests putting it into the rc.conf / > rc.local, while this might work for OpenBSD, it seems a bit hackish... > is that the right way? Is there another way that I can just globally > specify it in puppet? > > I was thinking: > > Exec { pkg_path => "ftp://ftp.openbsd.org/pub/OpenBSD/4.3/packages/i386/" } > > But that doesn''t work. > > Pointers?please have a look at: http://groups.google.com/group/puppet-dev/browse_thread/thread/2df8c5da40f55b4f/6714756864a3b918 there should be a fact for the openbsd version so you can make the source param used on any version. greets 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 -~----------~----~----~----~------~----~------~--~---