aboutsummaryrefslogtreecommitdiff
path: root/personal_infra/README.md
blob: af997fec8b304ff76528783f51b484bb42f06f9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Personal infra

This is a collection of files I use setting up my personal infrastructure.
This is a work in progress, as I am redoing a bit how I do configuration management.
The main source is in a private repo, but I put here as much material as I can make public.
Inventory, vaults, etc. remain in the private repo.

## Ansible

### Initial setup

Symlink everything in this directory into your root infrastructure directory.

Create an `inventory` file.

Run `./setup_venv` to create a virtual environment.

Create `vault_password` with a vault password.

### Usage

Run `. .venv/bin/activate` to activate the virtual environment.

Run Ansible commands normally.

## Ansible/Puppet integration

I prefer using Ansible for orchestration, and Puppet for configuration management.

`playbooks/roles/apply_puppet` runs Puppet using Ansible.
The `puppet` directory contains Puppet manifests.

The role adds the Ansible inventory to Puppet using Hiera.