jclouds-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ignasi <ignasi.barr...@gmail.com>
Subject Re: Missing /usr/local/bin in PATH in the chef initialization script
Date Tue, 14 May 2013 16:15:44 GMT
Tricky thing when dealing with paths.

Could you try to manually configure the path for your user? Something like:

Statement fixPath = Statements.appendFile("~/.bashrc",
ImmutableList.of("export PATH=$PATH:/usr/local/bin"));
Statement chefBootstrap = chef.createBootstrapScriptForGroup(group);
Statement bootstrap = new StatementList(fixPath, chefBootstrap);

And use the 'bootstrap' statement.  Haven't tried and may not be
accurate, but that's an idea.




On 14 May 2013 17:59, Giovanni Toraldo <me@gionn.net> wrote:
> Hi,
>
> we are using jclouds 1.6.0 to bootstrap an Ubuntu server 13.04 node on
> Amazon using the official AMI, but unfortunately the last step of the
> bootscript will fail with a command not found since the chef-client
> bin is installed in /usr/local/bin, and that path is not in the PATH
> as defined early in the script.
>
> How is possible to override that PATH?
>
> --
> Giovanni Toraldo
> http://gionn.net

Mime
View raw message