parent
19ce87e9b9
commit
c3e621009b
@ -0,0 +1,46 @@
|
|||||||
|
From f3d931b6c68e4305ce612949ec59dca460e578d7 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Gael Chamoulaud <gchamoul@redhat.com>
|
||||||
|
Date: Wed, 29 Jul 2015 21:58:48 +0200
|
||||||
|
Subject: [PATCH] Revert "(maint) Remove puppetmaster.service"
|
||||||
|
|
||||||
|
This reverts commit c0e30daa53b6267c1c86b6e27c01b1c26cf49af5.
|
||||||
|
---
|
||||||
|
ext/systemd/puppet.service | 2 +-
|
||||||
|
ext/systemd/puppetmaster.service | 12 ++++++++++++
|
||||||
|
2 files changed, 13 insertions(+), 1 deletion(-)
|
||||||
|
create mode 100644 ext/systemd/puppetmaster.service
|
||||||
|
|
||||||
|
diff --git a/ext/systemd/puppet.service b/ext/systemd/puppet.service
|
||||||
|
index 61b0313..c7f063e 100644
|
||||||
|
--- a/ext/systemd/puppet.service
|
||||||
|
+++ b/ext/systemd/puppet.service
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Puppet agent
|
||||||
|
Wants=basic.target
|
||||||
|
-After=basic.target network.target
|
||||||
|
+After=basic.target network.target puppetmaster.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
EnvironmentFile=-/etc/sysconfig/puppetagent
|
||||||
|
diff --git a/ext/systemd/puppetmaster.service b/ext/systemd/puppetmaster.service
|
||||||
|
new file mode 100644
|
||||||
|
index 0000000..dbbd627
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/ext/systemd/puppetmaster.service
|
||||||
|
@@ -0,0 +1,12 @@
|
||||||
|
+[Unit]
|
||||||
|
+Description=Puppet master
|
||||||
|
+Wants=basic.target
|
||||||
|
+After=basic.target network.target
|
||||||
|
+
|
||||||
|
+[Service]
|
||||||
|
+EnvironmentFile=-/etc/sysconfig/puppetmaster
|
||||||
|
+EnvironmentFile=-/etc/default/puppetmaster
|
||||||
|
+ExecStart=/usr/bin/puppet master $PUPPETMASTER_EXTRA_OPTS --no-daemonize
|
||||||
|
+
|
||||||
|
+[Install]
|
||||||
|
+WantedBy=multi-user.target
|
||||||
|
--
|
||||||
|
2.4.3
|
||||||
|
|
@ -1,25 +0,0 @@
|
|||||||
From 4e812abeb7b373c780a6ff46a5450b9d53d68e30 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Haikel Guemar <hguemar@fedoraproject.org>
|
|
||||||
Date: Mon, 13 Apr 2015 14:25:11 +0200
|
|
||||||
Subject: [PATCH 2/2] make systemd the default init for fedora in puppet
|
|
||||||
|
|
||||||
---
|
|
||||||
lib/puppet/provider/service/systemd.rb | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/lib/puppet/provider/service/systemd.rb b/lib/puppet/provider/service/systemd.rb
|
|
||||||
index 39ef5ea..89b6b62 100644
|
|
||||||
--- a/lib/puppet/provider/service/systemd.rb
|
|
||||||
+++ b/lib/puppet/provider/service/systemd.rb
|
|
||||||
@@ -7,7 +7,7 @@ Puppet::Type.type(:service).provide :systemd, :parent => :base do
|
|
||||||
|
|
||||||
defaultfor :osfamily => [:archlinux]
|
|
||||||
defaultfor :osfamily => :redhat, :operatingsystemmajrelease => "7"
|
|
||||||
- defaultfor :osfamily => :redhat, :operatingsystem => :fedora, :operatingsystemmajrelease => ["17", "18", "19", "20", "21"]
|
|
||||||
+ defaultfor :osfamily => :redhat, :operatingsystem => :fedora
|
|
||||||
defaultfor :osfamily => :suse, :operatingsystemmajrelease => ["12", "13"]
|
|
||||||
|
|
||||||
def self.instances
|
|
||||||
--
|
|
||||||
2.4.0
|
|
||||||
|
|
Loading…
Reference in new issue