bifrost/playbooks/roles/bifrost-ironic-install/templates/systemd_template.j2
stephane e6bfd65d0f Get install path for ironic services
Depending on the distribution, pip can install the ironic
services in /usr/bin or in /usr/local/bin. Find the correct
path so we can supply it to the templates for the systemd
and upstart files.

Change-Id: I058e6fdbe7d89249b4c9818a37ee22dafdd5d594
2015-08-28 11:52:19 -07:00

10 lines
242 B
Django/Jinja

[Unit]
Description={{ item.service_name }} service
[Service]
ExecStart={{ item.service_path }}/{{ item.service_name }} {{ item.args }}
User={{ item.username }}
[Install]
WantedBy=multi-user.target
Alias={{ item.service_name }}{{ init_ext }}