I have added the env variable CFY_WORKDIR (in /etc/environment) to change the current working directory. In my understanding to take this new directory into effect, I need to restart the cloudify manager. Is it possible to do this?
Asked
Active
Viewed 326 times
2 Answers
2
for the followup questions in comments, you can update TMPDIR
environment variable in
/etc/sysconfig/cloudify-restservice
and /etc/sysconfig/cloudify-mgmtworker
, then restart the services using sudo systemctl restart cloudify-restservice
and sudo systemctl restart cloudify-mgmtworker
.
updating config.yaml is also an option for mgmtworker, but only before running cfy_manager install
.

Ido Berkovitch
- 21
- 1
1
The 'CFY_WORKDIR' is specifically to change the working directory for the CLI components. Therefore, this is independent of the Manager and you will not need to restart anything. You can try running 'cfy profiles use MANAGER_IP' again to connect to the running manager and see if that works.
Jeremy

Jeremy Hess
- 48
- 4
-
Thank you, currently Cloudify deploys all the blueprints in /tmp directory and executes from there. Is it possible to change the Cloudify to deploy the files in some other directory – Vishwa Dany Jul 04 '18 at 13:42
-
The way to do that is to add `CFY_EXEC_TEMP` and `TMPDIR` environment variables in the mgmtworker env with the path to the new tmp directory. You can also define it pre-installation in the `config.yaml` file: mgmtworker: extra_env: CFY_EXEC_TEMP: /newtmp TMPDIR: /newtmp – Jeremy Hess Jul 05 '18 at 12:27
-
Thank you, will try and let you know – Vishwa Dany Jul 05 '18 at 13:41
-
I have added the env variables in config.yaml. And reset the profiles.However still it uses the /tmp directory. – Vishwa Dany Jul 06 '18 at 13:49
-
@VishwaDany see below – Jeremy Hess Jul 06 '18 at 16:12
-
Thank you, will check and let you know – Vishwa Dany Jul 06 '18 at 16:13