| Linux distro | Verified it works |
|---|---|
| Ubuntu 20.04 | ✅ |
| Amazon Linux 2 | ✅ |
What we want to achieve to setup XP with systemd, that is easy to install, upgrade, rollback and backup. These examples do the following:
- Set correct
vm.max_map_count. - Create a user and group for XP.
- Download and extract the desired disto into
/opt/enonic/distros. - Setup the XP home folder at
/opt/enonic/home. - Create a systemd service file using the desired distro.
- Start systemd service (ansible only).
Use ansible playbook:
$ ansible-playbook -i <INVENTORY> xp-systemd.ymlYou can use the sh script. First copy the script to the server and then run as root:
$ ./xp-systemd.sh
$ systemctl daemon-reload
$ systemctl enable --now xp.serviceVagrant will automatically provision the systemd service when you create
$ vagrant up