AutoYaST: Automatic Linux Installation and Configuration with YaST2 | ||
---|---|---|
<<< Previous | Chapter 4. Configuration and Installation Options | Next >>> |
Using the sysconfig resource, it is possible to define configuration variables in the sysconfig repository (/etc/sysconfig) directly. Sysconfig variables, offer the possibility to fine-tune many system components and environment variables exactly to your needs.
Refer to the handbook for more details about the many configuration options available in /etc/sysconfig
The following example shows how a variable can be set using the sysconfig resource.
To configure a variable in a sysconfig file, the following syntax can be used:
Example 4-35. Sysconfig Configuration
<sysconfig config:type="list" > <sysconfig_entry> <sysconfig_key>XNTPD_INITIAL_NTPDATE</sysconfig_key> <sysconfig_path>/etc/sysconfig/xntp</sysconfig_path> <sysconfig_value>ntp.host.com</sysconfig_value> </sysconfig_entry> <sysconfig_entry> <sysconfig_key>HTTP_PROXY</sysconfig_key> <sysconfig_path>/etc/sysconfig/proxy</sysconfig_path> <sysconfig_value>proxy.host.com:3128</sysconfig_value> </sysconfig_entry> <sysconfig_entry> <sysconfig_key>FTP_PROXY</sysconfig_key> <sysconfig_path>/etc/sysconfig/proxy</sysconfig_path> <sysconfig_value>proxy.host.com:3128</sysconfig_value> </sysconfig_entry> </sysconfig> |
Both relative and absolute pathes can be provided. If no absolute path is given, it is treated as a sysconfig file under the /etc/sysconfig directory.
<<< Previous | Home | Next >>> |
Custom user scripts | Up | Adding complete configurations |