debian/0000775000000000000000000000000012301350466007170 5ustar debian/python-koan.install0000664000000000000000000000004512301346173013026 0ustar usr/lib/python*/dist-packages/koan/* debian/cobbler-ubuntu-import0000664000000000000000000002757212301346173013370 0ustar #!/bin/bash # cobbler-ubuntu-import VERBOSITY=0 TEMP_D="" ISO_DIR="/var/lib/cobbler/isos" KSDIR="/var/lib/cobbler/kickstarts" DEFAULT_MIRROR="http://archive.ubuntu.com/ubuntu" AUTO_KOPTS='log_host=@@server@@ log_port=514 priority=critical locale=en_US netcfg/choose_interface=auto' AUTO_PRESEED="${KSDIR}/ubuntu-server.preseed" [ -r /etc/cobbler/cobbler-import-ubuntu.conf ] && . /etc/cobbler/cobbler-import-ubuntu.conf GPG_KEYRING="${GPG_KEYRING:-/usr/share/keyrings/ubuntu-archive-keyring.gpg}" error() { echo "$@" 1>&2; } errorp() { printf "$@" 1>&2; } fail() { [ $# -eq 0 ] || error "$@"; exit 1; } failp() { [ $# -eq 0 ] || errorp "$@"; exit 1; } debug() { [ $VERBOSITY -gt 0 ] && echo "[DEBUG] $@" 1>&2; } Usage() { cat < http proxy to use -v | --verbose increase verbosity Note, arch can be i386, x86_64, or amd64. However, the registered distro and profile will use 'x86_64' rather than 'amd64'. This is to keep consistent with cobbler naming. Example: - ${0##*/} natty-i386 EOF } bad_Usage() { Usage 1>&2; [ $# -eq 0 ] || error "$@"; exit 1; } cleanup() { [ -z "${TEMP_D}" -o ! -d "${TEMP_D}" ] || rm -Rf "${TEMP_D}" } loop_mount() { # Create more loop nodes, if necessary local mounts=$(grep -c /dev/loop /proc/mounts) || mounts=0 local loops=$(ls /dev/loop* | wc -l) || loops=0 if [ $mounts -ge $loops ]; then mknod -m 660 /dev/loop$loops b 7 $loops chown root:disk /dev/loop$loops fi # Do the loop mount debug "Creating loopback mount from $1 at $2" mount -o loop "$1" "$2" } get_iso() { # first check release's update pocket for an iso. # grab from release pocket if that does not exist. local md5url="" url="" out="" if wget --progress=dot:mega -O "$TEMP_D/$ISO" "$U_UPDATE"; then debug "Downloaded ISO from updates pocket: $U_UPDATE" md5url="$MD5_UPDATE" url="$U_UPDATE" elif wget --progress=dot:mega -O "$TEMP_D/$ISO" "$U"; then debug "Updating from release pocket: $U" md5url="$MD5" url="$U" else fail "failed download for $REL-$ARCH" fi wget -qO "$TEMP_D/MD5SUMS" "$md5url" && wget -qO "$TEMP_D/MD5SUMS.gpg" "${md5url}.gpg" || fail "unable to download MD5SUMS[.gpg] from $md5url" out=$(gpg "--keyring=${GPG_KEYRING}" \ --verify "${TEMP_D}/MD5SUMS.gpg" "${TEMP_D}/MD5SUMS" 2>&1) || fail "failed to verify MD5SUMS via $GPG_KEYRING ($md5url)" local md5exp="" md5found="" md5exp=$(awk '$2 == "./netboot/mini.iso" { print $1 }' "$TEMP_D/MD5SUMS") && [ -n "$md5exp" ] || fail "failed to parse checksum for ./netboot/mini.sio in ${md5url}" md5found=$(md5sum "${TEMP_D}/$ISO") && md5found=${md5found%% *} && [ -n "$md5found" ] || fail "failed to checksum ${TEMP_D}/$ISO: $md5found" [ "$md5exp" = "$md5found" ] || fail "download of ${url} failed, checksum did not match from ${md5url}" { $delete || mv "$TEMP_D/$ISO" "$ISO_DIR/$ISO"; } || fail "failed to move iso $ISO_DIR/$ISO" } import_iso() { # import iso into cobbler as $DISTRO local mounted local rel="$1" arch="$2" name="$3" if cobbler_has distro "$name"; then error "distro '$name' already exists. cannot import." return 1 fi { [ -f "$TEMP_D/$ISO" ] || ln -sf "$ISO_DIR/$ISO" "$TEMP_D/$ISO"; } || fail "failed to create symlink to existing $ISO_DIR/$ISO" mounted=0 && loop_mount "$TEMP_D/$ISO" "$TEMP_D/mnt" && mounted=1 && cobbler import --name="$name" --path="$TEMP_D/mnt" \ --breed=ubuntu --os-version="$rel" --arch="$arch" && umount "${TEMP_D}/mnt" && mounted=0 || { [ $mounted -eq 0 ] || umount "$TEMP_D/mnt"; fail "failed to import $REL-$ARCH"; } echo "imported $name" } reassign_distro() { # expected to be called after get_iso() has imported a more up to date iso under # a temporary name. this will reassign all profiles associated with $old_distro # with $new_distro. after all profiles have been reassigned, $old_distro is # removed. local new_distro="$1" local old_distro="$2" local descendents debug "Reassigning $old_distro to $new_distro" if ! cobbler_has distro "$old_distro"; then fail "distro matching profile '$old_distro' does not exist" fi debug "Renaming old distro '$old_distro' to 'last-$old_distro'" cobbler distro rename --name="$old_distro" --newname="last-$old_distro" || fail "could not rename distro '$old_distro' to 'last-$old_distro'" descendants=`cobbler profile find --distro="last-$old_distro"` for profile in $descendants ; do debug "Assigning profile $profile to distro $new_distro" cobbler profile edit --name="$profile" --distro="$new_distro" || fail "could not assign profile '$profile' to distro '$new_distro'" done debug "Removing distro last-$old_distro" cobbler distro remove --name="last-$old_distro" || fail "could not remove stale distro 'last-$old_distro'" debug "Renaming distro $new_distro to $old_distro" cobbler distro rename --name="$new_distro" --newname="$old_distro" || fail "could not rename distro '$new_distro' to '$old_distro'" debug "Cleaning up temporary profile '$new_distro'" cobbler profile remove --name="$new_distro" || fail "could not remove temp profile '$new_distro'" } function update_available() { # check MD5SUM first from updates pocket if it exists, then release pocket. # compare netboot mini iso with what is local. local md5sum_local local md5sum_remote [ ! -f "$ISO_DIR/$ISO" ] && return 0 md5sum_local=$(md5sum "$ISO_DIR/$ISO") && md5sum_local=${md5sum_local%% *} && [ -n "$md5sum_local" ] || fail "failed to checksum $ISO_DIR/$ISO: $md5sum_local" debug "local md5sum: $md5sum_local ($ISO_DIR/$ISO)" wget -qO "$TEMP_D/MD5SUMS" "$MD5_UPDATE" || wget -qO "$TEMP_D/MD5SUMS" "$MD5" || fail "failed to download MD5SUMS for $REL-$ARCH." md5sum_remote=$(awk '$2 == "./netboot/mini.iso" { print $1 }' $TEMP_D/MD5SUMS) && [ -n "$md5sum_remote" ] || fail "failed to parse checksum from $TEMP_D/MD5SUMS: $md5sum_remote" debug "remote md5sum: $md5sum_remote" [ "$md5sum_local" != "$md5sum_remote" ] } # inargs(needle, haystack, ...) # return 0 if 'needle' == one of args $2..$# in_args() { local cur="" needle=$1 shift; for cur in "$@"; do [ "$needle" = "$cur" ] && return 0; done return 1 } cobbler_has() { local noun="$1" name="$2" out="" out=$(cobbler "$noun" find --name "$name") && [ "$out" = "$name" ] } setup_auto_profile() { local parent="$1" name="$2" ks="$3" kopts="$4" cobbler_has profile "$name" && return 0 cobbler profile add --name="$name" --parent="$parent" \ ${ks:+"--kickstart=${ks}"} ${kopts:+"--kopts=${kopts}"} } distro_info() { if [ -n "${UBUNTU_DISTROS}" ]; then # if the user (in config) set ubuntu-distros local r for r in ${UBUNTU_DISTROS}; do echo "$r" done return fi distro-info --supported && return 0 error "Warning: distro-info --supported failed."; error " get distro-info or set UBUNTU_DISTROS in /etc/cobbler/cobbler-import-ubuntu.conf"; return 1 } short_opts="Dhm:o:p:vcruU" long_opts="delete-iso,help,mirror:,proxy:,remove,update,update-existing,update-check,remove,verbose" getopt_out=$(getopt --name "${0##*/}" \ --options "${short_opts}" --long "${long_opts}" -- "$@") && eval set -- "${getopt_out}" || bad_Usage delete=false check_update=false update_existing=0 remove=false mirror=${DEFAULT_MIRROR} do_update=false while [ $# -ne 0 ]; do cur=${1}; next=${2}; case "$cur" in -h|--help) Usage ; exit 0;; -m|--mirror) mirror=${2}; shift;; -D|--delete-iso) delete=true;; -p|--proxy) proxy=${2}; shift;; -v|--verbose) VERBOSITY=$((${VERBOSITY}+1));; -c|--update-check) check_update=true;; -r|--remove) remove=true;; -u|--update) do_update=true;; -U|--update-existing) do_update=true; update_existing=1;; --) shift; break;; esac shift; done if [ "${AUTO_KOPTS#*@@server@@}" != "$AUTO_KOPTS" ]; then cobbserv=$(awk '$1 == "server:" { print $2 }' /etc/cobbler/settings) [ -n "$cobbserv" ] || fail "unable to get value for '@@server@@' from /etc/cobbler/settings" AUTO_KOPTS=${AUTO_KOPTS//@@server@@/${cobbserv}} fi ## check arguments here if [ $update_existing -eq 1 ]; then [ $# -eq 0 ] || bad_Usage "do not provide arguments with update-existing" _existing=$(cobbler distro find --breed=ubuntu) || fail "failed to get list of existing distros" [ -n "$_existing" ] || fail "there were no existing distros of type ubuntu" supported=( $(distro_info) ) || fail "failed to get list of supported distros" to_update=( ) for item in $_existing; do in_args "${item%%-*}" "${supported[@]}" && in_args "${item#*-}" "i386" "x86_64" && to_update[${#to_update[@]}]=${item} || echo "$item: skipping, not -" done set -- "${to_update[@]}" fi [ $# -ne 0 ] || bad_Usage "must provide arguments" [ -f "$GPG_KEYRING" ] || fail "gpg keyring $GPG_KEYRING is not a file" TEMP_D=$(mktemp -d "${TMPDIR:-/tmp}/${0##*/}.XXXXXX") || fail "failed to make tempdir" trap cleanup EXIT if [ -n "$proxy" ] ; then debug "Using proxy: $proxy" export http_proxy="$proxy" fi # program starts here if ! $delete; then { [ -d "$ISO_DIR" ] || mkdir -p "$ISO_DIR"; } || fail "failed to create $ISO_DIR" fi mkdir "$TEMP_D/mnt" || fail "failed to make tempdir/mnt" updates_needed=0 for tok in "$@"; do REL=${tok%-*}; ARCH=${tok#*-} [ "$ARCH" = "amd64" ] && { error "Warning: using x86_64 for arch rather than amd64"; ARCH="x86_64"; } ubuntu_arch=$ARCH; [ "$ARCH" = "x86_64" ] && ubuntu_arch=amd64 ISO=$REL-$ARCH-mini.iso U=$mirror/dists/$REL/main/installer-$ubuntu_arch/current/images/netboot/mini.iso MD5=$mirror/dists/$REL/main/installer-$ubuntu_arch/current/images/MD5SUMS U_UPDATE=$mirror/dists/$REL-updates/main/installer-$ubuntu_arch/current/images/netboot/mini.iso MD5_UPDATE=$mirror/dists/$REL-updates/main/installer-$ubuntu_arch/current/images/MD5SUMS if $remove; then if [ -f "$ISO_DIR/$ISO" ]; then debug "Removing $ISO_DIR/$ISO" rm -rf "$ISO_DIR/$ISO" || fail "Could not delete $ISO_DIR/$ISO" fi if cobbler_has distro "$REL-$ARCH"; then debug "Removing cobbler distro '$REL-$ARCH'" cobbler distro remove --name="$REL-$ARCH" || fail "Could not remove cobbler profile for $REL-$ARCH" fi continue fi if $check_update; then if update_available; then echo "$REL-$ARCH: Update available" updates_needed=$(($updates_needed+1)); else echo "$REL-$ARCH: Up to date" fi continue fi if $do_update; then update_available || { echo "$REL-$ARCH: no update available"; continue; } # get iso from either pocket and import it with a tmp name. get_iso && import_iso "$REL" "$ARCH" "tmp-$REL-$ARCH" || fail "import-iso tmp-$REL-$ARCH failed" setup_auto_profile "$REL-$ARCH" "$REL-$ARCH-auto" \ "$AUTO_PRESEED" "$AUTO_KOPTS" || fail "failed to set up auto profile $REL-$ARCH-auto" reassign_distro "tmp-$REL-$ARCH" "$REL-$ARCH" continue fi [[ ! -f "$ISO_DIR/$ISO" ]] && get_iso import_iso "$REL" "$ARCH" "$REL-$ARCH" && echo "$REL-$ARCH: imported" || fail "failed to import iso for $REL-$ARCH" setup_auto_profile "$REL-$ARCH" "$REL-$ARCH-auto" \ "$AUTO_PRESEED" "$AUTO_KOPTS" || fail "failed to setup auto profile for $REL-$ARCH-auto" done if $check_update; then # if --update-check, but no updates needed, exit 3 [ $updates_needed -eq 0 ] && exit 3 # if updates are needed, exit 0 exit 0 fi # vi: ts=4 noexpandtab debian/patches/0000775000000000000000000000000012301350111010602 5ustar debian/patches/40_ubuntu_bind9_management.patch0000664000000000000000000000415312301350111016734 0ustar Description: Enable management of bind9 with manage_dns setting. - Generate /etc/bind/named.conf.local to plug into the standard Debian bind9 install and preserve the bind9 default installation configuration. - Generate /etc/bind/db.$zone to align to bind9 zone file names. Bug-Ubuntu: https://launchpad.net/bugs/764391 Author: James Page Forwarded: not-needed Index: fix-764391/templates/etc/named.template =================================================================== --- fix-764391.orig/templates/etc/named.template 2011-04-18 10:46:43.057345158 +0100 +++ fix-764391/templates/etc/named.template 2011-04-18 10:47:23.426906461 +0100 @@ -1,31 +1,14 @@ -options { - listen-on port 53 { 127.0.0.1; }; - directory "/var/named"; - dump-file "/var/named/data/cache_dump.db"; - statistics-file "/var/named/data/named_stats.txt"; - memstatistics-file "/var/named/data/named_mem_stats.txt"; - allow-query { localhost; }; - recursion yes; -}; - -logging { - channel default_debug { - file "data/named.run"; - severity dynamic; - }; -}; - #for $zone in $forward_zones zone "${zone}." { type master; - file "$zone"; + file "/etc/bind/db.$zone"; }; #end for #for $zone, $arpa in $reverse_zones zone "${arpa}." { type master; - file "$zone"; + file "/etc/bind/db.$zone"; }; #end for Index: fix-764391/cobbler/action_check.py =================================================================== --- fix-764391.orig/cobbler/action_check.py 2011-04-18 10:50:24.566792922 +0100 +++ fix-764391/cobbler/action_check.py 2011-04-18 10:50:49.546726457 +0100 @@ -66,7 +66,7 @@ mode = self.config.api.get_sync().dns.what() if mode == "bind": self.check_bind_bin(status) - self.check_service(status,"named") + self.check_service(status,"bind9") elif mode == "dnsmasq" and not self.settings.manage_dhcp: self.check_dnsmasq_bin(status) self.check_service(status,"dnsmasq") debian/patches/52_ubuntu_default_config.patch0000664000000000000000000000520512301346173016523 0ustar Description: Default Ubuntu Config Settings This patch sets default config settings for cobbler in Ubuntu. * config/settings: - default kernel options on install to en_US and priority=critical, to prevent interactive remote installs - default virt settings to kvm-friendly virbr0 and qemu - default power management to ether_wake - default preseed to an Ubuntu preseed - default to pxe boot just once to prevent boot loops Author: Dustin Kirkland Forwarded: not-needed Last-Update: 2011-07-05 --- a/config/settings +++ b/config/settings @@ -72,7 +72,7 @@ cheetah_import_whitelist: createrepo_flags: "-c cache -s sha" # if no kickstart is specified to profile add, use this template -default_kickstart: /var/lib/cobbler/kickstarts/default.ks +default_kickstart: /var/lib/cobbler/kickstarts/ubuntu-server.preseed # configure all installed systems to use these nameservers by default # unless defined differently in the profile. For DHCP configurations @@ -111,7 +111,7 @@ default_template_type: "cheetah" # "virbr0". This can be overriden on a per-profile # basis or at the koan command line though this saves # typing to just set it here to the most common option. -default_virt_bridge: xenbr0 +default_virt_bridge: virbr0 # use this as the default disk size for virt guests (GB) default_virt_file_size: 5 @@ -123,7 +123,7 @@ default_virt_ram: 512 # is set on the profile/system, what virtualization type # should be assumed? Values: xenpv, xenfv, qemu, vmware # (NOTE: this does not change what virt_type is chosen by import) -default_virt_type: xenpv +default_virt_type: qemu # enable gPXE booting? Enabling this option will cause cobbler # to copy the undionly.kpxe file to the tftp root directory, @@ -163,6 +163,8 @@ kernel_options: ksdevice: bootif lang: ' ' text: ~ + locale: en_US + priority: critical # s390 systems require additional kernel options in addition to the # above defaults @@ -261,7 +263,7 @@ next_server: 127.0.0.1 # choices (refer to codes.py): # apc_snmp bladecenter bullpap drac ether_wake ilo integrity # ipmilan ipmitool lpar rsa virsh wti -power_management_default_type: 'ipmitool' +power_management_default_type: 'ether_wake' # the commands used by the power management module are sourced # from what directory? @@ -274,7 +276,7 @@ power_template_dir: "/etc/cobbler/power" # first in it's BIOS order. Enable this if PXE is first in your BIOS # boot order, otherwise leave this disabled. See the manpage # for --netboot-enabled. -pxe_just_once: 0 +pxe_just_once: 1 # the templates used for PXE config generation are sourced # from what directory? debian/patches/debian-webroot.diff0000664000000000000000000000067212301346173014357 0ustar diff --git a/setup.py b/setup.py index 53aba91..7dd85fd 100644 --- a/setup.py +++ b/setup.py @@ -173,7 +173,7 @@ if __name__ == "__main__": webroot = "/srv/www/" elif os.path.exists("/etc/debian_version"): webconfig = "/etc/apache2/conf.d" - webroot = "/srv/www/" + webroot = "/var/lib/cobbler/webroot/" else: webconfig = "/etc/httpd/conf.d" webroot = "/var/www/" debian/patches/series0000664000000000000000000000052112301346173012032 0ustar 05_cobbler_fix_reposync_permissions.patch 33_authn_configfile.patch 40_ubuntu_bind9_management.patch 52_ubuntu_default_config.patch 61_ubuntu_pxe_chainc32_default.patch 66_use_eth0_mac_for_poweron_etherwake.patch 68_ubuntu_cdu_power_template.patch 71_fix_tftp_bin_name.patch debian-webroot.diff use-django-conf-urls.diff add-trusty.diff debian/patches/33_authn_configfile.patch0000664000000000000000000000056612301346173015460 0ustar Descrption: Use authn_configfile Author: Dustin Kirkland Forwarded: no --- a/config/modules.conf +++ b/config/modules.conf @@ -20,7 +20,7 @@ # https://github.com/cobbler/cobbler/wiki/Ldap [authentication] -module = authn_denyall +module = authn_configfile # authorization: # once a user has been cleared by the WebUI/XMLRPC, what can they do? debian/patches/68_ubuntu_cdu_power_template.patch0000664000000000000000000000071412301346173017443 0ustar Add a power template for a Sentry Switch CDU. (LP: #927921) Index: cobbler-2.2.2/templates/power/power_sentryswitch_cdu.template =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ cobbler-2.2.2/templates/power/power_sentryswitch_cdu.template 2012-02-06 17:27:39.085111517 -0500 @@ -0,0 +1 @@ +fence_cdu -a "$power_address" -n "$power_id" -l "$power_user" -p "$power_pass" -o "$power_mode" debian/patches/use-django-conf-urls.diff0000664000000000000000000000223412301346173015414 0ustar commit b5abd09557a71cdfe8c603dcf1096572acaaaeae Author: Michael Jansen Date: Wed Dec 4 10:49:12 2013 +0100 django.conf.urls.defaults was removed. Import stuff from django.conf.urls instead. If we need to support django versions less than 1.4 then we need some compatibility stuff here. Since 1.4 deprecated and moved to the new location. https://docs.djangoproject.com/en/1.4/releases/1.4/#django-conf-urls-defaults Removed in 1.6 https://docs.djangoproject.com/en/1.6/internals/deprecation/ diff --git a/web/cobbler_web/urls.py b/web/cobbler_web/urls.py index f51e284..454d5d3 100644 --- a/web/cobbler_web/urls.py +++ b/web/cobbler_web/urls.py @@ -1,4 +1,4 @@ -from django.conf.urls.defaults import * +from django.conf.urls import patterns from views import * # Uncomment the next two lines to enable the admin: diff --git a/web/urls.py b/web/urls.py index fd94d91..5c0d655 100644 --- a/web/urls.py +++ b/web/urls.py @@ -1,4 +1,4 @@ -from django.conf.urls.defaults import * +from django.conf.urls import patterns # Uncomment the next two lines to enable the admin: #from django.contrib import admin debian/patches/66_use_eth0_mac_for_poweron_etherwake.patch0000664000000000000000000000120312301346173021161 0ustar Use MAC of eth0 if power_address has not been defined. (LP: #912476) Index: cobbler-2.2.2/templates/power/power_ether_wake.template =================================================================== --- cobbler-2.2.2.orig/templates/power/power_ether_wake.template 2011-11-15 12:32:16.000000000 -0500 +++ cobbler-2.2.2/templates/power/power_ether_wake.template 2012-02-01 12:58:21.579803287 -0500 @@ -1,3 +1,6 @@ +#if $power_address is None or $power_address == "" + #set $power_address = "%s" % $mac_address_eth0 +#end if if [ -x /sbin/ether-wake ]; then /sbin/ether-wake -i eth0 "$power_address" elif [ -x /usr/bin/powerwake ]; then debian/patches/add-trusty.diff0000664000000000000000000000141312301350111013533 0ustar --- a/config/distro_signatures.json +++ b/config/distro_signatures.json @@ -276,6 +276,22 @@ "kernel_options":"", "kernel_options_post":"", "boot_files":[] + }, + "trusty": { + "signatures":["dists", ".disk"], + "version_file":"Release|mini-info", + "version_file_regex":"Codename: trusty|Ubuntu 14.04", + "kernel_arch":"linux-headers-(.*)\\.deb", + "kernel_arch_regex":null, + "supported_arches":["i386","amd64"], + "supported_repo_breeds":["apt"], + "kernel_file":"linux(.*)", + "initrd_file":"initrd(.*)\\.gz", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample.seed", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] } }, "suse": { debian/patches/71_fix_tftp_bin_name.patch0000664000000000000000000000121712301346173015623 0ustar Description: Correctly update tftpd binary name. The 'tftpd.py' script gets installed in usr/sbin as 'tftpd'. However the 'manage_tftpd_py' file still tries to use 'tftpd.py'. This patchs correctly updates to the new tftpd file name. Bug-Ubuntu: https://launchpad.net/bugs/967430 Author: Andres Rodriguez --- a/cobbler/modules/manage_tftpd_py.py +++ b/cobbler/modules/manage_tftpd_py.py @@ -95,7 +95,7 @@ class TftpdPyManager: metadata = { "user" : "nobody", - "binary" : "/usr/sbin/tftpd.py", + "binary" : "/usr/sbin/tftpd", "args" : "-v" } debian/patches/05_cobbler_fix_reposync_permissions.patch0000664000000000000000000000054612301346173021004 0ustar --- a/cobbler/action_reposync.py +++ b/cobbler/action_reposync.py @@ -591,6 +591,8 @@ class RepoSync: owner = "root:apache" if os.path.exists("/etc/SuSE-release"): owner = "root:www" + if os.path.exists("/etc/debian_version"): + owner = "root:www-data" cmd1 = "chown -R "+owner+" %s" % repo_path debian/patches/61_ubuntu_pxe_chainc32_default.patch0000664000000000000000000000372112301350111017510 0ustar Description: localboot $value, has varying degrees of success depending on the hardware It also seems to be incompatible with using ipxe. Chain.c32 seems to provide a more reliable boot experience, and is also compatible with ipxe. Bug-Ubuntu: https://launchpad.net/bugs/898838 Author: Andres Rodriguez --- a/templates/pxe/pxelocal.template +++ b/templates/pxe/pxelocal.template @@ -5,5 +5,5 @@ TOTALTIMEOUT 0 ONTIMEOUT local LABEL local - LOCALBOOT -1 + KERNEL chain.c32 --- a/cobbler/pxegen.py +++ b/cobbler/pxegen.py @@ -86,17 +86,23 @@ class PXEGen: dst, api=self.api, cache=False, logger=self.logger) utils.copyfile_pattern('/var/lib/cobbler/loaders/menu.c32', dst, api=self.api, cache=False, logger=self.logger) + utils.copyfile_pattern('/var/lib/cobbler/loaders/chain.c32', + dst, api=self.api, cache=False, logger=self.logger) except: utils.copyfile_pattern('/usr/share/syslinux/pxelinux.0', dst, api=self.api, cache=False, logger=self.logger) utils.copyfile_pattern('/usr/share/syslinux/menu.c32', dst, api=self.api, cache=False, logger=self.logger) + utils.copyfile_pattern('/usr/share/syslinux/chain.c32', + dst, api=self.api, cache=False, logger=self.logger) except: utils.copyfile_pattern('/usr/lib/syslinux/pxelinux.0', dst, api=self.api, cache=False, logger=self.logger) utils.copyfile_pattern('/usr/lib/syslinux/menu.c32', dst, api=self.api, cache=False, logger=self.logger) + utils.copyfile_pattern('/usr/lib/syslinux/chain.c32', + dst, api=self.api, cache=False, logger=self.logger) # copy memtest only if we find it utils.copyfile_pattern('/boot/memtest*', image_dst, debian/cobbler.templates0000664000000000000000000000226412301346173012524 0ustar Template: cobbler/password Type: password _Description: New password for the "cobbler" user: It is highly recommended that you set a password for the administrative "cobbler" user. . You can also run password reconfiguration later by executing 'dpkg-reconfigure -plow cobbler'. . Note that you can easily add users to cobbler later with: sudo htdigest /etc/cobbler/users.digest "Cobbler" USERNAME Template: cobbler/server_and_next_server Type: string Default: 127.0.0.1 _Description: Set the Boot and PXE server IP address: For kickstart and PXE features to work properly, it is important to set the correct IP addresses in the fields "server" and "next_server" in "/etc/cobbler/settings". . The "server" field must be set to something other than localhost, or kickstart features will not work. This should be a resolvable hostname or IP for the boot server as reachable by all machines that will use it. . The "next_server" field must be set to something other than 127.0.0.1, and should match the IP address of the boot server on the PXE network. . Note that these values will try to be automatically detected, however they can be manually edited in "/etc/cobbler/settings". debian/cobbler-web.dirs0000664000000000000000000000007312301346173012236 0ustar var/lib/cobbler/webui_sessions var/lib/cobbler/webui_cache debian/koan.install0000664000000000000000000000015412301346173011510 0ustar usr/bin/koan usr/bin/cobbler-register usr/share/man/man1/cobbler-register.1.gz usr/share/man/man1/koan.1.gz debian/cobbler.config0000664000000000000000000000177112301346173011775 0ustar #! /bin/sh -e . /usr/share/debconf/confmodule db_version 2.0 # Only ask this question on new installs and reconfigures if ([ "$1" = "configure" ] && [ -z "$2" ]) || [ "$1" = "reconfigure" ]; then db_input low cobbler/password || true db_go # Sanitize some ip settings, so as to make cobbler more useful out of the box # This interface/ipaddr code was stolen from /usr/lib/byobu/ip_address while read Iface Destination Gateway Flags RefCnt Use Metric Mask MTU Window IRTT; do [ "$Mask" = "00000000" ] && \ interface="$Iface" && \ ipaddr=$(LC_ALL=C /sbin/ip -4 addr list dev "$interface" scope global) && \ ipaddr=${ipaddr#* inet } && \ ipaddr=${ipaddr%%/*} && \ break done < /proc/net/route db_get cobbler/server_and_next_server || true if ([ -n "$RET" ] && [ "$RET" != "127.0.0.1" ]); then db_set cobbler/server_and_next_server "$RET" elif [ -n "$ipaddr" ]; then db_set cobbler/server_and_next_server "$ipaddr" fi db_input low cobbler/server_and_next_server || true db_go fi exit 0 debian/source/0000775000000000000000000000000012301346173010470 5ustar debian/source/format0000664000000000000000000000001412301346173011676 0ustar 3.0 (quilt) debian/source/include-binaries0000664000000000000000000000002712301346173013627 0ustar debian/logo-ubuntu.png debian/python-cobbler.install0000664000000000000000000000013112301346173013502 0ustar usr/lib/python*/dist-packages/cobbler/* usr/lib/python*/dist-packages/cobbler-*.egg-info debian/koan.dirs0000664000000000000000000000004412301346173011001 0ustar usr/bin var/log/koan var/spool/koan debian/cobbler-web.postrm0000664000000000000000000000077212301346173012627 0ustar #!/bin/sh set -e if [ "$1" = "purge" ] ; then rm /var/www/cobbler_webui_content # Remove symlinks created for apache if [ -h /etc/apache2/conf-enabled/cobbler_web.conf ]; then rm -rf /etc/apache2/conf-enabled/cobbler_web.conf fi # now that configuration is gone, restart apache w/o it if [ -f /etc/init.d/apache2 ]; then if [ -x /usr/sbin/invoke-rc.d ]; then invoke-rc.d apache2 restart || true else /etc/init.d/apache2 restart || true fi fi fi #DEBHELPER# debian/snippets/0000775000000000000000000000000012301346173011035 5ustar debian/snippets/disable_pxe0000664000000000000000000000023112301346173013233 0ustar #if $pxe_just_once in [ "1", "true", "yes", "y" ] wget "http://$http_server:$http_port/cblr/svc/op/nopxe/system/$system_name" -O /dev/null \ #end if debian/cobbler-web.postinst0000664000000000000000000000234512301346173013164 0ustar #!/bin/sh set -e # migrate to apache2.4 if dpkg --compare-versions "$2" le-nl 2.4.0-0ubuntu2; then mv /etc/apache2/conf.d/cobbler_web.conf /etc/apache2/conf-enabled/ fi if [ "$1" = "configure" ] ; then # Setup apache if [ -e /etc/cobbler/cobbler_web.conf -a \ ! -e /etc/apache2/conf-enabled/cobbler_web.conf ]; then ln -s /etc/cobbler/cobbler_web.conf /etc/apache2/conf-enabled/cobbler_web.conf fi chown www-data:www-data /var/lib/cobbler/webui_sessions chmod 0700 /var/lib/cobbler/webui_sessions chown www-data:www-data /var/lib/cobbler/webui_cache chmod 0700 /var/lib/cobbler/webui_sessions # migrate from old webroot if dpkg --compare-versions "$2" lt-nl 2.4.0~beta2; then rm -f /var/www/cobbler_webui_content fi ln -sf /var/lib/cobbler/webroot/cobbler_webui_content /var/www/cobbler_webui_content # Need to restart apache to pickup web configs if [ -f /etc/init.d/apache2 ]; then if [ -x /usr/sbin/invoke-rc.d ]; then invoke-rc.d apache2 restart || true else /etc/init.d/apache2 restart || true fi fi # generate a random key RAND_SECRET=$(openssl rand -base64 40 | sed 's/\//\\\//g') sed -i -e "s/SECRET_KEY = ''/SECRET_KEY = \'$RAND_SECRET\'/" \ /usr/share/cobbler/web/settings.py fi #DEBHELPER# debian/pycompat0000664000000000000000000000000212301346173010737 0ustar 2 debian/cobbler.init0000775000000000000000000000424412301346173011474 0ustar #!/bin/sh # # cobblerd Cobbler helper daemon ################################### ### BEGIN INIT INFO # Provides: cobblerd # Required-Start: $network $remote_fs # Required-Stop: $remote_fs # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Cobbler daemon # Description: This is a daemon that a provides remote cobbler API # and status tracking ### END INIT INFO # Sanity checks. [ -x /usr/bin/cobblerd ] || exit 0 # Source function library. . /lib/lsb/init-functions SERVICE=cobblerd PROCESS=cobblerd CONFIG_ARGS=" " LOCKFILE=/var/lock/$SERVICE WSGI=/usr/share/cobbler/web/cobbler.wsgi RETVAL=0 start() { echo -n "Starting cobbler daemon: " if [ -f $LOCKFILE ]; then echo -n "already started, lock file found" RETVAL=1 elif /usr/bin/python /usr/bin/cobblerd; then echo -n "OK" RETVAL=0 fi RETVAL=$? echo [ $RETVAL -eq 0 ] && touch $LOCKFILE [ -f $WSGI ] && touch $WSGI return $RETVAL } stop() { echo -n "Stopping cobbler daemon: " # Added this since Debian's start-stop-daemon doesn't support spawned processes, will remove # when cobblerd supports stopping or PID files. if ps -ef | grep "/usr/bin/python /usr/bin/cobblerd" | grep -v grep | awk '{print $2}' | xargs kill &> /dev/null; then echo -n "OK" RETVAL=0 else echo -n "Daemon is not started" RETVAL=1 fi RETVAL=$? echo if [ $RETVAL -eq 0 ]; then rm -f $LOCKFILE rm -f /var/run/$SERVICE.pid fi } restart() { stop start } # See how we were called. case "$1" in start|stop|restart) $1 ;; status) if [ -f $LOCKFILE ]; then RETVAL=0 echo "cobblerd is running." else RETVAL=1 echo "cobblerd is stopped." fi ;; condrestart) [ -f $LOCKFILE ] && restart || : ;; reload) echo "can't reload configuration, you have to restart it" RETVAL=$? ;; force-reload) restart ;; *) echo "Usage: $0 {start|stop|status|restart|condrestart|reload}" exit 1 ;; esac exit $RETVAL debian/control0000664000000000000000000001145712301350111010566 0ustar Source: cobbler Section: misc Priority: optional Maintainer: Timo Aaltonen Build-Depends: debhelper (>= 9), po-debconf, python-all, python-cheetah, python-yaml, git-core, python-setuptools, python-netaddr, python-nose, python-simplejson, XS-Python-Version: 2.7 Standards-Version: 3.9.5 Homepage: https://cobbler.github.com Vcs-Git: git://anonscm.debian.org/collab-maint/cobbler.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/cobbler.git Package: cobbler Architecture: all Depends: ${misc:Depends}, ${python:Depends}, apache2, hardlink, libapache2-mod-wsgi, libjs-jquery, lsb-release, openssl, python, python-twisted, rsync, syslinux | syslinux-common, libapache2-mod-wsgi, libapache2-mod-python, cobbler-common (= ${binary:Version}), distro-info Replaces: cobbler-common (<< 2.4.0-1) Recommends: fence-agents, powerwake, tftpd-hpa Suggests: createrepo, bind9, debmirror, dhcp3-server, genisoimage, Description: Install server Cobbler is a network install server. Cobbler supports PXE, virtualized installs, and reinstalling existing Linux machines. The last two modes use a helper tool, 'koan', that integrates with cobbler. Cobbler's advanced features include importing distributions from DVDs and rsync mirrors, kickstart templating, integrated yum mirroring, and built-in DHCP/DNS Management. Cobbler has a Python and XMLRPC API for integration with other applications. There is also a web interface. Package: python-cobbler Section: python Architecture: all Depends: ${python:Depends}, python-yaml, python-netaddr, python-cheetah, python-simplejson, python-urlgrabber, python-django (>= 1.2), python-distro-info, ${misc:Depends} Provides: ${python:Provides} Description: Install server - python libraries. Cobbler is a network install server. Cobbler supports PXE, virtualized installs, and reinstalling existing Linux machines. The last two modes use a helper tool, 'koan', that integrates with cobbler. Cobbler's advanced features include importing distributions from DVDs and rsync mirrors, kickstart templating, integrated yum mirroring, and built-in DHCP/DNS Management. Cobbler has a Python and XMLRPC API for integration with other applications. There is also a web interface. . This package includes the cobbler python modules. Package: cobbler-common Architecture: all Depends: ${misc:Depends}, python-cobbler (= ${binary:Version}) Provides: ${python:Provides} Description: Cobbler Install server - common files Cobbler is a network install server. Cobbler supports PXE, virtualized installs, and reinstalling existing Linux machines. The last two modes use a helper tool, 'koan', that integrates with cobbler. Cobbler's advanced features include importing distributions from DVDs and rsync mirrors, kickstart templating, integrated yum mirroring, and built-in DHCP/DNS Management. Cobbler has a Python and XMLRPC API for integration with other applications. There is also a web interface. . This package includes the common files. Package: cobbler-web Architecture: all Depends: cobbler (= ${binary:Version} ), cobbler-common (= ${binary:Version} ), ${misc:Depends}, openssl, apache2-utils, Provides: ${python:Provides} Description: Cobbler Install server - web interface Cobbler is a network install server. Cobbler supports PXE, virtualized installs, and reinstalling existing Linux machines. The last two modes use a helper tool, 'koan', that integrates with cobbler. Cobbler's advanced features include importing distributions from DVDs and rsync mirrors, kickstart templating, integrated yum mirroring, and built-in DHCP/DNS Management. Cobbler has a Python and XMLRPC API for integration with other applications. There is also a web interface. . This package includes the web interface and its corresponding configuration files. Package: koan Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-koan, libvirt-bin, virtinst Description: kickstart-over-a-network (koan) Koan stands for kickstart-over-a-network and allows for both network installation of new virtualized guests and re-installation of an existing system. For use with a boot-server configure with Cobbler. Package: python-koan Section: python Architecture: all Depends: ${python:Depends}, ${misc:Depends}, python-libvirt, python-simplejson, python-urlgrabber, python-ethtool Provides: ${python:Provides} Conflicts: python-cobbler (<= 2.1.0~bzr2002-0ubuntu2) Replaces: python-cobbler (<= 2.1.0~bzr2002-0ubuntu2) Description: kickstart-over-a-network (koan) - python libraries Koan stands for kickstart-over-a-network and allows for both network installation of new virtualized guests and re-installation of an existing system. For use with a boot-server configure with Cobbler. . This package includes the koan python modules. debian/cobbler.lintian-overrides0000664000000000000000000000032612301346173014161 0ustar # Purely provided as a web resource, never executed locally. cobbler: script-not-executable var/lib/cobbler/webroot/cobbler/aux/anamon cobbler: script-not-executable var/lib/cobbler/webroot/cobbler/aux/anamon.init debian/cobbler.links0000664000000000000000000000012312301346173011636 0ustar etc/cobbler/ubuntu-server.preseed var/lib/cobbler/kickstarts/ubuntu-server.preseed debian/cobbler.preinst0000664000000000000000000000074412301346173012213 0ustar #!/bin/sh set -e # Fix world-readable permissions on /etc/cobbler/users.digest if upgrading # from a version which had it set incorrectly by default, the file is still # there and still has the original incorrect permissions (LP: #858860). if [ "$1" = "upgrade" ] \ && dpkg --compare-versions "$2" lt "2.2.2-0ubuntu14" \ && [ -f /etc/cobbler/users.digest \ -a `stat -c%a /etc/cobbler/users.digest` = "644" ]; then chmod 600 /etc/cobbler/users.digest fi #DEBHELPER# debian/cobbler.manpages0000664000000000000000000000012712301346173012315 0ustar debian/manpages/cobblerd.1 debian/manpages/tftpd.1 debian/manpages/cobbler-ext-nodes.1 debian/cobbler.docs0000664000000000000000000000000712301346173011447 0ustar README debian/manpages/0000775000000000000000000000000012301346173010763 5ustar debian/manpages/cobblerd.10000664000000000000000000000075112301346173012624 0ustar .TH cobblerd "1" .SH NAME \fBcobblerd\fP \- Cobbler service daemon .SH SYNOPSIS Usage: \- cobblerd [options] .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-B\fR, \fB\-\-daemonize\fR run in background (default) .TP \fB\-F\fR, \fB\-\-no\-daemonize\fR run in foreground (do not daemonize) .TP \fB\-f\fR NAME, \fB\-\-log\-file\fR=\fINAME\fR file to log to .TP \fB\-l\fR LEVEL, \fB\-\-log\-level\fR=\fILEVEL\fR log level (ie. INFO, WARNING, ERROR, CRITICAL) debian/manpages/cobbler-ext-nodes.10000664000000000000000000000025612301346173014364 0ustar .TH cobbler\-ext\-nodes "1" .SH NAME \fBcobbler\-ext\-nodes\fP \- Cobbler external nodes script for puppet integration. .SH SYNOPSIS usage: \- cobbler\-ext\-nodes debian/manpages/tftpd.10000664000000000000000000000430712301346173012172 0ustar .TH tftpd "1" .SH NAME \fBtftpd\fP \- Cobbler tftpd service .SH SYNOPSIS .IP tftpd [\-h,\-\-help] [\-v,\-\-verbose] [\-d,\-\-debug] [\-\-version] .IP [\-\-port=(69)] .SH DESCRIPTION .PP A python, cobbler integrated TFTP server. It is suitable to call via xinetd, or as a stand\-alone daemon. If called via xinetd, it will run, handling requests, until it has been idle for at least 30 seconds, and will then exit. .PP This server queries cobbler for information about hosts that make requests, and will instantiate template files from the materialized hosts' \&'fetchable_files' attribute. .PP AUTHOR .IP Douglas Kilpatrick .PP LICENSE .IP This script is in the public domain, free from copyrights or restrictions .PP VERSION .IP 0.5 .PP TODO .IP Requirement: retransmit Requirement: Ignore stale retrainsmits Security: only return files that are o+r Security: support hosts.allow/deny Security: Make absolute path support optional, and default off Feature: support blksize2 (blksize, limited to powers of 2) Feature: support utimeout (timeout, in ms) .SH OPTIONS .TP \fB\-\-version\fR show program's version number and exit .TP \fB\-h\fR, \fB\-\-help\fR show this help message and exit .TP \fB\-v\fR, \fB\-\-verbose\fR Increase output verbosity .TP \fB\-d\fR, \fB\-\-debug\fR Debug (vastly increases output verbosity) .TP \fB\-c\fR, \fB\-\-cache\fR Use a cache to help find hosts w/o IP address .TP \fB\-\-cache\-time\fR=\fICACHE_TIME\fR How long an ip\->name mapping is valid .TP \fB\-\-neg\-cache\-time\fR=\fINEG_CACHE_TIME\fR How long an ip\->name mapping is valid .TP \fB\-\-file_cmd\fR=\fIFILE_CMD\fR The location of the 'file' command .TP \fB\-\-idle\fR=\fIIDLE\fR How long to wait for input .TP \fB\-\-logger\fR=\fILOGGER\fR How to log .TP \fB\-\-max_blksize\fR=\fIMAX_BLKSIZE\fR The maximum block size to permit .TP \fB\-\-port\fR=\fIPORT\fR The port to bind to for new requests .TP \fB\-\-prefix\fR=\fIPREFIX\fR Where files are stored by default [/var/lib/tftpboot] .TP \fB\-\-timeout\fR=\fITIMEOUT\fR How long to wait for a given request .TP \fB\-\-user\fR=\fIUSER\fR The user to run as [nobody] .TP \fB\-B\fR MAX_BLKSIZE alias for \fB\-\-max\-blksize\fR, for in.tftpd compatibility debian/changelog0000664000000000000000000010515412301350253011042 0ustar cobbler (2.4.1-0ubuntu2) trusty; urgency=medium * add-trusty.diff: Fix a typo. -- Timo Aaltonen Thu, 20 Feb 2014 11:52:50 +0200 cobbler (2.4.1-0ubuntu1) trusty; urgency=medium * Merge from unreleased debian git - new upstream release (LP: #1278898) -- Timo Aaltonen Thu, 13 Feb 2014 23:24:48 +0200 cobbler (2.4.1-1) UNRELEASED; urgency=low * New upstream release. - works with python-django 1.4 and up (LP: #1076290) - cobbler system edit emits an error on failure (LP: #1015678) - rework power commands to not allow command injection (LP: #978999) * Dropped patches: - 12_fix_dhcp_restart.patch: obsolete. - 21_cobbler_use_netboot.patch: obsolete - 34_fix_apache_wont_start.patch: obsolete - 39_cw_remove_vhost.patch: obsolete - 42_fix_repomirror_create_sync.patch: upstream - 43_fix_reposync_env_variable.patch: upstream - 45_add_gpxe_support.patch: implemented differently upstream - 46_valid_hostname_for_dns.patch: upstream - 47_ubuntu_add_codenames.patch: obsolete - 48_ubuntu_mini_iso_autodetect.patch: obsolete - 51_koan_grub2_instead_of_grubby.patch: upstream - 53_sample_preseed_kopts_postinst.patch: upstream - 54_koan_fix_tree_when_ksmeta.patch: upstream - 56_ubuntu_arm_generate_pxe_files.patch: upstream - 57_ubuntu_dnsmasq_domain.patch: obsolete - 58_fix_egg_cache.patch: upstream - 60_yaml_safe_load.patch: upstream - 62_profile_hostname_no_underscore.patch: upstream - 63_fix_arch_in_mirror_path.patch: upstream - 64_ubuntu_cobbler_check_disable_loaders.patch: ubuntuism - 67_ubuntu_online_doc_link.patch: ubuntuism - 69_issue93_fix_trace_in_write_pxe_file.patch: upstream - 72-BUGFIX-issue-117-incorrect-permissions-on-files-in-v.patch: upstream * rules: Replace the old get-orig-source target with gentarball, which generates the tarball from the upstream git branch. * cobbler-common.install: Install the correct gpxe template. * cobbler.postinst: Enable mod_rewrite. * Refresh patches. * rules: Use --list-missing for dh_install. * Migrate /usr/share/cobbler/webroot to /var/lib/cobbler/webroot. * rules, cobbler-common.install: Remove some files from the tmpdir that are not needed in the package(s), and let cobbler-common include everything left in etc/cobbler. * control: Bump policy to 3.9.5, no changes. * cobbler.install, control: Install cobbler(1) with the binary, replace old cobbler-common. * cobbler.install: Include ovz-install. * cobbler-common.install, 65_ubuntu_disable_pxe_snippet.patch: Replace the patch with snippet/disable_pxe, which is included in cobbler-common. * python-cobbler.install: Install egg-info. * cobbler-web.postinst: Generate a random key for SECURITY_KEY in settings.py. * cobbler{,-web}.post{inst,rm}: Migrate to Apache 2.4. (LP: #1224006) * cobbler-web: Depend on apache2-utils because postinst uses htpasswd. * control, copyright: Update upstream url. * control: Update maintainer. * compat, control: Bump compat to 9. * use-django-conf-urls.diff: Backport a fix for new django. * control, rules: Drop embedded jquery.min.js, depend on the packaged one. * cobbler.init: Include an initscript. * add-trusty.diff: Add signature for trusty tahr. * control: Add Vcs headers. -- Timo Aaltonen Thu, 22 Nov 2012 11:13:11 +0200 cobbler (2.4.0-0ubuntu4) saucy; urgency=low * cobbler-web: Depend on apache2-utils. (LP: #1224887) -- Timo Aaltonen Fri, 13 Sep 2013 13:45:29 +0300 cobbler (2.4.0-0ubuntu3) saucy; urgency=low * cobbler{,-web}.post{inst,rm}: Migrate to Apache 2.4. (LP: #1224006) -- Timo Aaltonen Thu, 12 Sep 2013 14:45:41 +0300 cobbler (2.4.0-0ubuntu2) saucy; urgency=low * cobbler-web.postinst: Generate a random key for SECURITY_KEY in settings.py. -- Timo Aaltonen Thu, 29 Aug 2013 19:32:56 +0300 cobbler (2.4.0-0ubuntu1) saucy; urgency=low * Merge from unreleased debian git. -- Timo Aaltonen Thu, 29 Aug 2013 18:54:28 +0300 cobbler (2.2.2-0ubuntu37) raring; urgency=low * debian/patches/72-BUGFIX-issue-117-incorrect-permissions-on-files-in-v.patch: correct wrong usage of os.umask() on cobbler/api.py, cobbler/cobblerd.py, and cobbler/serializer.py. Imported from Upstream. (LP: #967815) -- C de-Avillez Sun, 09 Sep 2012 11:17:13 -0500 cobbler (2.2.2-0ubuntu36) quantal; urgency=low * debian/README.Debian: Add Warning note mentioning that XMLRPC API allows unauthenticated access to certain API methods. (LP: #858867) -- Andres Rodriguez Tue, 07 Aug 2012 11:01:53 -0400 cobbler (2.2.2-0ubuntu35) quantal-proposed; urgency=low * debian/patches/70_replace_pxe_menu_title.patch: Not need to change PXE BOOt menu title to other than default -- Andres Rodriguez Thu, 26 Jul 2012 16:07:55 -0400 cobbler (2.2.2-0ubuntu34) quantal; urgency=low * debian/cobbler.config: Do not fail to install if cannot determine default IP address. (LP: #1001846) -- Andres Rodriguez Fri, 29 Jun 2012 16:29:21 -0400 cobbler (2.2.2-0ubuntu33) precise; urgency=low * debian/patches/71_fix_tftp_bin_name.patch: Specify the correct name of cobbler's internal tftpd server binary file, to not fail. (LP: #967430) -- Andres Rodriguez Tue, 10 Apr 2012 12:33:17 -0400 cobbler (2.2.2-0ubuntu32) precise; urgency=low * replace static list of Ubuntu release names with dependency on distro-info in cobbler and and python-distro-info in python-cobbler (LP: #949442) * check signature of MD5SUMS.gpg against ubuntu-keyring, and verify that downloaded content matches expected (LP: #974460) -- Scott Moser Mon, 09 Apr 2012 22:08:22 -0400 cobbler (2.2.2-0ubuntu31) precise; urgency=low * debian/cobbler.postrm: Do not use apache2ctl, use invoke-rc.d instead. * debian/cobbler-ubuntu-import: exit 0 if updates are needed. -- Andres Rodriguez Mon, 26 Mar 2012 13:52:12 -0400 cobbler (2.2.2-0ubuntu30) precise; urgency=low * debian/cobbler.postinst: Do not use apache2ctl, use invoke-rc.d instead otherwise it will fail during CD installation; add db_stop. * debian/cobbler.postrm: cleanup. -- Andres Rodriguez Fri, 23 Mar 2012 15:48:37 -0400 cobbler (2.2.2-0ubuntu29) precise; urgency=low * debian/patches/70_replace_pxe_menu_title.patch: Change PXE Menu title. -- Andres Rodriguez Thu, 22 Mar 2012 17:25:56 -0400 cobbler (2.2.2-0ubuntu28) precise; urgency=low * debian/control: - Switch Recomends on hardlink to Depends. - Switch Recommends on debmirror to Suggests. -- Andres Rodriguez Wed, 21 Mar 2012 21:30:26 -0400 cobbler (2.2.2-0ubuntu27) precise; urgency=low * cobbler-ubuntu-import: provide a static list of releases rather than depending on distro-info for '--update-existing' function * reduce distro-info from Recommends to Suggests. This is because it is not in main. -- Scott Moser Mon, 19 Mar 2012 15:13:39 -0400 cobbler (2.2.2-0ubuntu26) precise; urgency=low * cobbler-ubuntu-import: Fix checking for descendants in reassign_distro() in order to move the old profiles and systems using them to the new distro, instead of losing them when the old distro is removed. -- Timo Aaltonen Mon, 19 Mar 2012 13:01:10 +0200 cobbler (2.2.2-0ubuntu25) precise; urgency=low * cobbler-ubuntu-import: Fix a typo, so -U option actually works. (LP: #959085) * cobbler-ubuntu-import: Fix passing arguments to 'cobbler distro find', so the importer doesn't fail. (LP: #959088) -- Timo Aaltonen Mon, 19 Mar 2012 11:25:58 +0200 cobbler (2.2.2-0ubuntu24) precise; urgency=low * Make debconf questions low priority (LP: #956518) * debian/cobbler.postinst: Correctly determine IP of interface with default route. * Update po to update template changes. -- Andres Rodriguez Fri, 16 Mar 2012 15:21:59 -0400 cobbler (2.2.2-0ubuntu23) precise; urgency=low * cobbler-ubuntu-import: be more quiet when downloading images by using wget --progress=dot:mega. * cobbler-ubuntu-import: create dependent '-auto' profiles that contain the necessary kickstart and kernel options for automated install -- Scott Moser Thu, 15 Mar 2012 15:47:05 -0400 cobbler (2.2.2-0ubuntu22) precise; urgency=low [C de-Avillez] * fix stack trace in write_pxe_file (LP: #943000) -- Scott Moser Wed, 07 Mar 2012 16:03:12 -0500 cobbler (2.2.2-0ubuntu21) precise; urgency=low * Allow API to work without installing cobbler-web, as it now only installs the WebUI. (LP: #942725) -- Andres Rodriguez Wed, 29 Feb 2012 17:19:26 -0500 cobbler (2.2.2-0ubuntu20) precise; urgency=low * debian/patches: - 67_ubuntu_online_doc_link.patch: Change 'Online Documentation' link to Ubuntu wiki one. (LP: #918372) - 68_ubuntu_cdu_power_template.patch: Add a power template for a Sentry Switch CDU. (LP: #927921) -- Andres Rodriguez Mon, 06 Feb 2012 17:33:23 -0500 cobbler (2.2.2-0ubuntu19) precise; urgency=low * Remove remaining Ubuntu branding (LP: #891977) - debian/logo-ubuntu.png: removed; cobbler-web.install: not install logo; debian/control: Remove Dep on ttf-ubuntu-font-family; cobbler-web.postinst: Do not create font symlinks. * debian/patches/65_ubuntu_disable_pxe_snippet.patch: Add disable PXE snippet. (LP: #914017) * 66_use_eth0_mac_for_poweron_etherwake.patch: Use MAC of eth0 if power_address has not being defined. (LP: #912476) -- Andres Rodriguez Wed, 01 Feb 2012 12:58:43 -0500 cobbler (2.2.2-0ubuntu18) precise; urgency=low * debian/patches/63_fix_arch_in_mirror_path.patch: Fix double-adding the arch on the mirror path. (LP: #918796) * debian/patches/64_ubuntu_cobbler_check_disable_loaders.patch: Disable check for external bootloaders. Only check for syslinux. (LP: #918350) -- Andres Rodriguez Wed, 01 Feb 2012 11:04:11 -0500 cobbler (2.2.2-0ubuntu17) precise; urgency=low * cobbler-ubuntu-import: fix update-existing to only update distros formated as '-' -- Scott Moser Fri, 27 Jan 2012 13:09:38 +0000 cobbler (2.2.2-0ubuntu16) precise; urgency=low * cobbler-ubuntu-import: fix bug where 'amd64' arch was not actually supported. * cobbler-ubuntu-import: add '--update-existing' flag for updating all existin ubuntu distros. Also fix issues where multiple codename-arch arguments were not being honored. -- Scott Moser Mon, 23 Jan 2012 12:22:36 +0100 cobbler (2.2.2-0ubuntu15) precise; urgency=low * debian/control: Depends on virtinst for koan. (LP: #918281) * debian/patches/54_koan_fix_tree_when_ksmeta.patch: Update to obtain correct tree for mini ISO's that have repo_mirror. (LP: #918286) -- Andres Rodriguez Wed, 18 Jan 2012 13:50:40 -0500 cobbler (2.2.2-0ubuntu14) precise; urgency=low * debian/cobbler.preinst: fix /etc/cobbler/users.digest if upgrading from a version that set it world readable (LP: #858860). -- Robie Basak Thu, 05 Jan 2012 09:13:13 +0000 cobbler (2.2.2-0ubuntu13) precise; urgency=low * debian/patches/62_profile_hostname_no_underscore.patch: Replace underscore with dash for the hostname. -- Andres Rodriguez Wed, 04 Jan 2012 14:23:54 -0500 cobbler (2.2.2-0ubuntu12) precise; urgency=low * remove python-cobbler postinst script entirely. * cobbler-ubuntu-import: fix bug that cleaned http_proxy from the environment if no --proxy was given * cobbler-ubuntu-import: respect long arguments of --proxy and --update -- Scott Moser Thu, 22 Dec 2011 12:11:39 -0500 cobbler (2.2.2-0ubuntu11) precise; urgency=low * remove use of update-python-modules in python-cobbler (LP: #907525) -- Scott Moser Wed, 21 Dec 2011 16:19:24 -0500 cobbler (2.2.2-0ubuntu10) precise; urgency=low * debian/patches/56_ubuntu_arm_generate_pxe_files.patch: Updated to add ARM based profiles into the PXE Menu list. (LP: #901780) -- Andres Rodriguez Thu, 08 Dec 2011 12:22:16 -0500 cobbler (2.2.2-0ubuntu9) precise; urgency=low * debian/cobbler.{postinst,config}: Fix setting of server and next_server on installation. Also allow reconfigure. (LP: #898673) -- Andres Rodriguez Wed, 07 Dec 2011 17:33:16 -0500 cobbler (2.2.2-0ubuntu8) precise; urgency=low * debian/cobbler-ubuntu-import: On distro import, also reassign *all* descendent profiles not just Orchestra-specific profiles (ie, $rel-$arch). Preserves user-added profiles associated with updated distros (LP: #900977) -- Adam Gandelman Tue, 06 Dec 2011 16:18:21 -0800 cobbler (2.2.2-0ubuntu7) precise; urgency=low * debian/patches: - 45_add_gpxe_support.patch: Updated to only use menu.gpxe when gpxe is enabled and not always. (LP: #8417268) - 61_ubuntu_pxe_chainc32_default.patch: Use chain.c32 for localboot, rather than 'LOCALBOOT -1' by default. (LP: #898838) -- Andres Rodriguez Tue, 06 Dec 2011 17:15:41 -0500 cobbler (2.2.2-0ubuntu6) precise; urgency=low * Fix typo in cobbler-common.install which caused the gpxe template to be shipped in /exists instead of the usual location under /etc. -- Loïc Minier Thu, 24 Nov 2011 14:00:01 +0100 cobbler (2.2.2-0ubuntu5) precise; urgency=low * debian/cobbler-ubuntu-import: Support wget'ing via a proxy via -p argument, correct error so that $ISO_DIR actually gets created if it doesn't exist. (LP: #892409) -- Adam Gandelman Tue, 22 Nov 2011 15:36:38 -0500 cobbler (2.2.2-0ubuntu4) precise; urgency=low * debian/copyright: Re-arrange and add missing license paragraphs to make it lintian clean. (LP: #892001) -- Andres Rodriguez Tue, 22 Nov 2011 12:44:41 -0500 cobbler (2.2.2-0ubuntu3) precise; urgency=low * debian/patches/47_ubuntu_add_codenames.patch: - Updated to add missing codenames in cobbler/codes.py. -- Andres Rodriguez Thu, 17 Nov 2011 20:40:30 -0500 cobbler (2.2.2-0ubuntu2) precise; urgency=low * debian/cobbler-common.install: Install missing files. - etc/cobbler/mongodb.conf (LP: #891527) - etc/cobbler/ldap/ldap_authconfig.template - etc/cobbler/iso/buildiso.template - etc/cobbler/pxe/gpxemenu.template exists - etc/cobbler/pxe/pxeprofile_esxi.template - etc/cobbler/pxe/pxesystem_esxi.template -- Andres Rodriguez Thu, 17 Nov 2011 10:38:58 -0500 cobbler (2.2.2-0ubuntu1) precise; urgency=low [Chuck Short] * New upstream release: + Use dh_python2 everywhere. + Folded debian/patches/49_ubuntu_add_arm_arch_support.patch and debian/patches/56_ubuntu_arm_generate_pxe_files.patch into one patch for easier upstreaming. + Dropped debian/patches/50_fix_cobbler_timezone.patch: Fix upstream. + Dropped debian/patches/47_ubuntu_add_oneiric_codename.patch in favor of debian/patches/47_ubuntu_add_codenames.patch: It adds "precise" and drops unsupported releases as well. + Dropped debian/patches/41_update_tree_path_with_arch.patch: No longer needed. + Dropped debian/patches/55_ubuntu_branding.patch: Will be moved to orchestra [Clint Byrum] * debian/cobbler.postinst: create users.digest mode 0600 so it is not world readable. (LP: #858860) * debian/control: cobbler needs to depend on python-cobbler (LP: #863738) * debian/patches/58_fix_egg_cache.patch: Do not point dangerous PYTHON_EGG_CACHE at world writable directory. (LP: #858875) * debian/cobbler-common.install: remove users.digest as it is not required and contains a known password that would leave cobblerd vulnerable if started before configuration is done * debian/cobbler-web.postinst: fix perms on webui_sessions to be more secure (LP: #863755) [Robie Basak] * Backport safe YAML load from upstream. (LP: #858883) -- Chuck Short Tue, 15 Nov 2011 12:35:40 -0500 cobbler (2.1.0+git20110602-0ubuntu27) precise; urgency=low [ Adam Gandelman ] * debian/cobbler-ubuntu-import: - Check update pockets for releases on download and update check. (LP: #850880 ) - Allow '-u' to upgrade existing profiles to a newer version of an ISO. (LP: #850886) - '-v' to allow debug msgs. [ Andres Rodriguez ] * debian/patches: - 42_fix_repomirror_create_sync.patch: Updated to correctly create the mirror. (LP: #872926) * debian/cobbler-web.postrm: Remove symlinks that were created on postinst. (LP: #872892) -- Andres Rodriguez Mon, 24 Oct 2011 19:29:26 -0400 cobbler (2.1.0+git20110602-0ubuntu26) oneiric; urgency=low * debian/cobbler-ubuntu-import: Add --check-update and --remove functionality. This should help orchestra-import-isos keep local ISO caches up-to-date. (LP: #850892) -- Adam Gandelman Thu, 15 Sep 2011 16:36:39 -0700 cobbler (2.1.0+git20110602-0ubuntu25) oneiric; urgency=low * debian/cobbler-common.install: Install missing pxeprofile_arm.template and pxesystem_arm.template (LP: #844982). -- Andres Rodriguez Thu, 08 Sep 2011 13:01:55 -0400 cobbler (2.1.0+git20110602-0ubuntu24) oneiric; urgency=low * debian/cobbler-web.postinst: Correctly handle creation/validation of links for the Ubuntu font for cobbler-web. (LP: #840188) -- Andres Rodriguez Tue, 06 Sep 2011 14:11:49 -0400 cobbler (2.1.0+git20110602-0ubuntu23) oneiric; urgency=low * debian/patches/57_ubuntu_dnsmasq_domain.patch: Add commented 'domain' field on dnsmasq template to be later used by orchestra. (LP: #834172) -- Andres Rodriguez Thu, 01 Sep 2011 20:08:17 -0400 cobbler (2.1.0+git20110602-0ubuntu22) oneiric; urgency=low * cobbler-web: Localize use of Ubuntu fonts, add ttf-ubuntu-font-family as Depends. (LP #834868) -- Adam Gandelman Fri, 26 Aug 2011 12:58:21 -0700 cobbler (2.1.0+git20110602-0ubuntu21) oneiric; urgency=low * debian/patches/52_ubuntu_default_config.patch: Update. Add 'orchestra' to cheetah_import_whitelist -- Andres Rodriguez Tue, 23 Aug 2011 17:35:45 -0400 cobbler (2.1.0+git20110602-0ubuntu20) oneiric; urgency=low * debian/patches: - 49_ubuntu_add_arm_arch_support.patch: Updated to allow import of ARM arch. (LP: #827674) - 56_ubuntu_arm_generate_pxe_files.patch: Added. Add templates and generate files for PXE Menu creation for profile/systems. (LP: #827681) Additionally make sure hostname is set correctly. * Add preseed for ARM architectures. - debian/ubuntu-server-arm.seed: Add - debian/cobbler.install: Install preseed. -- Andres Rodriguez Wed, 17 Aug 2011 12:22:53 -0400 cobbler (2.1.0+git20110602-0ubuntu19) oneiric; urgency=low * debian/cobbler-ubuntu-import: - move the loop_mount logic over from orchestra-import-isos (which now uses cobbler-ubuntu-import) -- Dustin Kirkland Thu, 11 Aug 2011 13:02:11 -0500 cobbler (2.1.0+git20110602-0ubuntu18) oneiric; urgency=low * debian/patches/55_ubuntu_branding.patch, debian/patches/series, web/content/logo-ubuntu.png: - skin the web interface with Ubuntu colors/logo - fix install location, move png to right location -- Dustin Kirkland Wed, 10 Aug 2011 16:12:18 -0500 cobbler (2.1.0+git20110602-0ubuntu17) oneiric; urgency=low * Fix description of cobbler-web package. -- Loïc Minier Thu, 28 Jul 2011 11:55:50 +0200 cobbler (2.1.0+git20110602-0ubuntu16) oneiric; urgency=low * debian/cobbler.postinst: Drop. Causes purge to fail (LP: #805901) * debian/control: Depend on libapache2-mod-wsgi for cobbler-web (LP: #790038) -- Andres Rodriguez Tue, 19 Jul 2011 18:13:59 -0400 cobbler (2.1.0+git20110602-0ubuntu15) oneiric; urgency=low * debian/cobbler-ubuntu-import: add tool for importing Ubuntu releases -- Scott Moser Tue, 12 Jul 2011 14:27:34 -0400 cobbler (2.1.0+git20110602-0ubuntu14) oneiric; urgency=low * debian/patches/54_koan_fix_tree_when_ksmeta.patch: Ensure ks_meta args are not added to tree when obtaining it. -- Andres Rodriguez Tue, 12 Jul 2011 12:10:40 -0400 cobbler (2.1.0+git20110602-0ubuntu13) oneiric; urgency=low * debian/patches: - 52_ubuntu_default_config.patch: Rename/update patch created by quilt for changes to config/settings. - 53_sample_preseed_kopts_postinst.patch: Add post inst kernel options to sample preseed. (LP: #760019) -- Andres Rodriguez Tue, 05 Jul 2011 12:45:32 -0400 cobbler (2.1.0+git20110602-0ubuntu12) oneiric; urgency=low * config/settings: - default kernel options on install to en_US and priority=critical, to prevent interactive remote installs - default virt settings to kvm-friendly virbr0 and qemu - default power management to ether_wake - default preseed to an Ubuntu preseed - default to pxe boot just once to prevent boot loops * debian/cobbler.install, debian/cobbler.links, debian/ubuntu-server.preseed: - create and install an ubuntu-server.preseeed -- Dustin Kirkland Wed, 29 Jun 2011 12:07:23 +0000 cobbler (2.1.0+git20110602-0ubuntu11) oneiric; urgency=low * debian/patches/51_koan_grub2_instead_of_grubby.patch: Use grub2 for koan's '--replace-self' option instead of grubby. (LP: #766229) -- Andres Rodriguez Tue, 28 Jun 2011 17:02:53 -0400 cobbler (2.1.0+git20110602-0ubuntu10) oneiric; urgency=low * debian/patches/50_fix_cobbler_timezone.patch: Dont hardcode timezone in the web interface. -- Chuck Short Tue, 28 Jun 2011 11:55:14 +0100 cobbler (2.1.0+git20110602-0ubuntu9) oneiric; urgency=low * debian/patches/49_ubuntu_add_arm_arch_support.patch: Add arm as a valid architecture. -- Chuck Short Mon, 27 Jun 2011 07:30:23 -0400 cobbler (2.1.0+git20110602-0ubuntu8) oneiric; urgency=low * debian/control: Recommends on fence-agents. -- Andres Rodriguez Mon, 20 Jun 2011 11:09:33 -0400 cobbler (2.1.0+git20110602-0ubuntu7) oneiric; urgency=low * debian/patches: - 47_ubuntu_add_oneiric_codename.patch: Add oneiric codename to not fail on Oneiric imports. - 48_ubuntu_mini_iso_autodetect.patch: Obtain os_version/arch when importing mini ISO from info file (.disk/mini-info). -- Andres Rodriguez Fri, 17 Jun 2011 18:12:54 -0400 cobbler (2.1.0+git20110602-0ubuntu6) oneiric; urgency=low * debian/patches/45_add_gpxe_support.patch: Added missing ')', fixing installability. -- Dave Walker (Daviey) Fri, 10 Jun 2011 18:22:08 +0100 cobbler (2.1.0+git20110602-0ubuntu4) oneiric; urgency=low * debian/patches/45_add_gpxe_support.patch: Add gpxe booting support to cobbler. Apart of the server-o-cobbler-next-steps specification. * debian/patches/46_valid_hostname_for_dns.patch: "_" is not a valid character for a hostname use "-" instead. (LP: #784420) -- Chuck Short Thu, 09 Jun 2011 09:40:58 -0400 cobbler (2.1.0+git20110602-0ubuntu3) oneiric; urgency=low * debian/patches/42_fix_repomirror_create_sync.patch: Improve method to obtain Ubuntu mirror to use if python-apt installed. * debian/cobbler.postinst: Really fix setting of 'server'. Move the logic to obtain IP to debian/cobbler.config and set it default if available. * Un-apply all patches and remove .pc. IMO branches should not reflect patches applied as they generate huge diff's when updating or working with them. -- Andres Rodriguez Wed, 08 Jun 2011 17:21:45 -0400 cobbler (2.1.0+git20110602-0ubuntu2) oneiric; urgency=low * debian/cobbler.templates: Re-introduce i18n support and refresh template. * NOTE: The Following patches were NOT really dropped and SHOULD not be. - debian/patches/41_update_tree_path_with_arch.patch - debian/patches/42_fix_repomirror_create_sync.patch -- Andres Rodriguez Fri, 03 Jun 2011 15:20:26 -0400 cobbler (2.1.0+git20110602-0ubuntu1) oneiric; urgency=low [Chuck Short] * New upstream version: - Dropped the following patches, already accepted upstream: + debian/patches/31_add_ubuntu_koan_utils_support.patch + debian/patches/32_fix_koan_import_yum.patch + debian/patches/36_tainted_file_path.patch + debian/patches/37_koan_install_tree.patch + debian/patches/38_koan_qcreate_ubuntu_support.patch + debian/patches/41_update_tree_path_with_arch.patch + debian/patches/42_fix_repomirror_create_sync.patch + debian/patches/42_fix_repomirror_create_sync.patch [Andres Rodriguez] * debian/cobbler.{templates, config, postinst}: Add debconf question to set next_server and server config options. -- Chuck Short Fri, 03 Jun 2011 09:25:37 -0400 cobbler (2.1.0-0ubuntu11) oneiric; urgency=low * Fixed Lintian error/warnings. (LP: #705436) - debian/{po/,control,cobbler.templates}: Added I18N support to debconf template file. - debian/control: + Bumped Standards Version to 3.9.2 (no changes needed) + Changed python-koan binary package to section python. - debian/copyright: + Updated Free Software Foundation (FSF) postal address. + Removed reference to base-files BSD licence. - debian/patches/44_cobbler_manpage_syntax_fix.patch: Fix manpage to not generate errors with pod2man. - debian/{rules,cobbler.install}: Drop file extension to /usr/sbin/tftpd.py - debian/cobbler.postrm: Set -e on shebang. - debian/cobbler-web.lintian-overrides: Overide warning of scripts which are purely provided as a web resource, never executed locally. - debian/cobbler.manpages, debian/manpages/{cobbler-ext-nodes.1,cobblerd.1, tftpd.1}: Initial manpages created. * debian/control: Added Depends on python-twisted which is required by cobblers tftpd. -- Dave Walker (Daviey) Fri, 03 Jun 2011 13:09:09 +0100 cobbler (2.1.0-0ubuntu10) oneiric; urgency=low * debian/cobbler.postinst: - fix minor error in the grep from the last upload, fixing cobbler settings * debian/control: - drop cman from suggests; fence-agents will land in the archive very soon and should be added as a recommends -- Dustin Kirkland Thu, 02 Jun 2011 17:15:02 -0400 cobbler (2.1.0-0ubuntu9) oneiric; urgency=low * debian/cobbler.postinst: - set server and next_server in the initial cobbler settings, so as to make it more useful out of the box * debian/control: - fix upstream URL, LP: #791101 -- Dustin Kirkland Tue, 31 May 2011 18:48:43 -0500 cobbler (2.1.0-0ubuntu8) oneiric; urgency=low * debian/patches: - 41_update_tree_path_with_arch.patch: Update mirror_name to correctly reflect path tree patch when specifying arch on import. (LP: #772012) - 42_fix_repomirror_create_sync.patch: Fix the creation of a disabled repo mirror; enables apt as a repo. (LP: #765224) - 43_fix_reposync_env_variable.patch: Fix reposync HOME env variable for debmirror by hardcoding to /var/lib/cobbler. (LP: #775946) -- Andres Rodriguez Mon, 02 May 2011 18:26:03 -0400 cobbler (2.1.0-0ubuntu7) natty; urgency=low * Fixed management of bind9 (LP: #764391): - debian/patches/40_ubuntu_bind9_management.patch: - Manage bind9 instead of named daemon. - Generate configuration in /etc/bind. - Use default bind9 configuration as much as possible. - debian/control: Added Suggests: bind9 to cobbler. -- James Page Mon, 18 Apr 2011 11:15:59 +0100 cobbler (2.1.0-0ubuntu6) natty; urgency=low * Fix DocumentRoot conflict with default vhost (LP: #760012) - debian/patches/39_cw_remove_vhost.patch: Remove VirtualHost definition. -- James Page Fri, 15 Apr 2011 13:35:20 +0100 cobbler (2.1.0-0ubuntu5) natty; urgency=low * Fix koan launch of Ubuntu images in KVM (LP: #751959). - debian/patches/37_koan_install_tree.patch: Obtain install tree for Ubuntu/Debian differently as we use preseeds rather than kickstarts. - debian/patches/38_koan_qcreate_ubuntu_support.patch: Add ubuntu support when creating images on KVM. Used for communication with virtinst. * debian/patches/debian-changes-2.1.0-0ubuntu4: Dropped automatically created quilt patch. -- Andres Rodriguez Thu, 07 Apr 2011 13:25:13 -0400 cobbler (2.1.0-0ubuntu4) natty; urgency=low * debian/patches/36_tainted_file_path.patch: cherry-pick fix to tainted file path errors, LP: #750402 -- Dustin Kirkland Mon, 04 Apr 2011 13:14:13 -0500 cobbler (2.1.0-0ubuntu3) natty; urgency=low [ Andres Rodriguez ] * Really create/install python-koan binary package, LP: #731616 - debian/control: Add binary package. Depend on python-ethtool. - debian/python-koan.install: Install koan python modules. * debian/patches/35_fix_hardlink_bin_path.patch: - Fix hardlink tool bin path and arguments as hardlink in Ubuntu/Debian is a different tool from other distros (Fedora/RHEL). [ Dustin Kirkland] * debian/cobbler.templates, debian/cobbler.config, debian/cobbler.postinst: - add a debconf question for the cobbler user's password - update the cobbler/admin user's password in cobbler/settings * debian/control: - depend on openssl, which we use to update the password in cobbler/settings * debian/patches/33_authn_configfile.patch: - move from denyall to configfile authentication now that the password is debconf-managed; makes cobbler work out of the box, LP: #741661 * debian/patches/34_fix_apache_wont_start.patch: - comment out line that's causing Apache to fail to start, LP: #741661 * debian/cobbler.postinst, debian/cobbler.postrm: - fix installation errors associated with restarting apache2 here - a2enmod wsgi * debian/cobbler-web.dirs, debian/cobbler-web.postinst: - must create/chown web sessions directory to www-data for the web ui to be usable, LP: #741661 -- Dustin Kirkland Mon, 04 Apr 2011 12:55:44 -0500 cobbler (2.1.0-0ubuntu2) natty; urgency=low * debian/rules: clean out manpage zipfiles, so that rebuilds work, LP: #746847 * debian/cobbler-web.postinst: LP: #746854 - fix broken link - use ln -sf so that upgrades work -- Dustin Kirkland Thu, 31 Mar 2011 19:23:29 -0500 cobbler (2.1.0-0ubuntu1) natty; urgency=low * New upstream release. * Make it a bit more easier to configure cobbler_web (LP: #741661) * Drop java dependencies since cobbler4j is no longer shipped upstream. -- Chuck Short Thu, 31 Mar 2011 08:54:56 -0400 cobbler (2.1.0~bzr2005-0ubuntu2) natty; urgency=low * debian/patches/31_add_ubuntu_koan_utils_support.patch: Add support for ubuntu distro in koan utils.py. * debian/patches/32_fix_koan_import_yum.patch: Fix import error of yum python module; adds flexibility for other package managers. (LP: #731620) -- Andres Rodriguez Fri, 11 Mar 2011 16:02:48 -0500 cobbler (2.1.0~bzr2005-0ubuntu1) natty; urgency=low [Chuck Short] * New upstream release. [Andres Rodriguez] * Add python-koan package (LP: #731616): - debian/control: Add python-koan binary package; fix typo - debian/python-cobbler.install: Do not install koan python modules. - debian/python-koan.install: Add. Install koan python modules. -- Chuck Short Fri, 11 Mar 2011 07:59:55 -0500 cobbler (2.1.0~bzr2002-0ubuntu1) natty; urgency=low * New upstream release. -- Chuck Short Fri, 25 Feb 2011 14:47:03 -0500 cobbler (2.1.0~bzr1998-0ubuntu1) natty; urgency=low * New upstream release. * Dropped: - debian/patches/01-ubuntu-webroot.patch: Accepted upstream. - debian/patches/04-logfile-check.patch: Accepted upstream. - debian/patches/05_fix_init_paths.patch: Accepted upstream. - debian/patches/11_support-other-wol-tools.patch: Accepted upstream. - debian/patches/22_re-enable_debmirror.patch: Accepted upstream. - debian/patches/03-localboot-value.patch: Accepted upstream. * debian/control: Add python-all as a build dependency. * debian/patches/05_cobbler_fix_reposync_permissions.patch: Fix reposync permissions. (LP: #710757) * debian/patches/12_fix_dhcp_restart.patch: Fix dhcp restart. (LP: #709723) -- Chuck Short Fri, 28 Jan 2011 14:39:12 -0500 cobbler (2.1.0~bzr1988-0ubuntu1) natty; urgency=low [Chuck Short] * New upstram release. * Re-added get-orig-source to make it easier to make a tarball. * Dropped 02_install-layout.patch * Added Debian/README.Source * Reworked webroot patch * debian/cobbler-common.install: Don't put the init script in /etc/cobbler. (LP: #705441) * debian/patches/05_fix_init_paths.patch: Don't hard code init paths (LP: #706995) [Dave Walker (Daviey)] * debian/control: For binary package koan, do not depend on cobbler as it should be functional separately. However, the additional dependency of libvirt-bin has been added. (LP: #707113) [ Clint Byrum ] * debian/patches/series: remove 02_install-layout.patch -- Clint Byrum Tue, 25 Jan 2011 16:46:04 -0800 cobbler (2.1.0~bzr1881-0ubuntu1) natty; urgency=low [Chuck Short] * Initial release [Dave Walker (Daviey)] * Imported upstream snapshot r1881 * Refreshed and cleaned patches * debian/control: Updated maintainer to match current policy * debian/patches/series: Removed patch that was previously dropped * debian/patches/*: Added initial DEP-3 patch tagging. * debian/patches/03-localboot-value.patch: Changed localboot value to be more reliable with later versions of (sys|pxe)linux. * debian/rules: Removed get-orig-source as it is currently not required. [Clint Byrum] * debian/copyright: changed to DEP5 format and added license/copyright info where applicable. [James Page] * Added libcobbler4j-java package. -- Dave Walker (Daviey) Tue, 18 Jan 2011 12:03:14 +0000 debian/po/0000775000000000000000000000000012301346173007606 5ustar debian/po/POTFILES.in0000664000000000000000000000005412301346173011362 0ustar [type: gettext/rfc822deb] cobbler.templates debian/po/templates.pot0000664000000000000000000000455612301346173012342 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: cobbler\n" "Report-Msgid-Bugs-To: cobbler@packages.debian.org\n" "POT-Creation-Date: 2012-03-16 12:50-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: password #. Description #: ../cobbler.templates:1001 msgid "New password for the \"cobbler\" user:" msgstr "" #. Type: password #. Description #: ../cobbler.templates:1001 msgid "" "It is highly recommended that you set a password for the administrative " "\"cobbler\" user." msgstr "" #. Type: password #. Description #: ../cobbler.templates:1001 msgid "" "You can also run password reconfiguration later by executing 'dpkg-" "reconfigure -plow cobbler'." msgstr "" #. Type: password #. Description #: ../cobbler.templates:1001 msgid "" "Note that you can easily add users to cobbler later with:\n" " sudo htdigest /etc/cobbler/users.digest \"Cobbler\" USERNAME" msgstr "" #. Type: string #. Description #: ../cobbler.templates:2001 msgid "Set the Boot and PXE server IP address:" msgstr "" #. Type: string #. Description #: ../cobbler.templates:2001 msgid "" "For kickstart and PXE features to work properly, it is important to set the " "correct IP addresses in the fields \"server\" and \"next_server\" in \"/etc/" "cobbler/settings\"." msgstr "" #. Type: string #. Description #: ../cobbler.templates:2001 msgid "" "The \"server\" field must be set to something other than localhost, or " "kickstart features will not work. This should be a resolvable hostname or " "IP for the boot server as reachable by all machines that will use it." msgstr "" #. Type: string #. Description #: ../cobbler.templates:2001 msgid "" "The \"next_server\" field must be set to something other than 127.0.0.1, and " "should match the IP address of the boot server on the PXE network." msgstr "" #. Type: string #. Description #: ../cobbler.templates:2001 msgid "" "Note that these values will try to be automatically detected, however they " "can be manually edited in \"/etc/cobbler/settings\"." msgstr "" debian/cobbler.install0000664000000000000000000000052712301346173012174 0ustar usr/bin/cobbler usr/bin/cobblerd usr/bin/cobbler-ext-nodes usr/bin/ovz-install usr/sbin/tftpd usr/share/man/man1/cobbler.1.gz debian/ubuntu-server.preseed etc/cobbler/ debian/cobbler-ubuntu-import.conf etc/cobbler/ debian/ubuntu-server-arm.seed var/lib/cobbler/kickstarts/ debian/cobbler-ubuntu-import usr/bin/ var/lib/cobbler/webroot/cobbler debian/rules0000775000000000000000000000362212301346173010253 0ustar #!/usr/bin/make -f # Verbose mode # export DH_VERBOSE=1 RELEASE_VERSION := 2005 %: dh $@ --with python2 override_dh_auto_build: [ -d excluded_files/cobbler ] || mkdir -p excluded_files/cobbler [ -d excluded_files/koan ] || mkdir -p excluded_files/koan mv -f cobbler/sub_process.py excluded_files/cobbler mv -f koan/sub_process.py excluded_files/koan mv -f koan/opt_parse.py excluded_files/koan mv -f koan/text_wrap.py excluded_files/koan python setup.py build override_dh_auto_clean: dh_auto_clean if [ -d excluded_files/cobbler ] ; then \ mv excluded_files/cobbler/* cobbler ;\ fi if [ -d excluded_files/koan ] ; then \ mv excluded_files/koan/* koan ;\ fi if [ -d excluded_files ] ; then \ rm -rf excluded_files ;\ fi rm -f docs/*.gz override_dh_auto_test: nosetests cobbler/*.py || true override_dh_auto_install: python setup.py install -f --install-layout=deb --root=$(CURDIR)/debian/tmp mv $(CURDIR)/debian/tmp/usr/sbin/tftpd.py $(CURDIR)/debian/tmp/usr/sbin/tftpd chmod -x $(CURDIR)/debian/tmp/var/lib/cobbler/webroot/cobbler/svc/services.py override_dh_install: # remove files we don't want or need for i in \ etc/init.d/cobblerd \ etc/apache2/conf.d/cobbler.conf \ etc/apache2/conf.d/cobbler_web.conf \ etc/cobbler/cobblerd.service \ etc/cobbler/distro_signatures.json \ etc/cobbler/users.digest \ var/lib/cobbler/webroot/cobbler_webui_content/jquery.min.js \ ;do rm -f $(CURDIR)/debian/tmp/$$i; done # link to the system jquery.min.js ln -s -t $(CURDIR)/debian/tmp/var/lib/cobbler/webroot/cobbler_webui_content \ /usr/share/javascript/jquery/jquery.min.js dh_install --list-missing # For maintainer use only, generate a tarball: gentarball: SOURCE=cobbler gentarball: UV=$(shell dpkg-parsechangelog|awk '/^Version:/ {print $$2}'|sed 's/-.*$$//') gentarball: git archive --format=tar upstream-unstable --prefix=$(SOURCE)-$(UV)/ | gzip -9 > ../$(SOURCE)_$(UV).orig.tar.gz debian/cobbler-web.install0000664000000000000000000000010412301346173012736 0ustar usr/share/cobbler/web var/lib/cobbler/webroot/cobbler_webui_content debian/README.Debian0000664000000000000000000000075112301346173011234 0ustar ################################## ########### WARNING ############## ################################## XMLRPC allows unauthed users access to various methods Various methods from the XMLRPC API can be accessed without authentication credentials. These might impose security risks. Upstream maintainer has stated that this is not considered a bug and it will not be fixed upstream. For this reason, this bug won't be fixed in Ubuntu either. LP: https://bugs.launchpad.net/bugs/858867 debian/README.source0000664000000000000000000000042112301346173011344 0ustar This package uses quilt to manage patches; see: /usr/share/doc/quilt/README.source To generate a pristine tarball for release: fakeroot debian/rules get-orig-source Patches are applied against the pristine tarball and to build debs use the pristine tarball as well. debian/ubuntu-server.preseed0000664000000000000000000000516212301346173013373 0ustar # Ubuntu Server Quick Install # by Dustin Kirkland # * Documentation: http://bit.ly/uquick-doc d-i debian-installer/locale string en_US.UTF-8 d-i debian-installer/splash boolean false d-i console-setup/ask_detect boolean false d-i console-setup/layoutcode string us d-i console-setup/variantcode string d-i netcfg/get_nameservers string d-i netcfg/get_ipaddress string d-i netcfg/get_netmask string 255.255.255.0 d-i netcfg/get_gateway string d-i netcfg/confirm_static boolean true d-i clock-setup/utc boolean true d-i partman-auto/method string regular d-i partman-lvm/device_remove_lvm boolean true d-i partman-lvm/confirm boolean true d-i partman/confirm_write_new_label boolean true d-i partman/choose_partition select Finish partitioning and write changes to disk d-i partman/confirm boolean true d-i partman/confirm_nooverwrite boolean true d-i partman/default_filesystem string ext3 d-i clock-setup/utc boolean true d-i clock-setup/ntp boolean true d-i clock-setup/ntp-server string ntp.ubuntu.com d-i base-installer/kernel/image string linux-server d-i passwd/root-login boolean false d-i passwd/make-user boolean true d-i passwd/user-fullname string ubuntu d-i passwd/username string ubuntu d-i passwd/user-password-crypted password $6$.1eHH0iY$ArGzKX2YeQ3G6U.mlOO3A.NaL22Ewgz8Fi4qqz.Ns7EMKjEJRIW2Pm/TikDptZpuu7I92frytmk5YeL.9fRY4. d-i passwd/user-uid string d-i user-setup/allow-password-weak boolean false d-i user-setup/encrypt-home boolean false d-i passwd/user-default-groups string adm cdrom dialout lpadmin plugdev sambashare d-i apt-setup/services-select multiselect security d-i apt-setup/security_host string security.ubuntu.com d-i apt-setup/security_path string /ubuntu d-i debian-installer/allow_unauthenticated string false d-i pkgsel/upgrade select safe-upgrade d-i pkgsel/language-packs multiselect d-i pkgsel/update-policy select none d-i pkgsel/updatedb boolean true d-i grub-installer/skip boolean false d-i lilo-installer/skip boolean false d-i grub-installer/only_debian boolean true d-i grub-installer/with_other_os boolean true d-i finish-install/keep-consoles boolean false d-i finish-install/reboot_in_progress note d-i cdrom-detect/eject boolean true d-i debian-installer/exit/halt boolean false d-i debian-installer/exit/poweroff boolean false d-i pkgsel/include string openssh-server debian/cobbler-common.install0000664000000000000000000000042412301346173013456 0ustar etc/cobbler/ var/lib/cobbler/config var/lib/cobbler/distro_signatures.json var/lib/cobbler/kickstarts var/lib/cobbler/loaders var/lib/cobbler/snippets var/lib/cobbler/scripts var/lib/cobbler/triggers var/lib/cobbler/webui_sessions debian/snippets/* /var/lib/cobbler/snippets/ debian/compat0000664000000000000000000000000212301346173010366 0ustar 9 debian/cobbler-ubuntu-import.conf0000664000000000000000000000052612301346173014302 0ustar ## configuration for cobbler-ubuntu-import # DEFAULT_MIRROR="http://archive.ubuntu.com/ubuntu" ## the AUTO_KOPTS and AUTO_PRESEED affect the --auto profile # AUTO_KOPTS="log_host=@@server@@ log_port=514 priority=critical locale=en_US netcfg/choose_interface=auto" # AUTO_PRESEED="/var/lib/cobbler/kickstarts/ubuntu-server.preseed" debian/cobbler.upstart0000664000000000000000000000046412301346173012230 0ustar # cobbler - provisioning service # # Cobbler is a provisioning service description "Cobbler" author "Dustin Kirkland " start on filesystem and net-device-up stop on runlevel [016] respawn # To add options to your daemon, edit the line below: exec /usr/bin/cobblerd --no-daemonize debian/copyright0000664000000000000000000005270612301346173011135 0ustar Format: http://dep.debian.net/deps/dep5/ Upstream-Contact: Michael DeHaan Source: http://cobbler.github.com Removed cobbler/sub_process.py, koan/opt_parse.py, koan/text_wrap.py, koan/sub_process.py from source to avoid license ambiguity (these are included in modern python distributions). Also removed pres/ dir as the license is unclear and it is just relevant on the cobbler website. Copyright: Copyright (C) 2009 Red Hat, Inc Comment: This package was debianized by Jasper Capel on Wed, 11 Feb 2009 22:50:37 +0100. . The following is the original copyright statement by Jasper Capel . The Debian packaging is (C) 2009, Jasper Capel and is licensed under the GPL, see `/usr/share/common-licenses/GPL'. . Additional work by the Canonical Server Team, attributed below. Files: debian/* Copyright: 2009, Jasper Capel 2010-2011 Canonical Ltd. 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 as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . 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 program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. . On Ubuntu and 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'. Files: * Copyright: 2006-2010 RedHat, Inc License: GPL-2+ Files: cobbler/collection_packages.py Copyright: 2010, Kelsey Hightower License: GPL-2+ Files: cobbler/item_mgmtclass.py Copyright: 2010, Kelsey Hightower License: GPL-2+ Files: cobbler/collection_files.py Copyright: 2010, Kelsey Hightower License: GPL-2+ Files: cobbler/configgen.py Copyright: 2010, Kelsey Hightower License: GPL-2+ Files: cobbler/collection_mgmtclasses.py Copyright: 2010, Kelsey Hightower License: GPL-2+ Files: cobbler/item_file.py Copyright: 2006-2009 MadHatter License: GPL-2+ Files: cobbler/item_package.py Copyright: 2006-2009 MadHatter License: GPL-2+ Files: config/cobbler_bash Copyright: 2008 John L. Villalovos License: GPL-2+ Files: tests/pycallgraph_mod.py Copyright: 2007 Gerald Kaszuba License: GPL-2+ Files: koan/configurator.py Copyright: 2010, Kelsey Hightower License: GPL-2+ Files: cobbler4j/src/* Copyright: 2009 Red Hat, Inc. License: GPL-2 This software is licensed to you under the GNU General Public License, version 2 (GPLv2). There is NO WARRANTY for this software, express or implied, including the implied warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 along with this software; if not, see http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. Files: contrib/ruby/* Copyright: 2008-2009 RedHat, Inc License: LGPL-2.1+ rubygem-cobbleris free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 of the License, or (at your option) any later version. . rubygem-cobbler 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 rubygem-cobbler. If not, see . . On Ubuntu and Debian systems, the full text of the GNU General Public License version 2 can be found in the file `/usr/share/common-licenses/LGPL-2.1'. Files: koan/opt_parse.py Comment: Copied from Optik v1.5.3 to support older python releases. Not installed in any binary packages. Copyright: 2001-2006 Gregory P. Ward. 2002-2006 Python Software Foundation License: BSD Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. 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. 3. Neither the name of the University nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. Files: koan/sub_process.py cobbler/sub_process.py Comment: Copied from Python 2.4 to support older python releases. Not installed in any binary packages. Copyright: 2003-2005 Peter Astrand License: Python A. HISTORY OF THE SOFTWARE ========================== . Python was created in the early 1990s by Guido van Rossum at Stichting Mathematisch Centrum (CWI, see http://www.cwi.nl) in the Netherlands as a successor of a language called ABC. Guido remains Python's principal author, although it includes many contributions from others. . In 1995, Guido continued his work on Python at the Corporation for National Research Initiatives (CNRI, see http://www.cnri.reston.va.us) in Reston, Virginia where he released several versions of the software. . In May 2000, Guido and the Python core development team moved to BeOpen.com to form the BeOpen PythonLabs team. In October of the same year, the PythonLabs team moved to Digital Creations (now Zope Corporation, see http://www.zope.com). In 2001, the Python Software Foundation (PSF, see http://www.python.org/psf/) was formed, a non-profit organization created specifically to own Python-related Intellectual Property. Zope Corporation is a sponsoring member of the PSF. . All Python releases are Open Source (see http://www.opensource.org for the Open Source Definition). Historically, most, but not all, Python releases have also been GPL-compatible; the table below summarizes the various releases. . Release Derived Year Owner GPL- from compatible? (1) . 0.9.0 thru 1.2 1991-1995 CWI yes 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes 1.6 1.5.2 2000 CNRI no 2.0 1.6 2000 BeOpen.com no 1.6.1 1.6 2001 CNRI yes (2) 2.1 2.0+1.6.1 2001 PSF no 2.0.1 2.0+1.6.1 2001 PSF yes 2.1.1 2.1+2.0.1 2001 PSF yes 2.2 2.1.1 2001 PSF yes 2.1.2 2.1.1 2002 PSF yes 2.1.3 2.1.2 2002 PSF yes 2.2.1 2.2 2002 PSF yes 2.2.2 2.2.1 2002 PSF yes 2.2.3 2.2.2 2003 PSF yes 2.3 2.2.2 2002-2003 PSF yes 2.3.1 2.3 2002-2003 PSF yes 2.3.2 2.3.1 2002-2003 PSF yes 2.3.3 2.3.2 2002-2003 PSF yes 2.3.4 2.3.3 2004 PSF yes 2.4 2.3 2004 PSF yes . Footnotes: . (1) GPL-compatible doesn't mean that we're distributing Python under the GPL. All Python licenses, unlike the GPL, let you distribute a modified version without making your changes open source. The GPL-compatible licenses make it possible to combine Python with other software that is released under the GPL; the others don't. . (2) According to Richard Stallman, 1.6.1 is not GPL-compatible, because its license has a choice of law clause. According to CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1 is "not incompatible" with the GPL. . Thanks to the many outside volunteers who have worked under Guido's direction to make these releases possible. . . B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON =============================================================== . PSF LICENSE AGREEMENT FOR PYTHON 2.4 ------------------------------------ . 1. This LICENSE AGREEMENT is between the Python Software Foundation ("PSF"), and the Individual or Organization ("Licensee") accessing and otherwise using Python 2.4 software in source or binary form and its associated documentation. . 2. Subject to the terms and conditions of this License Agreement, PSF hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python 2.4 alone or in any derivative version, provided, however, that PSF's License Agreement and PSF's notice of copyright, i.e., "Copyright (c) 2001, 2002, 2003, 2004 Python Software Foundation; All Rights Reserved" are retained in Python 2.4 alone or in any derivative version prepared by Licensee. . 3. In the event Licensee prepares a derivative work that is based on or incorporates Python 2.4 or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python 2.4. . 4. PSF is making Python 2.4 available to Licensee on an "AS IS" basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 2.4 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. . 5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 2.4 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 2.4, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. . 6. This License Agreement will automatically terminate upon a material breach of its terms and conditions. . 7. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between PSF and Licensee. This License Agreement does not grant permission to use PSF trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party. . 8. By copying, installing or otherwise using Python 2.4, Licensee agrees to be bound by the terms and conditions of this License Agreement. . . BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 ------------------------------------------- . BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 . 1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the Individual or Organization ("Licensee") accessing and otherwise using this software in source or binary form and its associated documentation ("the Software"). . 2. Subject to the terms and conditions of this BeOpen Python License Agreement, BeOpen hereby grants Licensee a non-exclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use the Software alone or in any derivative version, provided, however, that the BeOpen Python License is retained in the Software, alone or in any derivative version prepared by Licensee. . 3. BeOpen is making the Software available to Licensee on an "AS IS" basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. . 4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. . 5. This License Agreement will automatically terminate upon a material breach of its terms and conditions. . 6. This License Agreement shall be governed by and interpreted in all respects by the law of the State of California, excluding conflict of law provisions. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between BeOpen and Licensee. This License Agreement does not grant permission to use BeOpen trademarks or trade names in a trademark sense to endorse or promote products or services of Licensee, or any third party. As an exception, the "BeOpen Python" logos available at http://www.pythonlabs.com/logos.html may be used according to the permissions granted on that web page. . 7. By copying, installing or otherwise using the software, Licensee agrees to be bound by the terms and conditions of this License Agreement. . . CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1 --------------------------------------- . 1. This LICENSE AGREEMENT is between the Corporation for National Research Initiatives, having an office at 1895 Preston White Drive, Reston, VA 20191 ("CNRI"), and the Individual or Organization ("Licensee") accessing and otherwise using Python 1.6.1 software in source or binary form and its associated documentation. . 2. Subject to the terms and conditions of this License Agreement, CNRI hereby grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, analyze, test, perform and/or display publicly, prepare derivative works, distribute, and otherwise use Python 1.6.1 alone or in any derivative version, provided, however, that CNRI's License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) 1995-2001 Corporation for National Research Initiatives; All Rights Reserved" are retained in Python 1.6.1 alone or in any derivative version prepared by Licensee. Alternately, in lieu of CNRI's License Agreement, Licensee may substitute the following text (omitting the quotes): "Python 1.6.1 is made available subject to the terms and conditions in CNRI's License Agreement. This Agreement together with Python 1.6.1 may be located on the Internet using the following unique, persistent identifier (known as a handle): 1895.22/1013. This Agreement may also be obtained from a proxy server on the Internet using the following URL: http://hdl.handle.net/1895.22/1013". . 3. In the event Licensee prepares a derivative work that is based on or incorporates Python 1.6.1 or any part thereof, and wants to make the derivative work available to others as provided herein, then Licensee hereby agrees to include in any such work a brief summary of the changes made to Python 1.6.1. . 4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. . 5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON 1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. . 6. This License Agreement will automatically terminate upon a material breach of its terms and conditions. . 7. This License Agreement shall be governed by the federal intellectual property law of the United States, including without limitation the federal copyright law, and, to the extent such U.S. federal law does not apply, by the law of the Commonwealth of Virginia, excluding Virginia's conflict of law provisions. Notwithstanding the foregoing, with regard to derivative works based on Python 1.6.1 that incorporate non-separable material that was previously distributed under the GNU General Public License (GPL), the law of the Commonwealth of Virginia shall govern this License Agreement only as to issues arising under or with respect to Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this License Agreement shall be deemed to create any relationship of agency, partnership, or joint venture between CNRI and Licensee. This License Agreement does not grant permission to use CNRI trademarks or trade name in a trademark sense to endorse or promote products or services of Licensee, or any third party. . 8. By clicking on the "ACCEPT" button where indicated, or by copying, installing or otherwise using Python 1.6.1, Licensee agrees to be bound by the terms and conditions of this License Agreement. . ACCEPT . . CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 -------------------------------------------------- . Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, The Netherlands. All rights reserved. . Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of Stichting Mathematisch Centrum or CWI not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. . STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. Files: koan/text_wrap.py Copyright: 1999-2001 Gregory P. Ward. 2002, 2003 Python Software Foundation Comment: Copied in the same operation as koan/sub_process.py License: Python see above Files: web/content/jquery-*.js Copyright: 2009 John Resig 2009 The Dojo Foundation License: MIT, BSD, or GPL-2 * Dual licensed under the MIT and GPL licenses. * http://docs.jquery.com/License . Full text of MIT license from https://github.com/jquery/jquery/blob/master/MIT-LICENSE.txt Which is referenced at docs.jquery.com/License . 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. . * Released under the MIT, BSD, and GPL Licenses. * More information: http://sizzlejs.com/ . Files: obsolete/cli_report.py Copyright: 2008 Red Hat, Inc. Comment: Specifies GPL but does not specify the version. Assuming the version in COPYING is to be used. License: GPL-2 This software may be freely redistributed under the terms of the GNU general public license.: . You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. Files: scripts/tftpd.py Copyright: n/a License: PD LICENSE This script is in the public domain, free from copyrights or restrictions 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 as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . 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 program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . On Ubuntu and 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'. debian/cobbler.postinst0000664000000000000000000000405312301346173012407 0ustar #!/bin/sh -e . /usr/share/debconf/confmodule db_version 2.0 if dpkg --compare-versions "$2" lt-nl 2.4.0~beta2; then rm -f /var/www/cobbler ln -sf /var/lib/cobbler/webroot/cobbler /var/www/cobbler cp -pR /usr/share/cobbler/webroot/cobbler/* /var/lib/cobbler/webroot/cobbler/ && \ rm -fr /usr/share/cobbler/webroot/cobbler fi # migrate to apache2.4 if dpkg --compare-versions "$2" le-nl 2.4.0-0ubuntu2; then mv /etc/apache2/conf.d/cobbler.conf /etc/apache2/conf-enabled/ fi if ([ "$1" = "configure" ] && [ -z "$2" ]) || [ "$1" = "reconfigure" ] || [ -n "$DEBCONF_RECONFIGURE" ]; then # Set cobbler's password db_get cobbler/password || true password="$RET" hash=$(printf "cobbler:Cobbler:$password" | md5sum | awk '{print $1}') [ -e /etc/cobbler/users.digest ] || install -o root -g root -m 0600 /dev/null /etc/cobbler/users.digest htpasswd -D /etc/cobbler/users.digest "cobbler" || true printf "cobbler:Cobbler:$hash\n" >> /etc/cobbler/users.digest hash=$(printf "$password" | openssl passwd -1 -stdin) sed -i "s%^default_password_crypted:.*%default_password_crypted: \"$hash\"%" /etc/cobbler/settings db_get cobbler/server_and_next_server || true ipaddr="$RET" db_set cobbler/server_and_next_server "$ipaddr" if grep -qs "^next_server: *..*..*..*$" /etc/cobbler/settings; then sed -i "s/^next_server: *..*..*..*$/next_server: $ipaddr/" /etc/cobbler/settings fi if grep -qs "^server: *..*..*..*$" /etc/cobbler/settings; then sed -i "s/^server: *..*..*..*$/server: $ipaddr/" /etc/cobbler/settings fi # Enable required apache modules a2enmod proxy_http a2enmod wsgi a2enmod rewrite # Install cobbler files and web config for API ln -sf /var/lib/cobbler/webroot/cobbler /var/www/cobbler if [ ! -e /etc/apache2/conf-enabled/cobbler_web.conf ]; then ln -sf /etc/cobbler/cobbler.conf /etc/apache2/conf-enabled/cobbler.conf fi # Need to restart apache to pickup web configs if [ -x /usr/sbin/invoke-rc.d ]; then invoke-rc.d apache2 restart || true else /etc/init.d/apache2 restart || true fi fi db_stop #DEBHELPER# exit 0 debian/cobbler-common.dirs0000664000000000000000000000036312301346173012753 0ustar etc/cobbler etc/cobbler/power etc/cobbler/pxe etc/cobbler/reporting etc/cobbler/zone_templates var/log/cobbler/anamon var/log/cobbler/kicklog var/log/cobbler/syslog var/log/cobbler/tasks usr/share/cobbler usr/share/cobbler/installer_templates debian/ubuntu-server-arm.seed0000664000000000000000000000536312301346173013444 0ustar # Ubuntu Server Quick Install # by Dustin Kirkland # * Documentation: http://bit.ly/uquick-doc d-i debian-installer/locale string en_US.UTF-8 d-i debian-installer/splash boolean false d-i console-setup/ask_detect boolean false d-i console-setup/layoutcode string us d-i console-setup/variantcode string d-i netcfg/get_nameservers string d-i netcfg/get_ipaddress string d-i netcfg/get_netmask string 255.255.255.0 d-i netcfg/get_gateway string d-i netcfg/confirm_static boolean true d-i mirror/country string manual d-i mirror/http/hostname string ports.ubuntu.com d-i mirror/http/directory string /ubuntu-ports d-i clock-setup/utc boolean true d-i partman-auto/method string regular d-i partman-lvm/device_remove_lvm boolean true d-i partman-lvm/confirm boolean true d-i partman/confirm_write_new_label boolean true d-i partman/choose_partition select Finish partitioning and write changes to disk d-i partman/confirm boolean true d-i partman/confirm_nooverwrite boolean true d-i partman/default_filesystem string ext3 d-i clock-setup/utc boolean true d-i clock-setup/ntp boolean true d-i clock-setup/ntp-server string ntp.ubuntu.com d-i base-installer/kernel/image string linux-server d-i passwd/root-login boolean false d-i passwd/make-user boolean true d-i passwd/user-fullname string ubuntu d-i passwd/username string ubuntu d-i passwd/user-password-crypted password $6$.1eHH0iY$ArGzKX2YeQ3G6U.mlOO3A.NaL22Ewgz8Fi4qqz.Ns7EMKjEJRIW2Pm/TikDptZpuu7I92frytmk5YeL.9fRY4. d-i passwd/user-uid string d-i user-setup/allow-password-weak boolean false d-i user-setup/encrypt-home boolean false d-i passwd/user-default-groups string adm cdrom dialout lpadmin plugdev sambashare d-i apt-setup/services-select multiselect security d-i apt-setup/security_host string security.ubuntu.com d-i apt-setup/security_path string /ubuntu d-i debian-installer/allow_unauthenticated string false d-i pkgsel/upgrade select safe-upgrade d-i pkgsel/language-packs multiselect d-i pkgsel/update-policy select none d-i pkgsel/updatedb boolean true d-i grub-installer/skip boolean false d-i lilo-installer/skip boolean false d-i grub-installer/only_debian boolean true d-i grub-installer/with_other_os boolean true d-i finish-install/keep-consoles boolean false d-i finish-install/reboot_in_progress note d-i cdrom-detect/eject boolean true d-i debian-installer/exit/halt boolean false d-i debian-installer/exit/poweroff boolean false d-i pkgsel/include string openssh-server debian/cobbler.dirs0000664000000000000000000000010212301346173011454 0ustar usr/bin usr/sbin var/lib/cobbler/kickstarts /var/lib/cobbler/isos debian/cobbler.postrm0000664000000000000000000000075212301346173012052 0ustar #!/bin/sh set -e if [ "$1" = "purge" ] ; then rm -rf /var/www/cobbler rm -rf /var/lib/cobbler/webroot/cobbler # Remove symlinks created for apache if [ -h /etc/apache2/conf-enabled/cobbler.conf ]; then rm -rf /etc/apache2/conf-enabled/cobbler.conf fi # now that configuration is gone, restart apache w/o it if [ -x /usr/sbin/invoke-rc.d ]; then invoke-rc.d apache2 restart >/dev/null || true else /etc/init.d/apache2 restart >/dev/null || true fi fi #DEBHELPER# exit 0