Skip to content
This repository has been archived by the owner on Jun 10, 2020. It is now read-only.

Deployment repository template for RiotKit's Harbor and not only. Automated via Makefile and Python scripts.

Notifications You must be signed in to change notification settings

Wolnosciowiec-Archive/harbor-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Harbor Deployment template

Ansible project structure, with automation scripts.

Requirements

  • Ansible
  • Ansible Vault
  • Makefile
  • Python 3
  • GIT
  • sshpass
  • Bash
  • PyYAML (pip3 install PyYAML)

Quick start

git clone https://github.com/riotkit-org/harbor-deployment deploy
cd deploy
# ... put your inventory, fill in group_vars, host_vars, etc. ...

# do a deploy
make deploy@prod

Commands

Deploying

# deploy first time, entering the host, user, password manually
make deploy_first_time@prod

# deploy any more time
make deploy@prod

# passing parameters to Ansible
make deploy@prod ANSIBLE_OPTS="-t project"

SSH

Connect to a SSH server without knowing credentials.

make ssh

Update all roles stored in git repositories

At first collect your ansible roles that you store in separate git repositories, and put them in ./roles-at-git.yaml file.

Then execute:

make _update_roles
➜  harbor-deployment git:(master) ✗ make __update_roles
 >> Making sure the Ansible roles from Ansible Galaxy are up to date
>> Updating blackandred.server_multi_user
Already on 'master'
>> Updating blackandred.server_docker_project
Already on 'master'
>> Updating blackandred.server_secure_storage
Already on 'master'
>> Updating blackandred.server_ssh_fallback_port
Already on 'master'
>> Updating blackandred.server_basic_security
Already on 'master'
>> Updating blackandred.server_basic_software
Already on 'master'
 >> Done.

About

Deployment repository template for RiotKit's Harbor and not only. Automated via Makefile and Python scripts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published