How to generate catalog with external facts?

asked 2014-02-09 19:23:26 -0500

radeksimko gravatar image

updated 2014-02-10 07:14:28 -0500

I have a puppet directory with all necessary stuff in it:

├── manifests
│   └── site.pp
└── modules
    ├── concat
    ├── git
    └── wget

And I'd like to generate a catalog for a certain node without having to actually launch puppetmaster server. ideally for all of them, but I should manage to get list of all and then run the command for each.

I found a way how to generate a catalog:

puppet master --compile <node-name> --confdir=. --vardir=.

but it's failing due to missing facts like $operatingsystem.

Puppet is correctly looking for facts in $vardir/lib/facter:$vardir/facts

$> puppet master --confdir=. --vardir=. --configprint ...
edit retag flag offensive close merge delete


I'd take a look at this [thread](!topic/puppet-users/QYdweqEnorM) on the same topic. Then I'd use '--verbose' to get some hints on ...(more)

giavac gravatar imagegiavac ( 2014-02-10 03:33:16 -0500 )edit

@giavac I saw that thread and tested all hints there with no success.

radeksimko gravatar imageradeksimko ( 2014-02-10 04:21:50 -0500 )edit

@giavac `--verbose` option doesn't seem to be that useful as it basically adds just two more lines to the output: ``` Info: Caching node for <node-name> Notice: Compiled catalog for ...(more)

radeksimko gravatar imageradeksimko ( 2014-02-10 04:22:19 -0500 )edit

@giavac It has helped a bit at the end, so I restated the original question. The only issue are probably external facts.

radeksimko gravatar imageradeksimko ( 2014-02-10 07:15:33 -0500 )edit

@radeksimko: Sorry, I meant '--debug', rather than '--verbose'.

giavac gravatar imagegiavac ( 2014-02-13 06:33:46 -0500 )edit