blob: 4b98bfc799e269f9b5016f05171b285532699e1c [file] [log] [blame]
Filip Pytloun2b6014f2015-10-06 16:28:31 +02001
2===========
3Git formula
4===========
5
6Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
7
8Sample pillars
9==============
10
Filip Pytloun2b6014f2015-10-06 16:28:31 +020011Simplest GIT setup
12
Ales Komarek581f2b22017-01-10 22:19:35 -080013.. code-block:: yaml
14
Filip Pytloun2b6014f2015-10-06 16:28:31 +020015 git:
16 client:
17 enabled: true
18
19GIT with user setup
20
21.. code-block:: yaml
22
23 git:
24 client:
25 enabled: true
26 user:
27 - user:
28 name: jdoe
29 email: j@doe.com
30
Botond Zoltánf73f48a2017-09-07 12:55:31 +020031GIT with user and SSL setup
32
33.. code-block:: yaml
34
35 git:
36 client:
37 disable_ssl_verification: True
38 enabled: true
39 user:
40 - user:
41 name: jdoe
42 email: j@doe.com
43
Filip Pytloun2b6014f2015-10-06 16:28:31 +020044Reclass with GIT with user setup
45
46.. code-block:: yaml
47
48 git:
49 client:
50 enabled: true
51 user:
52 - user: ${linux:system:user:jdoe}
53
Botond Zoltánf73f48a2017-09-07 12:55:31 +020054Reclass with GIT with user and SSL setup
55
56.. code-block:: yaml
57
58 git:
59 client:
60 disable_ssl_verification: True
61 enabled: true
62 user:
63 - user: ${linux:system:user:jdoe}
64
Richard Felkl66375d82017-10-09 11:26:23 +020065Reclass with GIT over HTTP server setup. Requires web server.
66
67.. code-block:: yaml
68
69 git:
70 server:
71 directory: /srv/git
72 repos:
Richard Felkl1eb9c7c2017-12-05 15:21:41 +010073 - name: custom-repo-1
74 - name: custom-repo-2
75
Vladimir Khlyunev16d8cb62023-01-10 15:49:59 +040076Reclass with GIT over HTTP server setup. Requires web server. Mirrored upstream repos example.
Richard Felkl1eb9c7c2017-12-05 15:21:41 +010077
78.. code-block:: yaml
79
80 git:
81 server:
82 directory: /srv/git
83 repos:
Richard Felkl66375d82017-10-09 11:26:23 +020084 - name: gerritlib
85 url: https://github.com/openstack-infra/gerritlib.git
86 - name: jeepyb
87 url: https://github.com/openstack-infra/jeepyb.git
Vladimir Khlyunev16d8cb62023-01-10 15:49:59 +040088 https_user: username
89 https_pass: password
Richard Felkl66375d82017-10-09 11:26:23 +020090
Botond Zoltánf73f48a2017-09-07 12:55:31 +020091
Filip Pytloun2b6014f2015-10-06 16:28:31 +020092Read more
93=========
94
95* http://git-scm.com/
96* http://git-scm.com/book/en/Customizing-Git-Git-Configuration
97* https://github.com/nesi/puppet-git/tree/master/manifests