Skip to content

Commit

Permalink
Release 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jerearista committed Aug 26, 2015
2 parents 8277a9f + 64ee663 commit e3e4e2d
Show file tree
Hide file tree
Showing 58 changed files with 2,490 additions and 63 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ end
group :development, :test do
gem 'yard'
gem 'redcarpet', '~> 3.1.2'
gem 'rake', '~> 10.1.0', require: false
gem 'rake', '~> 10.1.0', require: false
gem 'rspec', '~> 3.0.0'
gem 'rspec-mocks', '~> 3.0.0'
gem 'pry', require: false
Expand All @@ -35,7 +35,7 @@ group :development, :test do
gem 'simplecov-rcov', require: false
gem 'puppetlabs_spec_helper'
gem 'puppet-lint'
gem 'metadata-json-lint', require: false
gem 'metadata-json-lint', require: false
gem 'ci_reporter'
gem 'ci_reporter_rspec'
end
Expand Down
4 changes: 2 additions & 2 deletions Guardfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

guard :rspec, cmd: 'bundle exec rspec' do
watch(%r{^spec\/.+_spec\.rb$})
watch(%r{^lib\/(.+)\.rb$}) { |m| "spec/unit/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { 'spec' }
watch(%r{^lib\/(.+)\.rb$}) { |m| "spec/unit/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { 'spec' }
end

guard :rubocop do
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ See the [Type reference](http://puppet-eos.readthedocs.org/en/master/types.html)
* Puppet 3.6 or later
* Ruby 1.9.3 or later
* [Arista EOS 4.13.7M or later](arista)
* [Ruby Client for eAPI 0.2.0 or later](rbeapi)
* [Ruby Client for eAPI 0.3.0 or later](rbeapi)

## Development

Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ task :ci_prep do
require 'ci/reporter/rake/rspec'
ENV['CI_REPORTS'] = 'results'
rescue LoadError
puts 'Missing ci_reporter gem. You must have the ci_reporter gem installed'\
' to run the CI spec tests'
puts 'Missing ci_reporter gem. You must have the ci_reporter gem ' \
'installed to run the CI spec tests'
end
end

Expand Down
Binary file added guide/_static/arista_logo_11-trans-w.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified guide/_static/arista_logo_jpg-11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion guide/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
# The name of an image file (relative to this directory) to place at the top
# of the sidebar.
#html_logo = None
html_logo = '_static/arista_logo_jpg-11.jpg'
html_logo = '_static/arista_logo_11-trans-w.png'

# The name of an image file (within the static path) to use as favicon of the
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
Expand Down
22 changes: 14 additions & 8 deletions guide/quickstart.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,20 @@ Sample minimal configuration on a switch includes basic IP connectivity, hostnam
ip route 0.0.0.0/0 192.2.2.1
!
! If EOS version is 4.14.5 or higher, use unix-sockets
!
From EOS 4.15.5 and up, it is recommended configure EOS to use unix-sockets for eAPI:

.. code-block:: console
management api http-commands
no protocol https
protocol unix-socket
no shutdown
!
! If EOS version is below 4.14.5
In EOS versions below 4.15.5, it is recommended to configure EOS to use https for eAPI. This also requires the creation of a ``flash:eapi.conf`` in which to store user credentials to login to eAPI:

.. code-block:: console
username eapi privilege 15 secret icanttellyou
!
management api http-commands
Expand All @@ -56,15 +61,15 @@ Example ``flash:eapi.conf``:
password: password
enablepwd: itsasecret
Install the puppet agent from `PuppetLabs`_::
Install the puppet agent from `PuppetLabs`_ (`previous releases`_)::

Arista#copy http://myserver/puppet-enterprise-3.7.2-eos-4-i386.swix extensions:
Arista#extension puppet-enterprise-3.7.2-eos-4-i386.swix
Arista#copy http://myserver/puppet-enterprise-3.8.2-eos-4-i386.swix extensions:
Arista#extension puppet-enterprise-3.8.2-eos-4-i386.swix

Install the `rbeapi extension`_::

Arista#copy http://myserver/rbeapi-0.1.0.swix extensions:
Arista#extension rbeapi-0.1.0.swix
Arista#copy http://myserver/rbeapi-0.3.0.swix extensions:
Arista#extension rbeapi-0.3.0.swix

Save the installed extensions::

Expand Down Expand Up @@ -180,5 +185,6 @@ If the steps, above, were not successful, proceed to the :ref:`troubleshooting`
.. _`Github: puppet-eos`: https://github.com/arista-eosplus/puppet-eos
.. _`ZTP Server`: https://github.com/arista-eosplus/ztpserver
.. _`PuppetLabs`: https://puppetlabs.com/download-puppet-enterprise-all#eos
.. _`previous releases`: https://puppetlabs.com/misc/pe-files/previous-releases
.. _`rbeapi extension`: https://github.com/arista-eosplus/rbeapi

28 changes: 28 additions & 0 deletions guide/release-notes-1.2.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Release 1.2 - August 2015
=========================

.. contents:: :local:

* Adds 3 new types

See `GitHub issues <https://github.com/arista-eosplus/puppet-eos/issues>`_ for the current state of any known issues.

.. note:: puppet-eos 1.2.0 requires a minumum rbeapi version of 0.3.0. Prior versions of puppet-eos will only work with rbeapi 0.2.0 or lower.

New Types
---------

* eos_bgp_config
* eos_bgp_network
* eos_bgp_neighbor
* eos_staticroute

Enhancements
------------

Resolved Issues
---------------

Known Issues
------------

1 change: 1 addition & 0 deletions guide/release-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Release Notes
:maxdepth: 2
:titlesonly:

release-notes-1.2
release-notes-1.1
release-notes-1.0

159 changes: 143 additions & 16 deletions guide/typedoc.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
**This page is autogenerated; any changes will get overwritten** *(last
generated on 2015-07-07 06:31:27 -0400)*
generated on 2015-08-21 08:20:39 -0400)*

Resource Types
--------------
Expand All @@ -15,9 +15,9 @@ In the following code:
::

file { "/etc/passwd":
owner => root,
group => root,
mode => 644
owner => "root",
group => "root",
mode => "0644"
}

``/etc/passwd`` is considered the title of the file object (used for
Expand Down Expand Up @@ -107,6 +107,138 @@ network address to define the subnet. Values range from 0 to 32.

--------------

eos\_bgp\_config
~~~~~~~~~~~~~~~~

Provides resource management of the global BGP routing process for
Arista EOS nodes.

Parameters
^^^^^^^^^^

bgp\_as : (**Namevar:** If omitted, this parameter's value defaults to
the resource's title.)

The BGP autonomous system number to be configured for the local BGP
routing instance. The value must be in the valid BGP AS range of 1 to
65535. The value is a String.

enable : Configures the administrative state for the global BGP routing
process. If enable is True then the BGP routing process is
administartively enabled and if enable is False then the BGP routing
process is administratively disabled.

Valid values are ``true``, ``yes``, ``on``, ``false``, ``no``, ``off``.

ensure : The basic property that the resource should be in.

Valid values are ``present``, ``absent``.

provider : The specific backend to use for this ``eos_bgp_config``
resource. You will seldom need to specify this --- Puppet will usually
discover the appropriate provider for your platform.Available providers
are:

eos :

router\_id : Configures the BGP routing process router-id value. The
router id must be in the form of A.B.C.D

--------------

eos\_bgp\_neighbor
~~~~~~~~~~~~~~~~~~

Provides stateful management of the neighbor statements for the BGP
routing process for Arista EOS nodes.

Parameters
^^^^^^^^^^

description : Configures the BGP neighbors description value. The value
specifies an arbitrary description to add to the neighbor statement in
the nodes running-configuration.

enable : Configures the administrative state for the BGP neighbor
process. If enable is True then the BGP neighbor process is
administartively enabled and if enable is False then the BGP neighbor
process is administratively disabled.

Valid values are ``true``, ``yes``, ``on``, ``false``, ``no``, ``off``.

ensure : The basic property that the resource should be in.

Valid values are ``present``, ``absent``.

name : The name of the BGP neighbor to manage. This value can be either
an IPv4 address or string (in the case of managing a peer group).

next\_hop\_self : Configures the BGP neighbors next-hop-self value. If
enabled then the BGP next-hop-self value is enabled. If disabled, then
the BGP next-hop-self community value is disabled

Valid values are ``enable``, ``disable``.

peer\_group : The name of the peer-group value to associate with the
neighbor. This argument is only valid if the neighbor is an IPv4
address.

provider : The specific backend to use for this ``eos_bgp_neighbor``
resource. You will seldom need to specify this --- Puppet will usually
discover the appropriate provider for your platform.Available providers
are:

eos :

remote\_as : Configures the BGP neighbors remote-as value. Valid AS
values are in the range of 1 to 65535. The value is an Integer.

route\_map\_in : Configures the BGP neigbhors route-map in value. The
value specifies the name of the route-map.

route\_map\_out : Configures the BGP neigbhors route-map out value. The
value specifies the name of the route-map.

send\_community : Configures the BGP neighbors send-community value. If
enabled then the BGP send-community value is enable. If disabled, then
the BGP send-community value is disabled.

Valid values are ``enable``, ``disable``.

--------------

eos\_bgp\_network
~~~~~~~~~~~~~~~~~

Provides stateful management of the network statements for the BGP
routing process for Arista EOS nodes.

Parameters
^^^^^^^^^^

ensure : The basic property that the resource should be in.

Valid values are ``present``, ``absent``.

name : The name is a composite name that contains the
IPv4\_Prefix/Masklen. The IPv4 prefix to configure as part of the
network statement. The value must be a valid IPv4 prefix. The IPv4
subnet mask length in bits. The value for the masklen must be in the
valid range of 1 to 32.

provider : The specific backend to use for this ``eos_bgp_network``
resource. You will seldom need to specify this --- Puppet will usually
discover the appropriate provider for your platform.Available providers
are:

eos :

route\_map : Configures the BGP route-map name to apply to the network
statement when configured. Note this module does not create the
route-map.

--------------

eos\_command
~~~~~~~~~~~~

Expand Down Expand Up @@ -568,26 +700,21 @@ The default value for source\_interface is ''

--------------

eos\_stp\_config
eos\_staticroute
~~~~~~~~~~~~~~~~

Configure global STP settings in EOS
Configure static route settings

Parameters
^^^^^^^^^^

mode : Specifies STP mode of operation

Valid values are ``mstp``, ``none``.
ensure : The basic property that the resource should be in.

name : The resource name for the STP instance
Valid values are ``present``, ``absent``.

provider : The specific backend to use for this ``eos_stp_config``
resource. You will seldom need to specify this --- Puppet will usually
discover the appropriate provider for your platform.Available providers
are:
name : The destination network prefix

eos :
route\_name : The name assigned to the static route

--------------

Expand Down Expand Up @@ -925,4 +1052,4 @@ eos :

--------------

*This page autogenerated on 2015-07-07 06:31:31 -0400*
*This page autogenerated on 2015-08-21 08:20:42 -0400*
2 changes: 1 addition & 1 deletion lib/eos/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##
# eos version
module Eos
VERSION = '1.1.0'
VERSION = '1.2.0'
end
1 change: 1 addition & 0 deletions lib/puppet/provider/eos_acl_entry/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@

def self.instances
acls = node.api('acl').getall
return [] if !acls || acls.empty?
acls.each_with_object([]) do |(name, entries), arry|
entries.each_with_object([]) do |(seqno, attrs), _hsh|
provider_hash = { name: namevar(name, seqno), ensure: :present }
Expand Down
Loading

0 comments on commit e3e4e2d

Please sign in to comment.