Skip to content
This repository was archived by the owner on Dec 3, 2020. It is now read-only.
This repository was archived by the owner on Dec 3, 2020. It is now read-only.

Follow Salt Formula conventions? #1

@renoirb

Description

@renoirb

Hi,

I´m unsure if its a deliberate decision but this formula seem to not follow SaltStack Formulas conventions.

(I wasn’t aware that you documented the reasons and I’ll take a better look at it ASAP)

The nice thing about such convention is that we can make a simple list of formulas without worrying of where the formula’s init.sls is.

For example, I’m using a pillar listing all the formulas I want to use. A state either ensures they are cloned and added as file_roots: OR as gitfs_remotes: entry.

For example, In a development VM;

file_roots:
  base:
    - /srv/salt
    - /srv/local/states
    - /srv/formulas/sysctl
    - /srv/formulas/foo
    - /srv/formulas/bar

And then in another salt master that uses gitfs;

gitfs_remotes:
  - /srv/formulas/sysctl
  - /srv/formulas/foo
  - /srv/formulas/bar

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions