-
Notifications
You must be signed in to change notification settings - Fork 64
Installation of the latest pre release version
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".
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.
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.
> 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.)