commit 4e55f183c1f21e87909c0591d22130a8f54683d6
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Tue Nov 15 12:35:30 2016 +0100
Add kojid service override for proxy
.../files/builders/kojid.service.d.override.conf | 1 +
roles/koji_builder/tasks/main.yml | 15 +++++++++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/roles/koji_builder/files/builders/kojid.service.d.override.conf
b/roles/koji_builder/files/builders/kojid.service.d.override.conf
new file mode 100644
index 0000000..bddfadb
--- /dev/null
+++ b/roles/koji_builder/files/builders/kojid.service.d.override.conf
@@ -0,0 +1 @@
+Environnement="http_proxy=http://proxy:3128"
diff --git a/roles/koji_builder/tasks/main.yml b/roles/koji_builder/tasks/main.yml
index 25351aa..325887f 100644
--- a/roles/koji_builder/tasks/main.yml
+++ b/roles/koji_builder/tasks/main.yml
@@ -119,6 +119,21 @@
- koji_builder
when: ansible_distribution_major_version|int > 21
+
+- name: create kojid service override directory
+ file: path=/etc/systemd/system/kojid.service.d state=directory
+ tags:
+ - koji_buidler
+ when: ansible_distribution_major_version|int > 6
+
+- name: systemd kojid service override
+ copy: src=builders/kojid.service.d.override.conf
dst=/etc/systemd/system/kojid.service.d/override.conf
+ notify:
+ - reload systemd
+ tags:
+ - koji_buidler
+ when: ansible_distribution_major_version|int > 6
+
- name: build /etc/kojid/kojid.conf from group vars
template: src=kojid.conf dest=/etc/kojid/kojid.conf
notify:
Show replies by date