debian/0000755000000000000000000000000012014225250007157 5ustar debian/patches/0000755000000000000000000000000011773315157010627 5ustar debian/patches/chef_merb_root.patch0000644000000000000000000000046211773315157014627 0ustar --- a/lib/chef-server-webui.rb +++ b/lib/chef-server-webui.rb @@ -1,4 +1,4 @@ require 'chef-server-webui/version' CHEF_SERVER_WEBUI_VERSION = ::ChefServerWebui::VERSION -CHEF_SERVER_WEBUI_ROOT = File.expand_path(File.dirname(__FILE__) + '/../') +CHEF_SERVER_WEBUI_ROOT = "/usr/share/chef-server-webui" debian/patches/disable_merb_json.patch0000644000000000000000000000055711773315157015320 0ustar --- a/bin/chef-server-webui +++ b/bin/chef-server-webui @@ -26,6 +26,8 @@ require "rubygems" require "merb-core" +Merb::disable :json + # Load chef and chef-server-api from source rather than gem, if present $:.unshift(File.expand_path(File.dirname(__FILE__) + '/../../chef/lib')) $:.unshift(File.expand_path(File.dirname(__FILE__) + '/../../chef-solr/lib/')) debian/patches/series0000644000000000000000000000005511773315157012044 0ustar disable_merb_json.patch chef_merb_root.patch debian/chef-server-webui.templates0000644000000000000000000000133511773315157014444 0ustar Template: chef-server-webui/admin_password Type: password Description: New password for the 'admin' user in the Chef Server WebUI: This sets a temporary first-use password to log into the Chef Server WebUI as the 'admin' user for the first time. Once logged in, the password should be changed immediately. . Once the chef-server-webui process is running, login using the username 'admin' using the password set here. . If a password is not entered, the webui default password for 'admin' will be used, which is displayed on the webui home page. The password must be at least 6 characters or the webui will not start properly. . This will be used in /etc/chef/webui.rb as 'web_ui_admin_default_password'. . debian/chef-server-webui.postinst0000644000000000000000000000264611773315157014337 0ustar #!/bin/bash set -e . /usr/share/debconf/confmodule . /etc/default/chef-server-webui export PATH=$PATH:/sbin:/usr/sbin:/bin:/usr/bin TEMPLATE=/usr/share/chef-server-webui/webui.rb TMPDIR=`mktemp -d` # used for holding temp files TMPFILE=`mktemp -p ${TMPDIR}` # used for holding rendered template CONFIGFILE=/etc/chef/webui.rb case "$1" in configure) db_get chef-server-webui/admin_password && chef_webui_pass="$RET" tsed=`mktemp -p ${TMPDIR}` cat << EOF > $tsed s/^web_ui_admin_default_password \".*\"/web_ui_admin_default_password \"$chef_webui_pass\"/g EOF if [ -n "$chef_webui_pass" ]; then sed -f $tsed $TEMPLATE > $TMPFILE fi ucf --debconf-ok $TMPFILE $CONFIGFILE test -f $CONFIGFILE && chmod 0640 $CONFIGFILE rm -rf $TMPDIR if ! getent passwd chef > /dev/null; then adduser --system --quiet \ --home /var/lib/chef --no-create-home \ --shell /bin/false --group --gecos "Chef Daemon" chef fi chown -R $USER:$GROUP /etc/chef chown -R $USER:$GROUP /var/lib/chef chown -R $USER:$GROUP /var/log/chef chown -R $USER:$GROUP /var/cache/chef chown -R $USER:$GROUP /var/run/chef ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac db_stop # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/control0000644000000000000000000000300012014215770010561 0ustar Source: chef-server-webui Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Bryan McLellan , Tollef Fog Heen DM-Upload-Allowed: yes Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.2.2) Standards-Version: 3.9.2 #Vcs-Git: git://git.debian.org/pkg-ruby-extras/chef-server-webui.git #Vcs-Browser: http://git.debian.org/?p=pkg-ruby-extras/chef-server-webui.git;a=summary Homepage: http://wiki.opscode.com/display/chef XS-Ruby-Versions: all Package: chef-server-webui Architecture: all XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, merb-core, ruby-merb-param-protection, ruby-merb-assets, ruby-merb-haml, ruby-merb-helpers, thin, ruby-openid, ruby-json (>= 1.4.6), chef (>= 10.12), ruby-coderay, chef-server-api (>= 10.12), adduser, ucf Description: Chef configuration management system - Web UI Chef is a systems integration framework and configuration management system written in Ruby. Chef provides a Ruby library and API that can be used to bring the benefits of configuration management to an entire infrastructure. . The Chef Server is a Merb application that provides centralized storage and distribution for recipes stored in "cookbooks," management and authentication of client nodes and node data, and search indexes for that data. . This package provides a web UI administrators can use for interacting with the Chef server debian/compat0000644000000000000000000000000211773315157010376 0ustar 7 debian/chef-server-webui.default0000644000000000000000000000027711773315157014076 0ustar LOGFILE=/var/log/chef/server-webui.log CONFIG=/etc/chef/webui.rb ADAPTER=thin PORT=4040 USER=chef GROUP=chef # Sleep to give daemon enough time to fully start or stop. STARTTIME=10 DIETIME=5 debian/chef-server-webui.logrotate0000644000000000000000000000031212014223460014420 0ustar /var/log/chef/server-webui.log /var/log/chef/merb-webui*log { rotate 12 weekly compress postrotate /usr/sbin/invoke-rc.d chef-server-webui force-reload > /dev/null endscript missingok } debian/chef-server-webui.postrm0000644000000000000000000000133611773315157013773 0ustar #!/bin/sh # postrm script for chef-server-webui # # see: dh_installdeb(1) set -e TEMPLATE=/usr/share/chef/webui.rb CONFIGFILE=/etc/chef/webui.rb case "$1" in remove) ;; purge) rm -rf /var/log/chef/server-webui* rm -rf /var/log/chef/merb-webui* test -x /usr/bin/ucf && ucf --purge $TEMPLATEFILE $CONFIGFILE rm -rf $CONFIGFILE $CONFIGFILE.ucf-old $CONFIGFILE.ucf-new $CONFIGFILE.ucf-dist ;; upgrade|failed-upgrade|abort-install|abort-upgrade|disappear|remove) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0 debian/chef-server-webui.init0000755000000000000000000000523711773315157013421 0ustar #! /bin/sh ### BEGIN INIT INFO # Provides: chef-server-webui # Required-Start: $remote_fs $network chef-server # Required-Stop: $remote_fs $network chef-server # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Start a chef-server-webui ### END INIT INFO # # Copyright (c) 2009-2010 Opscode, Inc # # chef-server-webui Startup script for chef-server-webui. # chkconfig: - 95 02 # description: starts up chef-server webui. PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/sbin/chef-server-webui PIDFILE=/var/run/chef/server-webui.%s.pid MAINPID=/var/run/chef/server-webui.main.pid NAME=chef-server-webui DESC=chef-server-webui test -x $DAEMON || exit 0 . /lib/lsb/init-functions [ -r /etc/default/$NAME ] && . /etc/default/$NAME if [ ! -d /var/run/chef ]; then mkdir /var/run/chef chown $USER:$GROUP /var/run/chef fi DAEMON_OPTS="-p $PORT -e production -d -a $ADAPTER -P $PIDFILE -L $LOGFILE -C $CONFIG -u $USER -G $GROUP" running() { [ ! -f "$MAINPID" ] && return 1 pid=`cat $MAINPID` name=$WORKER [ -z "$pid" ] && return 1 [ ! -d /proc/$pid ] && return 1 (ps -fp $pid | egrep -q "merb.*(merb : master|worker.*$PORT)") || return 1 return 0 } start_server() { $DAEMON $DAEMON_OPTS errcode=$? return $errcode } stop_server() { $DAEMON -K all -P $PIDFILE errcode=$? return $errcode } reload_server() { stop_server [ -n "$DIETIME" ] && sleep $DIETIME start_server [ -n "$STARTTIME" ] && sleep $STARTTIME } case "$1" in start) log_daemon_msg "Starting $DESC " if running ; then log_progress_msg "apparently already running" log_end_msg 0 exit 0 fi if start_server ; then [ -n "$STARTTIME" ] && sleep $STARTTIME # Wait some time if running ; then log_end_msg 0 else log_end_msg 1 fi else log_end_msg 1 fi ;; stop) log_daemon_msg "Stopping $DESC" if running ; then errcode=0 stop_server || errcode=$? log_end_msg $errcode else log_progress_msg "apparently not running" log_end_msg 0 exit 0 fi ;; restart|force-reload) log_daemon_msg "Restarting $DESC" errcode=0 reload_server running && errcode=$? log_end_msg $errcode ;; status) log_daemon_msg "Checking status of $DESC" if running ; then log_progress_msg "running" log_end_msg 0 else log_progress_msg "apparently not running" log_end_msg 1 exit 3 fi ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|restart|status}" >&2 exit 1 ;; esac exit 0 debian/chef-server-webui.80000644000000000000000000001306111773315157012614 0ustar .\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . .TH "CHEF\-SERVER\-WEBUI" "8" "April 2011" "Chef 0.10.0" "Chef Manual" . .SH "NAME" \fBchef\-server\-webui\fR \- Start the Chef Server merb application slice providing Web User Interface (Management Console)\. . .SH "SYNOPSIS" \fBchef\-server\-webui\fR \fI(options)\fR . .TP \fB\-u\fR, \fB\-\-user USER\fR This flag is for having chef\-server\-webui run as a user other than the one currently logged in\. Note: if you set this you must also provide a \-\-group option for it to take effect\. . .TP \fB\-G\fR, \fB\-\-group GROUP\fR This flag is for having chef\-server\-webui run as a group other than the one currently logged in\. Note: if you set this you must also provide a \-\-user option for it to take effect\. . .TP \fB\-d\fR, \fB\-\-daemonize\fR This will run a single chef\-server\-webui in the background\. . .TP \fB\-N\fR, \fB\-\-no\-daemonize\fR This will allow you to run a cluster in console mode\. . .TP \fB\-c\fR, \fB\-\-cluster\-nodes NUM_MERBS\fR Number of merb daemons to run for chef\-server\-webui\. . .TP \fB\-I\fR, \fB\-\-init\-file FILE\fR File to use for initialization on load, defaults to config/init\.rb\. . .TP \fB\-p\fR, \fB\-\-port PORTNUM\fR Port to run chef\-server\-webui on, defaults to 4040\. Additional nodes (\-c) listen on incrementing port numbers\. . .TP \fB\-o\fR, \fB\-\-socket\-file FILE\fR Socket file to run chef\-server\-webui on, defaults to [Merb\.root]/log/merb\.sock\. This is for web servers, like thin, that use sockets\. Specify this \fIonly\fR if you \fImust\fR\. . .TP \fB\-s\fR, \fB\-\-socket SOCKNUM\fR Socket number to run chef\-server\-webui on, defaults to 0\. . .TP \fB\-n\fR, \fB\-\-name NAME\fR Set the name of the application\. This is used in the process title and log file names\. . .TP \fB\-P\fR, \fB\-\-pid PIDFILE\fR 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\-webui should place the port number\. For instance: \-P myapp\.%s\.pid\. . .TP \fB\-h\fR, \fB\-\-host HOSTNAME\fR Host to bind to (default is 0\.0\.0\.0)\. . .TP \fB\-m\fR, \fB\-\-merb\-root PATH_TO_APP_ROOT\fR The path to the Merb\.root for the app you want to run (default is current working directory)\. . .TP \fB\-a\fR, \fB\-\-adapter ADAPTER\fR The rack adapter to use to run chef\-server\-webui (default is mongrel) [mongrel, emongrel, thin, ebb, fastcgi, webrick]\. . .TP \fB\-R\fR, \fB\-\-rackup FILE\fR Load an alternate Rack config file (default is config/rack\.rb)\. . .TP \fB\-i\fR, \fB\-\-irb\-console\fR This flag will start chef\-server\-webui in irb console mode\. All your models and other classes will be available for you in an irb session\. . .TP \fB\-S\fR, \fB\-\-sandbox\fR This flag will enable a sandboxed irb console\. If your ORM supports transactions, all edits will be rolled back on exit\. . .TP \fB\-l\fR, \fB\-\-log\-level LEVEL\fR Log levels can be set to any of these options: debug < info < warn < error < fatal (default is info)\. . .TP \fB\-L\fR, \fB\-\-log LOGFILE\fR 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\. . .TP \fB\-e\fR, \fB\-\-environment STRING\fR Environment to run Merb under [development, production, testing] (default is development)\. . .TP \fB\-r\fR, \fB\-\-script\-runner [\'RUBY CODE\'| FULL_SCRIPT_PATH]\fR Command\-line option to run scripts and/or code in the chef\-server\-webui app\. . .TP \fB\-K\fR, \fB\-graceful PORT or all\fR Gracefully kill chef\-server\-webui proceses by port number\. Use chef\-server \-K all to gracefully kill all merbs\. . .TP \fB\-k\fR, \fB\-\-kill PORT\fR Force kill one merb worker by port number\. This will cause the worker to be respawned\. . .TP \fB\-\-fast\-deploy\fR Reload the code, but not yourinit\.rb or gems\. . .TP \fB\-X\fR, \fB\-\-mutex on/off\fR This flag is for turning the mutex lock on and off\. . .TP \fB\-D\fR, \fB\-\-debugger\fR Run chef\-server\-webui using rDebug\. . .TP \fB\-V\fR, \fB\-\-verbose\fR Print extra information\. . .TP \fB\-C\fR, \fB\-\-console\-trap\fR Enter an irb console on ^C\. . .TP \fB\-?\fR, \fB\-H\fR, \fB\-\-help\fR Show this help message\. . .SH "DESCRIPTION" The Chef Server WebUI (Management Console) is a Merb application slice\. The default listen port is 4040\. . .P The Management Console is Chef Server\'s web interface\. Nodes, roles, cookbooks, data bags, and API clients can be managed through the Management Console\. Search can also be done on the console\. . .P In order to start using the Management Console, you need to first create a user or change the default password on the "admin" user\. . .P The default credentials are: . .IP "\(bu" 4 \fBUsername\fR: admin . .IP "\(bu" 4 \fBPassword\fR: p@ssw0rd1 . .IP "" 0 . .SH "SEE ALSO" Full documentation for Chef and chef\-server\-webui (Management Console) is located on the Chef wiki, http://wiki\.opscode\.com/display/chef/Home\. . .SH "AUTHOR" Chef was written by Adam Jacob \fIadam@ospcode\.com\fR of Opscode (http://www\.opscode\.com), with contributions from the community\. This manual page was written by Joshua Timberman \fIjoshua@opscode\.com\fR with help2man for the Debian project (but may be used by others)\. Permission is granted to copy, distribute and / or modify this document under the terms of the Apache 2\.0 License\. . .P On Debian systems, the complete text of the Apache 2\.0 License can be found in /usr/share/common\-licenses/Apache\-2\.0\. debian/watch0000644000000000000000000000024111773315157010226 0ustar version=3 opts=dversionmangle=s/\+dfsg// \ http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/chef-server-webui .*/chef-server-webui-(.*).tar.gz debian debian/source/0000755000000000000000000000000011773315157010500 5ustar debian/source/format0000644000000000000000000000001411773315157011706 0ustar 3.0 (quilt) debian/chef-server-webui.dirs0000644000000000000000000000025611773315157013410 0ustar etc/chef var/lib/chef/openid var/lib/chef/openid/store var/lib/chef/openid/cstore var/cache/chef var/log/chef usr/share/doc/chef-server-webui usr/share/chef-server-webui/app debian/chef-server-webui.links0000644000000000000000000000015311773315157013563 0ustar /usr/share/javascript/jquery/jquery.js /usr/share/chef-server-webui/public/javascripts/jquery-1.3.2.min.js debian/copyright0000644000000000000000000001267312014225250011123 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=173 Upstream-Name: chef-server-webui Source: http://wiki.opscode.com/display/chef Files: * Copyright: Copyright 2008-2011 Opscode, Inc. License: Apache-2 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at . http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. License: GPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this package; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA . On Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/GPL-2'. License: MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: public/facebox/* Copyright: Copyright 2007, 2008 Chris Wanstrath License: MIT Files: public/javascripts/jquery.localscroll.js public/javascripts/jquery.scrollTo.js Copyright: Copyright (c) 2007-2008 Ariel Flesler - aflesler(at)gmail(dot)com License: MIT or GPL-2 Files: public/javascripts/jquery-1.5.2.*js Copyright: Copyright 2011, John Resig, Copyright 2011, The Dojo Foundation License: MIT or GPL-2 Files: public/javascripts/jquery.jeditable*js Copyright: Copyright (c) 2006-2009 Mika Tuupola, Dylan Verheul License: MIT Files: public/javascripts/jquery.suggest.js Copyright: Copyright (c) 2007 License: Public Domain Feel free to do whatever you want with this file Files: public/javascripts/jquery.tools.min.js: public/javascripts/jquery.tools.js Copyright: Copyright (c) 2009 Tero Piirainen License: MIT or GPL-2 Files: public/javascripts/jquery.treeTable.min.js stylesheets/jquery.treeTable.css Copyright: Copyright (c) 2011 Ludo van den Boom, http://cubicphuse.nl License: MIT or GPL-2 Files: public/javascripts/jquery-ui-1.7.1.custom.min.js public/stylesheets/jquery-ui-1.7.1.custom.css public/javascripts/jquery-ui.js Copyright: Copyright (c) 2009 Richard D. Worth and others License: MIT or GPL-2 Files: public/javascripts/yetii-min.js Copyright: Copyright (c) kminek.pl & Grzegorz Wójcik License: BSD All rights reserved. . Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . * Neither the name of the kminek.pl & Grzegorz Wójcik nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: public/javascripts/json.js Copyright: Public Domain License: N/A debian/etc/0000755000000000000000000000000011773315157007753 5ustar debian/etc/chef/0000755000000000000000000000000011773315157010660 5ustar debian/etc/chef/webui.rb0000644000000000000000000001056711773315157012331 0ustar # Configuration File For Chef (chef-server-webui) # # chef-server-webui is a Merb application slice that provides a web user # interface to the Chef Server. The WebUI is optional as of version 0.8.0+, # and is a client to the API itself, which can be running on the same server, # or optionally on a different server. # # By default, it is configured to run via Thin. It can be run manually as: # # chef-server-webui -p 4040 -e production -a thin # # This starts up the Chef Server WebUI on port 4040 in production mode using # the thin server adapter. # # This file configures the behavior of the running server-webui itself. # # It is a Ruby DSL config file, and can embed regular Ruby code in addition to # the configuration settings. Some settings use Ruby symbols, which are a value # that starts with a colon. In Ruby, anything but 'false' or 'nil' is true. To # set something to false: # # some_setting false # # log_level specifies the level of verbosity for output. # valid values are: :debug, :info, :warn, :error, :fatal log_level :info # log_location specifies where the server should log to. # valid values are: a quoted string specifying a file, or STDOUT with # no quotes. This is the application log for the Merb workers that get # spawned. The chef-server-webui daemon is configured to log to # /var/log/chef/server-webui.log in /etc/chef/default/chef-server-webui. log_location STDOUT # ssl_verify_mode specifies if the REST client should verify SSL certificates. # valid values are :verify_none, :verify_peer. The default Chef Server # installation on Debian will use a self-generated SSL certificate so this # should be :verify_none unless you replace the certificate. ssl_verify_mode :verify_none # chef_server_url specifies the URL for the server API. The process actually # listens on 0.0.0.0:PORT. # valid values are any HTTP URL. If the server API port is changed, this # value needs to be updated as well. chef_server_url "http://localhost:4000" # file_cache_path specifies where the client should cache cookbooks, server # cookie ID, and openid registration data. # valid value is any filesystem directory location. file_cache_path "/var/cache/chef" # openid_store_path specifies a location where to keep openid nonces for clients. # valid values are any filesystem directory location. # # NOTE: OpenID is optionally used in the WebUI to associate OpenIDs with webui # users. openid_store_path "/var/lib/chef/openid/store" # openid_store_path specifies a location where to keep openid nonces for clients. # valid values are any filesystem directory location. # # NOTE: OpenID is optionally used in the WebUI to associate OpenIDs with webui # users. openid_cstore_path "/var/lib/chef/openid/cstore" # Mixlib::Log::Formatter.show_time specifies whether the chef-client log should # contain timestamps. # valid values are true or false. The printed timestamp is rfc2822, for example: # Fri, 31 Jul 2009 19:19:46 -0600 Mixlib::Log::Formatter.show_time = true # The following options configure the signing CA so it can be read by # non-privileged user for the server daemon. signing_ca_cert "/etc/chef/certificates/cert.pem" signing_ca_key "/etc/chef/certificates/key.pem" signing_ca_user "chef" signing_ca_group "chef" # web_ui_client_name specifies the user to use when accessing the Chef # Server API. By default this is already set to "chef-webui". # # This user gets created by the chef-server and stored in CouchDB the # first time the server starts up if the user and key don't exist. web_ui_client_name "chef-webui" # web_ui_admin_user_name and web_ui_admin_default_password specify the # user and password that a human can use to initially log into the # chef-server-webui when it starts. The default value for the user is 'admin' # and the default password is'p@ssw0rd1' should be changed immediately on # login. The web form will display the password reset page on first login. # During package installation, debconf will prompt for a password, so this # may differ from the default. web_ui_admin_user_name "admin" web_ui_admin_default_password "p@ssw0rd1" # web_ui_key specifics the file to use for authenticating with the Chef # Server API. By default this is already set to "/etc/chef/webui.pem". # # This file gets created by the chef-server and the public key stored in # CouchDB the first time the server starts up if the user and key don't # exist. web_ui_key "/etc/chef/webui.pem" debian/rules0000755000000000000000000000225611773315157010265 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby override_dh_auto_install: cp -rf $(CURDIR)/debian/etc/chef/webui.rb $(CURDIR)/debian/chef-server-webui/usr/share/chef-server-webui/webui.rb cp debian/etc/chef/webui.rb debian/chef-server-webui/usr/share/chef-server-webui cp config.ru debian/chef-server-webui/usr/share/chef-server-webui cp -rf app debian/chef-server-webui/usr/share/chef-server-webui cp -rf config debian/chef-server-webui/usr/share/chef-server-webui cp -rf public debian/chef-server-webui/usr/share/chef-server-webui cp -rf lib debian/chef-server-webui/usr/share/chef-server-webui dh_ruby --install mkdir -p $(CURDIR)/debian/chef-server-webui/usr/sbin mv $(CURDIR)/debian/chef-server-webui/usr/bin/chef-server-webui $(CURDIR)/debian/chef-server-webui/usr/sbin debian/chef-server-webui.docs0000644000000000000000000000001411773315157013367 0ustar README.rdoc debian/chef-server-webui.config0000644000000000000000000000047411773315157013716 0ustar #!/bin/bash set -e . /usr/share/debconf/confmodule export PATH=$PATH:/sbin:/usr/sbin:/bin:/usr/bin case "$1" in configure|reconfigure) db_input high chef-server-webui/admin_password || true db_go ;; *) echo "config called with unknown argument \`$1'" >&2 exit 1 ;; esac db_stop exit 0 debian/changelog0000644000000000000000000000310212014223471011030 0ustar chef-server-webui (10.12.0+dfsg-1) unstable; urgency=low * New upstream release, first upload to Debian -- Tollef Fog Heen Fri, 29 Jun 2012 14:07:37 +0200 chef-server-webui (0.10.10-1) unstable; urgency=low * New upstream release -- Bryan McLellan Fri, 11 May 2012 20:46:34 +0000 chef-server-webui (0.10.8-2) unstable; urgency=low * Add 'missingok' to logrotate script (pull request #5) -- Bryan McLellan Tue, 17 Jan 2012 21:47:58 +0000 chef-server-webui (0.10.8-1) unstable; urgency=low * New upstream release -- Bryan McLellan Fri, 16 Dec 2011 03:01:54 +0000 chef-server-webui (0.10.6-1) unstable; urgency=low * New upstream release -- Bryan McLellan Wed, 14 Dec 2011 00:01:32 +0000 chef-server-webui (0.10.2-3) unstable; urgency=low * Allow upstream JS files to remain because it is simpler (Fixes CHEF-2469) * Depend on Upstream-Version of chef + chef-server rather than Version -- Bryan McLellan Fri, 29 Jul 2011 14:42:17 +0000 chef-server-webui (0.10.2-2) unstable; urgency=low * Revision bump for more flexible chef-server depends -- Bryan McLellan Wed, 13 Jul 2011 18:04:48 +0000 chef-server-webui (0.10.2-1) unstable; urgency=high * New upstream release -- Bryan McLellan Thu, 07 Jul 2011 22:01:25 +0000 chef-server-webui (0.10.0-1) UNRELEASED; urgency=low * Initial release (Closes: #nnnn) -- Bryan McLellan Fri, 06 May 2011 21:25:01 +0000