Conversation
| apache2 dependencies: | ||
| pip.installed: | ||
| - names: | ||
| - saltext-apache |
There was a problem hiding this comment.
The Salt Apache and MySQL extensions both require a fair chunk of memory to install. The install only completed in my testing after increasing to 5GBs memory (2GB RAM, 3GB Swap).
ocp20 will fail to install this extension without increasing Swap.
I propose setting a Swap to a minimum of 4GB on all servers.
https://github.com/open-contracting/deploy/blob/main/salt/core/swap.sls
There was a problem hiding this comment.
Are you sure this needs to be installed on the server and not just where the salt-ssh client is running?
There was a problem hiding this comment.
Yes the extension is needed only on the server - this is a mistake I made starting this task, I had installed the extensions on my local system and was then puzzled why they would not take effect.
This makes sense because of how Salt works, it compiles our states, uploads itself to the server, executes and then reports back the result.
Because the code is not executed locally, the local environment does not matter.
There was a problem hiding this comment.
Aha, ok to increase swap space
| pip: | ||
| pkg.installed: | ||
| - pkgs: | ||
| - python3-pip |
There was a problem hiding this comment.
Installing pip as part of the core install. It is already on all but two servers, moving to salt-extensions will install it everywhere regardless.
| - build-essential | ||
| - python3-dev | ||
| - install_recommends: False |
There was a problem hiding this comment.
Need to review what is required.
Build-essential is needed for the Salt extensions to compile but may not be needed everywhere, it is a bulky package and I only want to install it if I need it.
L28 - install_recommends install build-essential and python3-dev so should be removed from here if we are installing them anyway.
|
Todo before review + deployment:
|
Resolves #491