Skip to content

Installation of the latest pre release version

Kerry Meyer edited this page Jul 5, 2022 · 1 revision

Pre-release versions

For the source branches described in "https://github.com/ansible-collections/dellemc.enterprise_sonic/wiki/Description-of-Branches", the latest version of code can be installed via the procedure described below. Before merging to this repository, the code has been unit tested, regression tested, and "sanity" tested with each of the currently available version of Ansible "core".

Procedure for installing a pre-release version

The following procedure provides an example. The user can use any desired directory name (including an already existing directory) as a location for the cloned collection.

Synopsis

Create a directory to hold your copy of our "development" collection (e.g. ans_devel), clone the development version of the collection into that directory, then install the collection on the VM or server from which you are running Ansible.

Detailed example

> mkdir ans_devel

> cd ans_devel

> git clone https://github.com/ansible-collections/dellemc.enterprise_sonic.git


The default branch is "main", the "development" branch containing the most recent code. To obtain code from a "release branch" (e.g. the name of the branch for SONiC 3.x support is "1.x"), the additional steps shown here are required:

> cd dellemc.enterprise_sonic

> git checkout <branch name> (e.g. "git checkout 1.x")

> cd ..


> vim requirements.yml

Place the following content in the “requirements.yml” file:

collections:

        - source: ./dellemc.enterprise_sonic
          type: dir

> ansible-galaxy collection install -r ./requirements.yml [--force]

(Use the "--force" argument if updating or re-installing a collection on a server for which a previous or alternate version has already been installed.)