Taskotron: Properly fix imagefactory service
Workaround for https://github.com/redhat-imaging/imagefactory/issues/417
This commit is contained in:
parent
da39a96667
commit
ace5dbaa17
2 changed files with 22 additions and 6 deletions
12
files/imagefactoryd.service
Normal file
12
files/imagefactoryd.service
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Requires=libvirtd.service
|
||||
After=libvirtd.service
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/bin/imagefactoryd
|
||||
ExecStop=/usr/bin/killall imagefactoryd
|
||||
PIDFile=/var/run/imagefactoryd.pid
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -16,12 +16,16 @@
|
|||
- name: hotfix imagefactory's REST api to allow file download
|
||||
copy: src=hotfix_imgfac_RESTv2.py dest=/usr/lib/python2.7/site-packages/imgfac/rest/RESTv2.py owner=root group=root mode=0644
|
||||
|
||||
- name: allow imagefactoryd.service to be enabled
|
||||
blockinfile:
|
||||
path: /usr/lib/systemd/system/imagefactoryd.service
|
||||
block: |
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
# Workaround for https://github.com/redhat-imaging/imagefactory/issues/417
|
||||
- name: fix issues in imagefactoryd.service
|
||||
copy:
|
||||
src: imagefactoryd.service
|
||||
dest: /etc/systemd/system/imagefactoryd.service
|
||||
register: imagefactory_service
|
||||
|
||||
- name: reload systemd
|
||||
command: systemctl daemon-reload
|
||||
when: imagefactory_service.changed
|
||||
|
||||
- name: enable imagefactory
|
||||
service: name=imagefactoryd state=started enabled=yes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue