Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hellfish2/vagrant-gitlab
Self Serve localhost gitlab server with one command. Use gitlab on your own workstation!
https://github.com/hellfish2/vagrant-gitlab
Last synced: 1 day ago
JSON representation
Self Serve localhost gitlab server with one command. Use gitlab on your own workstation!
- Host: GitHub
- URL: https://github.com/hellfish2/vagrant-gitlab
- Owner: hellfish2
- Created: 2016-03-13T11:42:08.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2014-09-12T02:39:37.000Z (over 10 years ago)
- Last Synced: 2024-11-11T11:13:18.560Z (2 months ago)
- Language: SaltStack
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
## vagrant-gitlab
### Vagrant
The vagrant implementation will allow you to use gitlab locally.```
git clone https://github.com/MadisonHub/vagrant-gitlab.git
cd varant-gitlab
vagrant up gitlab --provision
```##### Login to the vagrant machine
```
vagrant ssh gitlab
```##### Install gitlab
```
sudo salt-call -l debug --local state.highstate
```##### Access Gitlab
Then, navigate to [http://localhost:8888](http://localhost:8888) and login with
the username: ```root```, password: ```5iveL!fe```##### Backup Gitlab
```
sudo gitlab-rake gitlab:backup:create
```##### Fix Gitlab
In case webhooks arent working or issues with realtime event```
sudo gitlab-ctl restart
sudo gitlab-rake gitlab:check
```##### Add LDAP
Edit the file **/etc/gitlab/gitlab.rb** and add
```
gitlab_rails['ldap_enabled'] = true
gitlab_rails['ldap_host'] = 'dc1'
gitlab_rails['ldap_port'] = 389
gitlab_rails['ldap_uid'] = 'sAMAccountName'
gitlab_rails['ldap_method'] = 'plain'
gitlab_rails['ldap_bind_dn'] = 'CN=gitlab,CN=Users,DC=domain,DC=net'
gitlab_rails['ldap_password'] = 'password'
gitlab_rails['ldap_allow_username_or_email_login'] = true
gitlab_rails['ldap_base'] = 'CN=Users,DC=domain,DC=net'
```Then run
```
sudo gitlab-ctl reconfigure
```