Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 240266 | Differences between
and this patch

Collapse All | Expand All

(-)/etc/init.d/puppetmaster.orig (-9 lines)
Lines 14-27 Link Here
14
		return 1
14
		return 1
15
	fi
15
	fi
16
16
17
	local site_manifest="/etc/puppet/manifests/site.pp"
18
	[[ -n "${PUPPETMASTER_MANIFEST}" ]] && site_manifest="${PUPPETMASTER_MANIFEST}"
19
20
	if [ ! -f "${site_manifest}" ] ; then
21
		eerror "Please create ${site_manifest} before running puppet"
22
		return 1
23
	fi
24
25
	return 0
17
	return 0
26
}
18
}
27
19
Lines 29-35 Link Here
29
	checkconfig || return $?
21
	checkconfig || return $?
30
22
31
	local options=""
23
	local options=""
32
	[[ -n "${PUPPETMASTER_MANIFEST}" ]]   && options="${options} --manifest=${PUPPETMASTER_MANIFEST}"
33
	[[ -n "${PUPPETMASTER_LOG}" ]]        && options="${options} --logdest=${PUPPETMASTER_LOG}"
24
	[[ -n "${PUPPETMASTER_LOG}" ]]        && options="${options} --logdest=${PUPPETMASTER_LOG}"
34
	[[ -n "${PUPPETMASTER_EXTRA_OPTS}" ]] && options="${options} ${PUPPETMASTER_EXTRA_OPTS}"
25
	[[ -n "${PUPPETMASTER_EXTRA_OPTS}" ]] && options="${options} ${PUPPETMASTER_EXTRA_OPTS}"
35
26

Return to bug 240266