Changeset View
Changeset View
Standalone View
Standalone View
src/main/gitlab/base.lisp
Show All 25 Lines | |||||
all created projects will be placed. NAME is the proper name for the group, | all created projects will be placed. NAME is the proper name for the group, | ||||
while SLUG is the url slug. If NIL, the projects will all be created at the | while SLUG is the url slug. If NIL, the projects will all be created at the | ||||
top level.") | top level.") | ||||
; For development only. Will limit all exporting to things having | ; For development only. Will limit all exporting to things having | ||||
; to do with the project with the name provided. | ; to do with the project with the name provided. | ||||
(defvar *single-project* nil) | (defvar *single-project* nil) | ||||
; The args (host and command are normal) for the ssh command to | ; The default rails-command to execute the rails console. | ||||
; boot the rails console. Sometimes this is localhost. Keys | (defvar *rails-command* "/usr/bin/ssh" | ||||
; have to be set up. | "The rails command to execute, by default this uses ssh. But one could use kubectl or | ||||
(defvar *rails-console-ssh-args* nil | docker instead.") | ||||
"A tuple of the form '(HOST COMMAND) that informs the gitlab forgerie | |||||
how to run rails commands over ssh. It will always use SSH, even if | ; The required args for the *rails-command*. | ||||
set up to run on localhost, so keys must be installed to ssh to localhost. | (defvar *rails-command-args* nil | ||||
"By default, using ssh, a tuple of the form '(HOST COMMAND) that informs the gitlab | |||||
forgerie how to run rails commands over ssh. It will always use SSH, even if set up to | |||||
run on localhost, so keys must be installed to ssh to localhost. When overriden to | |||||
another command like kubectl, a list '(COMMAND) for the necessary extra args that the | |||||
command requires to run. | |||||
An example for a server using docker might be: | When using ssh, an example for a server using docker might be: | ||||
'(\"ssh.gitlab.yourdomain.tld\" \"docker exec -i gitlab /opt/gitlab/bin/gitlab-rails c\") | '(\"ssh.gitlab.yourdomain.tld\" \"docker exec -i gitlab /opt/gitlab/bin/gitlab-rails c\") | ||||
A useful thing to do is to run ssh on the server for non git purposes on port 2222, and then | A useful thing to do is to run ssh on the server for non git purposes on port 2222, and | ||||
set up your .ssh/config to have the following: | then set up your .ssh/config to have the following: | ||||
Host ssh.gitlab.yourdomain.tld | Host ssh.gitlab.yourdomain.tld | ||||
User <user> | User <user> | ||||
Port 2222 | Port 2222 | ||||
IdentityFile ~/.ssh/your_identity_file") | IdentityFile ~/.ssh/your_identity_file | ||||
When using kube, an example might be: | |||||
'(\"exec -ti -n gitlab-system deployment/gitlab-toolbox -- /srv/gitlab/bin/rails console\") | |||||
") | |||||
(defvar *merge-request-suffix* nil | (defvar *merge-request-suffix* nil | ||||
"A function that takes an argument of a forgerie-core:merge-request and | "A function that takes an argument of a forgerie-core:merge-request and | ||||
returns a string that will be appended to the description of created merge requests. | returns a string that will be appended to the description of created merge requests. | ||||
Useful to create backlinks to the previous system, or addition migration information") | Useful to create backlinks to the previous system, or addition migration information") | ||||
(defvar *ticket-suffix* nil | (defvar *ticket-suffix* nil | ||||
"A function that takes an argument of a forgerie-core:ticket and | "A function that takes an argument of a forgerie-core:ticket and | ||||
returns a string that will be appended to the description of created tickets (issues). | returns a string that will be appended to the description of created tickets (issues). | ||||
Useful to create backlinks to the previous system, or addition migration information") | Useful to create backlinks to the previous system, or addition migration information") | ||||
(defvar *limit-to-active-users* nil | (defvar *limit-to-active-users* nil | ||||
"If non nil, will only add users to the gitlab instance if they are active in the | "If non nil, will only add users to the gitlab instance if they are active in the | ||||
items also coming over for processing. Useful when doing piecemeal conversions.") | items also coming over for processing. Useful when doing piecemeal conversions.") |