Ask Your Question
0

Puppet exec complains about non-absolute paths [closed]

asked 2016-10-06 13:48:49 -0500

Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Caching catalog for icarus.cos.lan
Error: Failed to apply catalog: Parameter unless failed on Exec[systemd_localectl_set_locale]: [… the command repeated below …] is not qualified and no path was specified. Please qualify the command or specify a path. at /etc/puppet/environments/development/modules/systemd/manifests/config.pp:527
Wrapped exception:
'/usr/bin/diff <(/usr/bin/env -i /bin/sh -c -o allexport '. /etc/locale.conf 2> /dev/null && /usr/bin/printenv' | /usr/bin/sort) <(/bin/echo 'LC_MESSAGE=en_US.UTF-8' /usr/bin/printenv | /usr/bin/env -i /bin/sh -s | /usr/bin/sort)' is not qualified and no path was specified. Please qualify the command or specify a path.

The weird thing is, as for debugging I switch to some console, invoke a separate shell, do a export PATH= (empty path), and call my unless condition as stated above, and there it works.

What am I missing?

PS: Why is it impossible editing a question without destroying its formatting? I'm asking this Q the 3rd time.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Kai Burghardt
close date 2016-10-06 14:20:26.869265

2 Answers

Sort by » oldest newest most voted
-1

answered 2016-10-06 14:20:04 -0500

Resolved. There was a newline in my command. I'm using a heredoc for this large command. I forgot at one line a slash escaping the following newline.

edit flag offensive delete link more
0

answered 2016-10-06 14:04:22 -0500

puser gravatar image

It would be helpful to see your exec here. However off the top of my head I know that environmental variables are session specific. Therefore if you created an environmental variable in one session that doesn't mean it is there for another. You will need to set global environment variables in /etc/environment in order for ever user to access it.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-10-06 13:48:49 -0500

Seen: 49 times

Last updated: Oct 06 '16