Coder Social home page Coder Social logo

nward / puppet-netdev-stdlib-junos Goto Github PK

View Code? Open in Web Editor NEW

This project forked from juniper/puppet-netdev-stdlib-junos

0.0 2.0 0.0 87 KB

NOTE: NOT YET POSTED TO PUPPET FORGE - staging for 1.0.0 release. Junos specific Provider code for "netdev_stdlib". Netdev is a vendor-neutral network abstraction framework developed by Juniper Networks and contributed freely to the DevOps community.

License: Other

puppet-netdev-stdlib-junos's Introduction

OVERVIEW

Netdev is a vendor-neutral network abstraction framework developed by Juniper Networks and contributed freely to the DevOps community

This module contains the Junos specific Provider code impelmenting the Resource Types defined in netdevops/netdev_stdlib

EXAMPLE USAGE

This module has been tested against Puppet agent 2.7.19. Here is a short example of a static manifest for a Junos EX switch. This example assumes that you've also installed the Puppet stdlib module as this example uses the keys function.

node "myswitch1234.mycorp.com" {
     
  netdev_device { $hostname: }
    
  $vlans = {
    'Blue'    => { vlan_id => 100, description => "This is a Blue vlan" },
    'Green'   => { vlan_id => 101, description => "This is a Green vLAN" },
    'Purple'  => { vlan_id => 102, description => "This is a Puple vlan" },
    'Red'     => { vlan_id => 103, description => "This is a Red vlan" },
    'Yellow'  => { vlan_id => 104, description => "This is a Yellow vlan" }   
  }
    
  create_resources( netdev_vlan, $vlans )
    
  $access_ports = [
    'ge-0/0/0',
    'ge-0/0/1',
    'ge-0/0/2'
  ]
    
  $uplink_ports = [
    'xe-0/0/0',
    'xe-0/0/2'
  ]
      
  netdev_l2_interface { $access_ports:
    untagged_vlan => Blue
  }
          
  netdev_l2_interface { $uplink_ports:
    tagged_vlans => keys( $vlans )
  }
}

DEPENDENCIES

  • Puppet 2.7.19
  • Ruby Gem netconf 0.2.5
  • Puppet module netdevops/netdev_stdlib version >= 1.0.0
  • Junos OS release and jpuppet image by platform:
    • QFX3500, QFX3600:
      • JUNOS 12.3X50-D20.1
      • jpuppet-qfx-1.0R1.1
    • EX4200, EX4500, EX4550:
      • JUNOS 12.3R2.5
      • jpuppet-ex-1.0R1.1
    • MX240, MX480, MX960:
      • JUNOS 12.3R2.5
      • jpuppet-mx-1.0R1.1
    • MX5, MX10, MX40, MX80:
      • JUNOS 12.3R2.5
      • jpuppet-mx80-1.0R1.1

INSTALLATION ON PUPPET-MASTER

  • gem install netconf
  • puppet module install juniper/netdev_stdlib_junos

RESOURCE TYPES

See RESOURCE-STDLIB.md for documentation and usage examples

CONTRIBUTORS

Jeremy Schulman, Juniper Networks

LICENSES

See LICENSE-JUNIPER

puppet-netdev-stdlib-junos's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.