diff options
author | Richard Maw <richard.maw@codethink.co.uk> | 2014-08-18 17:05:22 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@codethink.co.uk> | 2014-08-18 17:05:22 +0000 |
commit | 2b10a9677817377618e33d2b07ab7caefe316633 (patch) | |
tree | 843ba74b9480f36da273cba79182e3c38b28881b /clusters/gitlab-cluster.morph | |
parent | e424935744d9faf27327ee40987620412c41716f (diff) | |
download | definitions-2b10a9677817377618e33d2b07ab7caefe316633.tar.gz |
Re-organise definitions with scripts/organise-morphologies.pyGENIVI-I0.1baserock/release/GENIVI-I0.1
Diffstat (limited to 'clusters/gitlab-cluster.morph')
-rw-r--r-- | clusters/gitlab-cluster.morph | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/clusters/gitlab-cluster.morph b/clusters/gitlab-cluster.morph new file mode 100644 index 00000000..5f3177ca --- /dev/null +++ b/clusters/gitlab-cluster.morph @@ -0,0 +1,48 @@ +name: gitlab-cluster +kind: 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: systems/gitlab-server.morph + deploy-defaults: + AUTOSTART: false + 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 + CI_PORT: 81 + GITLAB_EMAIL: gitlab@gitlab.example.com + GITLAB_HOSTNAME: gitlab.example.com + GITLAB_PORT: 80 + HOSTNAME: gitlab + INSTALL_FILES: gitlab-server/manifest + UNICORN_CI_PORT: 8081 + UNICORN_PORT: 8080 +- morph: systems/gitlab-ci-runner.morph + deploy-defaults: + AUTOSTART: false + 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 |