blob: 9bb31218a09c6e6f3ce91a6efc2a3dace826fbff [file] [log] [blame]
John H. Tran93361642012-07-26 11:22:05 -07001# lib/ceilometer
Dean Troyer6d04fd72012-12-21 11:03:37 -06002# Install and start **Ceilometer** service
3
Eoghan Glynn8d137032013-07-30 14:14:55 +00004# To enable a minimal set of Ceilometer services, add the following to localrc:
Adam Spierscb961592013-10-05 12:11:07 +01005#
Gordon Chung1c402282013-11-26 13:30:11 -05006# enable_service ceilometer-acompute ceilometer-acentral ceilometer-anotification ceilometer-collector ceilometer-api
Eoghan Glynn8d137032013-07-30 14:14:55 +00007#
8# To ensure Ceilometer alarming services are enabled also, further add to the localrc:
Adam Spierscb961592013-10-05 12:11:07 +01009#
Eoghan Glynn19eed742013-09-20 21:11:25 +000010# enable_service ceilometer-alarm-notifier ceilometer-alarm-evaluator
Surya Prabhakar31d31852012-09-17 20:25:41 +053011
John H. Tran93361642012-07-26 11:22:05 -070012# Dependencies:
Adam Spiers6a5aa7c2013-10-24 11:27:02 +010013#
John H. Tran93361642012-07-26 11:22:05 -070014# - functions
Doug Hellmann4a2b1c62012-11-01 16:23:52 -040015# - OS_AUTH_URL for auth in api
Eoghan Glynnad80ead2012-09-27 09:36:33 +010016# - DEST set to the destination directory
Doug Hellmann4a2b1c62012-11-01 16:23:52 -040017# - SERVICE_PASSWORD, SERVICE_TENANT_NAME for auth in api
Attila Fazekas91b8d132013-01-06 22:40:09 +010018# - STACK_USER service user
John H. Tran93361642012-07-26 11:22:05 -070019
20# stack.sh
21# ---------
Adam Spiers6a5aa7c2013-10-24 11:27:02 +010022# - install_ceilometer
23# - configure_ceilometer
24# - init_ceilometer
25# - start_ceilometer
26# - stop_ceilometer
27# - cleanup_ceilometer
John H. Tran93361642012-07-26 11:22:05 -070028
Dean Troyer7903b792012-09-13 17:16:12 -050029# Save trace setting
30XTRACE=$(set +o | grep xtrace)
31set +o xtrace
John H. Tran93361642012-07-26 11:22:05 -070032
33
34# Defaults
35# --------
36
Dean Troyer6d04fd72012-12-21 11:03:37 -060037# Set up default directories
John H. Tran93361642012-07-26 11:22:05 -070038CEILOMETER_DIR=$DEST/ceilometer
Yunhong, Jiange583d9b2013-01-09 09:33:07 +080039CEILOMETERCLIENT_DIR=$DEST/python-ceilometerclient
Dean Troyer6d04fd72012-12-21 11:03:37 -060040CEILOMETER_CONF_DIR=/etc/ceilometer
41CEILOMETER_CONF=$CEILOMETER_CONF_DIR/ceilometer.conf
42CEILOMETER_API_LOG_DIR=/var/log/ceilometer-api
Lianhao Lu8c548492013-01-09 10:41:54 +080043CEILOMETER_AUTH_CACHE_DIR=${CEILOMETER_AUTH_CACHE_DIR:-/var/cache/ceilometer}
Chris Dentae6fb182014-09-16 15:17:13 +010044CEILOMETER_WSGI_DIR=${CEILOMETER_WSGI_DIR:-/var/www/ceilometer}
Dean Troyer6d04fd72012-12-21 11:03:37 -060045
Monty Taylor9fbeedd2012-08-17 12:52:27 -040046# Support potential entry-points console scripts
Guangyu Suo9778b3c2013-07-17 15:22:21 +080047CEILOMETER_BIN_DIR=$(get_python_exec_prefix)
John H. Tran93361642012-07-26 11:22:05 -070048
Guangyu Suo9778b3c2013-07-17 15:22:21 +080049# Set up database backend
Julien Danjou69f74572013-08-27 11:43:53 +020050CEILOMETER_BACKEND=${CEILOMETER_BACKEND:-mysql}
Dean Troyercc6b4432013-04-08 15:38:03 -050051
Dirk Muellerfa5ccff2014-01-09 13:27:35 +010052# Ceilometer connection info.
53CEILOMETER_SERVICE_PROTOCOL=http
54CEILOMETER_SERVICE_HOST=$SERVICE_HOST
55CEILOMETER_SERVICE_PORT=${CEILOMETER_SERVICE_PORT:-8777}
Chris Dentae6fb182014-09-16 15:17:13 +010056CEILOMETER_USE_MOD_WSGI=$(trueorfalse False $CEILOMETER_USE_MOD_WSGI)
Dean Troyer4237f592014-01-29 16:22:11 -060057
Boris Pavlovic46e1aba2014-07-01 14:15:52 +040058# To enable OSprofiler change value of this variable to "notifications,profiler"
59CEILOMETER_NOTIFICATION_TOPICS=${CEILOMETER_NOTIFICATION_TOPICS:-notifications}
60
Dean Troyer4237f592014-01-29 16:22:11 -060061# Tell Tempest this project is present
62TEMPEST_SERVICES+=,ceilometer
63
Dirk Muellerfa5ccff2014-01-09 13:27:35 +010064
Dean Troyercc6b4432013-04-08 15:38:03 -050065# Functions
66# ---------
Dean Troyere4fa7212014-01-15 15:04:49 -060067
68# Test if any Ceilometer services are enabled
69# is_ceilometer_enabled
70function is_ceilometer_enabled {
71 [[ ,${ENABLED_SERVICES} =~ ,"ceilometer-" ]] && return 0
72 return 1
73}
74
Dirk Muellerfa5ccff2014-01-09 13:27:35 +010075# create_ceilometer_accounts() - Set up common required ceilometer accounts
76
Dean Troyer42a59c22014-03-03 14:31:29 -060077# Project User Roles
78# ------------------------------------------------------------------
79# SERVICE_TENANT_NAME ceilometer admin
80# SERVICE_TENANT_NAME ceilometer ResellerAdmin (if Swift is enabled)
81
Dirk Muellerfa5ccff2014-01-09 13:27:35 +010082create_ceilometer_accounts() {
83
Dean Troyer16ef9762014-08-19 19:31:34 -050084 local service_tenant=$(openstack project list | awk "/ $SERVICE_TENANT_NAME / { print \$2 }")
85 local admin_role=$(openstack role list | awk "/ admin / { print \$2 }")
Dirk Muellerfa5ccff2014-01-09 13:27:35 +010086
87 # Ceilometer
88 if [[ "$ENABLED_SERVICES" =~ "ceilometer-api" ]]; then
Dean Troyer16ef9762014-08-19 19:31:34 -050089 local ceilometer_user=$(get_or_create_user "ceilometer" \
90 "$SERVICE_PASSWORD" $service_tenant)
91 get_or_add_user_role $admin_role $ceilometer_user $service_tenant
Bartosz Górski0abde392014-02-28 14:15:19 +010092
Dirk Muellerfa5ccff2014-01-09 13:27:35 +010093 if [[ "$KEYSTONE_CATALOG_BACKEND" = 'sql' ]]; then
Dean Troyer16ef9762014-08-19 19:31:34 -050094 local ceilometer_service=$(get_or_create_service "ceilometer" \
Bartosz Górski0abde392014-02-28 14:15:19 +010095 "metering" "OpenStack Telemetry Service")
Dean Troyer16ef9762014-08-19 19:31:34 -050096 get_or_create_endpoint $ceilometer_service \
Bartosz Górski0abde392014-02-28 14:15:19 +010097 "$REGION_NAME" \
98 "$CEILOMETER_SERVICE_PROTOCOL://$CEILOMETER_SERVICE_HOST:$CEILOMETER_SERVICE_PORT/" \
99 "$CEILOMETER_SERVICE_PROTOCOL://$CEILOMETER_SERVICE_HOST:$CEILOMETER_SERVICE_PORT/" \
100 "$CEILOMETER_SERVICE_PROTOCOL://$CEILOMETER_SERVICE_HOST:$CEILOMETER_SERVICE_PORT/"
Dirk Muellerfa5ccff2014-01-09 13:27:35 +0100101 fi
Dean Troyer42a59c22014-03-03 14:31:29 -0600102 if is_service_enabled swift; then
103 # Ceilometer needs ResellerAdmin role to access swift account stats.
Bartosz Górski0abde392014-02-28 14:15:19 +0100104 get_or_add_user_role "ResellerAdmin" "ceilometer" $SERVICE_TENANT_NAME
Dean Troyer42a59c22014-03-03 14:31:29 -0600105 fi
Dirk Muellerfa5ccff2014-01-09 13:27:35 +0100106 fi
107}
108
Dean Troyercc6b4432013-04-08 15:38:03 -0500109
Chris Dentae6fb182014-09-16 15:17:13 +0100110# _cleanup_keystone_apache_wsgi() - Remove wsgi files, disable and remove apache vhost file
111function _cleanup_ceilometer_apache_wsgi {
112 sudo rm -f $CEILOMETER_WSGI_DIR/*
113 sudo rm -f $(apache_site_config_for ceilometer)
114}
115
John H. Tran93361642012-07-26 11:22:05 -0700116# cleanup_ceilometer() - Remove residual data files, anything left over from previous
117# runs that a clean run would need to clean up
Ian Wienandaee18c72014-02-21 15:35:08 +1100118function cleanup_ceilometer {
Ian Wienand936284b2014-03-11 09:35:55 +1100119 if [ "$CEILOMETER_BACKEND" != 'mysql' ] && [ "$CEILOMETER_BACKEND" != 'postgresql' ] ; then
120 mongo ceilometer --eval "db.dropDatabase();"
121 fi
Chris Dentae6fb182014-09-16 15:17:13 +0100122 if [ "$CEILOMETER_USE_MOD_WSGI" == "True" ]; then
123 _cleanup_ceilometer_apache_wsgi
124 fi
125}
126
127function _config_ceilometer_apache_wsgi {
128 sudo mkdir -p $CEILOMETER_WSGI_DIR
129
130 local ceilometer_apache_conf=$(apache_site_config_for ceilometer)
131 local apache_version=$(get_apache_version)
132
133 # copy proxy vhost and wsgi file
134 sudo cp $CEILOMETER_DIR/ceilometer/api/app.wsgi $CEILOMETER_WSGI_DIR/app
135
136 sudo cp $FILES/apache-ceilometer.template $ceilometer_apache_conf
137 sudo sed -e "
138 s|%PORT%|$CEILOMETER_SERVICE_PORT|g;
139 s|%APACHE_NAME%|$APACHE_NAME|g;
140 s|%WSGIAPP%|$CEILOMETER_WSGI_DIR/app|g;
141 s|%USER%|$STACK_USER|g
142 " -i $ceilometer_apache_conf
John H. Tran93361642012-07-26 11:22:05 -0700143}
144
145# configure_ceilometer() - Set config files, create data dirs, etc
Ian Wienandaee18c72014-02-21 15:35:08 +1100146function configure_ceilometer {
Doug Hellmannc5259b42012-09-22 10:52:31 -0400147 [ ! -d $CEILOMETER_CONF_DIR ] && sudo mkdir -m 755 -p $CEILOMETER_CONF_DIR
Stephan Renatuse578eff2013-11-19 13:31:04 +0100148 sudo chown $STACK_USER $CEILOMETER_CONF_DIR
Surya Prabhakar31d31852012-09-17 20:25:41 +0530149
Doug Hellmannc5259b42012-09-22 10:52:31 -0400150 [ ! -d $CEILOMETER_API_LOG_DIR ] && sudo mkdir -m 755 -p $CEILOMETER_API_LOG_DIR
Stephan Renatuse578eff2013-11-19 13:31:04 +0100151 sudo chown $STACK_USER $CEILOMETER_API_LOG_DIR
John H. Tran93361642012-07-26 11:22:05 -0700152
Eoghan Glynn8c11f562013-03-01 12:09:01 +0000153 iniset_rpc_backend ceilometer $CEILOMETER_CONF DEFAULT
Eoghan Glynnd36268a2013-02-22 21:59:52 +0000154
Boris Pavlovic46e1aba2014-07-01 14:15:52 +0400155 iniset $CEILOMETER_CONF DEFAULT notification_topics "$CEILOMETER_NOTIFICATION_TOPICS"
Julien Danjou4b3e4e52012-10-24 16:32:01 +0200156 iniset $CEILOMETER_CONF DEFAULT verbose True
Nadya Privalova423d7902014-03-06 15:14:59 +0400157 iniset $CEILOMETER_CONF DEFAULT debug "$ENABLE_DEBUG_LOG_LEVEL"
Doug Hellmann53a5f422012-10-02 17:29:23 -0400158
Doug Hellmann4a2b1c62012-11-01 16:23:52 -0400159 # Install the policy file for the API server
160 cp $CEILOMETER_DIR/etc/ceilometer/policy.json $CEILOMETER_CONF_DIR
161 iniset $CEILOMETER_CONF DEFAULT policy_file $CEILOMETER_CONF_DIR/policy.json
162
ZhiQiang Fan95053cf2014-05-16 16:27:41 +0800163 cp $CEILOMETER_DIR/etc/ceilometer/pipeline.yaml $CEILOMETER_CONF_DIR
164 cp $CEILOMETER_DIR/etc/ceilometer/api_paste.ini $CEILOMETER_CONF_DIR
165 cp $CEILOMETER_DIR/etc/ceilometer/event_definitions.yaml $CEILOMETER_CONF_DIR
166
Mehdi Abaakouk8ceb7942013-10-23 09:26:25 +0200167 if [ "$CEILOMETER_PIPELINE_INTERVAL" ]; then
168 sed -i "s/interval:.*/interval: ${CEILOMETER_PIPELINE_INTERVAL}/" $CEILOMETER_CONF_DIR/pipeline.yaml
169 fi
170
Eoghan Glynn14246ac2012-11-14 16:23:04 +0000171 # the compute and central agents need these credentials in order to
ZhiQiang Fan1af4afb2014-04-16 14:52:12 +0800172 # call out to other services' public APIs
173 # the alarm evaluator needs these options to call ceilometer APIs
174 iniset $CEILOMETER_CONF service_credentials os_username ceilometer
175 iniset $CEILOMETER_CONF service_credentials os_password $SERVICE_PASSWORD
176 iniset $CEILOMETER_CONF service_credentials os_tenant_name $SERVICE_TENANT_NAME
Eoghan Glynn14246ac2012-11-14 16:23:04 +0000177
Brant Knudson05952372014-09-19 17:22:22 -0500178 configure_auth_token_middleware $CEILOMETER_CONF ceilometer $CEILOMETER_AUTH_CACHE_DIR
Doug Hellmann4a2b1c62012-11-01 16:23:52 -0400179
Thomas Maddox246d9bb2013-10-24 18:57:40 +0000180 if [ "$CEILOMETER_BACKEND" = 'mysql' ] || [ "$CEILOMETER_BACKEND" = 'postgresql' ] ; then
Guangyu Suo9778b3c2013-07-17 15:22:21 +0800181 iniset $CEILOMETER_CONF database connection `database_connection_url ceilometer`
Dean Troyer05bd7b82014-09-16 17:25:33 -0500182 iniset $CEILOMETER_CONF DEFAULT collector_workers $API_WORKERS
Guangyu Suo9778b3c2013-07-17 15:22:21 +0800183 else
184 iniset $CEILOMETER_CONF database connection mongodb://localhost:27017/ceilometer
185 configure_mongodb
186 cleanup_ceilometer
187 fi
Piyush Masrani846609b2014-03-14 19:21:48 +0530188
189 if [[ "$VIRT_DRIVER" = 'vsphere' ]]; then
190 iniset $CEILOMETER_CONF DEFAULT hypervisor_inspector vsphere
191 iniset $CEILOMETER_CONF vmware host_ip "$VMWAREAPI_IP"
192 iniset $CEILOMETER_CONF vmware host_username "$VMWAREAPI_USER"
193 iniset $CEILOMETER_CONF vmware host_password "$VMWAREAPI_PASSWORD"
194 fi
Chris Dentae6fb182014-09-16 15:17:13 +0100195
196 if [ "$CEILOMETER_USE_MOD_WSGI" == "True" ]; then
197 iniset $CEILOMETER_CONF api pecan_debug "False"
198 _config_ceilometer_apache_wsgi
199 fi
John H. Tran93361642012-07-26 11:22:05 -0700200}
201
Ian Wienandaee18c72014-02-21 15:35:08 +1100202function configure_mongodb {
Ian Wienand936284b2014-03-11 09:35:55 +1100203 # server package is the same on all
204 local packages=mongodb-server
205
Dean Troyercc6b4432013-04-08 15:38:03 -0500206 if is_fedora; then
Ian Wienand936284b2014-03-11 09:35:55 +1100207 # mongodb client + python bindings
208 packages="${packages} mongodb pymongo"
209 else
210 packages="${packages} python-pymongo"
211 fi
212
213 install_package ${packages}
214
215 if is_fedora; then
Eoghan Glynn285c75e2013-03-04 13:13:03 -0500216 # ensure smallfiles selected to minimize freespace requirements
217 sudo sed -i '/--smallfiles/!s/OPTIONS=\"/OPTIONS=\"--smallfiles /' /etc/sysconfig/mongod
218
219 restart_service mongod
220 fi
Ian Wienand936284b2014-03-11 09:35:55 +1100221
222 # give mongodb time to start-up
223 sleep 5
Eoghan Glynn285c75e2013-03-04 13:13:03 -0500224}
225
Lianhao Lu8c548492013-01-09 10:41:54 +0800226# init_ceilometer() - Initialize etc.
Ian Wienandaee18c72014-02-21 15:35:08 +1100227function init_ceilometer {
Lianhao Lu8c548492013-01-09 10:41:54 +0800228 # Create cache dir
229 sudo mkdir -p $CEILOMETER_AUTH_CACHE_DIR
Attila Fazekas91b8d132013-01-06 22:40:09 +0100230 sudo chown $STACK_USER $CEILOMETER_AUTH_CACHE_DIR
Lianhao Lu8c548492013-01-09 10:41:54 +0800231 rm -f $CEILOMETER_AUTH_CACHE_DIR/*
Guangyu Suo9778b3c2013-07-17 15:22:21 +0800232
Sean Daguec921a952014-02-28 21:09:33 -0500233 if is_service_enabled mysql postgresql; then
234 if [ "$CEILOMETER_BACKEND" = 'mysql' ] || [ "$CEILOMETER_BACKEND" = 'postgresql' ] ; then
235 recreate_database ceilometer utf8
236 $CEILOMETER_BIN_DIR/ceilometer-dbsync
237 fi
Guangyu Suo9778b3c2013-07-17 15:22:21 +0800238 fi
Lianhao Lu8c548492013-01-09 10:41:54 +0800239}
240
John H. Tran93361642012-07-26 11:22:05 -0700241# install_ceilometer() - Collect source and prepare
Ian Wienandaee18c72014-02-21 15:35:08 +1100242function install_ceilometer {
John H. Tran93361642012-07-26 11:22:05 -0700243 git_clone $CEILOMETER_REPO $CEILOMETER_DIR $CEILOMETER_BRANCH
Joe Gordon13344bd2014-07-22 14:26:05 -0700244 setup_develop $CEILOMETER_DIR
245
John H. Tran93361642012-07-26 11:22:05 -0700246}
247
Yunhong, Jiange583d9b2013-01-09 09:33:07 +0800248# install_ceilometerclient() - Collect source and prepare
Ian Wienandaee18c72014-02-21 15:35:08 +1100249function install_ceilometerclient {
Yunhong, Jiange583d9b2013-01-09 09:33:07 +0800250 git_clone $CEILOMETERCLIENT_REPO $CEILOMETERCLIENT_DIR $CEILOMETERCLIENT_BRANCH
Joe Gordon13344bd2014-07-22 14:26:05 -0700251 setup_develop $CEILOMETERCLIENT_DIR
252 sudo install -D -m 0644 -o $STACK_USER {$CEILOMETERCLIENT_DIR/tools/,/etc/bash_completion.d/}ceilometer.bash_completion
Yunhong, Jiange583d9b2013-01-09 09:33:07 +0800253}
254
John H. Tran93361642012-07-26 11:22:05 -0700255# start_ceilometer() - Start running processes, including screen
Ian Wienandaee18c72014-02-21 15:35:08 +1100256function start_ceilometer {
Chris Dent2f27a0e2014-09-09 13:46:02 +0100257 run_process ceilometer-acentral "ceilometer-agent-central --config-file $CEILOMETER_CONF"
258 run_process ceilometer-anotification "ceilometer-agent-notification --config-file $CEILOMETER_CONF"
259 run_process ceilometer-collector "ceilometer-collector --config-file $CEILOMETER_CONF"
Chris Dentae6fb182014-09-16 15:17:13 +0100260
261 if [[ "$CEILOMETER_USE_MOD_WSGI" == "False" ]]; then
262 run_process ceilometer-api "ceilometer-api -d -v --log-dir=$CEILOMETER_API_LOG_DIR --config-file $CEILOMETER_CONF"
263 else
264 enable_apache_site ceilometer
265 restart_apache_server
266 tail_log ceilometer /var/log/$APACHE_NAME/ceilometer.log
267 tail_log ceilometer-api /var/log/$APACHE_NAME/ceilometer_access.log
268 fi
269
Chris Dent4922bfa2014-08-12 14:27:58 +0100270
271 # Start the compute agent last to allow time for the collector to
272 # fully wake up and connect to the message bus. See bug #1355809
Mehdi Abaakoukfc1b7782013-10-23 06:46:43 +0000273 if [[ "$VIRT_DRIVER" = 'libvirt' ]]; then
gordon chungbdeea692014-09-17 14:54:21 -0400274 run_process ceilometer-acompute "ceilometer-agent-compute --config-file $CEILOMETER_CONF" $LIBVIRT_GROUP
Mehdi Abaakoukfc1b7782013-10-23 06:46:43 +0000275 fi
Piyush Masrani846609b2014-03-14 19:21:48 +0530276 if [[ "$VIRT_DRIVER" = 'vsphere' ]]; then
Chris Dent2f27a0e2014-09-09 13:46:02 +0100277 run_process ceilometer-acompute "ceilometer-agent-compute --config-file $CEILOMETER_CONF"
Piyush Masrani846609b2014-03-14 19:21:48 +0530278 fi
Mehdi Abaakouk1ed64cb2013-10-23 10:37:05 +0200279
Sean Dague7083b822014-02-28 20:16:20 -0500280 # only die on API if it was actually intended to be turned on
Sean Dagueb9a70352014-03-04 15:02:04 -0500281 if is_service_enabled ceilometer-api; then
Sean Dague7083b822014-02-28 20:16:20 -0500282 echo "Waiting for ceilometer-api to start..."
283 if ! timeout $SERVICE_TIMEOUT sh -c "while ! curl --noproxy '*' -s http://localhost:8777/v2/ >/dev/null; do sleep 1; done"; then
284 die $LINENO "ceilometer-api did not start"
285 fi
Mehdi Abaakouk1ed64cb2013-10-23 10:37:05 +0200286 fi
287
Chris Dent2f27a0e2014-09-09 13:46:02 +0100288 run_process ceilometer-alarm-notifier "ceilometer-alarm-notifier --config-file $CEILOMETER_CONF"
289 run_process ceilometer-alarm-evaluator "ceilometer-alarm-evaluator --config-file $CEILOMETER_CONF"
John H. Tran93361642012-07-26 11:22:05 -0700290}
Dean Troyer7903b792012-09-13 17:16:12 -0500291
Dean Troyer699a29f2012-09-10 14:10:27 -0500292# stop_ceilometer() - Stop running processes
Ian Wienandaee18c72014-02-21 15:35:08 +1100293function stop_ceilometer {
Chris Dentae6fb182014-09-16 15:17:13 +0100294 if [ "$CEILOMETER_USE_MOD_WSGI" == "True" ]; then
295 disable_apache_site ceilometer
296 restart_apache_server
297 fi
Dean Troyer699a29f2012-09-10 14:10:27 -0500298 # Kill the ceilometer screen windows
Gordon Chung1c402282013-11-26 13:30:11 -0500299 for serv in ceilometer-acompute ceilometer-acentral ceilometer-anotification ceilometer-collector ceilometer-api ceilometer-alarm-notifier ceilometer-alarm-evaluator; do
Chris Dent2f27a0e2014-09-09 13:46:02 +0100300 stop_process $serv
Dean Troyer699a29f2012-09-10 14:10:27 -0500301 done
302}
303
Dean Troyercc6b4432013-04-08 15:38:03 -0500304
Dean Troyer7903b792012-09-13 17:16:12 -0500305# Restore xtrace
306$XTRACE
Sean Dague584d90e2013-03-29 14:34:53 -0400307
Adam Spiers6a5aa7c2013-10-24 11:27:02 +0100308# Tell emacs to use shell-script-mode
309## Local variables:
310## mode: shell-script
311## End: