You're compiling the catalog from scratch, which uses the facts like normal.

If you want it from yaml, say so:

$ puppet catalog --from yaml find localhost

This is where the interface might start to suck - you probably need to be root, 
and you might need to mess with the run-mode.  I think it defaults to agent, so 
it *should* be ok, but I'm not really sure.

On Feb 24, 2011, at 10:39 AM, Trevor Vaughan wrote:

> Yep, that works.
> 
> I just blew away my installation and re-installed from the puppet git repo.
> 
> I think that perhaps I didn't remove that when working from the
> original codebase.
> 
> It was interesting since the 'interface' command didn't show up unless
> I included the external module path. Quite strange.
> 
> Seems to be working now though. Thanks.
> 
> Why would running this "bin/puppet catalog find localhost" load all of
> the facts though?
> 
> Thanks,
> 
> Trevor
> 
> On Thu, Feb 24, 2011 at 1:24 PM, Luke Kanies <[email protected]> wrote:
>> It looks like you've got this installed in at least two different locations, 
>> and you also have the directory in your path twice.
>> 
>> I have just pushed a commit that attempts to skip loading of duplicate 
>> actions.  It also looks like you're running an older copy of the repo, based 
>> on the logs you're getting.
>> 
>> Can you update your repo (and remove your old copies), and try it again?
>> 
>> On Feb 24, 2011, at 10:18 AM, Trevor Vaughan wrote:
>> 
>>> Here you go:
>>> 
>>> $ puppet catalog --manifest ~/test.pp find localhost --debug
>>> info: Loading actions for 'catalog' from
>>> '/home/username/.puppet/modules/interface/lib/puppet/interface/catalog/select.rb'
>>> info: Loading actions for 'catalog' from
>>> '/home/username/.puppet/modules/interface/lib/puppet/interface/catalog/select.rb'
>>> info: Loading actions for 'catalog' from
>>> '/home/username/Puppet/usr/lib/ruby/site_ruby/1.8/puppet/interface/catalog/select.rb'
>>> Unable to find interface 'catalog': Action select already defined for
>>> #<Puppet::Interface::Indirector:0x2b218c0e5050>.
>>> Could not prepare for execution: Could not find interface 'catalog'
>>> 
>>> Trevor
>>> 
>>> On Thu, Feb 24, 2011 at 12:48 PM, Luke Kanies <[email protected]> wrote:
>>>> 
>>>> On Feb 23, 2011, at 4:41 PM, Trevor Vaughan wrote:
>>>> 
>>>>> -----BEGIN PGP SIGNED MESSAGE-----
>>>>> Hash: SHA1
>>>>> 
>>>>> bin/puppet catalog --manifest ~/test.pp find localhost
>>>>> Unable to find interface 'catalog': Action select already defined for 
>>>>> #<Puppet::Interface::Indirector:0x2b12a9681370>.
>>>>> Could not prepare for execution: Could not find interface 'catalog'
>>>>> 
>>>>> This is the correct source, yes? 
>>>>> git://github.com/lak/puppet-interfaces.git
>>>> 
>>>> Yes, that's the correct source.
>>>> 
>>>> Can you run this with --debug and send the output?  It should tell you 
>>>> what files are being loaded.
>>>> 
>>>> 
>>>> --
>>>> The remarkable thing about Shakespeare is that he really is very good,
>>>> in spite of all the people who say he is very good. -- Robert Graves
>>>> ---------------------------------------------------------------------
>>>> Luke Kanies  -|-   http://puppetlabs.com   -|-   +1(615)594-8199
>>>> 
>>>> 
>>>> 
>>>> 
>>>> --
>>>> You received this message because you are subscribed to the Google Groups 
>>>> "Puppet Developers" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to 
>>>> [email protected].
>>>> For more options, visit this group at 
>>>> http://groups.google.com/group/puppet-dev?hl=en.
>>>> 
>>>> 
>>> 
>>> 
>>> 
>>> --
>>> Trevor Vaughan
>>> Vice President, Onyx Point, Inc
>>> (410) 541-6699
>>> [email protected]
>>> 
>>> -- This account not approved for unencrypted proprietary information --
>> 
>> 
>> --
>> The most likely way for the world to be destroyed, most experts agree,
>> is by accident. That's where we come in; we're computer professionals.
>> We cause accidents.      --Nathaniel Borenstein
>> ---------------------------------------------------------------------
>> Luke Kanies  -|-   http://puppetlabs.com   -|-   +1(615)594-8199
>> 
>> 
>> 
>> 
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "Puppet Developers" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to 
>> [email protected].
>> For more options, visit this group at 
>> http://groups.google.com/group/puppet-dev?hl=en.
>> 
>> 
> 
> 
> 
> -- 
> Trevor Vaughan
> Vice President, Onyx Point, Inc
> (410) 541-6699
> [email protected]
> 
> -- This account not approved for unencrypted proprietary information --


-- 
The remarkable thing about Shakespeare is that he really is very good,
in spite of all the people who say he is very good. -- Robert Graves
---------------------------------------------------------------------
Luke Kanies  -|-   http://puppetlabs.com   -|-   +1(615)594-8199




-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to