Ask Your Question
0

Issue with puppet bolt running "facts"

asked 2018-10-19 22:47:57 -0600

RunnerFL gravatar image

Just installed Bolt today so go easy on me here... (Not new to Puppet Enterprise, just new to Bolt.)

I'm trying to run 'bolt task run facts' or 'bolt plan run facts' and both result in an error stating "The facts task does not exist in environment production". I have the facts module installed, 0.4.1, so I'm at a loss as to what is happening here.

If I run 'bolt plan run facts' I get the following output:

Starting: plan facts Starting: task facts on XXX Finished: task facts with 1 failure in 0.62 sec Finished: plan facts in 0.63 sec { "kind": "bolt/run-failure", "msg": "Plan aborted: run_task 'facts' failed on 1 nodes", "details": { "action": "run_task", "object": "facts", "result_set": [ { "node": "XXX", "status": "failure", "result": { "_error": { "kind": "puppetlabs.orchestrator/unknown-task", "msg": "The facts task does not exist in environment production", "details": { "environment": "production", "task": "facts" } } } } ] } }

The orchestration-services-access.log is giving 404's as well.

Also, if I go with "facts::bash" I get facts returned to me. And if I run anything else via bolt it works, 'facts' is the only thing not working.

Any help would be appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-11-09 10:38:37 -0600

the facts task is a cross platform task that uses the facts::bash, facts::ruby etc. implementations. Cross platform tasks are not supported in PE releases prior to 2019.0 so you'll have to specify which implementation you want to use(probably facts::ruby).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-10-19 22:47:57 -0600

Seen: 133 times

Last updated: Oct 19