Ales Komarek | 3446a0a | 2016-03-08 10:21:00 +0100 | [diff] [blame] | 1 | |
Ales Komarek | 7f93ce2 | 2016-08-29 23:27:47 +0200 | [diff] [blame] | 2 | ====== |
| 3 | Gerrit |
| 4 | ====== |
Ales Komarek | 3446a0a | 2016-03-08 10:21:00 +0100 | [diff] [blame] | 5 | |
Ales Komarek | 7f93ce2 | 2016-08-29 23:27:47 +0200 | [diff] [blame] | 6 | Gerrit provides web based code review and repository management for the Git version control system. |
Ales Komarek | 3446a0a | 2016-03-08 10:21:00 +0100 | [diff] [blame] | 7 | |
| 8 | Sample pillars |
| 9 | ============== |
| 10 | |
Ales Komarek | 49a3729 | 2016-08-31 16:18:31 +0200 | [diff] [blame] | 11 | Simple gerrit service |
Ales Komarek | 3446a0a | 2016-03-08 10:21:00 +0100 | [diff] [blame] | 12 | |
| 13 | .. code-block:: yaml |
| 14 | |
| 15 | gerrit: |
| 16 | server: |
| 17 | enabled: true |
Ales Komarek | 7f93ce2 | 2016-08-29 23:27:47 +0200 | [diff] [blame] | 18 | source: |
| 19 | engine: http |
| 20 | address: https://gerrit-ci.gerritforge.com/job/Gerrit-stable-2.13/20/artifact/buck-out/gen/gerrit.war |
| 21 | hash: 2e17064b8742c4622815593ec496c571 |
Ales Komarek | 3446a0a | 2016-03-08 10:21:00 +0100 | [diff] [blame] | 22 | |
Ales Komarek | 49a3729 | 2016-08-31 16:18:31 +0200 | [diff] [blame] | 23 | Full service setup |
| 24 | |
| 25 | .. code-block:: yaml |
| 26 | |
| 27 | gerrit: |
| 28 | server: |
| 29 | canonical_web_url: http://10.10.10.148:8082/ |
| 30 | email_private_key: "" |
| 31 | token_private_key: "" |
| 32 | initial_user: |
| 33 | full_name: John Doe |
| 34 | email: 'mail@jdoe.com' |
| 35 | username: jdoe |
| 36 | plugin: |
| 37 | download-commands: |
| 38 | engine: gerrit |
| 39 | # replication: |
| 40 | # engine: gerrit |
| 41 | reviewnotes: |
| 42 | engine: gerrit |
| 43 | singleusergroup: |
| 44 | engine: gerrit |
| 45 | ssh_rsa_key: | |
| 46 | -----BEGIN RSA PRIVATE KEY----- |
| 47 | MIIEowIBAAKCAQEAs0Y8mxS3dfs5zG8Du5vdBkfOCOng1IEUmFZIirJ8oBgJOd54 |
| 48 | QgmkDFB7oP9eTCgz9k/rix1uJWhhVCMBzrWzH5IODO+tyy/tK66pv2BWtVfTDhBA |
| 49 | nShOLDNbSIBaV8E/NcrbnQN+b0alp4N7rQnavkOYl+JQncKjz1csmCodirscB9Oj |
| 50 | rdo6NG9olv9IQd/tDQxEeDyQkoW50aCEWcq7o+QaTzgnlrL+XZEzhzjdcvA9m8go |
| 51 | ... |
| 52 | jvMXms60iD/A5OpG33LWHNNzQBP486SxG75LB+Xs5sp5j2/b7VF5LJLhpGiJv9Mk |
| 53 | ydbuy8iuuvali2uF133kAlLqnrWfVTYQQI1OfW5glOv1L6kv94dU |
| 54 | -----END RSA PRIVATE KEY----- |
| 55 | ssh_rsa_key_pub: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCzRjybFLd1+znMbwO7m90GR84I6eDUgRSYVkiKsnygGAk53nhCCaQMUHug/15MKDP2T+uLHW4laGFUIwHOtbMfkg4M763LL+0rrqm/YFa1V9MOEECdKE4sM1tIgFpXwT81ytudA35vRqWng3utCdq+Q5iX4lCdwqPPVyyYKh2KuxwH06Ot2jo0b2iW/0hB3+0NDER4PJCShbnRoIRZyruj5BpPOCeWsv5dkTOHON1y8D2byCgNGdCBIRx7x9Qb4dKK2F01r0/bfBGxELJzBdQ8XO14bQ7VOd3gTxrccTM4tVS7/uc/vtjiq7MKjnHGf/svbw9bTHAXbXcWXtOlRe51 |
| 56 | email: mail@domain.com |
| 57 | auth: |
| 58 | engine: HTTP |
| 59 | source: |
| 60 | engine: http |
| 61 | address: https://gerrit-releases.storage.googleapis.com/gerrit-2.12.4.war |
| 62 | hash: sha256=45786a920a929c6258de6461bcf03ddec8925577bd485905f102ceb6e5e1e47c |
| 63 | database: |
| 64 | engine: postgresql |
| 65 | host: localhost |
| 66 | port: 5432 |
| 67 | name: gerrit |
| 68 | user: gerrit |
| 69 | password: ${_param:postgresql_gerrit_password} |
| 70 | |
| 71 | Gerrit client enforcing projects |
| 72 | |
| 73 | .. code-block:: yaml |
| 74 | |
| 75 | gerrit: |
| 76 | client: |
| 77 | enabled: True |
| 78 | server: |
| 79 | host: 10.10.10.148 |
| 80 | user: newt |
| 81 | key: | |
| 82 | -----BEGIN RSA PRIVATE KEY----- |
| 83 | MIIEowIBAAKCAQEAs0Y8mxS3dfs5zG8Du5vdBkfOCOng1IEUmFZIirJ8oBgJOd54 |
| 84 | QgmkDFB7oP9eTCgz9k/rix1uJWhhVCMBzrWzH5IODO+tyy/tK66pv2BWtVfTDhBA |
| 85 | ... |
| 86 | l1UrxQKBgEklBTuEiDRibKGXQBwlAYvK2He09hWpqtpt9/DVel6s4A1bbTWDHyoP |
| 87 | jvMXms60iD/A5OpG33LWHNNzQBP486SxG75LB+Xs5sp5j2/b7VF5LJLhpGiJv9Mk |
| 88 | ydbuy8iuuvali2uF133kAlLqnrWfVTYQQI1OfW5glOv1L6kv94dU |
| 89 | -----END RSA PRIVATE KEY----- |
| 90 | project: |
| 91 | test_salt_project: |
| 92 | enabled: true |
| 93 | |
Ales Komarek | 3446a0a | 2016-03-08 10:21:00 +0100 | [diff] [blame] | 94 | Read more |
| 95 | ========= |
| 96 | |
Ales Komarek | 7f93ce2 | 2016-08-29 23:27:47 +0200 | [diff] [blame] | 97 | * https://www.gerritcodereview.com/ |
Ales Komarek | f93ac81 | 2016-08-31 19:37:43 +0200 | [diff] [blame^] | 98 | * https://gerrit-review.googlesource.com/Documentation/ |
Ales Komarek | 7f93ce2 | 2016-08-29 23:27:47 +0200 | [diff] [blame] | 99 | * https://github.com/openstack-infra/puppet-gerrit/ |
| 100 | * https://gerrit-ci.gerritforge.com/ |
Ales Komarek | f93ac81 | 2016-08-31 19:37:43 +0200 | [diff] [blame^] | 101 | * https://github.com/morucci/exzuul |