Line 7: |
Line 7: |
| | | |
| install elastic and dependencies (which are not explicits). You now need to choose the version you want ! 8.x, 7.x, 6.x, 5.x, 2 or 1 | | install elastic and dependencies (which are not explicits). You now need to choose the version you want ! 8.x, 7.x, 6.x, 5.x, 2 or 1 |
| + | |
| yum install elasticsearch java-1.8.0-openjdk --enablerepo=elastic6.x | | yum install elasticsearch java-1.8.0-openjdk --enablerepo=elastic6.x |
| allow updates | | allow updates |
− | db yum_repositories setprop elastic6.x status enabled | + | db yum_repositories setprop elastic6.x status enabled TCPPort 9200 access localhost |
| signal-event yum-modify | | signal-event yum-modify |
| + | |
| + | if you wanted a specific release you can use versionlock |
| + | yum install yum-plugin-versionlock -y |
| + | yum install elasticsearch-7.10.2 java-1.8.0-openjdk --enablerepo=elastic6.x |
| + | yum versionlock add elasticsearch-7.10.* |
| | | |
| configure and start | | configure and start |
| + | config set elasticsearch service status enabled |
| mkdir -p /etc/e-smith/templates-custom/etc/systemd/system-preset/49-koozali.preset/ | | mkdir -p /etc/e-smith/templates-custom/etc/systemd/system-preset/49-koozali.preset/ |
| echo '{ | | echo '{ |
Line 20: |
Line 27: |
| '> /etc/e-smith/templates-custom/etc/systemd/system-preset/49-koozali.preset/06elasticsearch | | '> /etc/e-smith/templates-custom/etc/systemd/system-preset/49-koozali.preset/06elasticsearch |
| expand-template /etc/systemd/system-preset/49-koozali.preset | | expand-template /etc/systemd/system-preset/49-koozali.preset |
| + | echo '[Install] |
| + | WantedBy=sme-server.target |
| + | ' > /etc/systemd/system/elasticsearch.service.d/51koozali.conf |
| /etc/e-smith/events/actions/systemd-default | | /etc/e-smith/events/actions/systemd-default |
| systemctl start elasticsearch | | systemctl start elasticsearch |