frappe / agent

Works with https://github.com/frappe/press
GNU Affero General Public License v3.0
62 stars 84 forks source link

feat: multi-role agent #120

Closed casesolved-co-uk closed 1 month ago

casesolved-co-uk commented 1 month ago

It appears that the current agent deployment is designed to support a single server role (proxy, db, app, etc) but it seems the rest of the setup (ansible), directory structure, etc can cope with multiple roles on the same server.

It seems the hybrid / self-hosted server role already combines db + app servers (or at least used to).

As far as I can see this would just mean merging agent config.json changes instead of overwriting, and figuring out the correct agent/monitoring password for the servers in press?

Or is there some other way to install a single server setup (proxy + db + app + registry + monitor + ...)?

casesolved-co-uk commented 1 month ago

Okay so this is possible if you roll your own ansible playbook to install multiple components on a single server, e.g. proxy, mariadb, bench, docker, registry...

The agent setup <command> are then used to setup multiple agent roles.

casesolved-co-uk commented 3 weeks ago

You also need to change the agent nginx.conf to support multiple roles and ensure these are triggered on jinja render:

https://github.com/frappe/press/issues/2101