]> Frank Brehm's Git Trees - config/uhu1/etc.git/commitdiff
saving uncommitted changes in /etc prior to emerge run
authorfrank <frank@uhu1.uhu-banane.de>
Tue, 28 Feb 2012 14:35:33 +0000 (15:35 +0100)
committerroot <root@uhu1.uhu-banane.de>
Tue, 28 Feb 2012 14:35:33 +0000 (15:35 +0100)
.etckeeper
conf.d/salt [new file with mode: 0644]
init.d/salt.master [new file with mode: 0755]
init.d/salt.minion [new file with mode: 0755]

index a3d7db6a9610fde65948e1872d15e4570d0d06ee..35d0d1fab5795d160f9da34f3dc80fd542414ba9 100755 (executable)
@@ -172,6 +172,7 @@ maybe chmod 0644 './conf.d/pydoc-2.7'
 maybe chmod 0644 './conf.d/pydoc-3.1'
 maybe chmod 0644 './conf.d/quota'
 maybe chmod 0644 './conf.d/rsyncd'
+maybe chmod 0644 './conf.d/salt'
 maybe chmod 0644 './conf.d/samba'
 maybe chmod 0644 './conf.d/saslauthd'
 maybe chmod 0644 './conf.d/slapd'
@@ -684,6 +685,8 @@ maybe chmod 0755 './init.d/reboot.sh'
 maybe chmod 0755 './init.d/root'
 maybe chmod 0755 './init.d/rpc.rquotad'
 maybe chmod 0755 './init.d/rsyncd'
+maybe chmod 0755 './init.d/salt.master'
+maybe chmod 0755 './init.d/salt.minion'
 maybe chmod 0755 './init.d/samba'
 maybe chmod 0755 './init.d/saslauthd'
 maybe chmod 0755 './init.d/savecache'
diff --git a/conf.d/salt b/conf.d/salt
new file mode 100644 (file)
index 0000000..1411a66
--- /dev/null
@@ -0,0 +1,10 @@
+#
+# This options are passed to salt-master:
+#    (e.g. --log-level=trace, see salt-master --help)
+#SALT_MASTER_OPTIONS=""
+
+#
+# This options are passed to salt-minion:
+#    (e.g. --log-level=trace, see salt-minion --help)
+#SALT_MINION_OPTIONS=""
+
diff --git a/init.d/salt.master b/init.d/salt.master
new file mode 100755 (executable)
index 0000000..47470d2
--- /dev/null
@@ -0,0 +1,19 @@
+#!/sbin/runscript
+
+depend() {
+       use clock
+       need net netmount
+}
+
+start() {
+       ebegin "Starting salt master"
+       start-stop-daemon --start --pidfile /var/run/salt-master.pid --exec /usr/bin/salt-master -- --daemon ${SALT_MASTER_OPTIONS}
+       eend $? "Failed to start salt master"
+}
+
+stop() {
+       ebegin "Stopping salt master"
+       start-stop-daemon --stop --pidfile /var/run/salt-master.pid
+       eend $? "Failed to stop salt master"
+}
+
diff --git a/init.d/salt.minion b/init.d/salt.minion
new file mode 100755 (executable)
index 0000000..6e10fac
--- /dev/null
@@ -0,0 +1,19 @@
+#!/sbin/runscript
+
+depend() {
+       use clock
+       need net netmount
+}
+
+start() {
+       ebegin "Starting salt minion"
+       start-stop-daemon --start --pidfile /var/run/salt-minion.pid --exec /usr/bin/salt-minion -- --daemon ${SALT_MINION_OPTIONS}
+       eend $? "Failed to start salt minion"
+}
+
+stop() {
+       ebegin "Stopping salt minion"
+       start-stop-daemon --stop --pidfile /var/run/salt-minion.pid
+       eend $? "Failed to stop salt minion"
+}
+