Sign inSign up

kecorbin/netdevops-demo

By kecorbin

Updated over 8 years ago

CICD utilities for netdevops demo

Image
0

484

kecorbin/netdevops-demo repository overview

ansible-demo

Ansible scripts for Cisco Live Barcelona Demo

Build requirements

General

Basic usage

There are a set of .sh scripts in the root directory, which wrap calls to ansible-playbook, so that we are calling it consistently. Each script has a --help option for more details.

Each script also honors a -- option, for passing options directly to ansible-playbook. This allows you to pass additional options for running the playbook.

Full Deployment

$ ./deploy.sh --env test
-- [ansible-options]
$ ./deploy.sh --env test -- --limit distribution

As mentioned above, to pass arbitrary option to the ansible-playbook call, you can set them after the -- option. This is especially useful for passing along --tags, --limit or --check.

$./deploy.sh --env test -- --tags telemetry

Targeted Deployment

Full Configuration On aggregation switches

$ ./deploy.sh -- --limit distribution

Deploy default gateway configurations

$ ./deploy.sh -- --tags dgw

Deploy only layer3 configurations

    $ ./deploy.sh -- --tags layer3

Development

The infrastructure scripts must be idempotent. It should be safe to simple run ./deploy.sh at any time, without any ill effects or unexpected behavior.

The automation scripts are primarily Ansible scripts. A Virtualenv is used to ensure that the proper version of Ansible and its dependencies are used. The contents of the virtualenv are in requirements.txt. The activate.sh manages the virtualenv, and activates it for the shell.

Please see Simply Ansible for Ansible best practices for writing new roles/playbooks.

License

MIT license

Tag summary

Content type

Image

Digest

Size

216.8 MB

Last updated

over 8 years ago

docker pull kecorbin/netdevops-demo