I maintain a few production gentoo machines. I do this by creating builtds for packages and centralizing these builds via nfs. when puppet tries to fulfill a requirement for say sudo it calls emerge, but i want to call emerge with -k which forces emerge to look for a binary before trying to built the package itself. is there any way to do this in the current release ?
On Jun 8, 2007, at 3:00 PM, Jesse Nelson wrote:> I maintain a few production gentoo machines. I do this by creating > builtds for packages and centralizing these builds via nfs. when > puppet tries to fulfill a requirement for say sudo it calls emerge, > but i want to call emerge with -k which forces emerge to look for a > binary before trying to built the package itself. > > > is there any way to do this in the current release ?Is there no way to do this with config files, like are used for the USE flags? I''m thinking, though, that maybe we should add an ''option'' facility to resources and providers, so providers can define options (like in this case, you''d have "binary"), and then the user can specify the options they want enabled. This would also satisfy the desire to add -G to solaris packages, to keep them in the global zone. What do people think? -- Freedom of speech in Usenet means that when you shout ''Fire!'' in a crowded theatre, half the crowd stands up and shouts, ''Wrong theatre!'' --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
> I''m thinking, though, that maybe we should add an ''option'' facility > to resources and providers, so providers can define options (like in > this case, you''d have "binary"), and then the user can specify the > options they want enabled. > > This would also satisfy the desire to add -G to solaris packages, to > keep them in the global zone. > > What do people think? >I think this would be very useful. One thing I''ve been thinking of is being able to pull in packages from a specific apt repository. Normally you''d do this by including the repo in your sources.list, but if you don''t want all packages from that repo (eg, if you include a backports repo and only one specific packages), you''d either pin for the specific package (a tedious thing to manage), or you could set the specific repository with a low pin and use the target-release cmd line argument to apt-get - eg apt-get install -t sarge-backports clamav Of course, you only want to do this on machines running sarge: case $lsbreleasename { default: {package [clamav]: ensure => installed } sarge : { package [clamav]: ensure => installed, option => [''target-release'',''sarge-backports''] } } I''m not suggesting that the above is a useful syntax! The -G for solaris packages and -k for binary packages for gentoo might be better set as global parameters though. Is it worth making a distinction between global parameters for a specific package provider?
yea i can do this through the make.conf I was just wondering. On Jun 8, 2007, at 3:17 PM, Luke Kanies wrote:> On Jun 8, 2007, at 3:00 PM, Jesse Nelson wrote: > > > I maintain a few production gentoo machines. I do this by creating > > builtds for packages and centralizing these builds via nfs. when > > puppet tries to fulfill a requirement for say sudo it calls > emerge, > > but i want to call emerge with -k which forces emerge to look for a > > binary before trying to built the package itself. > > > > > > is there any way to do this in the current release ? > > Is there no way to do this with config files, like are used for the > USE flags? > > I''m thinking, though, that maybe we should add an ''option'' facility > to resources and providers, so providers can define options (like in > this case, you''d have "binary"), and then the user can specify the > options they want enabled. > > This would also satisfy the desire to add -G to solaris packages, to > keep them in the global zone. > > What do people think? > > -- > Freedom of speech in Usenet means that when you shout ''Fire!'' in a > crowded theatre, half the crowd stands up and shouts, ''Wrong > theatre!'' > > --------------------------------------------------------------------- > Luke Kanies | http://reductivelabs.com | http://madstop.com > > > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >
I think having an option facility would be great. On Jun 8, 2007, at 4:31 PM, Jesse Nelson wrote:> yea i can do this through the make.conf I was just wondering. > > > On Jun 8, 2007, at 3:17 PM, Luke Kanies wrote: > > > On Jun 8, 2007, at 3:00 PM, Jesse Nelson wrote: > > > > > I maintain a few production gentoo machines. I do this by creating > > > builtds for packages and centralizing these builds via nfs. when > > > puppet tries to fulfill a requirement for say sudo it calls > > emerge, > > > but i want to call emerge with -k which forces emerge to look > for a > > > binary before trying to built the package itself. > > > > > > > > > is there any way to do this in the current release ? > > > > Is there no way to do this with config files, like are used for the > > USE flags? > > > > I''m thinking, though, that maybe we should add an ''option'' facility > > to resources and providers, so providers can define options (like in > > this case, you''d have "binary"), and then the user can specify the > > options they want enabled. > > > > This would also satisfy the desire to add -G to solaris packages, to > > keep them in the global zone. > > > > What do people think? > > > > -- > > Freedom of speech in Usenet means that when you shout ''Fire!'' in a > > crowded theatre, half the crowd stands up and shouts, ''Wrong > > theatre!'' > > > > > --------------------------------------------------------------------- > > Luke Kanies | http://reductivelabs.com | http://madstop.com > > > > > > _______________________________________________ > > Puppet-users mailing list > > Puppet-users@madstop.com > > https://mail.madstop.com/mailman/listinfo/puppet-users > > > > _______________________________________________ > Puppet-users mailing list > Puppet-users@madstop.com > https://mail.madstop.com/mailman/listinfo/puppet-users >
David Vernazobres
2007-Jun-11 07:36 UTC
Re: There away to pass args to a package provider ?
On Fri, Jun 08, 2007 at 05:17:22PM -0500, Luke Kanies wrote :> On Jun 8, 2007, at 3:00 PM, Jesse Nelson wrote: > > > I maintain a few production gentoo machines. I do this by creating > > builtds for packages and centralizing these builds via nfs. when > > puppet tries to fulfill a requirement for say sudo it calls emerge, > > but i want to call emerge with -k which forces emerge to look for a > > binary before trying to built the package itself. > > > > > > is there any way to do this in the current release ? > > Is there no way to do this with config files, like are used for the > USE flags? > > I''m thinking, though, that maybe we should add an ''option'' facility > to resources and providers, so providers can define options (like in > this case, you''d have "binary"), and then the user can specify the > options they want enabled. > > This would also satisfy the desire to add -G to solaris packages, to > keep them in the global zone. > > What do people think? >Well I am for it! I submited a patch for the apt stuff some time ago, with the same motivation (ticket #547). And I have seen also #556 as a sub-case of #547. So I would like a decision in this direction. my 0.02$, David
On Jun 8, 2007, at 6:16 PM, Daniel Lawson wrote:> I think this would be very useful.Is anyone interested in writing a patch to provide this? It should be pretty straightforward, following the model of provider features (see util/provider_features.rb). Then it''s just a question of defining which options each provider has, what those options mean, and using them when appropriate.> One thing I''ve been thinking of is being able to pull in packages > from a > specific apt repository. Normally you''d do this by including the > repo in > your sources.list, but if you don''t want all packages from that repo > (eg, if you include a backports repo and only one specific packages), > you''d either pin for the specific package (a tedious thing to manage), > or you could set the specific repository with a low pin and use the > target-release cmd line argument to apt-get - eg > > apt-get install -t sarge-backports clamav > > Of course, you only want to do this on machines running sarge: > > case $lsbreleasename { > default: {package [clamav]: ensure => installed } > sarge : { package [clamav]: ensure => installed, option => > [''target-release'',''sarge-backports''] } > } > > I''m not suggesting that the above is a useful syntax!I''m not sure it makes sense to try to manage packages like this -- I think it makes more sense to use apt configurations, even though it''s a bit messier.> The -G for solaris packages and -k for binary packages for gentoo > might > be better set as global parameters though. Is it worth making a > distinction between global parameters for a specific package provider?What do you mean? -- Nothing is impossible for the man who doesn''t have to do it himself. -- A. H. Weiler --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
On Jun 11, 2007, at 2:36 AM, David Vernazobres wrote:> Well I am for it! > I submited a patch for the apt stuff some time ago, with the same > motivation (ticket #547). > And I have seen also #556 as a sub-case of #547. > So I would like a decision in this direction.I''d gladly accept a patch if you can genericize options so that any provider can easily define options, and specifically in such a way that the options are decoupled from the commands (e.g., your option would be "force", which would get translated to "--force-yes", rather than just handing the options on to the command directly). The problem with the patch on #547 is that it removes the abstraction layer between the system and the language. I''m glad to work with you implementing the option stuff, too; I just don''t want to head it myself, since I''ve got too many other things on my plate. -- Man is the only animal that can remain on friendly terms with the victims he intends to eat until he eats them. -- Samuel Butler (1835-1902) --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
Luke Kanies wrote:> On Jun 8, 2007, at 6:16 PM, Daniel Lawson wrote: >> I think this would be very useful. > > Is anyone interested in writing a patch to provide this? It should > be pretty straightforward, following the model of provider features > (see util/provider_features.rb). > > Then it''s just a question of defining which options each provider > has, what those options mean, and using them when appropriate. >I''m very interested in this. I''m presently working on a new Mac OS X DirectoryService provider, so I''ll try to keep provider options in mind while doing this. If anyone else would be willing to work with me to add provider options as well, that''d be really, really fantastic. Please let me know. Cheers, -- Jeff McCune Systems Manager The Ohio State University Department of Mathematics _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
On Jun 14, 2007, at 6:22 PM, Jeff McCune wrote:> I''m very interested in this. I''m presently working on a new Mac OS > X DirectoryService provider, so I''ll try to keep provider options > in mind while doing this.Great. This''d be a good place to learn about how I''ve been doing some of the more interesting development in Puppet without being too complicated. -- 2. If 2 + 2 is 4 and 2 x 2 is also 4, what''s the big deal about multiplication anyway? -- from the Dogbert''s New Ruling Class quiz --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com