Node setup

Node setup

Deployment methods

  • SSH deployment
    This is the preferred, most convenient way to run your innosabi crowd node.
    If you run two application nodes this supports seamless updates and high availability setups out of the box.
  • SFTP deployment
    This is the fallback alternative in cases where security policies do not allow shell access. The deployment process is started once per hour.
    Please note that you have to restrict the shell rights of the deployment user!

Installation script

sudo useradd -d /opt/deploy -s /bin/bash -m -r deploy
sudo su -c "echo 'deploy ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/deploy"
sudo mkdir -p /opt/deploy/.ssh && sudo su -c "echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDj3ihROnO0KRHFDWr0UlOKJK4UdTBNGjL6yr2Tz78gdIVOG4UZLjj/oLWAHyu0ZROAYzNTKkhh/pfanYLSo0MzflP6gxxVzdRugrW4LE4GoRZHvZzfCScFB6KRjnnWIcWgpedFbuLqnjjpVyS2NXApz1G7ZKhcTgL/v3PJEmrbOeKMX49ZIXTqSTVCeKbBMyPxEjfs7MfH67rFQOmJBCXG0mFqR5qr6Qf8cEm19IytwwoCFrQ+RTODeF5W0rFUr6KzT79RMOLAhXLPrPFCzf2NYwGJEodnHrF8WQyntbcXtjP2XWhApYO8awH5zX3r4ud36n+5FuK1sZ+LkBHKX0LF deploy@innosabi.com' > /opt/deploy/.ssh/authorized_keys"
sudo mkdir -p /opt/ignite
sudo mkdir -p /etc/facter/facts.d && sudo ln -sf /opt/deploy/crowd.txt /etc/facter/facts.d/crowd.txt
sudo ln -sf /opt/ignite/core/deploy.sh /opt/deploy/deploy.sh
sudo chown -R deploy /opt/deploy && sudo chmod -R 0755 /opt/deploy
sudo chown -R deploy /opt/ignite && sudo chmod -R 0755 /opt/ignite