summaryrefslogtreecommitdiff
path: root/gitlab-cluster.morph
diff options
context:
space:
mode:
authorAdam Coldrick <adam.coldrick@codethink.co.uk>2014-05-16 09:57:09 +0000
committerAdam Coldrick <adam.coldrick@codethink.co.uk>2014-05-16 09:57:09 +0000
commitbc347a438b36c60931602bf86d4156d332cb9cde (patch)
tree9f0814d4f4eaad3e536c5262861c760e19fe9966 /gitlab-cluster.morph
parent2fb6ede1ffed0b2ca4bd805c1ab558cdeea8c446 (diff)
parent04a621fae782e700197c4148efb5160dc46755ef (diff)
downloaddefinitions-bc347a438b36c60931602bf86d4156d332cb9cde.tar.gz
Merge branch 'baserock/adamcoldrick/gitlab-systems-merge'
Reviewed by: Lars Wirzenius <lars.wirzenius@codethink.co.uk>
Diffstat (limited to 'gitlab-cluster.morph')
-rw-r--r--gitlab-cluster.morph48
1 files changed, 48 insertions, 0 deletions
diff --git a/gitlab-cluster.morph b/gitlab-cluster.morph
new file mode 100644
index 00000000..d40bf8f8
--- /dev/null
+++ b/gitlab-cluster.morph
@@ -0,0 +1,48 @@
+kind: cluster
+name: gitlab-cluster
+description: |
+ This is an example cluster morphology that can be adapted to set up a GitLab
+ server with GitLab CI running alongside it, along with one or more CI
+ runners to actually run the CI tests/builds.
+
+ For the server, you will need to specify the GITLAB_HOSTNAME. This is the
+ domain name or IP by which your deployed GitLab instance will be able to be
+ reached by. You will also need a GITLAB_PORT, CI_PORT, UNICORN PORT and
+ UNICORN_CI_PORT. These are the port to use for GitLab, the port to use for
+ GitLab CI, the port for GitLab's Unicorn process to listen on, and the port
+ for GitLab CI's Unicorn process to listen on respectively. Finally, you will
+ need to define a GITLAB_EMAIL, that is the email that mail from your GitLab
+ instance will appear to be from.
+systems:
+- morph: gitlab-server
+ deploy-defaults:
+ AUTOSTART: no
+ DISK_SIZE: 10G
+ RAM_SIZE: 2G
+ VCPUS: 2
+ VERSION_LABEL: factory
+ deploy:
+ gitlab:
+ type: kvm
+ location: kvm+ssh://USER@HOST/gitlab/home/USER/gitlab.img
+ HOSTNAME: gitlab
+ GITLAB_HOSTNAME: gitlab.example.com
+ GITLAB_PORT: 80
+ GITLAB_EMAIL: gitlab@gitlab.example.com
+ UNICORN_PORT: 8080
+ CI_PORT: 81
+ UNICORN_CI_PORT: 8081
+ INSTALL_FILES: gitlab-server/manifest
+- morph: gitlab-ci-runner
+ deploy-defaults:
+ AUTOSTART: no
+ DISK_SIZE: 10G
+ RAM_SIZE: 3G
+ VCPUS: 2
+ VERSION_LABEL: factory
+ deploy:
+ gitlab-ci-runner:
+ type: kvm
+ location: kvm+ssh://USER@HOST/gitlab-ci-runner/home/USER/gitlab-ci-runner.img
+ HOSTNAME: gitlab-ci-runner
+ INSTALL_FILES: gitlab-ci-runner/manifest