summaryrefslogtreecommitdiffstats
path: root/controller.yaml
AgeCommit message (Expand)AuthorFilesLines
2015-04-22Set EnablePacemaker == false be defaultDan Prince1-1/+1
2015-04-21Parameter to enable/disable controller swift storeDan Prince1-0/+4
2015-04-21Add option to enable ceph storage on controllerDan Prince1-0/+4
2015-04-20Perform basic setup of Pacemaker cluster using puppet-pacemakerGiulio Fidente1-3/+8
2015-04-14Perform basic setup of pacemaker cluster on controllersGiulio Fidente1-0/+3
2015-04-10MariaDB bind on correct addressJiri Stransky1-0/+4
2015-04-09Make all default values match overcloud defaultsJeff Peeler1-2/+2
2015-03-18Add support for Ceph as a Cinder and Nova backendYanis Guenane1-0/+4
2015-03-16Merge "Make heat auth_encryption_key random"Jenkins1-1/+5
2015-03-13Make heat auth_encryption_key randomSteven Hardy1-1/+5
2015-03-12Use Cinder multibackend by defaultYanis Guenane1-0/+4
2015-01-27Swift: set default replicas to 3Dan Prince1-1/+1
2015-01-27Controller: consolidated nested stackDan Prince1-7/+224
2015-01-27Merge "Add parameter to manage usage of Neutron l3_ha option"Jenkins1-0/+4
2015-01-09Add parameter to manage usage of Neutron l3_ha optionGiulio Fidente1-0/+4
2015-01-09Add SwiftMountCheck to overcloud-without-mergepyDan Prince1-0/+6
2015-01-09Add SwiftMinPartHours to overcloud-without-mergepyDan Prince1-0/+6
2015-01-08Merge "Controller: Drive os-net-config via software conf"Jenkins1-0/+13
2015-01-08
<!---
This work is licensed under a Creative Commons Attribution 4.0 International License.
http://creativecommons.org/licenses/by/4.0
-->

# General Coding Style

## Code

Abide by [PEP-8] for general code. Some particular points to note:

* Wrap code at 79 characters.
* Use only spaces - no tabs.
* Use implicit string concatenation where possible. Don't use the escape
  character unless absolutely necessary.
* Be liberal in your use of whitespace to group related statements together.
  However, don't leave a space after the docstring and the first statement.
* Use single quotes for all string literals.

## Documentation

Follow [PEP-257] and the [Sphinx guidelines] for documentation. In particular:

* Wrap docstrings at 72 characters.
* Use double-quotes for all docstrings.
* Write all inline comments in lower-case, except where using a name/initialism.
* Document **all** library functions/classes completely. Tests, however, only need a test case docstring.

To summarise the docstring conventions:

```python
def my_function(athing, stuff=5):
   """
   Summary line here in imperative tense.

   Longer description here...

   :param athing: Details about this paramter here
   :param stuff: Ditto

   :returns: None
   """
   pass  # code here...
```

### Validation

All code should be checked with the PyLint linter and PEP8 style guide checker.
Pylint can be run like so:

```bash
pylint <file or directory>
```

Most PyLint errors should be resolved. You will need to do this manually.
However, there are cases where they may not make sense (e.g. you **need** to
pass `N` parameters to a function). In this case, disable the relevant
case using an inline `disable` like so:

```python
# pylint: disable=[code]
```

On the other hand, all PEP8 errors should be resolved.

---

[PEP-8]: http://legacy.python.org/dev/peps/pep-0008/
[PEP-257]: http://legacy.python.org/dev/peps/pep-0257/
[Sphinx guidelines]: https://pythonhosted.org/an_example_pypi_project/sphinx.html
span class='libravatar'>Jenkins
1-1/+0
2014-12-09Merge "bump up the number of sesson limit for rabbitmq"Jenkins1-0/+1
2014-12-05Add missing novncproxy settings to controllerDan Prince1-0/+3
2014-12-05Add missing HAProxy settings to controllerDan Prince1-0/+6
2014-12-05Add missing Neutron DVR params to without-mergepyDan Prince1-1/+27
2014-12-05Add missing Keystone params to without-mergepyDan Prince1-0/+12
2014-12-05Add missing Rabbit params to without-mergepyDan Prince1-0/+12
2014-12-05Set default network interfaces to nic1Dan Prince1-1/+1
2014-11-28bump up the number of sesson limit for rabbitmqJerry Zhao1-0/+1
2014-11-27Remove default flavor from every templateSteve Kowalik1-1/+0
2014-10-31Merge "Use parameter constraints for image, key and flavor"Jenkins1-0/+6
2014-10-23Use parameter constraints for image, key and flavorSteven Hardy1-0/+6
2014-10-21Add converted version of block and object storagePeter Belanyi1-0/+42
2014-10-20Compute and controller templates without merge.pyTomas Sedovic1-158/+657
2014-10-08Sort inputs and parametersAlexis Lee1-15/+15
2014-08-13Switch to heat_template_version: 2013-05-23Steve Baker1-6/+6
2014-08-04Port all templates to HOTSteve Baker1-113/+113
2014-07-11Remove ImageBuilder::Elements from templatesTomas Sedovic1-8/+0
2014-04-09Stop using notCompute in favor of controllerDan Prince1-0/+225