Commit graph

16 commits

Author SHA1 Message Date
Imran Iqbal
e78aa0cb78
ci(pre-commit): finalise rstcheck configuration [skip ci]
* Automated using https://github.com/myii/ssf-formula/pull/267
2020-10-10 06:53:06 +01:00
Imran Iqbal
c07471da12
fix(libtofs): avoid using subpath by default
* Only the `systemd-formula` uses these, so avoid for all other formulas
2019-08-08 11:37:52 +01:00
Daniel Dehennin
42a75d99ee docs(libtofs): explain usage of sub-directory for components 2019-07-30 16:16:04 +02:00
Imran Iqbal
6a614d967f
docs(tofs): ensure merged will all recent changes 2019-07-25 08:44:25 +01:00
Imran Iqbal
23a221ef01
docs(tofs): update from nginx-formula
* https://github.com/saltstack-formulas/nginx-formula/pull/238#discussion_r289124365
2019-07-25 08:39:41 +01:00
Imran Iqbal
3483e760bf
fix(tofs): prepend the config-based source_files to the default
* https://github.com/saltstack-formulas/nginx-formula/pull/247#issuecomment-514262549
  - The main issue is that the `nginx-formula` has dynamic values being
    used as the default `source_files` -- there is no way to provide
    this from the pillar/config in a sensible fashion
  - Prepending to this default (rather than overriding it) resolves this
    problem entirely, without adding excessive entries to the `source`
* Closes #151
2019-07-25 02:42:05 +01:00
Imran Iqbal
0881b7daf1
docs(tofs): remove whitespace from blank line 2019-04-30 15:49:16 +01:00
Daniel Dehennin
da7e69283f refactor(tofs): move “files_switch” macro to “libtofs.jinja”
BREAKING CHANGE: every formula writer will need to change the import
to use this new version.

* template/libtofs.jinja: provides the “files_switch” macro.

* docs/TOFS_pattern.rst: update documentation to use the new path.

* template/config/clean.sls: change import from “macros.jinja” to “libtofs.jinja”.

* template/config/file.sls: ditoo.
2019-03-21 11:42:14 +01:00
Daniel Dehennin
60d43e7fee refactor(tofs): avoid using “salt['config.get']” for formula writers
We can hide the call to “salt['config.get']” in the macro by only
asking for a “lookup key” where to lookup the list of “source_files”.

* docs/TOFS_pattern.rst (Example): document the use of the new
  optional “lookup” parameter.

* template/macros.jinja: add a new optional “lookup” parameter.
  Lookup “files override” under the
  “<tplroot>:tofs:sources_files:<lookup key>” and fallback to
  “source_files” parameter.

* template/config/file.sls (template-config-file-file-managed): use
  the new “lookup” parameter.
2019-03-14 10:14:29 +01:00
Daniel Dehennin
a76f659e9d docs(tofs): incorrect path for “source_files” lookup key
* docs/TOFS_pattern.rst: rename “nfs” to “ntp”.
2019-03-13 14:57:36 +01:00
Imran Iqbal
51107165f0
fix(tofs): use source_files instead of files
* As discussed in the Slack/IRC/Matrix room from this point forward:
  - https://freenode.logbot.info/saltstack-formulas/20190308#c2046753
2019-03-09 06:36:11 +00:00
Imran Iqbal
ad5a8b84bf
docs(rtd): clean up numerous issues and inconsistencies
* Include:
  - Fix link texts
  - Apply text formatting
  - Split some of the long lines (improved diffs)
  - Remove extra `\ ` appearing after conversion from Markdown
  - Improve ordered (numbered) nested lists
  - Use 3-character indents under RST directives
  - Use Jinja commenting in Jinja examples (not just `#`)
2019-03-03 00:11:35 +00:00
Imran Iqbal
3f0071b72b
docs(tofs): use literalinclude of macros.jinja instead of code dupe 2019-03-02 23:56:21 +00:00
Imran Iqbal
dff0ee8ef8
docs(contributing): add documentation contribution guidelines 2019-03-02 23:56:21 +00:00
Imran Iqbal
2f0e20f449
docs(tofs): use table to list authorship 2019-03-01 16:07:27 +00:00
Imran Iqbal
fd68168cce
docs(tofs): replace existing .md with .rst and add to RTD 2019-03-01 16:06:28 +00:00