I am using the VLAN resource type to manage VLANs on a Cisco 4500.

On every run puppet reports that it created the VLAN (even though it
exists).

Grabbing data from hiera:

network::layer3::vlans:
  site:
    name: 703
    description: 'Site'
  management:
    name: 712
    description: 'Managment'

Then in my manifest:

class profiles::cisco::layer3_vlan {

  # site level VLANs
  $site_vlans        = hiera('network::layer3::vlans')

  $defaults = {
    'ensure' => present,
  }

  create_resources('vlan', $site_vlans, $defaults)

}

Device.conf is:

[op1cor01.op1]
  type cisco
  url ssh://user:Pass@op1cor01.op1/

Or is that the way that resource type works? Just meant to be run once as
it can't determine what exists and what doesn't already?

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CA%2BNsY5iTpqraiq1WDf2zi8agiS81gcoMoF%2BfbQ%2BHnBFUHOdZHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to