diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2017-11-07 15:30:51 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2017-12-21 15:35:12 +0800 |
commit | a360411cb8c775dffa24a4157cec2b566cbde6f3 (patch) | |
tree | 400e879a6f6779c294d7f2113c05b29d5578cff3 /util/docker-compose/roles/discovery/templates | |
parent | 4074d39e93d7e7697dd2aaad2e08433ca0a60221 (diff) |
Add compass-docker-compose
1. Add ansible for docker compose containerized
compass
2. deploy/conf/compass.conf no longer specify
image tags for runtime. build.yaml now is added
into compass tarball to be the only place determine
image tags
3. This patch is based on patch:
https://gerrit.opnfv.org/gerrit/#/c/47393/
use merged compass-tasks
4. Tempoarily using private docker repo for
compass-tasks. Switch to opnfv repo when patch
https://gerrit.opnfv.org/gerrit/#/c/47329/
is merged
5. Modify ansible callback module accrodingly
Change-Id: I0728a9002a1cc7804c9e8f13bd1afdccb684a159
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'util/docker-compose/roles/discovery/templates')
3 files changed, 1138 insertions, 0 deletions
diff --git a/util/docker-compose/roles/discovery/templates/compass_discovery.service.j2 b/util/docker-compose/roles/discovery/templates/compass_discovery.service.j2 new file mode 100755 index 00000000..ae6418b0 --- /dev/null +++ b/util/docker-compose/roles/discovery/templates/compass_discovery.service.j2 @@ -0,0 +1,7 @@ +<service-group> + <name replace-wildcards="yes">Compass Discovery Service on %h</name> + <service protocol="ipv4"> + <type>_compass-core._tcp</type> + <port>{{ deck_port }}</port> + </service> +</service-group> diff --git a/util/docker-compose/roles/discovery/templates/dhcp.template.j2 b/util/docker-compose/roles/discovery/templates/dhcp.template.j2 new file mode 100755 index 00000000..c0559e7f --- /dev/null +++ b/util/docker-compose/roles/discovery/templates/dhcp.template.j2 @@ -0,0 +1,123 @@ +# ****************************************************************** +# Cobbler managed dhcpd.conf file +# +# generated from cobbler dhcp.conf template ($date) +# Do NOT make changes to /etc/dhcpd.conf. Instead, make your changes +# in /etc/cobbler/dhcp.template, as /etc/dhcpd.conf will be +# overwritten. +# +# ****************************************************************** + +ddns-update-style interim; + +allow booting; +allow bootp; +allow unknown-clients; +local-address {{ cobbler_server }}; +log-facility local6; + +ignore client-updates; +set vendorclass = option vendor-class-identifier; + +option pxe-system-type code 93 = unsigned integer 16; +option space pxelinux; +option pxelinux.magic code 208 = string; +option pxelinux.configfile code 209 = text; +option pxelinux.pathprefix code 210 = text; +option pxelinux.reboottime code 211 = unsigned integer 32; + +{% if dockerized %} +subnet {{ compass0_subnet_ip }} netmask {{ compass0_subnet_mask }} { + option routers {{ compass0_router }}; + option domain-name-servers {{ compass0_router }}; + option subnet-mask {{ compass0_subnet_mask }}; + range dynamic-bootp {{ compass0_dhcp_range }}; + default-lease-time 21600; + max-lease-time 43200; + next-server $next_server; + class "pxeclients" { + match if substring (option vendor-class-identifier, 0, 9) = "PXEClient"; + if option pxe-system-type = 00:02 { + filename "ia64/elilo.efi"; + } else if option pxe-system-type = 00:06 { + filename "grub/grub-x86.efi"; + } else if option pxe-system-type = 00:07 { + filename "grub/grub-x86_64.efi"; + } else { + filename "pxelinux.0"; + } + } + +} +{% endif %} + +subnet {{ mgmt_subnet_ip }} netmask {{ mgmt_subnet_mask }} { + option routers {{ mgmt_router }}; + option domain-name-servers {{ mgmt_router }}; + option subnet-mask {{ mgmt_subnet_mask }}; + range dynamic-bootp {{ mgmt_dhcp_range }}; + default-lease-time 21600; + max-lease-time 43200; + next-server {{ mgmt_next_ip }}; + class "pxeclients" { + match if substring (option vendor-class-identifier, 0, 9) = "PXEClient"; + if option pxe-system-type = 00:02 { + filename "ia64/elilo.efi"; + } else if option pxe-system-type = 00:06 { + filename "grub/grub-x86.efi"; + } else if option pxe-system-type = 00:07 { + filename "grub/grub-x86_64.efi"; + } else { + filename "pxelinux.0"; + } + } + +} + +#for dhcp_tag in $dhcp_tags.keys(): + ## group could be subnet if your dhcp tags line up with your subnets + ## or really any valid dhcpd.conf construct ... if you only use the + ## default dhcp tag in cobbler, the group block can be deleted for a + ## flat configuration +# group for Cobbler DHCP tag: $dhcp_tag +group { + #for mac in $dhcp_tags[$dhcp_tag].keys(): + #set iface = $dhcp_tags[$dhcp_tag][$mac] + host $iface.name { + hardware ethernet $mac; + site-option-space "pxelinux"; + option pxelinux.magic f1:00:74:7e; + if exists dhcp-parameter-request-list { + # Always send the PXELINUX options (specified in hexadecimal) + option dhcp-parameter-request-list = concat(option dhcp-parameter-request-list,d0,d1,d2,d3); + } + option pxelinux.reboottime 30; + #if $iface.hostname: + option host-name "$iface.hostname"; + #end if + #if $iface.netmask: + option subnet-mask $iface.netmask; + #end if + #if $iface.gateway: + option routers $iface.gateway; + #end if + #if $iface.enable_gpxe: + if exists user-class and option user-class = "gPXE" { + filename "http://$cobbler_server/cblr/svc/op/gpxe/system/$iface.owner"; + } else if exists user-class and option user-class = "iPXE" { + filename "http://$cobbler_server/cblr/svc/op/gpxe/system/$iface.owner"; + } else { + filename "undionly.kpxe"; + } + #else + filename "$iface.filename"; + #end if + ## Cobbler defaults to $next_server, but some users + ## may like to use $iface.system.server for proxied setups + next-server $next_server; + ## next-server $iface.next_server; + } + #end for +} +#end for + diff --git a/util/docker-compose/roles/discovery/templates/distro_signatures.json.j2 b/util/docker-compose/roles/discovery/templates/distro_signatures.json.j2 new file mode 100755 index 00000000..21d22fe1 --- /dev/null +++ b/util/docker-compose/roles/discovery/templates/distro_signatures.json.j2 @@ -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":[] + } + } + } +} |