Salt Stack Formula to set up and configure Gitlab, a project and repository management application
- This formula aims to follow the conventions and recommendations described at http://docs.saltstack.com/en/latest/topics/development/conventions/formulas.html#conventions-formula and http://docs.saltstack.com/en/latest/topics/best_practices.html
- add backup cronjob
- show logrotate pillar example
- show git config pillar example
-
Add this repository as a
GitFS <http://docs.saltstack.com/topics/tutorials/gitfs.html>
_ backend in your Salt master config. -
Configure your Pillar top file (
/srv/pillar/top.sls
) and your pillars, see pillar.example.sls -
Include this Formula within another Formula or simply define your needed states within the Salt top file (
/srv/salt/top.sls
).
gitlab
Setup and configure Gitlab
This formula is based on https://github.com/saltstack-formulas/gitlab-formula
Some states/ commands may refer to templates which aren't included in the files folder (template/files
). Take a look at contrib/
(if present) for e.g. template examples and place them in separate file roots (e.g. Git repository, refer to GitFS <http://docs.saltstack.com/topics/tutorials/gitfs.html>
_) in your Salt master config.
System Requirements:
- Internet HTTP access for downloading various libs
- https://github.com/tinuva/redis-formula (optional)
- https://github.com/tinuva/nginx-formula (optional)
- https://github.com/tinuva/postgresql-formula (optional)
- https://github.com/tinuva/selinux-formula (optional)
- https://github.com/tinuva/firewalld-formula (optional)
Contributions are always welcome. All development guidelines you have to know are
- set a shebang in the first line (e.g.
#!jinja|yaml
) - write clean code (proper YAML+Jinja syntax, no trailing whitespaces, no empty lines with whitespaces, LF only)
- set sane default settings
- test your code
- update README.rst doc
Tested with:
- Salt Development Version (f9ec0bfb5a2c573785d55d02a01267e99848d333)
Tested with:
- GNU/ Linux Debian Wheezy
- CentOS 7