Difference between revisions of "Talk:Creating an Automated Installation with pc-sysinstall"
From PC-BSD Wiki
Tigersharke (Talk | contribs) (Created page with "# We should include an example, even if it is relatively basic, to give context to the variables and how they would be used. # '''It highly bothers me that '=' is shown to be ...") |
(Added sample pc-sysinstall.cfg file for possible inclusion in automated installation wiki page) |
||
| Line 1: | Line 1: | ||
# We should include an example, even if it is relatively basic, to give context to the variables and how they would be used. | # We should include an example, even if it is relatively basic, to give context to the variables and how they would be used. | ||
# '''It highly bothers me that '=' is shown to be part of the ''variable names'' here.''' An improved explanation along with the example mentioned above, would allow the table to be fixed (removal of the '=' from variable names.) | # '''It highly bothers me that '=' is shown to be part of the ''variable names'' here.''' An improved explanation along with the example mentioned above, would allow the table to be fixed (removal of the '=' from variable names.) | ||
| + | |||
| + | I have a sample pc-sysinstall.cfg that could be used, if you like. It's a little more complex than normal, but it does show how multiple network interfaces are configured: | ||
| + | |||
| + | <nowiki> | ||
| + | # Sample configuration file for an installation using pc-sysinstall | ||
| + | |||
| + | installMode=fresh | ||
| + | installInteractive=no | ||
| + | hostname=myhost.mydomain.com | ||
| + | |||
| + | # Set the disk parameters - 1st disk | ||
| + | disk0=da0 | ||
| + | partition=all | ||
| + | bootManager=none | ||
| + | commitDiskPart | ||
| + | |||
| + | # Set the disk parameters - 2nd disk | ||
| + | disk1=da1 | ||
| + | partition=all | ||
| + | bootManager=none | ||
| + | commitDiskPart | ||
| + | |||
| + | # Setup the disk label - 1st disk | ||
| + | # All sizes are expressed in MB | ||
| + | # Avail FS Types, UFS, UFS+S, UFS+J, ZFS, SWAP | ||
| + | disk0-part=UFS+S 1024 / | ||
| + | disk0-part=SWAP.eli 2048 none | ||
| + | disk0-part=UFS+S 1024 /tmp | ||
| + | disk0-part=UFS+S 1024 /var | ||
| + | disk0-part=UFS+S 0 /usr | ||
| + | # Size 0 means use the rest of the slice size | ||
| + | # Do it now! | ||
| + | commitDiskLabel | ||
| + | |||
| + | # Setup the disk label - 2nd disk | ||
| + | # All sizes are expressed in MB | ||
| + | # Avail FS Types, UFS, UFS+S, UFS+J, ZFS, SWAP | ||
| + | disk1-part=UFS+S 1024 /usr/src | ||
| + | disk1-part=UFS+S 4096 /usr/local | ||
| + | disk1-part=UFS+S 0 /usr/ports | ||
| + | # Size 0 means use the rest of the slice size | ||
| + | # Do it now! | ||
| + | commitDiskLabel | ||
| + | |||
| + | netDev=em1 | ||
| + | netIP=172.16.80.250 | ||
| + | netMask=255.255.240.0 | ||
| + | netNameServer=172.16.80.1 | ||
| + | netDefaultRouter=172.16.80.1 | ||
| + | netSaveDev=em0 em1 | ||
| + | netSaveIP_em0=192.168.101.42 | ||
| + | netSaveIP_em1=172.16.80.156 | ||
| + | netSaveMask_em0=255.255.252.0 | ||
| + | netSaveMask_em1=255.255.240.0 | ||
| + | netSaveNameServer=172.16.80.1 | ||
| + | netSaveDefaultRouter=192.168.100.1 | ||
| + | |||
| + | # Set if we are installing via optical, USB, or FTP | ||
| + | installType=FreeBSD | ||
| + | installMedium=ftp | ||
| + | ftpPath=http://pkgbuilder.mydomain.com/images/freebsd/8.2/ | ||
| + | packageType=tar | ||
| + | |||
| + | # List our components to install | ||
| + | #installComponents=ports,src | ||
| + | |||
| + | # Set the root pass | ||
| + | rootPass=root | ||
| + | |||
| + | # Setup our users | ||
| + | userName=demo | ||
| + | userComment=Demo User | ||
| + | userPass=demo | ||
| + | userShell=/bin/sh | ||
| + | userHome=/home/demo | ||
| + | commitUser | ||
| + | |||
| + | # Set up date/time | ||
| + | runCommand=cp /usr/share/zoneinfo/EST5EDT /etc/localtime | ||
| + | runCommand=touch /etc/wall_cmos_clock | ||
| + | runCommand=adjkerntz -a | ||
| + | |||
| + | # Install packages required for VMware Tools installation/configuration | ||
| + | runCommand=pkg_add -r compat6x-amd64 | ||
| + | runCommand=pkg_add -r perl | ||
| + | runCommand=pkg_add -r pcre | ||
| + | runCommand=pkg_add -r puppet | ||
| + | runCommand=pkg_add -r sysrc | ||
| + | |||
| + | # Fetch/install VMware Tools | ||
| + | runCommand=fetch -o /tmp/vmtools.tar.gz http://pkgbuilder.mydomain.com/images/freebsd/vmware-freebsd-tools.tar.gz | ||
| + | runCommand=zcat /tmp/vmtools.tar.gz | tar -C /tmp -xvf - | ||
| + | runCommand=/tmp/vmware-tools-distrib/vmware-install.pl -d | ||
| + | runCommand=rm -rf /tmp/vmware-tools-distrib | ||
| + | runCommand=/usr/local/sbin/sysrc puppet_enable=YES | ||
| + | # Generate the certificate to be signed by the master | ||
| + | runCommand=/usr/local/bin/puppet agent -t | ||
| + | </nowiki> | ||
| + | |||
| + | --[[User:Glarkin|Glarkin]] 07:11, 22 August 2012 (PDT) | ||
Latest revision as of 07:11, 22 August 2012
- We should include an example, even if it is relatively basic, to give context to the variables and how they would be used.
- It highly bothers me that '=' is shown to be part of the variable names here. An improved explanation along with the example mentioned above, would allow the table to be fixed (removal of the '=' from variable names.)
I have a sample pc-sysinstall.cfg that could be used, if you like. It's a little more complex than normal, but it does show how multiple network interfaces are configured:
# Sample configuration file for an installation using pc-sysinstall installMode=fresh installInteractive=no hostname=myhost.mydomain.com # Set the disk parameters - 1st disk disk0=da0 partition=all bootManager=none commitDiskPart # Set the disk parameters - 2nd disk disk1=da1 partition=all bootManager=none commitDiskPart # Setup the disk label - 1st disk # All sizes are expressed in MB # Avail FS Types, UFS, UFS+S, UFS+J, ZFS, SWAP disk0-part=UFS+S 1024 / disk0-part=SWAP.eli 2048 none disk0-part=UFS+S 1024 /tmp disk0-part=UFS+S 1024 /var disk0-part=UFS+S 0 /usr # Size 0 means use the rest of the slice size # Do it now! commitDiskLabel # Setup the disk label - 2nd disk # All sizes are expressed in MB # Avail FS Types, UFS, UFS+S, UFS+J, ZFS, SWAP disk1-part=UFS+S 1024 /usr/src disk1-part=UFS+S 4096 /usr/local disk1-part=UFS+S 0 /usr/ports # Size 0 means use the rest of the slice size # Do it now! commitDiskLabel netDev=em1 netIP=172.16.80.250 netMask=255.255.240.0 netNameServer=172.16.80.1 netDefaultRouter=172.16.80.1 netSaveDev=em0 em1 netSaveIP_em0=192.168.101.42 netSaveIP_em1=172.16.80.156 netSaveMask_em0=255.255.252.0 netSaveMask_em1=255.255.240.0 netSaveNameServer=172.16.80.1 netSaveDefaultRouter=192.168.100.1 # Set if we are installing via optical, USB, or FTP installType=FreeBSD installMedium=ftp ftpPath=http://pkgbuilder.mydomain.com/images/freebsd/8.2/ packageType=tar # List our components to install #installComponents=ports,src # Set the root pass rootPass=root # Setup our users userName=demo userComment=Demo User userPass=demo userShell=/bin/sh userHome=/home/demo commitUser # Set up date/time runCommand=cp /usr/share/zoneinfo/EST5EDT /etc/localtime runCommand=touch /etc/wall_cmos_clock runCommand=adjkerntz -a # Install packages required for VMware Tools installation/configuration runCommand=pkg_add -r compat6x-amd64 runCommand=pkg_add -r perl runCommand=pkg_add -r pcre runCommand=pkg_add -r puppet runCommand=pkg_add -r sysrc # Fetch/install VMware Tools runCommand=fetch -o /tmp/vmtools.tar.gz http://pkgbuilder.mydomain.com/images/freebsd/vmware-freebsd-tools.tar.gz runCommand=zcat /tmp/vmtools.tar.gz | tar -C /tmp -xvf - runCommand=/tmp/vmware-tools-distrib/vmware-install.pl -d runCommand=rm -rf /tmp/vmware-tools-distrib runCommand=/usr/local/sbin/sysrc puppet_enable=YES # Generate the certificate to be signed by the master runCommand=/usr/local/bin/puppet agent -t
--Glarkin 07:11, 22 August 2012 (PDT)