Mailinglist Archive: opensuse-autoinstall (192 mails)
| < Previous | Next > |
AW: [suse-autoinstall] Working examples of classes
- From: Andreas.Matthieu@xxxxxxxxxxxxxxxxxx
- Date: Fri, 11 Feb 2005 07:58:08 +0000 (UTC)
- Message-id: <H000041b0041b045.1108108670.frz.brandenburg.de@MHS>
Hi,
> Does anyone have a working example of how to structure a class
definition? I've tried it but I get syntax errors from autoyast.
this my working configuration:
..../profiles/<SERVER>.xml
..../profiles/rules/rules.xml
..../profiles/classes/<CLASS-NAME>/<config-file>.xml
When you got syntax errors try xmllint --valid *.xml.
Example <SERVER>.xml:
<?xml version="1.0"?>
<!DOCTYPE profile SYSTEM "/usr/share/autoinstall/dtd/profile.dtd">
<profile xmlns="http://www.suse.com/1.0/yast2ns"
xmlns:config="http://www.suse.com/1.0/configns">
<install>
<classes config:type="list">
<class>
<class_name>Partitioning</class_name>
<configuration>part_VM_AIS.xml</configuration>
</class>
<class>
<class_name>Software</class_name>
<configuration>sw_VM_AIS.xml</configuration>
</class>
<class>
<class_name>Boot</class_name>
<configuration>boot_vm.xml</configuration>
</class>
<class>
<class_name>Network</class_name>
<configuration>eth0-dhcp.xml</configuration>
</class>
<class>
<class_name>Scripts</class_name>
<configuration>post.xml</configuration>
</class>
<class>
<class_name>Users</class_name>
<configuration>root.xml</configuration>
</class>
<class>
<class_name>General</class_name>
<configuration>general.xml</configuration>
</class>
<class>
<class_name>Config</class_name>
<configuration>config.xml</configuration>
</class>
</classes>
</install>
</profile>
We have try'd to merge 2 "Server".xml (ex: General.xml and HPDL.xml) at
install time. This not work, the second file overwrite the first
classes. AY then have not a full configuration for this server.
> Does anyone have a working example of how to structure a class
definition? I've tried it but I get syntax errors from autoyast.
this my working configuration:
..../profiles/<SERVER>.xml
..../profiles/rules/rules.xml
..../profiles/classes/<CLASS-NAME>/<config-file>.xml
When you got syntax errors try xmllint --valid *.xml.
Example <SERVER>.xml:
<?xml version="1.0"?>
<!DOCTYPE profile SYSTEM "/usr/share/autoinstall/dtd/profile.dtd">
<profile xmlns="http://www.suse.com/1.0/yast2ns"
xmlns:config="http://www.suse.com/1.0/configns">
<install>
<classes config:type="list">
<class>
<class_name>Partitioning</class_name>
<configuration>part_VM_AIS.xml</configuration>
</class>
<class>
<class_name>Software</class_name>
<configuration>sw_VM_AIS.xml</configuration>
</class>
<class>
<class_name>Boot</class_name>
<configuration>boot_vm.xml</configuration>
</class>
<class>
<class_name>Network</class_name>
<configuration>eth0-dhcp.xml</configuration>
</class>
<class>
<class_name>Scripts</class_name>
<configuration>post.xml</configuration>
</class>
<class>
<class_name>Users</class_name>
<configuration>root.xml</configuration>
</class>
<class>
<class_name>General</class_name>
<configuration>general.xml</configuration>
</class>
<class>
<class_name>Config</class_name>
<configuration>config.xml</configuration>
</class>
</classes>
</install>
</profile>
We have try'd to merge 2 "Server".xml (ex: General.xml and HPDL.xml) at
install time. This not work, the second file overwrite the first
classes. AY then have not a full configuration for this server.
| < Previous | Next > |