Skip to content

bmbouter/pulp-infra-ansible

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 47 commits behind pulp:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Pulp Project Infrastructure Management using Ansible

Introduction

This repository holds Ansible playbooks to deploy infrastructure that supports the Pulp project itself, e.g. website, etc.

You need Ansible >=2.3 to be able to handle the (new) YAML-based 'hosts' file format.

Admin-specific Production Settings

You can use group_vars/all/local_settings.yml for you local settings like ansible_become_pass if your computer storage is encrypted. Use --ask-sudo-pass if you don't want to use this method. Currently Ansible is unable to ask when needed so the global setting has been disabled in ansible.cfg.

Dealing with Secrets

We use Ansible Vault (ansible-vault command) to hide some parameters like service credentials or emails to avoid SPAM.

To make it easy all such files are named '*.vault.yml' and git attributes are defined to make diff-ing and merging easy.

Your config needs to be enhanced to tel git how to handle these files. This is very easy, look at this URL for more info: https://github.com/building5/ansible-vault-tools

Improving Ansible Speed

Ansible is slow, but there's a nice project to improve its performance. It still has glitches so it's not enabled by default, but it's easy to enable it.

First install the library (it is not yet packaged):

pip install mitogen

Then you just need to run playbooks this way:

ANSIBLE_STRATEGY=mitogen_linear ansible-playbook …

About

A repo to hold Ansible playbooks to deploy infrastructure that supports the Pulp project itself, e.g. website, etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%