2014-06-27 11:54:29 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
install-packages python-dev python-pip qemu-utils parted hdparm util-linux genisoimage gcc
|
|
|
|
|
|
|
|
pip install -r /tmp/ironic-python-agent/requirements.txt
|
|
|
|
pip install /tmp/ironic-python-agent
|
|
|
|
|
|
|
|
sudo echo $'[Unit]
|
|
|
|
Description=Ironic Python Agent\n
|
|
|
|
[Service]
|
|
|
|
ExecStart=/usr/bin/ironic-python-agent
|
|
|
|
Restart=always
|
2014-12-16 16:37:22 +00:00
|
|
|
RestartSec=30s\n
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target\n' > /usr/lib/systemd/system/ironic-python-agent.service
|
2014-06-27 11:54:29 +00:00
|
|
|
|
|
|
|
sudo systemctl enable ironic-python-agent.service
|