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

Feature build output dirs #73

Merged
merged 2 commits into from
Mar 9, 2020
Merged

Conversation

titom73
Copy link
Contributor

@titom73 titom73 commented Feb 12, 2020

Documentation: Role README

Role support following variables:

# Root directory where to build output structure
root_dir: '{{playbook_dir}}'
# Main output directory
output_dir_name: 'intended'
# Output for structured YAML files:
structured_dir_name: 'structured_configs'
# EOS Configuration Directory name
eos_config_dir_name: 'configs'
# Main documentation folder
documentation_dir_name: 'documentation'
# Fabric Documentation
fabric_dir_name: 'DC1_FABRIC'
# Device documentation
devices_dir_name: 'devices'

Example to use in your playbook to build output folders using default values.

- name: Build Switch configuration
  hosts: DC1_FABRIC
  connection: local
  gather_facts: no
  tasks:
    - name: 'Reset local folders for output'
      tags: [build]
      import_role:
        name: arista.avd.build_output_folders

Simple role to create/cleanup output folders:

By default, user has to create output folders meaning he must know and
create structure prior to run any playbook.

To make it part of playbook execution, role will delete any existing
folder defined as output and recreate structure.

Default values are those currently in place in repository but it can be
changed by user as described in README

Complete documentation in role's README
@titom73 titom73 added the avd tools Ansible AVD Tooling label Feb 12, 2020
@titom73
Copy link
Contributor Author

titom73 commented Feb 18, 2020

Ready for review

Copy link
Member

@carlbuchmann carlbuchmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@carlbuchmann carlbuchmann merged commit 9a3e9b8 into releases/v1.0.x Mar 9, 2020
@carlbuchmann carlbuchmann deleted the feature-build-output-dirs branch March 26, 2020 14:22
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants