Skip to content

Commit 41ce18c

Browse files
Ian Taylorjamtur01
Ian Taylor
authored andcommitted
Changed tabs to spaces without interfering with indentation or alignment
1 parent f3b4092 commit 41ce18c

File tree

123 files changed

+5550
-5550
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

123 files changed

+5550
-5550
lines changed

README.queueing

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ tested with two of the most popular services - StompServer and ActiveMQ.
5656

5757
+ StompServer
5858

59-
http://rubyforge.org/projects/stompserver/
59+
http://rubyforge.org/projects/stompserver/
6060

6161
StompServer is a lightweight queueing service written in Ruby which is
6262
suitable for testing or low volume puppet usage. Works well when both
@@ -67,7 +67,7 @@ Just install the stompserver gem and run 'stompserver'.
6767

6868
+ Apache ActiveMQ
6969

70-
http://activemq.apache.org
70+
http://activemq.apache.org
7171

7272
Considered by many to be the most popular message service in use today,
7373
ActiveMQ has hundreds of features for scaling, persistence and so on.
@@ -76,7 +76,7 @@ Although installation is fairly simple, the configuration can seem quite
7676
intimidating, but for our use a one line change to the standard configuration
7777
is all that is required and is explained at:
7878

79-
http://activemq.apache.org/stomp.html
79+
http://activemq.apache.org/stomp.html
8080

8181
Other customization of the internal workings of ActiveMQ, if any, will depend
8282
on your needs and deployment. A quick skimming of the ActiveMQ documentation

autotest/puppet_rspec.rb

+13-13
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,30 @@
1616

1717
# force a complete re-run for all of these:
1818

19-
# main puppet lib
20-
at.add_mapping(%r!^lib/puppet\.rb$!) { |filename, _|
19+
# main puppet lib
20+
at.add_mapping(%r!^lib/puppet\.rb$!) { |filename, _|
2121
at.files_matching %r!spec/(unit|integration)/.*\.rb!
22-
}
22+
}
2323

24-
# the spec_helper
25-
at.add_mapping(%r!^spec/spec_helper\.rb$!) { |filename, _|
24+
# the spec_helper
25+
at.add_mapping(%r!^spec/spec_helper\.rb$!) { |filename, _|
2626
at.files_matching %r!spec/(unit|integration)/.*\.rb!
27-
}
27+
}
2828

29-
# the puppet test libraries
30-
at.add_mapping(%r!^test/lib/puppettest/.*!) { |filename, _|
29+
# the puppet test libraries
30+
at.add_mapping(%r!^test/lib/puppettest/.*!) { |filename, _|
3131
at.files_matching %r!spec/(unit|integration)/.*\.rb!
32-
}
32+
}
3333

3434
# the puppet spec libraries
35-
at.add_mapping(%r!^spec/lib/spec.*!) { |filename, _|
35+
at.add_mapping(%r!^spec/lib/spec.*!) { |filename, _|
3636
at.files_matching %r!spec/(unit|integration)/.*\.rb!
37-
}
37+
}
3838

3939
# the monkey patches for rspec
40-
at.add_mapping(%r!^spec/lib/monkey_patches/.*!) { |filename, _|
40+
at.add_mapping(%r!^spec/lib/monkey_patches/.*!) { |filename, _|
4141
at.files_matching %r!spec/(unit|integration)/.*\.rb!
42-
}
42+
}
4343
end
4444

4545
# a place for overrides when necessary.

conf/gentoo/init.d/puppetmaster

+30-30
Original file line numberDiff line numberDiff line change
@@ -3,49 +3,49 @@
33
# Distributed under the terms of the GNU General Public License v2
44

55
depend() {
6-
need net
7-
before puppet
8-
use dns logger
6+
need net
7+
before puppet
8+
use dns logger
99
}
1010

1111
checkconfig() {
12-
if [[ ! -d "${PUPPETMASTER_PID_DIR}" ]] ; then
13-
eerror "Please make sure PUPPETMASTER_PID_DIR is defined and points to a existing directory"
14-
return 1
15-
fi
12+
if [[ ! -d "${PUPPETMASTER_PID_DIR}" ]] ; then
13+
eerror "Please make sure PUPPETMASTER_PID_DIR is defined and points to a existing directory"
14+
return 1
15+
fi
1616

17-
local site_manifest="/etc/puppet/manifests/site.pp"
18-
[[ -n "${PUPPETMASTER_MANIFEST}" ]] && site_manifest="${PUPPETMASTER_MANIFEST}"
17+
local site_manifest="/etc/puppet/manifests/site.pp"
18+
[[ -n "${PUPPETMASTER_MANIFEST}" ]] && site_manifest="${PUPPETMASTER_MANIFEST}"
1919

20-
if [ ! -f "${site_manifest}" ] ; then
21-
eerror "Please create ${site_manifest} before running puppet"
22-
return 1
23-
fi
20+
if [ ! -f "${site_manifest}" ] ; then
21+
eerror "Please create ${site_manifest} before running puppet"
22+
return 1
23+
fi
2424

25-
return 0
25+
return 0
2626
}
2727

2828
start() {
29-
checkconfig || return $?
29+
checkconfig || return $?
3030

31-
local options=""
32-
[[ -n "${PUPPETMASTER_MANIFEST}" ]] && options="${options} --manifest=${PUPPETMASTER_MANIFEST}"
33-
[[ -n "${PUPPETMASTER_LOG}" ]] && options="${options} --logdest=${PUPPETMASTER_LOG}"
34-
[[ -n "${PUPPETMASTER_EXTRA_OPTS}" ]] && options="${options} ${PUPPETMASTER_EXTRA_OPTS}"
31+
local options=""
32+
[[ -n "${PUPPETMASTER_MANIFEST}" ]] && options="${options} --manifest=${PUPPETMASTER_MANIFEST}"
33+
[[ -n "${PUPPETMASTER_LOG}" ]] && options="${options} --logdest=${PUPPETMASTER_LOG}"
34+
[[ -n "${PUPPETMASTER_EXTRA_OPTS}" ]] && options="${options} ${PUPPETMASTER_EXTRA_OPTS}"
3535

36-
ebegin "Starting puppetmaster"
37-
start-stop-daemon --start --quiet --exec /usr/bin/ruby /usr/bin/puppetmasterd \
38-
-- ${options}
39-
eend $? "Failed to start puppetmaster"
36+
ebegin "Starting puppetmaster"
37+
start-stop-daemon --start --quiet --exec /usr/bin/ruby /usr/bin/puppetmasterd \
38+
-- ${options}
39+
eend $? "Failed to start puppetmaster"
4040
}
4141

4242
stop() {
43-
ebegin "Stopping puppetmaster"
44-
start-stop-daemon --stop --quiet \
45-
--pidfile ${PUPPETMASTER_PID_DIR}/puppetmasterd.pid
46-
local ret=$?
47-
eend ${ret} "Failed to stop puppetmaster"
48-
rm -f ${PUPPETMASTER_PID_DIR}/puppetmasterd.pid
49-
return ${ret}
43+
ebegin "Stopping puppetmaster"
44+
start-stop-daemon --stop --quiet \
45+
--pidfile ${PUPPETMASTER_PID_DIR}/puppetmasterd.pid
46+
local ret=$?
47+
eend ${ret} "Failed to stop puppetmaster"
48+
rm -f ${PUPPETMASTER_PID_DIR}/puppetmasterd.pid
49+
return ${ret}
5050
}
5151

conf/osx/PackageInfo.plist

+30-30
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,35 @@
22
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
33
<plist version="1.0">
44
<dict>
5-
<key>CFBundleIdentifier</key>
6-
<string>com.reductivelabs.puppet</string>
7-
<key>CFBundleShortVersionString</key>
8-
<string>{SHORTVERSION}</string>
9-
<key>IFMajorVersion</key>
10-
<integer>{MAJORVERSION}</integer>
11-
<key>IFMinorVersion</key>
12-
<integer>{MINORVERSION}</integer>
13-
<key>IFPkgFlagAllowBackRev</key>
14-
<false/>
15-
<key>IFPkgFlagAuthorizationAction</key>
16-
<string>RootAuthorization</string>
17-
<key>IFPkgFlagDefaultLocation</key>
18-
<string>/</string>
19-
<key>IFPkgFlagFollowLinks</key>
20-
<true/>
21-
<key>IFPkgFlagInstallFat</key>
22-
<false/>
23-
<key>IFPkgFlagIsRequired</key>
24-
<false/>
25-
<key>IFPkgFlagOverwritePermissions</key>
26-
<false/>
27-
<key>IFPkgFlagRelocatable</key>
28-
<false/>
29-
<key>IFPkgFlagRestartAction</key>
30-
<string>None</string>
31-
<key>IFPkgFlagRootVolumeOnly</key>
32-
<true/>
33-
<key>IFPkgFlagUpdateInstalledLanguages</key>
34-
<false/>
5+
<key>CFBundleIdentifier</key>
6+
<string>com.reductivelabs.puppet</string>
7+
<key>CFBundleShortVersionString</key>
8+
<string>{SHORTVERSION}</string>
9+
<key>IFMajorVersion</key>
10+
<integer>{MAJORVERSION}</integer>
11+
<key>IFMinorVersion</key>
12+
<integer>{MINORVERSION}</integer>
13+
<key>IFPkgFlagAllowBackRev</key>
14+
<false/>
15+
<key>IFPkgFlagAuthorizationAction</key>
16+
<string>RootAuthorization</string>
17+
<key>IFPkgFlagDefaultLocation</key>
18+
<string>/</string>
19+
<key>IFPkgFlagFollowLinks</key>
20+
<true/>
21+
<key>IFPkgFlagInstallFat</key>
22+
<false/>
23+
<key>IFPkgFlagIsRequired</key>
24+
<false/>
25+
<key>IFPkgFlagOverwritePermissions</key>
26+
<false/>
27+
<key>IFPkgFlagRelocatable</key>
28+
<false/>
29+
<key>IFPkgFlagRestartAction</key>
30+
<string>None</string>
31+
<key>IFPkgFlagRootVolumeOnly</key>
32+
<true/>
33+
<key>IFPkgFlagUpdateInstalledLanguages</key>
34+
<false/>
3535
</dict>
3636
</plist>

