diff options
author | Matthew Hicks <mhicks@mhicks-host.usersys.redhat.com> | 2008-07-11 08:56:32 -0400 |
---|---|---|
committer | Matthew Hicks <mhicks@mhicks-host.usersys.redhat.com> | 2008-07-11 08:56:32 -0400 |
commit | b446b36dd1ee0a0b06ba0067d053b900e70f827a (patch) | |
tree | e6b6ea6db1e8ede1d69e05ce6022a8e6105a381b /genome-respin | |
parent | 53b9a70dee2458320cc79f7a2723ca374872e336 (diff) | |
download | tools-b446b36dd1ee0a0b06ba0067d053b900e70f827a.tar.gz tools-b446b36dd1ee0a0b06ba0067d053b900e70f827a.tar.xz tools-b446b36dd1ee0a0b06ba0067d053b900e70f827a.zip |
Adding initial cobbler priming data
Diffstat (limited to 'genome-respin')
-rw-r--r-- | genome-respin/cobbler/Cloud.ks | 88 | ||||
-rw-r--r-- | genome-respin/cobbler/F8.ks | 65 | ||||
-rw-r--r-- | genome-respin/cobbler/Fedora-i386.profiles | 108 | ||||
-rw-r--r-- | genome-respin/cobbler/Fedora-i386.repos | 85 | ||||
-rw-r--r-- | genome-respin/cobbler/Genome.ks | 62 | ||||
-rw-r--r-- | genome-respin/repo/conf.d/genome-ks.cfg | 3 |
6 files changed, 410 insertions, 1 deletions
diff --git a/genome-respin/cobbler/Cloud.ks b/genome-respin/cobbler/Cloud.ks new file mode 100644 index 0000000..b3fdbf8 --- /dev/null +++ b/genome-respin/cobbler/Cloud.ks @@ -0,0 +1,88 @@ +#platform=x86, AMD64, or Intel EM64T +# System authorization information +auth --useshadow --enablemd5 +# System bootloader configuration +bootloader --location=mbr +# Partition clearing information +clearpart --all --initlabel +# Use text mode install +text +# Firewall configuration +firewall --disabled +# Network Manager breaks networking on F8 +services --disabled=NetworkManager +# Run the Setup Agent on first boot +firstboot --disable +# System keyboard +keyboard us +# System language +lang en_US +# Use network installation +url --url=$tree +key --skip + +# If any cobbler repo definitions were referenced in the kickstart profile, include them here. +# TODO: replace this with $yum_repo_stanza +$yum_repo_stanza + +# Network information +network --bootproto=dhcp --device=eth0 --onboot=on --noipv6 +# Reboot after installation +reboot + +#Root password +rootpw --iscrypted $1$z8ATNbdx$URqSRM3RkCgBCTIKD4Z3W. +# SELinux configuration +selinux --disabled +# Do not configure the X Window System +skipx +# System timezone +timezone America/New_York +# Install OS instead of upgrade +install +# Clear the Master Boot Record +zerombr + +# Setup LVM for the Cloud machines +clearpart --all --initlabel +partition /boot --fstype=ext3 --size=200 +partition pv.01 --size=10240 +partition pv.02 --size=10240 --grow +volgroup HostVolGroup00 pv.01 +volgroup HostVolGroupImages pv.02 +logvol swap --fstype swap --name=Swap --vgname=HostVolGroup00 --size=2048 +logvol / --fstype ext3 --name=Root --vgname=HostVolGroup00 --size=10240 --grow +logvol /images --fstype ext3 --name=Images --vgname=HostVolGroupImages --size=10240 --grow + +%pre +# Auto partitioning +SNIPPET::partition_select +$kickstart_start + +%packages +kernel-xen +xen +libvirt +koan +git +rubygem-cloudmasterd + +%post +# Set the certmaster in the minion configuration +sed -i "s/certmaster = certmaster/certmaster = $certmaster/g" /etc/certmaster/minion.conf + +# Turn on autosigning for func masters by default +if [ "$certmaster" == "localhost" ]; then + sed -i "s/autosign = no/autosign = yes/g" /etc/certmaster/certmaster.conf +fi + +# Chkconfig the cloudmasterd service for the cloud masters +if [ "$certmaster" == "localhost" ]; then + /sbin/chkconfig --add cloudmasterd + /sbin/chkconfig cloudmasterd on + /sbin/chkconfig --add httpd + /sbin/chkconfig httpd on +fi + +$yum_config_stanza +$kickstart_done diff --git a/genome-respin/cobbler/F8.ks b/genome-respin/cobbler/F8.ks new file mode 100644 index 0000000..a6f42d0 --- /dev/null +++ b/genome-respin/cobbler/F8.ks @@ -0,0 +1,65 @@ +#platform=x86, AMD64, or Intel EM64T +# System authorization information +auth --useshadow --enablemd5 +# System bootloader configuration +bootloader --location=mbr +# Partition clearing information +clearpart --all --initlabel +# Use text mode install +text +# Firewall configuration +firewall --disabled +# Run the Setup Agent on first boot +firstboot --disable +# Network Manager breaks networking on F8 +services --disabled=NetworkManager +# System keyboard +keyboard us +# System language +lang en_US +# Use network installation +url --url=$tree +key --skip + +# If any cobbler repo definitions were referenced in the kickstart profile, include them here. +$yum_repo_stanza + +# Network information +network --bootproto=dhcp --device=eth0 --onboot=on --noipv6 +# Reboot after installation +reboot + +#Root password +rootpw --iscrypted $1$z8ATNbdx$URqSRM3RkCgBCTIKD4Z3W. +# SELinux configuration +selinux --disabled +# Do not configure the X Window System +skipx +# System timezone +timezone America/New_York +# Install OS instead of upgrade +install +# Clear the Master Boot Record +zerombr + +# Magically figure out how to partition this thing +%include /tmp/partinfo + +%pre +# Auto partitioning +SNIPPET::partition_select +$kickstart_start + +%packages +git-core +puppet +genome-firstboot + +%post +FIRSTBOOT_CFG=/etc/sysconfig/genome-firstboot +echo RUN_BOOTSTRAP=YES > $FIRSTBOOT_CFG +echo export GENOME_REPO=$genome_repo >> $FIRSTBOOT_CFG +echo export FQDN=$fqdn >> $FIRSTBOOT_CFG + +$yum_config_stanza +$kickstart_done diff --git a/genome-respin/cobbler/Fedora-i386.profiles b/genome-respin/cobbler/Fedora-i386.profiles new file mode 100644 index 0000000..d6a89a4 --- /dev/null +++ b/genome-respin/cobbler/Fedora-i386.profiles @@ -0,0 +1,108 @@ +--- +- + depth: 1 + dhcp_tag: default + distro: F8-xen-i386 + kernel_options: {} + kickstart: /etc/cobbler/F8.ks + ks_meta: {} + name: LargeGenomeGuest-F8-i386 + owners: + - admin + parent: '' + repos: [] + server: <<inherit>> + virt_bridge: xenbr0 + virt_cpus: 1 + virt_file_size: 50 + virt_path: '' + virt_ram: 1536 + virt_type: auto +- + depth: 1 + dhcp_tag: default + distro: F8-xen-i386 + kernel_options: {} + kickstart: /etc/cobbler/Genome.ks + ks_meta: {} + name: GenomeGuest__Appliance-F8-i386 + owners: + - admin + parent: '' + repos: + - f8-everything + - f8-genome-i386 + - f8-genome-noarch + - f8-updates + server: <<inherit>> + virt_bridge: xenbr0 + virt_cpus: 1 + virt_file_size: 50 + virt_path: '' + virt_ram: 512 + virt_type: auto +- + depth: 1 + dhcp_tag: default + distro: F8-i386 + kernel_options: {} + kickstart: /etc/cobbler/Cloud.ks + ks_meta: {} + name: Cloud__Appliance-F8-i386 + owners: + - admin + parent: '' + repos: + - f8-everything + - f8-genome-i386 + - f8-genome-noarch + - f8-updates + server: <<inherit>> + virt_bridge: xenbr0 + virt_cpus: 1 + virt_file_size: 50 + virt_path: '' + virt_ram: 512 + virt_type: auto +- + depth: 1 + dhcp_tag: default + distro: F8-i386 + kernel_options: {} + kickstart: /etc/cobbler/Genome.ks + ks_meta: {} + name: Genome__Appliance-F8-i386 + owners: + - admin + parent: '' + repos: + - f8-everything + - f8-updates + server: <<inherit>> + virt_bridge: xenbr0 + virt_cpus: 1 + virt_file_size: 50 + virt_path: '' + virt_ram: 1536 + virt_type: auto +- + depth: 1 + dhcp_tag: default + distro: F8-xen-i386 + kernel_options: {} + kickstart: /etc/cobbler/F8.ks + ks_meta: {} + name: NormalGenomeGuest-F8-i386 + owners: + - admin + parent: '' + repos: + - f8-everything + - f8-genome-noarch + server: <<inherit>> + virt_bridge: xenbr0 + virt_cpus: 1 + virt_file_size: 25 + virt_path: '' + virt_ram: 1024 + virt_type: auto diff --git a/genome-respin/cobbler/Fedora-i386.repos b/genome-respin/cobbler/Fedora-i386.repos new file mode 100644 index 0000000..8a5d0ed --- /dev/null +++ b/genome-respin/cobbler/Fedora-i386.repos @@ -0,0 +1,85 @@ +--- +- + arch: i386 + createrepo_flags: -c cache + depth: 2 + keep_updated: False + mirror: 'http://download.fedora.redhat.com/pub/fedora/linux/updates/8/i386/' + mirror_locally: 0 + name: f8-updates + owners: + - admin + parent: '' + priority: 99 + rpm_list: '' + yumopts: {} +- + arch: i386 + createrepo_flags: -c cache + depth: 2 + keep_updated: False + mirror: 'http://download.fedora.redhat.com/pub/epel/5/i386/' + mirror_locally: 0 + name: epel5-i386 + owners: + - admin + parent: '' + priority: 99 + rpm_list: '' + yumopts: {} +- + arch: i386 + createrepo_flags: -c cache + depth: 2 + keep_updated: False + mirror: 'http://download.fedora.redhat.com/pub/fedora/linux/releases/8/Everything/i386/os/' + mirror_locally: 0 + name: f8-everything + owners: + - admin + parent: '' + priority: 99 + rpm_list: '' + yumopts: {} +- + arch: '' + createrepo_flags: -c cache + depth: 2 + keep_updated: True + mirror: 'http://localhost/cobbler/repo_mirror/f8-genome-noarch' + mirror_locally: 1 + name: f8-genome-noarch + owners: + - admin + parent: '' + priority: 99 + rpm_list: '' + yumopts: {} +- + arch: x86_64 + createrepo_flags: -c cache + depth: 2 + keep_updated: False + mirror: 'http://download.fedora.redhat.com/pub/epel/5/x86_64/' + mirror_locally: 0 + name: epel5-x86_64 + owners: + - admin + parent: '' + priority: 99 + rpm_list: '' + yumopts: {} +- + arch: i386 + createrepo_flags: -c cache + depth: 2 + keep_updated: True + mirror: 'http://localhost/cobbler/repo_mirror/f8-genome-i386' + mirror_locally: 1 + name: f8-genome-i386 + owners: + - admin + parent: '' + priority: 99 + rpm_list: '' + yumopts: {} diff --git a/genome-respin/cobbler/Genome.ks b/genome-respin/cobbler/Genome.ks new file mode 100644 index 0000000..8866eaa --- /dev/null +++ b/genome-respin/cobbler/Genome.ks @@ -0,0 +1,62 @@ +#platform=x86, AMD64, or Intel EM64T +# System authorization information +auth --useshadow --enablemd5 +# System bootloader configuration +bootloader --location=mbr +# Partition clearing information +clearpart --all --initlabel +# Use text mode install +text +# Firewall configuration +firewall --disabled +# Network Manager breaks networking on F8 +services --disabled=NetworkManager +# Run the Setup Agent on first boot +firstboot --disable +# System keyboard +keyboard us +# System language +lang en_US +# Use network installation +url --url=$tree +key --skip + +# If any cobbler repo definitions were referenced in the kickstart profile, include them here. +# TODO: replace this with $yum_repo_stanza +$yum_repo_stanza + +# Network information +network --bootproto=dhcp --device=eth0 --onboot=on +# Reboot after installation +reboot + +#Root password +rootpw --iscrypted $1$z8ATNbdx$URqSRM3RkCgBCTIKD4Z3W. +# SELinux configuration +selinux --disabled +# Do not configure the X Window System +skipx +# System timezone +timezone America/New_York +# Install OS instead of upgrade +install +# Clear the Master Boot Record +zerombr + +# Magically figure out how to partition this thing +%include /tmp/partinfo + +%pre +# Auto partitioning +SNIPPET::partition_select +$kickstart_start + +%packages +genome-repo + +%post +$yum_config_stanza +$kickstart_done + +/sbin/chkconfig --add genome-repo-bootstrap +/sbin/chkconfig genome-repo-bootstrap on diff --git a/genome-respin/repo/conf.d/genome-ks.cfg b/genome-respin/repo/conf.d/genome-ks.cfg index dda77f7..ef9f369 100644 --- a/genome-respin/repo/conf.d/genome-ks.cfg +++ b/genome-respin/repo/conf.d/genome-ks.cfg @@ -20,7 +20,7 @@ cdrom # Network information network --bootproto=dhcp --device=eth0 --onboot=on # Reboot after installation -reboot +reboot --eject # Root password rootpw password @@ -57,4 +57,5 @@ genome-repo /sbin/chkconfig --add genome-repo-bootstrap /sbin/chkconfig genome-repo-bootstrap on +/bin/touch /etc/sysconfig/genome-respin %end |