Skip to content

Malformed redhat files are generated #142

Closed
@rski

Description

@rski

With the current master (1be5bcd) I get interface files that contain lines like MTU=absent. For example:

network_config { 'eth1':
  ensure      => present,
  family      => 'inet',
  #ipaddress   => '127.0.0.2',
  method      => 'static',
  netmask     => '255.255.255.0',
  onboot      => true,
  reconfigure => true,
  options     => {},
}

will generate:

IPADDR=absent
NETMASK=255.255.255.0
BOOTPROTO=static
ONBOOT=yes
DEVICE=eth1
HOTPLUG=yes
MTU=absent

Then, if I try to bring the interface up:

$ sudo ifup eth1
Error: argument "absent" is wrong: Invalid "mtu" value

This does not seem to happen with the debian provider

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions