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

Adding ansible readme for proposed folder structure #1

Merged
merged 1 commit into from
Mar 7, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions ansible/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# file: ansible/README
# Ansible top level file and directory structure
# adapted from http://docs.ansible.com/ansible/playbooks_best_practices.html

prod # inventory file for production servers
pre_prod # inventory file for staging environment
lab # inventory file for test lab environment

group_vars/
prod # here we assign variables to particular groups
pre_prod # groups can be environments, geographical, role based
lab

host_vars/
hostname1 # if an individual system must have specific variables, put them here
hostname2 # (use of host_vars should be avoided)

library/ # if any custom modules, put them here (optional)
filter_plugins/ # if any custom filter plugins, put them here (optional)

deploy_sonic.yml # playbook to initialize a sonic switch after imaging process is complete
integration_test.yml # playbook to run all integration tests

roles/
sonic_common/ # common "role" for the sonic switch, only add tasks here that are for all sonic switches
tasks/ #
main.yml # <-- tasks file can include smaller files if warranted
handlers/ #
main.yml # <-- handlers file
templates/ # <-- files for use with the template resource
ntp.conf.j2 # <------- templates end in .j2
files/ #
bar.txt # <-- files for use with the copy resource
foo.sh # <-- script files for use with the script resource
vars/ #
main.yml # <-- variables associated with this role
defaults/ #
main.yml # <-- default lower priority variables for this role
meta/ #
main.yml # <-- role dependencies

sonic_test/ # same kind of structure as above, but for the integration test role,
# see http://github.com/Azure/sonic-integrationtest
sonic_vm/ # for a future, vm based deployment of sonic
sonic_s6000/ # place Dell s6000 specific tasks here
sonic_msn2700/ # place Mellanox msn2700 specific tasks here