Currently setting up the virtual machine requires creating two configuration files (extra_settings.py and signing-service-env.sh) and a shell variable (CONCENT_DEPLOYMENT_VERSION). There will be more as we make the machine more versatile (e.g. app_cfg.ini) for Golem. The goal of this task is replace it all with a single configuration file.
1) The configuration file should be called config.yml.
It should not be stored in the repository (add to .gitignore).
If the file does not exist, Vagrantfile should exit with a clear error message.
2) extra_settings.py should now be created automatically inside the machine from a template and contain all settings from a dict called concent_local_settings.
3) signing_service-env.sh should now be created automatically inside the machine from a template and contain all shell variables from a dict called signing_service_env.
4) CONCENT_DEPLOYMENT_VERSION should be replaced with a top-level variable called concent_deployment_version. The playbooks can read it directly from config.yml instead of expecting Vagrant to pass it to them.
Example of configuration file and generated configuration
Currently setting up the virtual machine requires creating two configuration files (
extra_settings.py
andsigning-service-env.sh
) and a shell variable (CONCENT_DEPLOYMENT_VERSION
). There will be more as we make the machine more versatile (e.g.app_cfg.ini
) for Golem. The goal of this task is replace it all with a single configuration file.1) The configuration file should be called
config.yml
..gitignore
).Vagrantfile
should exit with a clear error message. 2)extra_settings.py
should now be created automatically inside the machine from a template and contain all settings from a dict calledconcent_local_settings
. 3)signing_service-env.sh
should now be created automatically inside the machine from a template and contain all shell variables from a dict calledsigning_service_env
. 4)CONCENT_DEPLOYMENT_VERSION
should be replaced with a top-level variable calledconcent_deployment_version
. The playbooks can read it directly fromconfig.yml
instead of expecting Vagrant to pass it to them.Example of configuration file and generated configuration
config.yml
extra_settings.py
The generated file should contain only the following:
signing_service-env.sh
The generated file should contain only the following: