diff options
-rw-r--r-- | compass-cobbler/Dockerfile | 37 | ||||
-rw-r--r-- | compass-cobbler/README.md | 2 | ||||
-rw-r--r-- | compass-cobbler/cobbler.conf | 60 | ||||
-rw-r--r-- | compass-cobbler/cobbler_web.conf | 17 | ||||
-rw-r--r-- | compass-cobbler/distro_signatures.json | 1008 | ||||
-rwxr-xr-x | compass-cobbler/start.sh | 7 |
6 files changed, 1131 insertions, 0 deletions
diff --git a/compass-cobbler/Dockerfile b/compass-cobbler/Dockerfile new file mode 100644 index 0000000..2c68b64 --- /dev/null +++ b/compass-cobbler/Dockerfile @@ -0,0 +1,37 @@ +FROM compassindocker/systemd-base +ENV container docker +VOLUME [ "/sys/fs/cgroup" ] + +# pkgs and services... +RUN yum -y update && \ + yum -y install epel-release && \ + yum -y install wget dhcp bind syslinux pykickstart file initscripts net-tools tcpdump xinetd vim avahi avahi-tools && \ + wget ftp://mirror.switch.ch/pool/4/mirror/fedora/linux/updates/22/armhfp/c/cobbler-2.6.10-1.fc22.noarch.rpm && \ + wget ftp://mirror.switch.ch/pool/4/mirror/fedora/linux/updates/22/armhfp/c/cobbler-web-2.6.10-1.fc22.noarch.rpm && \ + yum -y localinstall cobbler-2.6.10-1.fc22.noarch.rpm cobbler-web-2.6.10-1.fc22.noarch.rpm && \ + rm -f cobbler-2.6.10-1.fc22.noarch.rpm cobbler-web-2.6.10-1.fc22.noarch.rpm && \ + systemctl enable cobblerd && \ + systemctl enable httpd && \ + systemctl enable dhcpd && \ + systemctl enable xinetd + +# some tweaks on services +RUN sed -i -e 's/\(^.*disable.*=\) yes/\1 no/' /etc/xinetd.d/tftp && \ + touch /etc/xinetd.d/rsync + +RUN mkdir -p /var/www/cblr_ks + +COPY distro_signatures.json /var/lib/cobbler/distro_signatures.json +COPY start.sh /usr/local/bin/start.sh +RUN mv /etc/httpd/conf.d/cobbler_web.conf /etc/httpd/conf.d/cobbler_web.conf.bk +COPY cobbler_web.conf /etc/httpd/conf.d/cobbler_web.conf +RUN mv /etc/httpd/conf.d/cobbler.conf /etc/httpd/conf.d/cobbler.conf.bk +COPY cobbler.conf /etc/httpd/conf.d/cobbler.conf +RUN mkdir -p /var/www/pip-openstack +VOLUME ["/var/lib/cobbler", "/var/www/cobbler", "/etc/cobbler", "/mnt", "/var/www/cobbler/repo_mirror", "/var/www/pip"] +EXPOSE 67 +EXPOSE 69 +EXPOSE 80 +EXPOSE 443 +EXPOSE 25151 +CMD ["/sbin/init", "/usr/local/bin/start.sh"] diff --git a/compass-cobbler/README.md b/compass-cobbler/README.md new file mode 100644 index 0000000..6fef3ed --- /dev/null +++ b/compass-cobbler/README.md @@ -0,0 +1,2 @@ +# compass-cobbler +Cobbler container for Compass diff --git a/compass-cobbler/cobbler.conf b/compass-cobbler/cobbler.conf new file mode 100644 index 0000000..cea3835 --- /dev/null +++ b/compass-cobbler/cobbler.conf @@ -0,0 +1,60 @@ +# This configuration file allows cobbler data +# to be accessed over HTTP. + +AliasMatch ^/cblr(?!/svc/)(.*)?$ "/var/www/cobbler$1" +AliasMatch ^/cobbler_track(.*)?$ "/var/www/cobbler$1" +#AliasMatch ^/cobbler(.*)?$ "/var/www/cobbler$1" +Alias /cobbler /var/www/cobbler +Alias /cobbler_webui_content /var/www/cobbler_webui_content +Alias /pip-openstack /var/www/pip-openstack +Alias /packages /var/www/packages + +WSGIScriptAliasMatch ^/cblr/svc/([^/]*) /var/www/cobbler/svc/services.py + +<Directory "/var/www/cobbler"> + SetEnv VIRTUALENV + Options Indexes FollowSymLinks + Order allow,deny + Allow from all +</Directory> + +<Directory "/var/www/pip-openstack"> + Options Indexes FollowSymLinks + Order allow,deny + Allow from all +</Directory> + +<Directory "/var/www/packages"> + Options Indexes FollowSymLinks + Order allow,deny + Allow from all +</Directory> + +ProxyRequests off + +ProxyPass /cobbler_api http://localhost:25151/ +ProxyPassReverse /cobbler_api http://localhost:25151/ + +BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On + +# the webui is now part of the "cobbler-web" package +# and is visited at http://.../cobbler_web not this URL. +# this is only a pointer to the new page. + +<Directory "/var/www/cobbler/web/"> + Options Indexes FollowSymLinks + Order allow,deny + Allow from all +</Directory> + +<IfVersion >= 2.4> + <Location /cblr> + Require all granted + </Location> + <Location /pip-openstack> + Require all granted + </Location> + <Location /packages> + Require all granted + </Location> +</IfVersion> diff --git a/compass-cobbler/cobbler_web.conf b/compass-cobbler/cobbler_web.conf new file mode 100644 index 0000000..04b9881 --- /dev/null +++ b/compass-cobbler/cobbler_web.conf @@ -0,0 +1,17 @@ +# This configuration file enables the cobbler web +# interface (django version) + +# Force everything to go to https +RewriteEngine on +RewriteCond %{HTTPS} off +RewriteCond %{REQUEST_URI} ^/cobbler_web +# RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} + + +WSGIScriptAlias /cobbler_web /usr/share/cobbler/web/cobbler.wsgi + +<IfVersion >= 2.4> + <Location /cobbler_web> + Require all granted + </Location> +</IfVersion> diff --git a/compass-cobbler/distro_signatures.json b/compass-cobbler/distro_signatures.json new file mode 100644 index 0000000..21d22fe --- /dev/null +++ b/compass-cobbler/distro_signatures.json @@ -0,0 +1,1008 @@ +{"breeds": + { + "tinycore": { + "corepure64": { + "signatures":["boot"], + "version_file":"", + "version_file_regex":"", + "kernel_arch":"", + "kernel_arch_regex":"", + "supported_arches":["x86_64","amd64"], + "supported_repo_breeds":[], + "kernel_file":"vmlinuz64", + "initrd_file":"corepure64.gz", + "isolinux_ok":true, + "default_kickstart":"", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + }, + "generic27": { + "signatures":["boot"], + "version_file":"", + "version_file_regex":"", + "kernel_arch":"", + "kernel_arch_regex":"", + "supported_arches":["i386"], + "supported_repo_breeds":[], + "kernel_file":"vmlinuz", + "initrd_file":"core.gz", + "isolinux_ok":true, + "default_kickstart":"", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + } + }, + "redhat": { + "rhel4": { + "signatures":["RedHat/RPMS","CentOS/RPMS"], + "version_file":"(redhat|sl|centos)-release-4(AS|WS|ES)[\\.-]+(.*)\\.rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*).rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","x86_64","ppc","ppc64"], + "supported_repo_breeds":["rsync", "rhn", "yum"], + "kernel_file":"vmlinuz(.*)", + "initrd_file":"initrd(.*)\\.img", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample.ks", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + }, + "rhel5": { + "signatures":["RedHat","Server","CentOS","Client"], + "version_file":"(redhat|sl|centos)-release-5([^\\.][\\w]*)?[\\.-]+(.*)\\.rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*).rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","x86_64","ppc","ppc64"], + "supported_repo_breeds":["rsync", "rhn", "yum"], + "kernel_file":"vmlinuz(.*)", + "initrd_file":"initrd(.*)\\.img", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample.ks", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + }, + "rhel6": { + "signatures":["Packages"], + "version_file":"(redhat|sl|slf|centos|oraclelinux)-release-(?!notes)([\\w]*-)*6(Server)*[\\.-]+(.*)\\.rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*).rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","x86_64","ppc","ppc64"], + "supported_repo_breeds":["rsync", "rhn", "yum"], + "kernel_file":"vmlinuz(.*)", + "initrd_file":"initrd(.*)\\.img", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_end.ks", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + }, + "rhel7": { + "signatures":["Packages"], + "version_file":"(redhat|sl|slf|centos|oraclelinux)-release-(?!notes)([\\w]*-)*7(Server)*[\\.-]+(.*)\\.rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*).rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","x86_64","ppc","ppc64"], + "supported_repo_breeds":["rsync", "rhn", "yum"], + "kernel_file":"vmlinuz(.*)", + "initrd_file":"initrd(.*)\\.img", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_end.ks", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + }, + "fedora16": { + "signatures":["Packages"], + "version_file":"(fedora)-release-16-(.*)\\.noarch\\.rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","x86_64","ppc","ppc64"], + "supported_repo_breeds":["rsync", "rhn", "yum"], + "kernel_file":"vmlinuz(.*)", + "initrd_file":"initrd(.*)\\.img", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_end.ks", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + }, + "fedora17": { + "signatures":["Packages"], + "version_file":"(fedora)-release-17-(.*)\\.noarch\\.rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","x86_64","ppc","ppc64"], + "supported_repo_breeds":["rsync", "rhn", "yum"], + "kernel_file":"vmlinuz(.*)", + "initrd_file":"initrd(.*)\\.img", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_end.ks", + "kernel_options":"repo=$tree", + "kernel_options_post":"", + "boot_files":[] + }, + "fedora18": { + "signatures":["Packages"], + "version_file":"(fedora)-release-18-(.*)\\.noarch\\.rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","x86_64","ppc","ppc64"], + "supported_repo_breeds":["rsync", "rhn", "yum"], + "kernel_file":"vmlinuz(.*)", + "initrd_file":"initrd(.*)\\.img", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_end.ks", + "kernel_options":"repo=$tree", + "kernel_options_post":"", + "boot_files":[] + }, + "fedora19": { + "signatures":["Packages"], + "version_file":"(fedora)-release-19-(.*)\\.noarch\\.rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","x86_64","ppc","ppc64"], + "supported_repo_breeds":["rsync", "rhn", "yum"], + "kernel_file":"vmlinuz(.*)", + "initrd_file":"initrd(.*)\\.img", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_end.ks", + "kernel_options":"repo=$tree", + "kernel_options_post":"", + "boot_files":[] + }, + "fedora20": { + "signatures":["Packages"], + "version_file":"(fedora)-release-20-(.*)\\.noarch\\.rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","x86_64","ppc","ppc64"], + "supported_repo_breeds":["rsync", "rhn", "yum"], + "kernel_file":"vmlinuz(.*)", + "initrd_file":"initrd(.*)\\.img", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_end.ks", + "kernel_options":"repo=$tree", + "kernel_options_post":"", + "boot_files":[] + }, + "fedora21": { + "signatures":["Packages"], + "version_file":"(fedora)-release-21-(.*)\\.noarch\\.rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","x86_64","ppc","ppc64"], + "supported_repo_breeds":["rsync", "rhn", "yum"], + "kernel_file":"vmlinuz(.*)", + "initrd_file":"initrd(.*)\\.img", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_end.ks", + "kernel_options":"repo=$tree", + "kernel_options_post":"", + "boot_files":[] + }, + "fedora22": { + "signatures":["Packages"], + "version_file":"(fedora)-release-22-(.*)\\.noarch\\.rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","x86_64","ppc","ppc64","ppc64le"], + "supported_repo_breeds":["rsync", "rhn", "yum"], + "kernel_file":"vmlinuz(.*)", + "initrd_file":"initrd(.*)\\.img", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_end.ks", + "kernel_options":"repo=$tree", + "kernel_options_post":"", + "boot_files":[] + }, + "fedora23": { + "signatures":["Packages"], + "version_file":"(fedora)-release-23-(.*)\\.noarch\\.rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","x86_64","ppc","ppc64","ppc64le"], + "supported_repo_breeds":["rsync", "rhn", "yum"], + "kernel_file":"vmlinuz(.*)", + "initrd_file":"initrd(.*)\\.img", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_end.ks", + "kernel_options":"repo=$tree", + "kernel_options_post":"", + "boot_files":[] + }, + "cloudlinux6": { + "signatures":["Packages"], + "version_file":"(cloudlinux)-release-(.*)\\.rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*).rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","x86_64","ppc","ppc64"], + "supported_repo_breeds":["rsync", "rhn", "yum"], + "kernel_file":"vmlinuz(.*)", + "initrd_file":"initrd(.*)\\.img", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_end.ks", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + } + }, + "debian": { + "squeeze": { + "signatures":["dists"], + "version_file":"Release", + "version_file_regex":"Codename: squeeze", + "kernel_arch":"linux-headers-(.*)\\.deb", + "kernel_arch_regex":null, + "supported_arches":["i386","amd64"], + "supported_repo_breeds":["apt"], + "kernel_file":"vmlinuz(.*)", + "initrd_file":"initrd(.*)\\.gz", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample.seed", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + }, + "wheezy": { + "signatures":["dists"], + "version_file":"Release", + "version_file_regex":"Codename: wheezy", + "kernel_arch":"linux-headers-(.*)\\.deb", + "kernel_arch_regex":null, + "supported_arches":["i386","amd64"], + "supported_repo_breeds":["apt"], + "kernel_file":"vmlinuz(.*)", + "initrd_file":"initrd(.*)\\.gz", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample.seed", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + }, + "jessie": { + "signatures":["dists"], + "version_file":"Release", + "version_file_regex":"Codename: jessie", + "kernel_arch":"linux-headers-(.*)\\.deb", + "kernel_arch_regex":null, + "supported_arches":["i386","amd64"], + "supported_repo_breeds":["apt"], + "kernel_file":"vmlinuz(.*)", + "initrd_file":"initrd(.*)\\.gz", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample.seed", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + }, + "stretch": { + "signatures":["dists"], + "version_file":"Release", + "version_file_regex":"Codename: stretch", + "kernel_arch":"linux-headers-(.*)\\.deb", + "kernel_arch_regex":null, + "supported_arches":["i386","amd64"], + "supported_repo_breeds":["apt"], + "kernel_file":"vmlinuz(.*)", + "initrd_file":"initrd(.*)\\.gz", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample.seed", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + } + }, + "ubuntu": { + "lucid": { + "signatures":["dists", ".disk"], + "version_file":"Release|mini-info", + "version_file_regex":"Codename: lucid|Ubuntu 10.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":[] + }, + "oneiric": { + "signatures":["dists", ".disk"], + "version_file":"Release|mini-info", + "version_file_regex":"Codename: oneiric|Ubuntu 11.10", + "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":[] + }, + "precise": { + "signatures":["dists", ".disk"], + "version_file":"Release|mini-info", + "version_file_regex":"Codename: precise|Ubuntu 12.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":[] + }, + "quantal": { + "signatures":["dists", ".disk"], + "version_file":"Release|mini-info", + "version_file_regex":"Codename: quantal|Ubuntu 12.10", + "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":[] + }, + "raring": { + "signatures":["dists", ".disk"], + "version_file":"Release|mini-info", + "version_file_regex":"Codename: raring|Ubuntu 13.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":[] + }, + "saucy": { + "signatures":["dists", ".disk"], + "version_file":"Release|mini-info", + "version_file_regex":"Codename: saucy|Ubuntu 13.10", + "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":[] + }, + "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":[] + }, + "vivid": { + "signatures":["dists", ".disk"], + "version_file":"Release|mini-info", + "version_file_regex":"Codename: vivid|Ubuntu 15.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":[] + }, + "wily": { + "signatures":["dists", ".disk"], + "version_file":"Release|mini-info", + "version_file_regex":"Codename: wily|Ubuntu 15.10", + "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":[] + }, + "xenial": { + "signatures":["dists", ".disk"], + "version_file":"Release|mini-info", + "version_file_regex":"Codename: xenial|Ubuntu 16.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": { + "opensuse11.2": { + "signatures":["suse"], + "version_file":"openSUSE-release-11.2-(.*).rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","i586","x86_64"], + "supported_repo_breeds":["yum"], + "kernel_file":"(linux|vmlinuz(.*))", + "initrd_file":"initrd(.*)", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_autoyast.xml", + "kernel_options":"install=$tree", + "kernel_options_post":"", + "boot_files":[] + }, + "opensuse11.3": { + "signatures":["suse"], + "version_file":"openSUSE-release-11.3-(.*).rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","i586","x86_64"], + "supported_repo_breeds":["yum"], + "kernel_file":"(linux|vmlinuz(.*))", + "initrd_file":"initrd(.*)", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_autoyast.xml", + "kernel_options":"install=$tree", + "kernel_options_post":"", + "boot_files":[] + }, + "opensuse11.4": { + "signatures":["suse"], + "version_file":"openSUSE-release-11.4-(.*).rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","i586","x86_64"], + "supported_repo_breeds":["yum"], + "kernel_file":"(linux|vmlinuz(.*))", + "initrd_file":"initrd(.*)", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_autoyast.xml", + "kernel_options":"install=$tree", + "kernel_options_post":"", + "boot_files":[] + }, + "opensuse12.1": { + "signatures":["suse"], + "version_file":"openSUSE-release-12.1-(.*).rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","i586","x86_64"], + "supported_repo_breeds":["yum"], + "kernel_file":"(linux|vmlinuz(.*))", + "initrd_file":"initrd(.*)", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_autoyast.xml", + "kernel_options":"install=$tree", + "kernel_options_post":"", + "boot_files":[] + }, + "opensuse12.2": { + "signatures":["suse"], + "version_file":"openSUSE-release-12.2-(.*).rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","i586","x86_64"], + "supported_repo_breeds":["yum"], + "kernel_file":"(linux|vmlinuz(.*))", + "initrd_file":"initrd(.*)", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_autoyast.xml", + "kernel_options":"install=$tree", + "kernel_options_post":"", + "boot_files":[] + }, + "opensuse12.3": { + "signatures":["suse"], + "version_file":"openSUSE-release-12.3-(.*).rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","i586","x86_64"], + "supported_repo_breeds":["yum"], + "kernel_file":"(linux|vmlinuz(.*))", + "initrd_file":"initrd(.*)", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_autoyast.xml", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + }, + "opensuse13.1": { + "signatures":["suse"], + "version_file":"openSUSE-release-13.1-(.*).rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","i586","x86_64"], + "supported_repo_breeds":["yum"], + "kernel_file":"(linux|vmlinuz(.*))", + "initrd_file":"initrd(.*)", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_autoyast.xml", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + }, + "opensuse13.2": { + "signatures":["suse"], + "version_file":"openSUSE-release-13.2-(.*).rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","i586","x86_64"], + "supported_repo_breeds":["yum"], + "kernel_file":"(linux|vmlinuz(.*))", + "initrd_file":"initrd(.*)", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_autoyast.xml", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + }, + "sles10": { + "signatures":["suse"], + "version_file":"sles-release-10-(.*).rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","i586","x86_64","ppc64"], + "supported_repo_breeds":["yum"], + "kernel_file":"linux[64.gz]?", + "initrd_file":"initrd[64]?", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_autoyast.xml", + "kernel_options":"install=$tree", + "kernel_options_post":"", + "boot_files":[] + }, + "sles11": { + "signatures":["suse"], + "version_file":"sles-release-11-(.*).rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","i586","x86_64","ppc64"], + "supported_repo_breeds":["yum"], + "kernel_file":"linux[64.gz]?", + "initrd_file":"initrd[64]?", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_autoyast.xml", + "kernel_options":"install=$tree", + "kernel_options_post":"", + "boot_files":[] + }, + "sles11sp1": { + "signatures":["suse"], + "version_file":"sles-release-11.1-(.*).rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","i586","x86_64","ppc64"], + "supported_repo_breeds":["yum"], + "kernel_file":"linux[64.gz]?", + "initrd_file":"initrd[64]?", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_autoyast.xml", + "kernel_options":"install=$tree", + "kernel_options_post":"", + "boot_files":[] + }, + "sles11sp2": { + "signatures":["suse"], + "version_file":"sles-release-11.2-(.*).rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","i586","x86_64","ppc64"], + "supported_repo_breeds":["yum"], + "kernel_file":"linux[64.gz]?", + "initrd_file":"initrd[64]?", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_autoyast.xml", + "kernel_options":"install=$tree", + "kernel_options_post":"", + "boot_files":[] + }, + "sles11sp3": { + "signatures":["suse"], + "version_file":"sles-release-11.3-(.*).rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","i586","x86_64","ppc64"], + "supported_repo_breeds":["yum"], + "kernel_file":"linux[64.gz]?", + "initrd_file":"initrd[64]?", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_autoyast.xml", + "kernel_options":"install=$tree", + "kernel_options_post":"", + "boot_files":[] + }, + "sles11sp4": { + "signatures":["suse"], + "version_file":"sles-release-11.4-(.*).rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","i586","x86_64","ppc64"], + "supported_repo_breeds":["yum"], + "kernel_file":"linux[64.gz]?", + "initrd_file":"initrd[64]?", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_autoyast.xml", + "kernel_options":"install=$tree", + "kernel_options_post":"", + "boot_files":[] + }, + "sles12": { + "signatures":["suse"], + "version_file":"(sles|SLES-for-VMware)-release-12-(.*).rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["i386","i586","x86_64","ppc64"], + "supported_repo_breeds":["yum"], + "kernel_file":"linux[64.gz]?", + "initrd_file":"initrd[64]?", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_autoyast.xml", + "kernel_options":"install=$tree", + "kernel_options_post":"", + "boot_files":[] + } + }, + "vmware": { + "esx4": { + "signatures":["VMware/RPMS"], + "version_file":"vmware-esx-vmware-release-(.*)\\.rpm", + "version_file_regex":null, + "kernel_arch":"kernel-(.*)\\.x86_64\\.rpm", + "kernel_arch_regex":null, + "supported_arches":["x86_64"], + "supported_repo_breeds":["yum"], + "kernel_file":"vmlinuz", + "initrd_file":"initrd\\.img", + "isolinux_ok":true, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_esx4.ks", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + }, + "esxi4": { + "signatures":["imagedd.bz2"], + "version_file":"vmkernel\\.gz", + "version_file_regex":"^.*ESXi 4.1\\.(\\d)+ \\[Releasebuild-([\\d]+)\\].*$", + "kernel_arch":"vmkernel\\.gz", + "kernel_arch_regex":"^.*SystemVsiCpuArch.*(X86_64).*$", + "supported_arches":["x86_64"], + "supported_repo_breeds":[], + "kernel_file":"mboot\\.c32", + "initrd_file":"vmkboot\\.gz", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_esxi4.ks", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":["vmkernel.gz","sys.vgz","cim.vgz","ienviron.vgz","install.vgz"] + }, + "esxi5": { + "signatures":["tboot.b00"], + "version_file":"s\\.v00", + "version_file_regex":"^.*ESXi 5\\.0\\.(.*)build-([\\d]+).*$", + "kernel_arch":"tools\\.t00", + "kernel_arch_regex":"^.*(x86_64).*$", + "supported_arches":["x86_64"], + "supported_repo_breeds":[], + "kernel_file":"mboot\\.c32", + "initrd_file":"imgpayld\\.tgz", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_esxi5.ks", + "kernel_options":"", + "kernel_options_post":"", + "template_files":"/etc/cobbler/pxe/bootcfg_esxi5.template=$local_img_path/cobbler-boot.cfg", + "boot_files":["*.*"] + }, + "esxi51": { + "signatures":["tboot.b00"], + "version_file":"s\\.v00", + "version_file_regex":"^.*ESXi 5\\.1\\.(.*)build-([\\d]+).*$", + "kernel_arch":"tools\\.t00", + "kernel_arch_regex":"^.*(x86_64).*$", + "supported_arches":["x86_64"], + "supported_repo_breeds":[], + "kernel_file":"mboot\\.c32", + "initrd_file":"imgpayld\\.tgz", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_esxi5.ks", + "kernel_options":"", + "kernel_options_post":"", + "template_files":"/etc/cobbler/pxe/bootcfg_esxi51.template=$local_img_path/cobbler-boot.cfg", + "boot_files":["*.*"] + }, + "esxi55": { + "signatures":["tboot.b00"], + "version_file":"s\\.v00", + "version_file_regex":"^.*ESXi 5\\.5\\.(.*)build-([\\d]+).*$", + "kernel_arch":"tools\\.t00", + "kernel_arch_regex":"^.*(x86_64).*$", + "supported_arches":["x86_64"], + "supported_repo_breeds":[], + "kernel_file":"mboot\\.c32", + "initrd_file":"imgpayld\\.tgz", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_esxi5.ks", + "kernel_options":"", + "kernel_options_post":"", + "template_files":"/etc/cobbler/pxe/bootcfg_esxi55.template=$local_img_path/cobbler-boot.cfg", + "boot_files":["*.*"] + }, + "esxi60": { + "signatures":["tboot.b00"], + "version_file":"s\\.v00", + "version_file_regex":"^.*ESXi 6\\.0\\.(.*)build-([\\d]+).*$", + "kernel_arch":"tools\\.t00", + "kernel_arch_regex":"^.*(x86_64).*$", + "supported_arches":["x86_64"], + "supported_repo_breeds":[], + "kernel_file":"mboot\\.c32", + "initrd_file":"imgpayld\\.tgz", + "isolinux_ok":false, + "default_kickstart":"/var/lib/cobbler/kickstarts/sample_esxi5.ks", + "kernel_options":"", + "kernel_options_post":"", + "template_files":"/etc/cobbler/pxe/bootcfg_esxi60.template=$local_img_path/cobbler-boot.cfg", + "boot_files":["*.*"] + } + }, + "freebsd": { + "8.2": { + "signatures":["boot"], + "version_file":"8\\.2-RELEASE", + "version_file_regex":null, + "kernel_arch":"device\\.hints", + "kernel_arch_regex":"^.*FreeBSD: src/sys/(.*)/conf/GENERIC\\.hints.*$", + "supported_arches":["i386","amd64"], + "supported_repo_breeds":[], + "kernel_file":"pxeboot(.*)", + "initrd_file":"mfsroot\\.gz", + "isolinux_ok":false, + "default_kickstart":"", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + }, + "8.3": { + "signatures":["boot"], + "version_file":"8\\.3-RELEASE", + "version_file_regex":null, + "kernel_arch":"device\\.hints", + "kernel_arch_regex":"^.*FreeBSD: src/sys/(.*)/conf/GENERIC\\.hints.*$", + "supported_arches":["i386","amd64"], + "supported_repo_breeds":[], + "kernel_file":"pxeboot(.*)", + "initrd_file":"mfsroot\\.gz", + "isolinux_ok":false, + "default_kickstart":"", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + }, + "8.4": { + "signatures":["boot"], + "version_file":"8\\.4-RELEASE", + "version_file_regex":null, + "kernel_arch":"device\\.hints", + "kernel_arch_regex":"^.*FreeBSD: src/sys/(.*)/conf/GENERIC\\.hints.*$", + "supported_arches":["i386","amd64"], + "supported_repo_breeds":[], + "kernel_file":"pxeboot(.*)", + "initrd_file":"mfsroot\\.gz", + "isolinux_ok":false, + "default_kickstart":"", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + }, + "9.0": { + "signatures":["boot"], + "version_file":"device\\.hints", + "version_file_regex":"^.*FreeBSD: release/9.0(.*)/sys/(.*)/conf/GENERIC.hints.*$", + "kernel_arch":"device\\.hints", + "kernel_arch_regex":"^.*FreeBSD: release/9.0(.*)/sys/(.*)/conf/GENERIC.hints.*$", + "supported_arches":["i386","amd64"], + "supported_repo_breeds":[], + "kernel_file":"pxeboot(.*)", + "initrd_file":"mbr", + "isolinux_ok":false, + "default_kickstart":"", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + }, + "10.0": { + "signatures":["release"], + "version_file":"10\\.0\\-RELEASE", + "version_file_regex":null, + "kernel_arch":"device\\.hints", + "kernel_arch_regex":null, + "supported_arches":["i386","amd64"], + "supported_repo_breeds":[], + "kernel_file":"base.txz", + "initrd_file":"base.txz", + "isolinux_ok":false, + "default_kickstart":"", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + } + }, + "xen": { + "xcp16": { + "signatures":["packages.main"], + "version_file":"^XS-REPOSITORY$", + "version_file_regex":"^.*product=\"XCP\" version=\"1\\.6\\.([0-9]+)\".*$", + "kernel_arch":"xen\\.gz", + "kernel_arch_regex":"^.*(x86_64).*$", + "supported_arches":["x86_64"], + "supported_repo_breeds":[], + "kernel_file":"vmlinuz", + "initrd_file":"xen\\.gz", + "isolinux_ok":false, + "default_kickstart":"", + "kernel_options":"dom0_max_vcpus=1-2 dom0_mem=max:752M,752M", + "kernel_options_post":"", + "boot_files":["install.img"] + }, + "xenserver620": { + "signatures":["packages.xenserver"], + "version_file":"^XS-REPOSITORY$", + "version_file_regex":"^.*product=\"XenServer\" version=\"6\\.2\\.([0-9]+)\".*$", + "kernel_arch":"xen\\.gz", + "kernel_arch_regex":"^.*(x86_64).*$", + "supported_arches":["x86_64"], + "supported_repo_breeds":[], + "kernel_file":"mboot\\.c32", + "initrd_file":"xen\\.gz", + "isolinux_ok":false, + "default_kickstart":"", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":["install.img"] + }, + "xenserver650": { + "signatures":["packages.xenserver"], + "version_file":"^XS-REPOSITORY$", + "version_file_regex":"^.*product=\"XenServer\" version=\"6\\.5\\.([0-9]+)\".*$", + "kernel_arch":"xen\\.gz", + "kernel_arch_regex":"^.*(x86_64).*$", + "supported_arches":["x86_64"], + "supported_repo_breeds":[], + "kernel_file":"mboot\\.c32", + "initrd_file":"xen\\.gz", + "isolinux_ok":false, + "default_kickstart":"", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":["install.img"] + } + }, + "unix": { + }, + "windows": { + }, + "nexenta": { + "4": { + "signatures":["boot"], + "version_file": "platform", + "version_file_regex": null, + "supported_arches":["x86_64"], + "supported_repo_breeds":["apt"], + "kernel_file":"platform/i86pc/kernel/amd64/unix", + "initrd_file":"platform/i86pc/amd64/miniroot", + "kernel_arch": "", + "kernel_arch_regex": null, + "isolinux_ok":false, + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[], + "default_kickstart":"" + } + }, + "generic": { + "generic26": { + "signatures":[], + "version_file":"", + "version_file_regex":"", + "kernel_arch":"", + "kernel_arch_regex":"", + "supported_arches":["i386","x86_64"], + "supported_repo_breeds":[], + "kernel_file":"", + "initrd_file":"", + "isolinux_ok":false, + "default_kickstart":"", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + }, + "virtio26": { + "signatures":[], + "version_file":"", + "version_file_regex":"", + "kernel_arch":"", + "kernel_arch_regex":"", + "supported_arches":["i386","x86_64"], + "supported_repo_breeds":[], + "kernel_file":"", + "initrd_file":"", + "isolinux_ok":false, + "default_kickstart":"", + "kernel_options":"", + "kernel_options_post":"", + "boot_files":[] + } + } + } +} diff --git a/compass-cobbler/start.sh b/compass-cobbler/start.sh new file mode 100755 index 0000000..b4b0562 --- /dev/null +++ b/compass-cobbler/start.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +service httpd restart +service cobblerd restart + +chmod +x /var/lib/cobbler/triggers/sync/post/migrate_ks.py +cobbler sync |