Commit 5ccdf82e authored by Antoine Catton's avatar Antoine Catton

Add interface information for slapcontainer script

parent 100f13a8
......@@ -49,6 +49,7 @@ class Recipe(GenericSlapRecipe):
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_filename = self.options['config']
with open(config_filename, 'w') as config_file:
......
......@@ -20,4 +20,5 @@ promises = $${rootdirectory:etc}/promise
recipe = slapos.cookbook:slapcontainer
ipv4 = $${slap-network-information:local-ipv4}
ipv6 = $${slap-network-information:global-ipv6}
interface = $${slap-network-information:network-interface}
config = $${buildout:directory}/.slapcontainer
......@@ -23,7 +23,7 @@ mode = 0644
[template-lxc]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-lxc.cfg
md5sum = f4087b91cd9fe15ea7e4768f6331652a
md5sum = 2636ea339ad6f47756b4a026b14bb056
output = ${buildout:directory}/template-lxc.cfg
mode = 0644
......
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