| | 5 | |
| | 6 | This is a quick introduction to AII configuration. AII is Quattor component in charge of producing Kickstart configuration file used for initial installation. |
| | 7 | |
| | 8 | Configuration specific to initial installation is made of 2 parts : |
| | 9 | * AII_xxx variables used to configure base environment (keyboard, language...). This works both for v1 and v2. |
| | 10 | * Filesystems and block devices definitions : this is specific to AII v2. |
| | 11 | |
| | 12 | == AII Variables == |
| | 13 | |
| | 14 | |
| | 15 | == File Systems and Block Devices == |
| | 16 | |
| | 17 | In AII v2, block devices and file systems are declared separatly. Filesystems are declared as an ordered list allowing to customize different aspect of a file system (mount point, mount options, format, ...). Each file system in the list is described as a nlist. One property in the nlist describing a file system is `block device` : its value is an entry in the structure describing block devices (physical disk, logical volumes, ...). To add or modify a filesystem on a system, it is recommended to use 'fileystem_mod` function. An example is : |
| | 18 | |
| | 19 | {{{ |
| | 20 | "/system/filesystems" = filesystem_mod( |
| | 21 | list(nlist ("block_device", "partitions/" + DISK_PART_BOOT, |
| | 22 | "mountpoint", "/boot", |
| | 23 | "format", true, |
| | 24 | "mount", true, |
| | 25 | "preserve", false, |
| | 26 | "type","ext2"), |
| | 27 | nlist ("block_device", "partitions/" + DISK_PART_SWAP, |
| | 28 | "format", true, |
| | 29 | "mount", true, |
| | 30 | "preserve", false, |
| | 31 | "type","swap", |
| | 32 | "mountpoint","swap"), |
| | 33 | nlist ("block_device", "partitions/" + DISK_PART_ROOT, |
| | 34 | "format", true, |
| | 35 | "preserve", false, |
| | 36 | "mount", true, |
| | 37 | "type","ext3", |
| | 38 | "mountpoint","/"), |
| | 39 | nlist ("block_device", "logical_volumes/usrvol", |
| | 40 | "format", true, |
| | 41 | "preserve", false, |
| | 42 | "mount", true, |
| | 43 | "type","ext3", |
| | 44 | "mountpoint","/usr"), |
| | 45 | ); |
| | 46 | }}} |
| | 47 | |
| | 48 | Look at [source:templates/trunk/sites/example/filesystems/glite.tpl sites/example/filesystems/glite.tpl] for more details. |
| | 49 | |