Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using but I can't configure it properly.

this is my puppetfile.pp

class network {
    static { "eth1":
        ipaddress  => "",
        netmask    => "",
        ensure     => "up",

node default {
    include eth1

But won't work!

The doc says

network::if::static { "eth0":
  ipaddress  => "",
  netmask    => "",
  ensure     => "up",

may someone point me how to trnslate this :: in a puppet file?


share|improve this question
up vote 1 down vote accepted

I worked around with this Vagrantfile

I setup two cards (the default one and a second public one) the first with my usual conf and the second with a custom static IP

Vagrant.configure("2") do |config| = "precise32"

  config.vm.provider :virtualbox do |v|
    v.customize ["modifyvm", :id, "--memory", 256]
    v.customize ["modifyvm", :id, "--nictype1", "virtio"] # the main card (used for ssh and internal networking between host and guest)
    v.customize ["modifyvm", :id, "--nictype2", "virtio"] # a second card
    v.gui = true # for debug
  end :bridged, :bridge => "en0: Wi-Fi (Airport)", :adapter => 1 # the main card configuration :private_network, :ip => "", :nictype => 'virtio', :adapter => 2 # the secondary card configuration with a static IP
share|improve this answer
Would you mind explaining how this solved the problem please. – Iain Mar 29 '13 at 8:42
You're right. This won't solve, it's a workaroud. Edited – Antonello Pasella Mar 29 '13 at 8:44
What I meant was can you explain a little what it does / why it helps, the bare link doesn't really do that. – Iain Mar 29 '13 at 8:45
Edited, thanks for your help – Antonello Pasella Mar 29 '13 at 8:53
thanks for the update – Iain Mar 29 '13 at 8:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.