Skip to content

This is an Ansible Playbook that will deploy a GitLab-CE Container into a Fedora CoreOS Server on VMware with a Static IP.

License

Notifications You must be signed in to change notification settings

cptmorgan-rh/fcos-gitlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitLab-CE on Fedora CoreOS in VMware with Static IP

Description


The goal of this repository is to provide a simple, reproducible way to deploy a GitLab-CE on a Fedora CoreOS server inside of VMware with Static IPs.

Quickstart

Start by editing the group_vars/all.yml file:

  • Set the vCenter variables

    1. IP/Host Name of vCenter
    2. vCenter Network
    3. Datastore name
    4. Datacenter name
    5. username and passwords of vCenter Account
    6. Absoluate folder path - e.g /DataCenter/vm/Folder/
    7. VM Power state after being deployed
  • Configure your Fedora CoreOS URL and govc version.

    1. Set the Fedora CoreOS stream version. stable is the default
  • Configure your GitLab VM Settings

    1. VM and Host Name
    2. IP Addr, Gateway, Net Mask, DNS
    3. GitLab-CE Version Tag e.g. latest
    4. SSH Port for GitLab-CE container
    5. Number of CPUs
    6. Amount of Memory in MB

Infrastructure Prerequisites

  1. vSphere ESXi and vCenter 6.7 or 7.0 installed.
  2. A datacenter created with a vSphere host added to it and a datastore exists that has adequate capacity.
  3. Ansible (preferably latest) on the machine where this repo is cloned.
    1. Before you install Ansible, install the epel-release, run yum -y install epel-release

USAGE

Run Deploy Playbook

# Deploy the Lab and all components
ansible-playbook deploy-gitlab.yml

deploy-aio-lab.yml Extra Variables

skip_ova=true - Skips downloading and deploying the OVA if previous deployed to vCenter.

redeploy=true - Deletes existing GitLab vm

Expected Outcome

  1. Necessary Linux packages installed for the installation
  2. Necessary folders [bin, downloads] created
  3. govc downloaded and extracted
  4. FCOS ova downloaded to the downloads folder
  5. GitLab VM is created in the designated folder and (in state of) poweredon

Updating GitLab-CE after deploying the server.

To update the instance of GitLab-CE after deploying the FCOS server you will need to SSH into the FCOS node core@gitlab_ip_address and simply restart the service. This will force a newer image

sudo systemctl restart gitlab.service

AUTHOR

Morgan Peterman

About

This is an Ansible Playbook that will deploy a GitLab-CE Container into a Fedora CoreOS Server on VMware with a Static IP.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages