Sha256: 1ee4fdda597c94d0959c9d24a567a0581d015aae350f43181085226497cad581

Contents?: true

Size: 421 Bytes

Versions: 1

Compression:

Stored size: 421 Bytes

Contents

{ config, pkgs, ... }:
{
  networking.interfaces = [
    <% networks.select {|n| n[:device]}.each do |network| %>
    { 
      name         = "<%= network[:device] %>";
      <% if network[:type] == :static %>
      ipAddress    = "<%= network[:ip] %>";
      <% end %>
      <% if network[:prefix_length] %>
      prefixLength = <%= network[:prefix_length] %>;
      <% end %>
    }
    <% end %>
  ];
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/bundler/gems/vagrant-c84e05fd063f/templates/guests/nixos/network.erb