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

Create a role to deploy additional configlets #93

Merged
merged 4 commits into from
Mar 26, 2020

Conversation

titom73
Copy link
Contributor

@titom73 titom73 commented Mar 19, 2020

Is your feature request related to a problem? Please describe.

In some cases, it is required to use additional configlets not generated by AVD. Main use case is when AVD has a feature gap. Having configlets in git for versioning may be a good solution.

Describe the solution you'd like

Create a role and a playbook to upload a set of configlets to CloudVision. This role should not take care of binding to device/container as it will remain part of AVD playbooks.

Describe alternatives you've considered

N/A

Additional context

N/A

@titom73 titom73 added type: enhancement New feature or request EVPN design guide avd tools Ansible AVD Tooling labels Mar 18, 2020
@titom73 titom73 self-assigned this Mar 18, 2020
Role to upload all configlets stored in a given directory. They are not
bind to neither devices or containers as it must be part of an
additional task.

Inputs:
-------
- __`configlet_directory`__: Folder where local configlets are stored. Default: `configlets`.
- __`file_extension`__: File extension to look for configlet in their local folder. Default: `conf`.
- __`configlets_cvp_prefix`__: Prefix to use for configlet on CV side. Default: `none`.

Example playbook:
------------------

tasks:
  - name: run CVP provisioning
    import_role:
        name: cvp_configlet_upload
    vars:
      configlet_directory: 'configlets/'
      file_extension: 'txt'
      configlets_cvp_prefix: 'DC1-AVD'
@titom73
Copy link
Contributor Author

titom73 commented Mar 19, 2020

Role to upload all configlets stored in a given directory. They are not
bind to neither devices or containers as it must be part of an
additional task.

Inputs:

  • configlet_directory: Folder where local configlets are stored. Default: configlets.
  • file_extension: File extension to look for configlet in their local folder. Default: conf.
  • configlets_cvp_prefix: Prefix to use for configlet on CV side. Default: none.

Example playbook:

tasks:
  - name: run CVP provisioning
    import_role:
        name: cvp_configlet_upload
    vars:
      configlet_directory: 'configlets/'
      file_extension: 'txt'
      configlets_cvp_prefix: 'DC1-AVD'

@titom73 titom73 linked an issue Mar 19, 2020 that may be closed by this pull request
@carlbuchmann carlbuchmann merged commit c32e18d into releases/v1.0.x Mar 26, 2020
@carlbuchmann carlbuchmann deleted the features/93-configlet-uploader branch March 26, 2020 14:14
@carlbuchmann carlbuchmann mentioned this pull request Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
avd tools Ansible AVD Tooling EVPN design guide type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support to declare configlets managed by CVP
2 participants