Your Debian-based data center in a box
Project description
Your Debian-based data center in a box
GitHub CI GitLab CI CII Best Practices REUSE status RSS commits
The DebOps project provides a set of general-purpose Ansible roles that can be used to manage Debian or Ubuntu hosts. In addition, a default set of Ansible playbooks can be used to apply the provided roles in a controlled way, using Ansible inventory groups.
The roles are written with a high customization in mind, which can be done using Ansible inventory. This way the role and playbook code can be shared between multiple environments, with different configuration in to each one.
Services can be managed on a single host, or spread between multiple hosts. DebOps provides support for different SQL and NoSQL databases, web servers, programming languages and specialized applications useful in a data center environment or in a cluster. The project can also be used to deploy virtualization environments using KVM/libvirt, Docker or LXC technologies to manage virtual machines and/or containers.
You can find out more about DebOps features on the project’s documentation page.
Quick start
Start a Docker container which acts as an Ansible Controller host with DebOps support, based on Debian Buster:
docker run -it --rm debops/debops cd src/controller ; debops run common --diff
Or, create a Vagrant VM which acts as an Ansible Controller host:
git clone https://github.com/debops/debops cd debops && vagrant up && vagrant ssh cd src/controller ; debops run common --diff
You can use configuration in the src/controller subdirectory to try out DebOps against the container/VM, or create your own DebOps project directory using debops project init command.
More quick start tips can be found in the DebOps quick start guide.
Installation
You can install the DebOps Python package, which includes the DebOps roles and playbooks, as well as additional scripts which can be used to setup separate project directories and run Ansible in a convenient way. To install the Python package with Ansible and other required dependencies, run the command:
pip install --user debops[ansible]
Alternatively, DebOps roles are available on Ansible Galaxy as an Ansible Collection which can be installed using the ansible-galaxy command:
ansible-galaxy collection install debops.debops
Read the installation instructions in the DebOps documentation for more details about required software and dependencies.
Getting started
Ansible uses SSH to connect to and manage the hosts. DebOps enforces the SSH security by disabling password authentication, therefore using SSH keys to connect to the hosts is strongly recommended. This can be changed using the inventory variables.
During initial deployments you might find that the firewall created by DebOps blocked you from accessing the hosts. Because of that it’s advisable to have an out-of-band console access to the host which can be used to login and troubleshoot the connection.
Create a new environment within a DebOps “project directory”, add some hosts in the Ansible inventory and run the default DebOps playbook against them to configure them:
# Create a new environment debops project init ~/src/projects/my-environment cd ~/src/projects/my-environment # Modify the 'ansible/inventory/hosts' file to suit your needs, for example # uncomment the local host to configure it with DebOps # Run the full playbook against all hosts in the inventory debops run site # Run the common playbook against specific host in the inventory debops run common -l <hostname>
You should read the Getting Started with DebOps guide for a more in-depth explanation of how the project can be used to manage multiple hosts via Ansible.
Development
Create a fork of this repository and clone it to your workstation. Create a development DebOps environment and symlink the forked repository in it. Now you can create new playbooks/roles in the forked repository and see their results in the development environment.
git clone git@github.com:<username>/debops ~/src/github.com/<username>/debops cd ~/src/github.com/<username>/debops git remote add upstream https://github.com/debops/debops.git debops project init ~/src/projects/debops-devel cd ~/src/projects/debops-devel ln -s ~/src/github.com/<username>/debops debops
You can pull latest changes to the project from the upstream repository:
cd ~/src/github.com/<username>/debops git checkout master git fetch upstream git rebase upstream/master
Read the development guide file for more details about the DebOps development process.
Contributing
DebOps development is done via a distributed development model. New features and changes are prepared in a fork of the official repository and are published to the original repository via GitHub pull requests. PRs are reviewed by the DebOps developer team and if accepted, are merged in the main repository.
GPG-signed git commits are preferred to ensure authenticity.
Read the contributing guide file for more details about how to contribute to DebOps.
Licensing
The DebOps project is licensed under the GNU General Public License 3.0 or later. You can find full text of the license in the LICENSES/GPL-3.0-or-later.txt file.
Some files included with the DebOps project use a different license. The licenses are marked in these files using the SPDX license identifiers and can be found in the LICENSES/ subdirectory. They are also included in the project tarballs, Ansible Collections and Python packages. The project uses the REUSE Specification and its associated tool to check and verify copyright and license information in all files.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file debops-3.0.0.tar.gz
.
File metadata
- Download URL: debops-3.0.0.tar.gz
- Upload date:
- Size: 2.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.25.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ab96fc20c76d724b124da9d6d561b75f97d6c984610bbb19657227c2e1ea5f4 |
|
MD5 | d274c9f2373b47e993564f7d76589e38 |
|
BLAKE2b-256 | 17b3f0acc5266c0468520ffcaf92dc5ecbea57d8a9512b82974388bc3368fbbd |
File details
Details for the file debops-3.0.0-py2.py3-none-any.whl
.
File metadata
- Download URL: debops-3.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.1 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.25.1 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad894fead21019bc7d2fe5e21ba714e790dd78bc6aa8c268d78b33c1fa007ec9 |
|
MD5 | a24bd3c09254fac4719d2a6086a13d1e |
|
BLAKE2b-256 | f4b4d9705d90ee572f41ab27f5609e1edb122e70ba3c47fac7ad5f2cd6bac145 |