Commit 55aa3450 authored by Antoine Catton's avatar Antoine Catton

Refactoring of slapcontainer configuration

parent b0e483a8
......@@ -46,10 +46,18 @@ class Recipe(GenericSlapRecipe):
config.add_section('requested')
config.set('requested', 'status',
self.computer_partition.getState())
config.add_section('information')
config.set('information', 'ipv6', self.options['ipv6'])
config.set('information', 'ipv4', self.options['ipv4'])
config.set('information', 'interface', self.options['interface'])
config.add_section('network')
config.set('network', 'ipv6', self.options['ipv6'])
config.set('network', 'ipv4', self.options['ipv4'])
config.set('network', 'interface', self.options['interface'])
config.add_section('rootfs')
config.set('rootfs', 'directory', self.options['rootfs'])
config.set('rootfs', 'tmp', self.options['tmp-dir'])
config.add_section('config')
config.set('config', 'file', self.options['config-file'])
config.add_section('tar')
config.set('tar', 'binary', self.options['tar-binary'])
config.set('tar', 'path', self.options['tar-path'])
config_filename = self.options['config']
with open(config_filename, 'w') as config_file:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment