blob: 98df6903a391d125c255ac62c62f7399c0719e17 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# [hollyhock.sorantics.com][hollyhock]
Remote infrastructure.
## Local setup
```sh
$ git clone git@github.com:luskjh/infra
$ cd infra
$ make install
$ make install-pre
$ echo '<vault password>' > .vault_pass
```
## Makefile targets
### Helper targets
_Listed in alphabetical order._
| Target | Description |
| ------------------ | ----------------------- |
| `edit` | Edit ansible vault |
| `install` | Install dependencies |
| `install-pre` | Install pre-commit hook |
| `lint` | Run ansible lint |
| `ping`<sup>*</sup> | Ping hollyhock host |
### Playbook targets
_Listed in applicable order._
| Target | Description |
| ----------------------- | ------------------ |
| `users`<sup>*</sup> | Add users |
| `security` | Security hardening |
### <sup>*</sup>Pre-bootstraped targets
Before the automation user is created, the `ping` and `users`
targets need to initially connect to the server host using an
existing user. Set `ANSIBLE_USER` to override the default
connection user:
```sh
$ make ping ANSIBLE_USER=root
$ make users ANSIBLE_USER=root
```
## CI / deployments
There is a CI workflow that runs the same pre-commit hooks on
GitHub as run locally, but deployments are currently only
administered from a local machine.
[hollyhock]: //hollyhock.sorantics.com
|