debian/0000755000000000000000000000000012276326742007201 5ustar debian/control0000644000000000000000000000145212276326731010604 0ustar Source: maas-enlist Section: admin Priority: extra Maintainer: Andres Rodriguez Build-Depends: debhelper (>= 8.0.0), po-debconf, libavahi-core-dev, libdebian-installer4-dev, libavahi-client-dev Standards-Version: 3.9.3 Homepage: http://ubuntu.com Package: maas-enlist Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, curl, archdetect-deb, libavahi-core7, libavahi-common3 Description: MAAS enlistment tool Tool for enlisting a host with a MAAS server. Package: maas-enlist-udeb XC-Package-Type: udeb Section: debian-installer Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, curl-udeb, configured-network, libavahi-core7-udeb, libavahi-common3-udeb XB-Installer-Menu-Item: 2350 Description: Enlist a host with a MAAS server (installer integration) debian/source/0000755000000000000000000000000012276326731010477 5ustar debian/source/format0000644000000000000000000000001412276326731011705 0ustar 3.0 (quilt) debian/maas-enlist-udeb.install0000644000000000000000000000010312276326731013713 0ustar bin/maas-enlist usr/bin avahi-discover/maas-avahi-discover usr/bin debian/changelog0000644000000000000000000001310712276326737011061 0ustar maas-enlist (0.4+bzr38-0ubuntu1) trusty; urgency=low * New upstream release * Drop maas-commission binary package. Not really used anywhere. -- Andres Rodriguez Tue, 09 Oct 2012 17:03:12 -0400 maas-enlist (0.4+bzr36-0ubuntu1) quantal; urgency=low * Fix enlistment when multiple MAC address are being sent (LP: #1065259) -- Andres Rodriguez Tue, 09 Oct 2012 17:03:12 -0400 maas-enlist (0.4+bzr35-0ubuntu1) quantal; urgency=low * debian/control: Add maas-commission package that installs maas-signal and maas-ipmi-autodetect. -- Andres Rodriguez Tue, 09 Oct 2012 16:11:45 -0400 maas-enlist (0.4+bzr32-0ubuntu1) quantal; urgency=low * bin/maas-enlist: Add power-type and power-params as parameters (LP: #1063946) -- Andres Rodriguez Thu, 27 Sep 2012 11:19:49 -0400 maas-enlist (0.4+bzr31-0ubuntu1) quantal; urgency=low * Add subarch support (LP: #1056816) -- Robie Basak Wed, 26 Sep 2012 18:03:52 +0100 maas-enlist (0.4+bzr30-0ubuntu1) quantal; urgency=low * bin/maas-enlist: Fix API path URL determination. (LP: #1052989) -- Andres Rodriguez Thu, 09 Aug 2012 17:36:34 -0400 maas-enlist (0.4+bzr29-0ubuntu1) quantal; urgency=low * bin/maas-enlist: Do not hardcode API path URL. If none is given use a default, otherwise use the one given with serverurl (LP: #1034228) -- Andres Rodriguez Thu, 12 Jul 2012 14:32:03 -0400 maas-enlist (0.4+bzr27-0ubuntu1) quantal; urgency=low * Fix after_commissioning_action (LP: #1024010) -- Andres Rodriguez Fri, 13 Apr 2012 10:08:30 -0400 maas-enlist (0.4-0ubuntu1) precise; urgency=low * 01-fix-arch-detect.patch: dropped, as it's now applied upstream. * debian/control: Build as arch any, rather than all as the package now contains architecture compiled code. -- Dave Walker (Daviey) Fri, 13 Apr 2012 10:07:25 +0100 maas-enlist (0.3-0ubuntu7) precise; urgency=low * debian/maas-enlist-udeb.postinst: Fix typo to not fail. -- Andres Rodriguez Tue, 10 Apr 2012 17:56:11 -0400 maas-enlist (0.3-0ubuntu6) precise; urgency=low * bin/maas-enlist: Fix arch determination to successfully detect x86_64 instead of only i386. * debian/maas-enlist.install: Install maas-avahi-discover. * debian/control: Depends on libavahi-core7, libavahi-common3. * udeb menu fixes: - debian/maas-enlist-udeb.postinst: Correctly create the installer choices; provide a correctly ordered Menu for enlistment, or maas installation; handle correctly installer choices; use installer hostname for enlistment if one provided. (LP: #973421) - debian/maas-enlist-udeb.templates: Improve wording -- Andres Rodriguez Mon, 09 Apr 2012 10:54:47 -0400 maas-enlist (0.3-0ubuntu5) precise; urgency=low * debian/maas-enlist-udeb.postinst: Correctly avoid showing tasksel in the install process by registering a dummy installer question. -- Andres Rodriguez Tue, 27 Mar 2012 21:10:23 -0400 maas-enlist (0.3-0ubuntu4) precise; urgency=low * debian/maas-enlist-udeb.postinst: If Install new MAAS is selected, avoid showing tasksel later in the install process. -- Dave Walker (Daviey) Tue, 27 Mar 2012 21:19:53 +0100 maas-enlist (0.3-0ubuntu3) precise; urgency=low * debian/maas-enlist-udeb.postinst: Expose MAAS installation option. * Update templates and po. -- Andres Rodriguez Wed, 21 Mar 2012 16:03:19 -0400 maas-enlist (0.3-0ubuntu2) precise; urgency=low * debian/control: Add missing Depends on libavahi-core7-udeb, libavahi-common3-udeb (LP: #961454) * Handle disabling of autodiscovery of maas servers (LP: #961557): - debian/maas-enlist-udeb.postinst: Handle new template. - debian/maas-enlist-udeb.templates: Add template. * debian/po: updated. -- Andres Rodriguez Wed, 21 Mar 2012 15:59:46 -0400 maas-enlist (0.3-0ubuntu1) precise; urgency=low * New upstream bugfix release (LP: #960798) [ Dave Walker ] * avahi-discover/*: Introduce avahi discovery code, for discovery of a MAAS service. [ Andres Rodriguez ] * debian/rules: Add rules to build avahi-discover. * debian/control: Build Deps on libavahi-core-dev, libdebian-installer4-dev, libavahi-client-dev * debian/maas-enlist-udeb.install: Install maas-avahi-discover. * debian/maas-enlist-udeb.postinst: Handle usage of maas-avahi-discover. * debian/maas-enlist-udeb.templates: Update accordingly. * debian/po: Updated. -- Andres Rodriguez Wed, 21 Mar 2012 00:42:42 -0400 maas-enlist (0.2-0ubuntu1) precise; urgency=low * New upstream bugfix release (LP: #956988) [ Jamie Strandboge ] * bin/maas-enlist: add https:// support; defensively quote all variables; fix argument processing * man/maas-enlist.1: Update accordingly. [ Andres Rodriguez ] * bin/maas-enlist: Add copyright header; Remove server-port option; Update maas API path to production one (http:///MAAS/api...) * debian/control: Depends on curl-udeb. * debian/maas-enlist-udeb.{postinst,templates}: Drop server-port option. * debian/po/templates.pot: Update accordingly. * man/maas-enlist.1: Update accordingly. -- Andres Rodriguez Fri, 16 Mar 2012 10:11:00 -0400 maas-enlist (0.1-0ubuntu1) precise; urgency=low * Initial Release (LP: #941946) -- Andres Rodriguez Tue, 28 Feb 2012 10:24:16 -0500 debian/po/0000755000000000000000000000000012276326731007615 5ustar debian/po/templates.pot0000644000000000000000000000507612276326731012347 0ustar # SOME DESCRIPTIVE TITLE. # Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" "Project-Id-Version: maas-enlist\n" "Report-Msgid-Bugs-To: maas-enlist@packages.debian.org\n" "POT-Creation-Date: 2012-04-06 12:44-0400\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=CHARSET\n" "Content-Transfer-Encoding: 8bit\n" #. Type: text #. Description #: ../maas-enlist-udeb.templates:1001 msgid "Install or Enlist with Ubuntu MAAS Server" msgstr "" #. Type: select #. Choices #: ../maas-enlist-udeb.templates:2001 msgid "${CHOICES}" msgstr "" #. Type: select #. Description #: ../maas-enlist-udeb.templates:2002 msgid "" "Enlist this server with an existing MAAS, or create a new MAAS service on " "this server:" msgstr "" #. Type: string #. Description #: ../maas-enlist-udeb.templates:4001 msgid "MAAS server address:" msgstr "" #. Type: string #. Description #: ../maas-enlist-udeb.templates:4001 msgid "" "Please provide the IP or hostname of the MAAS server that this host should " "be enlisted with." msgstr "" #. Type: string #. Description #: ../maas-enlist-udeb.templates:5001 msgid "Name of this host:" msgstr "" #. Type: string #. Description #: ../maas-enlist-udeb.templates:5001 msgid "Please provide the name of this host as it should be used." msgstr "" #. Type: string #. Description #: ../maas-enlist-udeb.templates:5001 msgid "" "If no hostname is provided, the MAAS Server will try to generate one " "automatically." msgstr "" #. Type: note #. Description #: ../maas-enlist-udeb.templates:6001 msgid "MAAS Enlistment" msgstr "" #. Type: note #. Description #: ../maas-enlist-udeb.templates:6001 msgid "This process requires that you have an existing MAAS Server" msgstr "" #. Type: note #. Description #: ../maas-enlist-udeb.templates:6001 msgid "Details of the MAAS Server service will be required to proceed." msgstr "" #. Type: note #. Description #: ../maas-enlist-udeb.templates:6001 msgid "" "The enlistment request will then be sent to a MAAS server, and the system " "will turn off." msgstr "" #. Type: note #. Description #: ../maas-enlist-udeb.templates:6001 msgid "The system can be installed and deployed via the MAAS service or Juju." msgstr "" #. Type: note #. Description #: ../maas-enlist-udeb.templates:6001 msgid "NOTE: this information is currently submitted unencrypted." msgstr "" debian/po/POTFILES.in0000644000000000000000000000006512276326731011373 0ustar [type: gettext/rfc822deb] maas-enlist-udeb.templates debian/maas-commission.install0000644000000000000000000000007312276326731013666 0ustar bin/maas-signal usr/bin sbin/maas-ipmi-autodetect usr/sbin debian/maas-enlist.README.Debian0000644000000000000000000000031412276326731013452 0ustar maas-enlist Debian README ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Warning: Please note that information is currently sent via insecure http, without using SSL. This issue is being tracked via Bug 833994. Thanks. debian/maas-enlist.install0000644000000000000000000000010312276326731012776 0ustar bin/maas-enlist usr/bin avahi-discover/maas-avahi-discover usr/bin debian/maas-enlist-udeb.postinst0000644000000000000000000000612512276326731014142 0ustar #!/bin/sh -e # Source debconf library. . /usr/share/debconf/confmodule db_version 2.0 # This conf script is capable of backing up db_capb backup create_maas_server_choices () { file=$1 local choices= if [ -e "$file" ]; then OIFS="$IFS" IFS="|" while read description host_ip other; do choices="${choices:+$choices, }$description - ($host_ip)" done < "$file" IFS="$OIFS" fi choices="${choices:+$choices, }Specify MAAS by name or address, Create a new MAAS on this server" if [ -n "$choices" ]; then db_subst maas-enlist/select-maas-server CHOICES "$choices" fi } create_maas_server_default_choice () { choice="Specify MAAS by name or address" db_subst maas-enlist/select-maas-server CHOICES "$choice" db_set maas-enlist/select-maas-server "$choice" } set_question() { if ! db_fget "$1" seen; then db_register debian-installer/dummy "$1" db_subst "$1" ID "$1" db_fget "$1" seen fi if [ "$RET" = false ]; then db_set "$1" "$2" db_fset "$1" seen true fi } # Show the about/warning note #db_input high maas-enlist/warning-note || true #db_go db_input low maas-enlist/skip-maas-discover || true db_go db_get maas-enlist/skip-maas-discover if [ "$RET" != "true" ]; then if [ -x /usr/bin/maas-avahi-discover ]; then tempfile=$(mktemp) /usr/bin/maas-avahi-discover > "$tempfile" create_maas_server_choices "$tempfile" fi db_input high maas-enlist/select-maas-server db_go else create_maas_server_default_choice fi db_get maas-enlist/select-maas-server maas_server="$RET" if [ "$maas_server" = "Create a new MAAS on this server" ]; then db_set pkgsel/include maas # We don't need to show tasksel, lets preseed. set_question tasksel/first "standard, server" exit 0 fi STATE=1 while [ "$STATE" != 0 -a "$STATE" != 3 ]; do case "$STATE" in 1) if [ "$maas_server" != "Specify MAAS by name or address" ]; then serverurl=$(echo "$maas_server" | cut -d"(" -f2 | cut -d")" -f1) else db_input critical maas-enlist/maas-server-address || true db_go db_get maas-enlist/maas-server-address serverurl="$RET" fi ;; 2) # Try to obtain hostname that's been set on installer db_get netcfg/get_hostname || true netcfg_host="$RET" if [ "$netcfg_host" = "ubuntu" ] || [ "$netcfg_host" = "maas-enlist" ] || [ -z "$netcfg_host" ]; then # if netcfg_hostname is 'ubuntu', then request one. db_input critical maas-enlist/host-name || true db_go else # if netcfg_hostname has been changed to something differently. db_set maas-enlist/host-name "$netcfg_host" fi db_get maas-enlist/host-name hostname="$RET" ;; # Disabled, when re-enabling bump while loop to 4, add template. # 4) # db_input high maas-enlist/host-netif || true # db_get maas-enlist/host-netif # hostnetif=$RET # ;; esac if db_go; then STATE=$(($STATE + 1)) else STATE=$(($STATE - 1)) fi done maas-enlist --serverurl="$serverurl" \ --hostname="$hostname" \ || true # --netif="$hostnetif" # Power off machine, we don't want to continue the install db_set debian-installer/exit/poweroff true /lib/debian-installer/exit debian/rules0000755000000000000000000000103212276326731010253 0ustar #!/usr/bin/make -f %: dh $@ override_dh_auto_build: $(MAKE) -C avahi-discover DEB_DEBIAN_DIR=$(dir $(firstword $(MAKEFILE_LIST))) REV=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \ | sed -rne 's,^Version: .*[+~]bzr([0-9]+).*,\1,p') VER=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \ | sed -rne 's,^Version: ([^-]+).*,\1,p') get-orig-source: bzr export -r $(REV) --root=maas-enlist-$(VER).orig \ maas-enlist_$(VER).orig.tar.gz lp:~maas-maintainers/maas/maas-enlist debian/maas-enlist-udeb.templates0000644000000000000000000000277612276326731014265 0ustar Template: debian-installer/maas-enlist-udeb/title Type: text _Description: Install or Enlist with Ubuntu MAAS Server Template: maas-enlist/select-maas-server Type: select __Choices: ${CHOICES} _Description: Enlist this server with an existing MAAS, or create a new MAAS service on this server: Template: maas-enlist/skip-maas-discover Type: boolean Default: false Description: Skip the MAAS Server discovery in the Installer? By default, MAAS Enlist will try to automatically search for MAAS servers on the network, to allow the user to register the node into a discovered MAAS server. You can skip this step, if you want to manually preseed such settings. Template: maas-enlist/maas-server-address Type: string _Description: MAAS server address: Please provide the IP or hostname of the MAAS server that this host should be enlisted with. Template: maas-enlist/host-name Type: string _Description: Name of this host: Please provide the name of this host as it should be used. . If no hostname is provided, the MAAS Server will try to generate one automatically. Template: maas-enlist/warning-note Type: note Default: false _Description: MAAS Enlistment This process requires that you have an existing MAAS Server . Details of the MAAS Server service will be required to proceed. . The enlistment request will then be sent to a MAAS server, and the system will turn off. . The system can be installed and deployed via the MAAS service or Juju. . NOTE: this information is currently submitted unencrypted. debian/copyright0000644000000000000000000000161312276326731011133 0ustar Format: http://dep.debian.net/deps/dep5 Upstream-Name: maas-enlist Files: * Copyright: 2011, Copyright (C) 2011 Canonical Ltd. License: GPL-3 This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This package 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 program. If not, see . . On Debian systems, the complete text of the GNU General Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". debian/compat0000644000000000000000000000000212276326731010375 0ustar 8 debian/maas-enlist.manpages0000644000000000000000000000002212276326731013123 0ustar man/maas-enlist.1