You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
3.0 KiB
89 lines
3.0 KiB
14 years ago
|
cdist-hacker(7)
|
||
|
===============
|
||
|
Nico Schottelius <nico-cdist--@--schottelius.org>
|
||
|
|
||
|
|
||
|
NAME
|
||
|
----
|
||
|
cdist-hacker - How to get (stuff) into cdist
|
||
|
|
||
|
|
||
|
WELCOME
|
||
|
-------
|
||
|
Welcome dear hacker! I invite you to a tour of pointers to
|
||
|
get into the usable configuration mangament system, cdist.
|
||
|
|
||
|
The first thing to know is probably that cdist is brought to
|
||
|
you by people who care about how code looks like and who think
|
||
|
twice before merging or implementing a feature: Less features
|
||
|
with good usability are far better than the opposite.
|
||
|
|
||
|
|
||
14 years ago
|
REPORTING BUGS
|
||
|
--------------
|
||
|
If you believe you've found a bug and verified that it is
|
||
|
in the latest version, drop a mail to the cdist mailing list,
|
||
13 years ago
|
subject prefixed with "[BUG] " or create an issue on github.
|
||
14 years ago
|
|
||
|
|
||
14 years ago
|
CODING CONVENTIONS (EVERYWHERE)
|
||
|
-------------------------------
|
||
|
If something should be better done or needs to fixed, add the word FIXME
|
||
|
nearby, so grepping for FIXME gives all positions that need to be fixed.
|
||
|
|
||
13 years ago
|
Indention is 4 spaces (welcome to the python world).
|
||
|
|
||
14 years ago
|
|
||
14 years ago
|
HOW TO SUBMIT STUFF FOR INCLUSION INTO UPSTREAM CDIST
|
||
|
-----------------------------------------------------
|
||
|
If you did some cool changes to cdist, which you value as a benefit for
|
||
|
everybody using cdist, you're welcome to propose inclusion into upstream.
|
||
|
|
||
|
There are though some requirements to ensure your changes don't break others
|
||
|
work nor kill the authors brain:
|
||
|
|
||
14 years ago
|
- All files should contain the usual header (Author, Copying, etc.)
|
||
14 years ago
|
- Code submission must be done via git
|
||
14 years ago
|
- Do not add conf/manifest/init - This file should only be touched in your
|
||
|
private branch!
|
||
14 years ago
|
- Code to be included should be branched of the upstream "master" branch
|
||
|
- Exception: Bugfixes to a version branch
|
||
13 years ago
|
- On a merge request, always name the branch I should pull from
|
||
13 years ago
|
- Always ensure **all** manpages build. Use **./build man** to test.
|
||
14 years ago
|
- If you developed more than **one** feature, consider submitting them in
|
||
|
seperate branches. This way one feature can already be included, even if
|
||
|
the other needs to be improved.
|
||
14 years ago
|
|
||
13 years ago
|
As soon as your work meets these requirements, write a mail
|
||
|
for inclusion to the mailinglist **cdist at cdist -- at -- l.schottelius.org**
|
||
|
or open a pull request at http://github.com/telmich/cdist.
|
||
14 years ago
|
|
||
|
|
||
|
HOW TO SUBMIT A NEW TYPE
|
||
|
------------------------
|
||
13 years ago
|
For detailled information about types, see cdist-type(7).
|
||
|
|
||
14 years ago
|
Submitting a type works as described above, with the additional requirement
|
||
|
that a corresponding manpage named man.text in asciidoc format with
|
||
|
the manpage-name "cdist-type__NAME" is included in the type directory
|
||
14 years ago
|
AND asciidoc is able to compile it (i.e. do NOT have to many "=" in the second
|
||
|
line).
|
||
14 years ago
|
|
||
13 years ago
|
Warning: Submitting "exec" or "run" types that simply echo their parameter in
|
||
|
gencode* will not be accepted, because they are of no use. Every type can output
|
||
|
code and thus such a type introduces redundant functionality that is given by
|
||
|
core cdist already.
|
||
|
|
||
14 years ago
|
|
||
13 years ago
|
|
||
|
|
||
14 years ago
|
SEE ALSO
|
||
|
--------
|
||
|
- cdist(7)
|
||
|
|
||
|
|
||
|
COPYING
|
||
|
-------
|
||
13 years ago
|
Copyright \(C) 2011-2012 Nico Schottelius. Free use of this software is
|
||
14 years ago
|
granted under the terms of the GNU General Public License version 3 (GPLv3).
|