cdalvaro / docker-salt-master

🐳🧂 Dockerized Salt Master - Boost your @saltstack master service with the power of @docker

Home Page:https://docs.saltproject.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for installing saltstack-formulas

cdalvaro opened this issue · comments

Install specified saltstack-formulas repos and make them available directly from the docker image.

Another interesting source of formulas could be the unofficial salt-formulas account.

Looking in detail at the official documentation, one of the easiest ways to managed salt-formulas is by using gitfs. Since this image is provided with support for both, pygit2 and GitPython, this is the recommended way for using salt-formulas.

Although, as mention in SaltStack documentation, you are encouraged to fork your desired formula to avoid unexpected changes to your infrastructure.

As an example:

# fileserver.conf
fileserver_backend:
  - roots
  - gitfs
# gitfs.conf
gitfs_provider: pygit2
gitfs_remotes:
  - https://github.com/saltstack-formulas/apache-formula
  - https://github.com/aokiji/salt-formula-helm.git

However, for non git salt-formulas, support is being added.

You could mount a docker volume into /home/salt/data/3pfs and all first level subdirectories will be treated as independent salt-formulas and automatically added into file_roots configuration.