conf/redhat/client.init

+39-39
Original file line numberDiff line numberDiff line change
@@ -33,28 +33,28 @@ PUPPET_OPTS=""
3333
##[ -n "$INIT_VERSION" ] && PUPPET_OPTS="${PUPPET_OPTS} --fullrun"
3434

3535
start() {
36-
echo -n $"Starting puppet: "
37-
daemon $puppetd ${PUPPET_OPTS} ${PUPPET_EXTRA_OPTS}
38-
RETVAL=$?
39-
echo
36+
echo -n $"Starting puppet: "
37+
daemon $puppetd ${PUPPET_OPTS} ${PUPPET_EXTRA_OPTS}
38+
RETVAL=$?
39+
echo
4040
[ $RETVAL = 0 ] && touch ${lockfile}
4141
return $RETVAL
4242
}
4343

4444
stop() {
45-
echo -n $"Stopping puppet: "
46-
killproc $puppetd
47-
RETVAL=$?
48-
echo
49-
[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
45+
echo -n $"Stopping puppet: "
46+
killproc $puppetd
47+
RETVAL=$?
48+
echo
49+
[ $RETVAL = 0 ] && rm -f ${lockfile} ${pidfile}
5050
}
5151

5252
reload() {
53-
echo -n $"Restarting puppet: "
54-
killproc $puppetd -HUP
55-
RETVAL=$?
56-
echo
57-
return $RETVAL
53+
echo -n $"Restarting puppet: "
54+
killproc $puppetd -HUP
55+
RETVAL=$?
56+
echo
57+
return $RETVAL
5858
}
5959

6060
restart() {
@@ -63,40 +63,40 @@ restart() {
6363
}
6464

6565
genconfig() {
66-
echo -n $"Generate configuration puppet: "
67-
$puppetd ${PUPPET_OPTS} ${PUPPET_EXTRA_OPTS} --genconfig
66+
echo -n $"Generate configuration puppet: "
67+
$puppetd ${PUPPET_OPTS} ${PUPPET_EXTRA_OPTS} --genconfig
6868
}
6969

7070
case "$1" in
71-
start)
72-
start
73-
;;
74-
stop)
75-
stop
76-
;;
77-
restart)
78-
restart
79-
;;
80-
reload|force-reload)
71+
start)
72+
start
73+
;;
74+
stop)
75+
stop
76+
;;
77+
restart)
78+
restart
79+
;;
80+
reload|force-reload)
8181
reload
82-
;;
83-
condrestart|try-restart)
84-
[ -f "$pidfile" ] && restart
85-
;;
86-
status)
82+
;;
83+
condrestart|try-restart)
84+
[ -f "$pidfile" ] && restart
85+
;;
86+
status)
8787
status -p "$pidfile" $puppetd
8888
RETVAL=$?
89-
;;
90-
once)
89+
;;
90+
once)
9191
shift
9292
$puppetd -o ${PUPPET_OPTS} ${PUPPET_EXTRA_OPTS} $@
9393
;;
94-
genconfig)
95-
genconfig
96-
;;
97-
*)
98-
echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|once|genconfig}"
99-
exit 1
94+
genconfig)
95+
genconfig
96+
;;
97+
*)
98+
echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|once|genconfig}"
99+
exit 1
100100
esac
101101

102102
exit $RETVAL

0 commit comments

Comments
 (0)