mirror of https://github.com/MISP/misp-packer
Workers and modules working properly.
parent
77d7d78256
commit
cc2609659a
|
@ -1,2 +1,3 @@
|
||||||
packer_cache/
|
packer_cache/
|
||||||
output-virtualbox-iso/
|
output-virtualbox-iso/
|
||||||
|
*.checksum
|
||||||
|
|
|
@ -27,9 +27,9 @@ The sha1 and sha512 checksums of the generated VM will be stored in the files
|
||||||
|
|
||||||
In case you encounter a problem with the ``MISP_BASEURL``, you can still change
|
In case you encounter a problem with the ``MISP_BASEURL``, you can still change
|
||||||
it when the VM is running. For example the IP address of your VM is
|
it when the VM is running. For example the IP address of your VM is
|
||||||
``172.16.100.123`` you cas set ``MISP_BASEURL`` from your host with the command:
|
``172.16.100.123`` you can set ``MISP_BASEURL`` from your host with the command:
|
||||||
|
|
||||||
$ ssh misp@172.16.100.123 sudo -u www-data /var/www/MISP/app/Console/cake Baseurl http://172.16.100.123/
|
$ ssh misp@172.16.100.123 sudo -u www-data /var/www/MISP/app/Console/cake Baseurl http://172.16.100.123
|
||||||
|
|
||||||
If you want to build an image for VMWare you will need to install it and to
|
If you want to build an image for VMWare you will need to install it and to
|
||||||
use the VMWare builder with the command:
|
use the VMWare builder with the command:
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"variables": {
|
"variables": {
|
||||||
"ssh_name": "misp",
|
"ssh_name": "misp",
|
||||||
"ssh_pass": "Password1234",
|
"ssh_pass": "Password1234",
|
||||||
"hostname": "packer",
|
"hostname": "misp",
|
||||||
"vm_name": "MISP_demo",
|
"vm_name": "MISP_demo",
|
||||||
"disk_size": "10000"
|
"disk_size": "10000"
|
||||||
},
|
},
|
||||||
|
|
|
@ -320,13 +320,14 @@ fi
|
||||||
sudo sed -i -e '$i \sudo -u www-data bash /var/www/MISP/app/Console/worker/start.sh\n' /etc/rc.local
|
sudo sed -i -e '$i \sudo -u www-data bash /var/www/MISP/app/Console/worker/start.sh\n' /etc/rc.local
|
||||||
|
|
||||||
|
|
||||||
# echo "\n--- Installing MISP modules... ---\n"
|
echo "\n--- Installing MISP modules... ---\n"
|
||||||
# sudo apt-get install -y python3-dev python3-pip libpq5 libjpeg-dev > /dev/null 2>&1
|
sudo apt-get install -y python3-dev python3-pip libpq5 libjpeg-dev > /dev/null 2>&1
|
||||||
# cd /usr/local/src/
|
cd /usr/local/src/
|
||||||
# sudo git clone https://github.com/MISP/misp-modules.git
|
sudo git clone https://github.com/MISP/misp-modules.git
|
||||||
# cd misp-modules
|
cd misp-modules
|
||||||
# sudo pip3 install -I -r REQUIREMENTS > /dev/null 2>&1
|
sudo pip3 install -I -r REQUIREMENTS > /dev/null 2>&1
|
||||||
# sudo pip3 install -I . > /dev/null 2>&1
|
sudo pip3 install -I . > /dev/null 2>&1
|
||||||
|
# With systemd:
|
||||||
# sudo cat > /etc/systemd/system/misp-modules.service <<EOF
|
# sudo cat > /etc/systemd/system/misp-modules.service <<EOF
|
||||||
# [Unit]
|
# [Unit]
|
||||||
# Description=Start the misp modules server at boot
|
# Description=Start the misp modules server at boot
|
||||||
|
@ -342,6 +343,10 @@ sudo sed -i -e '$i \sudo -u www-data bash /var/www/MISP/app/Console/worker/start
|
||||||
# sudo systemctl enable misp-modules.service > /dev/null
|
# sudo systemctl enable misp-modules.service > /dev/null
|
||||||
# sudo systemctl restart misp-modules.service > /dev/null
|
# sudo systemctl restart misp-modules.service > /dev/null
|
||||||
|
|
||||||
|
# With initd:
|
||||||
|
sudo sed -i -e '$i \sudo -u www-data misp-modules -l 0.0.0.0 -s &\n' /etc/rc.local
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
echo "\n--- Restarting Apache... ---\n"
|
echo "\n--- Restarting Apache... ---\n"
|
||||||
sudo systemctl restart apache2 > /dev/null 2>&1
|
sudo systemctl restart apache2 > /dev/null 2>&1
|
||||||
|
|
Loading…
Reference in New Issue