Custom style rules for ansible-lint

Bug #1629033 reported by Jesse Pretorius
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Wishlist
Nish Patwa

Bug Description

We, as a community, have certain style preferences which we currently enforce by review - but which could be more easily enforced through custom lint plugins for ansible-lint.

It'd be great if we could put together a custom plugin to verify through ansible-lint that http://docs.openstack.org/developer/openstack-ansible/developer-docs/contribute.html#ansible-style-guide are met.

Once we have an example to work from we can then extend both the style guide and the custom checks to do more of the things we care about enforcing for various reasons.

Changed in openstack-ansible:
importance: Undecided → Wishlist
status: New → Confirmed
assignee: nobody → Nish Patwa (nishpatwa)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible (master)

Fix proposed to branch: master
Review: https://review.openstack.org/382560

Changed in openstack-ansible:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on openstack-ansible (master)

Change abandoned by Nish Patwa(nishpatwa_) (<email address hidden>) on branch: master
Review: https://review.openstack.org/382560

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-ansible-tests (master)

Fix proposed to branch: master
Review: https://review.openstack.org/383822

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-ansible-tests (master)

Reviewed: https://review.openstack.org/383822
Committed: https://git.openstack.org/cgit/openstack/openstack-ansible-tests/commit/?id=7a576b2e8b831ecf004a69ec2fb5216dacccaffe
Submitter: Jenkins
Branch: master

commit 7a576b2e8b831ecf004a69ec2fb5216dacccaffe
Author: Nish Patwa <email address hidden>
Date: Fri Oct 7 16:59:45 2016 +0000

    Custom ansible playbooks checker using linter

    Added custom style rules checker that checks whether the
    playbooks follow YAML dictionary format or not.

    Guidelines for writing Ansible playbooks is located here:
    http://docs.openstack.org/developer/openstack-ansible/
    developer-docs/contribute.html#ansible-style-guide

    Change-Id: I9ad0d90017a0ce38f97dcbd43cbe8c1c13f185ed
    Closes-Bug: 1629033

Changed in openstack-ansible:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.