mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2026-09-21 06:14:34 +02:00
Add new “salt.formulas” state to manage salt formulas
This state downloads formulas from git repositories and ensures that they are recorded in the file_roots setting.
This commit is contained in:
@@ -73,3 +73,41 @@ salt_cloud_certs:
|
||||
-----BEGIN RSA PRIVATE KEY-----
|
||||
...........
|
||||
-----END RSA PRIVATE KEY-----
|
||||
|
||||
salt_formulas:
|
||||
git_opts:
|
||||
# The Git options can be customized differently for each
|
||||
# environment, if an option is missing in a given environment, the
|
||||
# value from "default" is used instead.
|
||||
default:
|
||||
# URL where the formulas git repositories are downloaded from
|
||||
# it will be suffixed with <formula-name>.git
|
||||
baseurl: https://github.com/saltstack-formulas
|
||||
# Directory where Git repositories are downloaded
|
||||
basedir: /srv/formulas
|
||||
# Update the git repository to the latest version (False by default)
|
||||
update: False
|
||||
# Options passed directly to the git.latest state
|
||||
options:
|
||||
rev: master
|
||||
dev:
|
||||
basedir: /srv/formulas/dev
|
||||
update: True
|
||||
options:
|
||||
rev: develop
|
||||
# Options of the file.directory state that creates the directory where
|
||||
# the git repositories of the formulas are stored
|
||||
basedir_opts:
|
||||
makedirs: True
|
||||
user: root
|
||||
group: root
|
||||
mode: 755
|
||||
# List of formulas to enable in each environment
|
||||
list:
|
||||
base:
|
||||
- salt-formula
|
||||
- postfix-formula
|
||||
dev:
|
||||
- salt-formula
|
||||
- postfix-formula
|
||||
- openssh-formula
|
||||
|
||||
Reference in New Issue
Block a user