giraffesoft-chef 0.7.15
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +201 -0
- data/README.rdoc +135 -0
- data/bin/chef-client +26 -0
- data/bin/chef-solo +26 -0
- data/distro/debian/etc/init.d/chef-client +175 -0
- data/distro/debian/etc/init.d/chef-indexer +175 -0
- data/distro/debian/etc/init.d/chef-server +120 -0
- data/distro/debian/man/man1/chef-indexer.1 +42 -0
- data/distro/debian/man/man1/chef-server.1 +108 -0
- data/distro/debian/man/man8/chef-client.8 +61 -0
- data/distro/debian/man/man8/chef-solo.8 +58 -0
- data/distro/redhat/etc/chef/client.rb +16 -0
- data/distro/redhat/etc/chef/indexer.rb +10 -0
- data/distro/redhat/etc/chef/server.rb +22 -0
- data/distro/redhat/etc/init.d/chef-client +74 -0
- data/distro/redhat/etc/init.d/chef-indexer +76 -0
- data/distro/redhat/etc/init.d/chef-server +77 -0
- data/lib/chef.rb +49 -0
- data/lib/chef/application.rb +98 -0
- data/lib/chef/application/agent.rb +18 -0
- data/lib/chef/application/client.rb +209 -0
- data/lib/chef/application/indexer.rb +141 -0
- data/lib/chef/application/server.rb +18 -0
- data/lib/chef/application/solo.rb +214 -0
- data/lib/chef/client.rb +421 -0
- data/lib/chef/compile.rb +170 -0
- data/lib/chef/config.rb +141 -0
- data/lib/chef/cookbook.rb +171 -0
- data/lib/chef/cookbook/metadata.rb +407 -0
- data/lib/chef/cookbook/metadata/version.rb +87 -0
- data/lib/chef/cookbook_loader.rb +180 -0
- data/lib/chef/couchdb.rb +176 -0
- data/lib/chef/daemon.rb +170 -0
- data/lib/chef/exceptions.rb +36 -0
- data/lib/chef/file_cache.rb +205 -0
- data/lib/chef/log.rb +39 -0
- data/lib/chef/mixin/check_helper.rb +31 -0
- data/lib/chef/mixin/checksum.rb +37 -0
- data/lib/chef/mixin/command.rb +386 -0
- data/lib/chef/mixin/convert_to_class_name.rb +48 -0
- data/lib/chef/mixin/create_path.rb +56 -0
- data/lib/chef/mixin/deep_merge.rb +36 -0
- data/lib/chef/mixin/find_preferred_file.rb +92 -0
- data/lib/chef/mixin/from_file.rb +50 -0
- data/lib/chef/mixin/generate_url.rb +49 -0
- data/lib/chef/mixin/language.rb +79 -0
- data/lib/chef/mixin/params_validate.rb +197 -0
- data/lib/chef/mixin/recipe_definition_dsl_core.rb +77 -0
- data/lib/chef/mixin/template.rb +84 -0
- data/lib/chef/node.rb +406 -0
- data/lib/chef/node/attribute.rb +412 -0
- data/lib/chef/openid_registration.rb +181 -0
- data/lib/chef/platform.rb +254 -0
- data/lib/chef/provider.rb +101 -0
- data/lib/chef/provider/cron.rb +187 -0
- data/lib/chef/provider/deploy.rb +281 -0
- data/lib/chef/provider/deploy/revision.rb +70 -0
- data/lib/chef/provider/deploy/timestamped.rb +33 -0
- data/lib/chef/provider/directory.rb +72 -0
- data/lib/chef/provider/execute.rb +58 -0
- data/lib/chef/provider/file.rb +191 -0
- data/lib/chef/provider/git.rb +198 -0
- data/lib/chef/provider/group.rb +120 -0
- data/lib/chef/provider/group/gpasswd.rb +50 -0
- data/lib/chef/provider/group/groupadd.rb +78 -0
- data/lib/chef/provider/group/pw.rb +88 -0
- data/lib/chef/provider/group/usermod.rb +57 -0
- data/lib/chef/provider/http_request.rb +102 -0
- data/lib/chef/provider/ifconfig.rb +131 -0
- data/lib/chef/provider/link.rb +157 -0
- data/lib/chef/provider/mount.rb +117 -0
- data/lib/chef/provider/mount/mount.rb +208 -0
- data/lib/chef/provider/package.rb +160 -0
- data/lib/chef/provider/package/apt.rb +110 -0
- data/lib/chef/provider/package/dpkg.rb +109 -0
- data/lib/chef/provider/package/freebsd.rb +153 -0
- data/lib/chef/provider/package/macports.rb +105 -0
- data/lib/chef/provider/package/portage.rb +124 -0
- data/lib/chef/provider/package/rpm.rb +99 -0
- data/lib/chef/provider/package/rubygems.rb +136 -0
- data/lib/chef/provider/package/yum-dump.py +106 -0
- data/lib/chef/provider/package/yum.rb +175 -0
- data/lib/chef/provider/remote_directory.rb +126 -0
- data/lib/chef/provider/remote_file.rb +141 -0
- data/lib/chef/provider/route.rb +118 -0
- data/lib/chef/provider/ruby_block.rb +15 -0
- data/lib/chef/provider/script.rb +42 -0
- data/lib/chef/provider/service.rb +135 -0
- data/lib/chef/provider/service/debian.rb +64 -0
- data/lib/chef/provider/service/freebsd.rb +157 -0
- data/lib/chef/provider/service/gentoo.rb +54 -0
- data/lib/chef/provider/service/init.rb +71 -0
- data/lib/chef/provider/service/redhat.rb +62 -0
- data/lib/chef/provider/service/simple.rb +115 -0
- data/lib/chef/provider/subversion.rb +148 -0
- data/lib/chef/provider/template.rb +143 -0
- data/lib/chef/provider/user.rb +170 -0
- data/lib/chef/provider/user/pw.rb +113 -0
- data/lib/chef/provider/user/useradd.rb +107 -0
- data/lib/chef/queue.rb +145 -0
- data/lib/chef/recipe.rb +144 -0
- data/lib/chef/resource.rb +380 -0
- data/lib/chef/resource/apt_package.rb +34 -0
- data/lib/chef/resource/bash.rb +33 -0
- data/lib/chef/resource/cron.rb +179 -0
- data/lib/chef/resource/csh.rb +33 -0
- data/lib/chef/resource/deploy.rb +350 -0
- data/lib/chef/resource/deploy_revision.rb +35 -0
- data/lib/chef/resource/directory.rb +76 -0
- data/lib/chef/resource/dpkg_package.rb +34 -0
- data/lib/chef/resource/execute.rb +127 -0
- data/lib/chef/resource/file.rb +84 -0
- data/lib/chef/resource/gem_package.rb +41 -0
- data/lib/chef/resource/git.rb +36 -0
- data/lib/chef/resource/group.rb +70 -0
- data/lib/chef/resource/http_request.rb +52 -0
- data/lib/chef/resource/ifconfig.rb +134 -0
- data/lib/chef/resource/link.rb +78 -0
- data/lib/chef/resource/macports_package.rb +29 -0
- data/lib/chef/resource/mount.rb +135 -0
- data/lib/chef/resource/package.rb +80 -0
- data/lib/chef/resource/perl.rb +33 -0
- data/lib/chef/resource/portage_package.rb +33 -0
- data/lib/chef/resource/python.rb +33 -0
- data/lib/chef/resource/remote_directory.rb +91 -0
- data/lib/chef/resource/remote_file.rb +60 -0
- data/lib/chef/resource/route.rb +135 -0
- data/lib/chef/resource/ruby.rb +33 -0
- data/lib/chef/resource/ruby_block.rb +20 -0
- data/lib/chef/resource/scm.rb +129 -0
- data/lib/chef/resource/script.rb +51 -0
- data/lib/chef/resource/service.rb +134 -0
- data/lib/chef/resource/subversion.rb +33 -0
- data/lib/chef/resource/template.rb +60 -0
- data/lib/chef/resource/timestamped_deploy.rb +31 -0
- data/lib/chef/resource/user.rb +98 -0
- data/lib/chef/resource_collection.rb +204 -0
- data/lib/chef/resource_definition.rb +67 -0
- data/lib/chef/rest.rb +238 -0
- data/lib/chef/role.rb +231 -0
- data/lib/chef/run_list.rb +156 -0
- data/lib/chef/runner.rb +130 -0
- data/lib/chef/search.rb +88 -0
- data/lib/chef/search/result.rb +64 -0
- data/lib/chef/search_index.rb +77 -0
- data/lib/chef/tasks/chef_repo.rake +347 -0
- data/lib/chef/util/file_edit.rb +125 -0
- data/lib/chef/util/fileedit.rb +121 -0
- metadata +293 -0
@@ -0,0 +1,175 @@
|
|
1
|
+
#! /bin/sh
|
2
|
+
### BEGIN INIT INFO
|
3
|
+
# Provides: chef-indexer
|
4
|
+
# Required-Start: $network
|
5
|
+
# Required-Stop: $network
|
6
|
+
# Default-Start: 2 3 4 5
|
7
|
+
# Default-Stop: 0 1 6
|
8
|
+
# Short-Description: Start a chef-indexer.
|
9
|
+
### END INIT INFO
|
10
|
+
#
|
11
|
+
# Copyright (c) 2009 Joshua Timberman, <joshua@opscode.com>
|
12
|
+
#
|
13
|
+
# chef-indexer Startup script for chef-indexer.
|
14
|
+
# chkconfig: - 98 02
|
15
|
+
# description: starts up chef-indexer in daemon mode.
|
16
|
+
|
17
|
+
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
18
|
+
DAEMON=/usr/bin/chef-indexer
|
19
|
+
NAME=chef-indexer
|
20
|
+
DESC=chef-indexer
|
21
|
+
LOGDIR=/var/log/chef
|
22
|
+
CONFIG=/etc/chef/indexer.rb
|
23
|
+
PIDFILE=/var/run/chef/indexer.pid
|
24
|
+
|
25
|
+
test -x $DAEMON || exit 0
|
26
|
+
|
27
|
+
. /lib/lsb/init-functions
|
28
|
+
|
29
|
+
if [ ! -d /var/run/chef ]; then
|
30
|
+
mkdir /var/run/chef
|
31
|
+
fi
|
32
|
+
|
33
|
+
DAEMON_OPTS="-d -c $CONFIG"
|
34
|
+
|
35
|
+
running_pid() {
|
36
|
+
pid=$1
|
37
|
+
name=$2
|
38
|
+
[ -z "$pid" ] && return 1
|
39
|
+
[ ! -d /proc/$pid ] && return 1
|
40
|
+
cmd=`cat /proc/$pid/cmdline | tr '\000' '\n' | awk 'NR==2'`
|
41
|
+
[ "$cmd" != "$name" ] && return 1
|
42
|
+
return 0
|
43
|
+
}
|
44
|
+
|
45
|
+
running() {
|
46
|
+
[ ! -f "$PIDFILE" ] && return 1
|
47
|
+
pid=`cat $PIDFILE`
|
48
|
+
running_pid $pid $DAEMON || return 1
|
49
|
+
return 0
|
50
|
+
}
|
51
|
+
|
52
|
+
start_server() {
|
53
|
+
if [ -z "$DAEMONUSER" ] ; then
|
54
|
+
start_daemon -p $PIDFILE $DAEMON $DAEMON_OPTS
|
55
|
+
errcode=$?
|
56
|
+
else
|
57
|
+
start-stop-daemon --start --quiet --pidfile $PIDFILE \
|
58
|
+
--chuid $DAEMONUSER \
|
59
|
+
--exec $DAEMON -- $DAEMON_OPTS
|
60
|
+
errcode=$?
|
61
|
+
fi
|
62
|
+
return $errcode
|
63
|
+
}
|
64
|
+
|
65
|
+
stop_server() {
|
66
|
+
if [ -z "$DAEMONUSER" ] ; then
|
67
|
+
killproc -p $PIDFILE $DAEMON
|
68
|
+
errcode=$?
|
69
|
+
else
|
70
|
+
start-stop-daemon --stop --quiet --pidfile $PIDFILE \
|
71
|
+
--user $DAEMONUSER \
|
72
|
+
--exec $DAEMON
|
73
|
+
errcode=$?
|
74
|
+
fi
|
75
|
+
return $errcode
|
76
|
+
}
|
77
|
+
|
78
|
+
reload_server() {
|
79
|
+
[ ! -f "$PIDFILE" ] && return 1
|
80
|
+
pid=pidofproc $PIDFILE # This is the daemon's pid
|
81
|
+
/bin/kill -1 $pid
|
82
|
+
return $?
|
83
|
+
}
|
84
|
+
|
85
|
+
force_stop() {
|
86
|
+
[ ! -e "$PIDFILE" ] && return
|
87
|
+
if running ; then
|
88
|
+
/bin/kill -15 $pid
|
89
|
+
sleep "$DIETIME"s
|
90
|
+
if running ; then
|
91
|
+
/bin/kill -9 $pid
|
92
|
+
sleep "$DIETIME"s
|
93
|
+
if running ; then
|
94
|
+
echo "Cannot kill $NAME (pid=$pid)!"
|
95
|
+
exit 1
|
96
|
+
fi
|
97
|
+
fi
|
98
|
+
fi
|
99
|
+
rm -f $PIDFILE
|
100
|
+
}
|
101
|
+
|
102
|
+
case "$1" in
|
103
|
+
start)
|
104
|
+
log_daemon_msg "Starting $DESC " "$NAME"
|
105
|
+
if running ; then
|
106
|
+
log_progress_msg "apparently already running"
|
107
|
+
log_end_msg 0
|
108
|
+
exit 3
|
109
|
+
fi
|
110
|
+
if start_server ; then
|
111
|
+
[ -n "$STARTTIME" ] && sleep $STARTTIME # Wait some time
|
112
|
+
if running ; then
|
113
|
+
log_end_msg 0
|
114
|
+
else
|
115
|
+
log_end_msg 1
|
116
|
+
fi
|
117
|
+
else
|
118
|
+
log_end_msg 1
|
119
|
+
fi
|
120
|
+
;;
|
121
|
+
stop)
|
122
|
+
log_daemon_msg "Stopping $DESC" "$NAME"
|
123
|
+
if running ; then
|
124
|
+
errcode=0
|
125
|
+
stop_server || errcode=$?
|
126
|
+
log_end_msg $errcode
|
127
|
+
else
|
128
|
+
log_progress_msg "apparently not running"
|
129
|
+
log_end_msg 0
|
130
|
+
exit 0
|
131
|
+
fi
|
132
|
+
;;
|
133
|
+
force-stop)
|
134
|
+
$0 stop
|
135
|
+
if running; then
|
136
|
+
log_daemon_msg "Stopping (force) $DESC" "$NAME"
|
137
|
+
errcode=0
|
138
|
+
force_stop || errcode=$?
|
139
|
+
log_end_msg $errcode
|
140
|
+
fi
|
141
|
+
;;
|
142
|
+
restart|force-reload)
|
143
|
+
log_daemon_msg "Restarting $DESC" "$NAME"
|
144
|
+
errcode=0
|
145
|
+
stop_server || errcode=$?
|
146
|
+
[ -n "$DIETIME" ] && sleep $DIETIME
|
147
|
+
start_server || errcode=$?
|
148
|
+
[ -n "$STARTTIME" ] && sleep $STARTTIME
|
149
|
+
running || errcode=$?
|
150
|
+
log_end_msg $errcode
|
151
|
+
;;
|
152
|
+
status)
|
153
|
+
log_daemon_msg "Checking status of $DESC" "$NAME"
|
154
|
+
if running ; then
|
155
|
+
log_progress_msg "running"
|
156
|
+
log_end_msg 0
|
157
|
+
else
|
158
|
+
log_progress_msg "apparently not running"
|
159
|
+
log_end_msg 1
|
160
|
+
exit 1
|
161
|
+
fi
|
162
|
+
;;
|
163
|
+
reload)
|
164
|
+
log_warning_msg "Reloading $NAME daemon: not implemented, as the daemon"
|
165
|
+
log_warning_msg "cannot re-read the config file (use restart)."
|
166
|
+
;;
|
167
|
+
*)
|
168
|
+
N=/etc/init.d/$NAME
|
169
|
+
echo "Usage: $N {start|stop|force-stop|restart|force-reload|status}" >&2
|
170
|
+
exit 1
|
171
|
+
;;
|
172
|
+
esac
|
173
|
+
|
174
|
+
exit 0
|
175
|
+
|
@@ -0,0 +1,120 @@
|
|
1
|
+
#! /bin/sh
|
2
|
+
### BEGIN INIT INFO
|
3
|
+
# Provides: chef-server
|
4
|
+
# Required-Start: $network
|
5
|
+
# Required-Stop: $network
|
6
|
+
# Default-Start: 2 3 4 5
|
7
|
+
# Default-Stop: 0 1 6
|
8
|
+
# Short-Description: Start a chef-server.
|
9
|
+
### END INIT INFO
|
10
|
+
#
|
11
|
+
# Copyright (c) 2009 Joshua Timberman, <joshua@opscode.com>
|
12
|
+
#
|
13
|
+
# chef-server Startup script for chef-server.
|
14
|
+
# chkconfig: - 98 02
|
15
|
+
# description: starts up chef-server webui.
|
16
|
+
|
17
|
+
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
18
|
+
DAEMON=/usr/bin/chef-server
|
19
|
+
PIDFILE=/var/run/chef/server.%s.pid
|
20
|
+
MAINPID=/var/run/chef/server.main.pid
|
21
|
+
LOGFILE=/var/log/chef/merb.%s.log
|
22
|
+
MASTER=master
|
23
|
+
NAME=chef-server
|
24
|
+
DESC=chef-server
|
25
|
+
DAEMON_OPTS="-d -c2 -P $PIDFILE -L $LOGFILE"
|
26
|
+
|
27
|
+
test -x $DAEMON || exit 0
|
28
|
+
|
29
|
+
. /lib/lsb/init-functions
|
30
|
+
|
31
|
+
if [ ! -d /var/run/chef ]; then
|
32
|
+
mkdir /var/run/chef
|
33
|
+
fi
|
34
|
+
|
35
|
+
running() {
|
36
|
+
[ ! -f "$MAINPID" ] && return 1
|
37
|
+
pid=`cat $MAINPID`
|
38
|
+
name=$MASTER
|
39
|
+
[ -z "$pid" ] && return 1
|
40
|
+
[ ! -d /proc/$pid ] && return 1
|
41
|
+
cmd=`cat /proc/$pid/cmdline | tr '\000' '\n' | head -1 | awk -F:\ '{print $3}'`
|
42
|
+
[ "$cmd" != "$name" ] && return 1
|
43
|
+
return 0
|
44
|
+
}
|
45
|
+
|
46
|
+
start_server() {
|
47
|
+
$DAEMON $DAEMON_OPTS
|
48
|
+
errcode=$?
|
49
|
+
return $errcode
|
50
|
+
}
|
51
|
+
|
52
|
+
stop_server() {
|
53
|
+
$DAEMON -K all -P $PIDFILE
|
54
|
+
errcode=$?
|
55
|
+
return $errcode
|
56
|
+
}
|
57
|
+
|
58
|
+
reload_server() {
|
59
|
+
stop_server
|
60
|
+
start_server
|
61
|
+
}
|
62
|
+
|
63
|
+
case "$1" in
|
64
|
+
start)
|
65
|
+
log_daemon_msg "Starting $DESC "
|
66
|
+
if running ; then
|
67
|
+
log_progress_msg "apparently already running"
|
68
|
+
log_end_msg 0
|
69
|
+
exit 0
|
70
|
+
fi
|
71
|
+
if start_server ; then
|
72
|
+
sleep 1
|
73
|
+
if running ; then
|
74
|
+
log_end_msg 0
|
75
|
+
else
|
76
|
+
log_end_msg 1
|
77
|
+
fi
|
78
|
+
else
|
79
|
+
log_end_msg 1
|
80
|
+
fi
|
81
|
+
;;
|
82
|
+
stop)
|
83
|
+
log_daemon_msg "Stopping $DESC"
|
84
|
+
if running ; then
|
85
|
+
errcode=0
|
86
|
+
stop_server || errcode=$?
|
87
|
+
log_end_msg $errcode
|
88
|
+
else
|
89
|
+
log_progress_msg "apparently not running"
|
90
|
+
log_end_msg 0
|
91
|
+
exit 0
|
92
|
+
fi
|
93
|
+
;;
|
94
|
+
restart|force-reload)
|
95
|
+
log_daemon_msg "Restarting $DESC"
|
96
|
+
errcode=0
|
97
|
+
reload_server
|
98
|
+
running && errcode=$?
|
99
|
+
log_end_msg $errcode
|
100
|
+
;;
|
101
|
+
status)
|
102
|
+
log_daemon_msg "Checking status of $DESC"
|
103
|
+
if running ; then
|
104
|
+
log_progress_msg "running"
|
105
|
+
log_end_msg 0
|
106
|
+
else
|
107
|
+
log_progress_msg "apparently not running"
|
108
|
+
log_end_msg 1
|
109
|
+
exit 3
|
110
|
+
fi
|
111
|
+
;;
|
112
|
+
*)
|
113
|
+
N=/etc/init.d/$NAME
|
114
|
+
echo "Usage: $N {start|stop|restart|status}" >&2
|
115
|
+
exit 1
|
116
|
+
;;
|
117
|
+
esac
|
118
|
+
|
119
|
+
exit 0
|
120
|
+
|
@@ -0,0 +1,42 @@
|
|
1
|
+
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36.
|
2
|
+
.TH CHEF-INDEXER: "1" "August 2009" "chef-indexer 0.7.8" "User Commands"
|
3
|
+
.SH NAME
|
4
|
+
chef-indexer: \- Runs the search index process.
|
5
|
+
.SH SYNOPSIS
|
6
|
+
.B chef-indexer
|
7
|
+
\fI(options)\fR
|
8
|
+
.SH DESCRIPTION
|
9
|
+
.TP
|
10
|
+
chef-indexer requires that the stompserver be started but at this time the stompserver package does not install a startup script, let alone start the daemon. I am working with the package maintainer for stompserver to include a startup script.
|
11
|
+
\fB\-c\fR, \fB\-\-config\fR CONFIG
|
12
|
+
The configuration file to use
|
13
|
+
.TP
|
14
|
+
\fB\-d\fR, \fB\-\-daemonize\fR
|
15
|
+
Daemonize the process
|
16
|
+
.TP
|
17
|
+
\fB\-g\fR, \fB\-\-group\fR GROUP
|
18
|
+
Group to change gid to before daemonizing
|
19
|
+
.TP
|
20
|
+
\fB\-l\fR, \fB\-\-log_level\fR LEVEL
|
21
|
+
Set the log level (debug, info, warn, error, fatal)
|
22
|
+
.TP
|
23
|
+
\fB\-L\fR, \fB\-\-logfile\fR LOGLOCATION
|
24
|
+
Set the log file location, defaults to STDOUT \- recommended for daemonizing
|
25
|
+
.TP
|
26
|
+
\fB\-u\fR, \fB\-\-user\fR USER
|
27
|
+
User to change uid to before daemonizing
|
28
|
+
.TP
|
29
|
+
\fB\-v\fR, \fB\-\-version\fR
|
30
|
+
Show chef version
|
31
|
+
.TP
|
32
|
+
\fB\-h\fR, \fB\-\-help\fR
|
33
|
+
Show this message
|
34
|
+
.SH "SEE ALSO"
|
35
|
+
Full documentation for Chef and chef-indexer is located on the Chef wiki, http://wiki.opscode.com/display/chef/Home.
|
36
|
+
.SH AUTHOR
|
37
|
+
Chef was written by Adam Jacob <adam@ospcode.com> of Opscode (http://www.opscode.com), with contributions from the community.
|
38
|
+
This manual page was written by Joshua Timberman <joshua@opscode.com> with help2man. Permission is granted
|
39
|
+
to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.
|
40
|
+
|
41
|
+
On Debian systems, the complete text of the Apache 2.0 License can be found in
|
42
|
+
/usr/share/common-licenses/Apache-2.0.
|
@@ -0,0 +1,108 @@
|
|
1
|
+
.\" DO NOT MODIFY THIS FILE! It was generated by help2man.
|
2
|
+
.TH CHEF-SERVER "1" "August 2009" "chef-server" "User Commands"
|
3
|
+
.SH NAME
|
4
|
+
chef-server \- Start the Chef Server merb application slice.
|
5
|
+
.SH SYNOPSIS
|
6
|
+
.B chef-server
|
7
|
+
[\fIuGdcIpPhmailLerkKX\fR] [\fIargument\fR]
|
8
|
+
.SH DESCRIPTION
|
9
|
+
The Chef Server is a Merb application slice. Both chef-server and chef-server-slice packages should be installed. This man page was generated for merb and generated for chef-server.
|
10
|
+
The default listen port is 4000. At a minimum, chef-server should be started with \-c2 so one process starts for the webui (4000) and one process starts for openid (4001).
|
11
|
+
.TP
|
12
|
+
\fB\-u\fR, \fB\-\-user\fR USER
|
13
|
+
This flag is for having chef-server run as a user other than the one currently logged in. Note: if you set this you must also provide a \fB\-\-group\fR option for it to take effect.
|
14
|
+
.TP
|
15
|
+
\fB\-G\fR, \fB\-\-group\fR GROUP
|
16
|
+
This flag is for having chef-server run as a group other than the one currently logged in. Note: if you set this you must also provide a \fB\-\-user\fR option for it to take effect.
|
17
|
+
.TP
|
18
|
+
\fB\-d\fR, \fB\-\-daemonize\fR
|
19
|
+
This will run a single chef-server in the background.
|
20
|
+
.TP
|
21
|
+
\fB\-N\fR, \fB\-\-no\-daemonize\fR
|
22
|
+
This will allow you to run a cluster in console mode
|
23
|
+
.TP
|
24
|
+
\fB\-c\fR, \fB\-\-cluster\-nodes\fR NUM_MERBS
|
25
|
+
Number of merb daemons to run for chef-server. At least 2 are required to run, the second is for openid (runs on port 4001).
|
26
|
+
.TP
|
27
|
+
\fB\-I\fR, \fB\-\-init\-file\fR FILE
|
28
|
+
File to use for initialization on load, defaults to config/init.rb
|
29
|
+
.TP
|
30
|
+
\fB\-p\fR, \fB\-\-port\fR PORTNUM
|
31
|
+
Port to run chef-server on, defaults to 4000. Additional nodes (\-c) listen on incrementing port numbers.
|
32
|
+
.TP
|
33
|
+
\fB\-o\fR, \fB\-\-socket\-file\fR FILE
|
34
|
+
Socket file to run chef-server on, defaults to [Merb.root]/log/merb.sock. This is for web servers, like thin, that use sockets.Specify this *only* if you *must*.
|
35
|
+
.TP
|
36
|
+
\fB\-s\fR, \fB\-\-socket\fR SOCKNUM
|
37
|
+
Socket number to run chef-server on, defaults to 0.
|
38
|
+
.TP
|
39
|
+
\fB\-n\fR, \fB\-\-name\fR NAME
|
40
|
+
Set the name of the application. This is used in the process title and log file names.
|
41
|
+
.TP
|
42
|
+
\fB\-P\fR, \fB\-\-pid\fR PIDFILE
|
43
|
+
PID file, defaults to [Merb.root]/log/merb.main.pid for the master process and[Merb.root]/log/merb.[port number].pid for worker processes. For clusters, use %s to specify where in the file chef-server should place the port number. For instance: \fB\-P\fR myapp.%s.pid
|
44
|
+
.TP
|
45
|
+
\fB\-h\fR, \fB\-\-host\fR HOSTNAME
|
46
|
+
Host to bind to (default is 0.0.0.0).
|
47
|
+
.HP
|
48
|
+
\fB\-m\fR, \fB\-\-merb\-root\fR /path/to/approot The path to the Merb.root for the app you want to run (default is current working directory).
|
49
|
+
.TP
|
50
|
+
\fB\-a\fR, \fB\-\-adapter\fR ADAPTER
|
51
|
+
The rack adapter to use to run chef-server (default is mongrel)[mongrel, emongrel, thin, ebb, fastcgi, webrick]
|
52
|
+
.TP
|
53
|
+
\fB\-R\fR, \fB\-\-rackup\fR FILE
|
54
|
+
Load an alternate Rack config file (default is config/rack.rb)
|
55
|
+
.TP
|
56
|
+
\fB\-i\fR, \fB\-\-irb\-console\fR
|
57
|
+
This flag will start chef-server in irb console mode. All your models and other classes will be available for you in an irb session.
|
58
|
+
.TP
|
59
|
+
\fB\-S\fR, \fB\-\-sandbox\fR
|
60
|
+
This flag will enable a sandboxed irb console. If your ORM supports transactions, all edits will be rolled back on exit.
|
61
|
+
.TP
|
62
|
+
\fB\-l\fR, \fB\-\-log\-level\fR LEVEL
|
63
|
+
Log levels can be set to any of these options: debug < info < warn < error < fatal (default is info)
|
64
|
+
.TP
|
65
|
+
\fB\-L\fR, \fB\-\-log\fR LOGFILE
|
66
|
+
A string representing the logfile to use. Defaults to [Merb.root]/log/merb.[main].log for the master process and [Merb.root]/log/merb[port number].logfor worker processes
|
67
|
+
.TP
|
68
|
+
\fB\-e\fR, \fB\-\-environment\fR STRING
|
69
|
+
Environment to run Merb under [development, production, testing] (default is development)
|
70
|
+
.HP
|
71
|
+
\fB\-r\fR ['RUBY CODE'| FULL_SCRIPT_PATH]
|
72
|
+
.TP
|
73
|
+
\fB\-\-script\-runner\fR
|
74
|
+
Command\-line option to run scripts and/or code in the chef-server app.
|
75
|
+
.TP
|
76
|
+
\fB\-K\fR, \fB\-\-graceful\fR PORT or all
|
77
|
+
Gracefully kill chef-server proceses by port number. Use chef-server \fB\-K\fR all to gracefully kill all merbs.
|
78
|
+
.TP
|
79
|
+
\fB\-k\fR, \fB\-\-kill\fR PORT
|
80
|
+
Force kill one merb worker by port number. This will cause the worker tobe respawned.
|
81
|
+
.TP
|
82
|
+
\fB\-\-fast\-deploy\fR
|
83
|
+
Reload the code, but not yourinit.rb or gems
|
84
|
+
.TP
|
85
|
+
\fB\-X\fR, \fB\-\-mutex\fR on/off
|
86
|
+
This flag is for turning the mutex lock on and off.
|
87
|
+
.TP
|
88
|
+
\fB\-D\fR, \fB\-\-debugger\fR
|
89
|
+
Run chef-server using rDebug.
|
90
|
+
.TP
|
91
|
+
\fB\-V\fR, \fB\-\-verbose\fR
|
92
|
+
Print extra information
|
93
|
+
.TP
|
94
|
+
\fB\-C\fR, \fB\-\-console\-trap\fR
|
95
|
+
Enter an irb console on ^C
|
96
|
+
.TP
|
97
|
+
\-?, \fB\-H\fR, \fB\-\-help\fR
|
98
|
+
Show this help message
|
99
|
+
.SH "SEE ALSO"
|
100
|
+
Full documentation for Chef and chef-server is located on the Chef wiki, http://wiki.opscode.com/display/chef/Home.
|
101
|
+
.SH AUTHOR
|
102
|
+
Chef was written by Adam Jacob <adam@ospcode.com> of Opscode (http://www.opscode.com), with contributions from the community.
|
103
|
+
This manual page was written by Joshua Timberman <joshua@opscode.com> with help2man
|
104
|
+
for the Debian project (but may be used by others).. Permission is granted
|
105
|
+
to copy, distribute and / or modify this document under the terms of the Apache 2.0 License.
|
106
|
+
|
107
|
+
On Debian systems, the complete text of the Apache 2.0 License can be found in
|
108
|
+
/usr/share/common-licenses/Apache-2.0.
|