Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arista.cvp integration - Support provision and deletion in role #54

Closed
titom73 opened this issue Dec 12, 2019 · 1 comment
Closed

arista.cvp integration - Support provision and deletion in role #54

titom73 opened this issue Dec 12, 2019 · 1 comment
Assignees

Comments

@titom73
Copy link
Contributor

titom73 commented Dec 12, 2019

Role eos-config-deploy-cvp is only supporting Fabric creation. In some use cases, it might be interesting to reset fabric from CVP and move EOS devices to ZTP mode.

Role should allow an option to choose whether we want to build or cleanup CVP.

- name: Configuration deployment with CVP
  hosts: CVP
  connection: local
  gather_facts: no
  tasks:
    - name: run CVP provisioning
      import_role:
         name: eos-config-deploy-cvp
      vars:
        state: {{present|absent}}  # present is default value
@titom73 titom73 self-assigned this Dec 12, 2019
titom73 added a commit that referenced this issue Dec 14, 2019
Implement multiple input variables to make role more granular:

```yaml
device_filter: 'all'
container_root: '{{ fabric_name }}'
configlets_prefix: 'AVD-{{ fabric_name }}-'
```

A new var is also available to select either creation/update or deletion

```yaml
state: absent
```
@titom73
Copy link
Contributor Author

titom73 commented Dec 14, 2019

All variables defined in this role have a default value:

# Filter to apply on cv_device to target only devices involved in Fabric
device_filter: 'all'

# Define inventory group to consider root of container topology
container_root: '{{ fabric_name }}'

# Configure prefix to append to configlets on CloudVision
configlets_prefix: 'AVD-{{ fabric_name }}-'

# State management to know if module should create/update or delete fabric
state: 'present'

@titom73 titom73 closed this as completed Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant