README.md

Wed, 18 Sep 2019 13:08:53 -0500

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 18 Sep 2019 13:08:53 -0500
changeset 97
03ec0932507b
parent 94
3879346354aa
permissions
-rw-r--r--

rip bitbucket

59
f1f2724d73a8 expand readme
Meredith Howard <mhoward@roomag.org>
parents: 4
diff changeset
1 # Devbox playbook
f1f2724d73a8 expand readme
Meredith Howard <mhoward@roomag.org>
parents: 4
diff changeset
2
f1f2724d73a8 expand readme
Meredith Howard <mhoward@roomag.org>
parents: 4
diff changeset
3 This is a playbook that installs dev tools and DE tools I like to have around
60
Meredith <mhoward@roomag.org>
parents: 59
diff changeset
4 and sets up some other preferences like repositories, and drops in my dotfiles.
59
f1f2724d73a8 expand readme
Meredith Howard <mhoward@roomag.org>
parents: 4
diff changeset
5 It's best-tested on Debian, but has some cases for OSX and FreeBSD too.
f1f2724d73a8 expand readme
Meredith Howard <mhoward@roomag.org>
parents: 4
diff changeset
6
77
0e0bfcf9ffb7 readme update
Meredith Howard <mhoward@roomag.org>
parents: 71
diff changeset
7 # Interesting Variables
0e0bfcf9ffb7 readme update
Meredith Howard <mhoward@roomag.org>
parents: 71
diff changeset
8
0e0bfcf9ffb7 readme update
Meredith Howard <mhoward@roomag.org>
parents: 71
diff changeset
9 ## `gui_enabled`
0e0bfcf9ffb7 readme update
Meredith Howard <mhoward@roomag.org>
parents: 71
diff changeset
10
94
3879346354aa Update README.md
Meredith Howard <mhoward@roomag.org>
parents: 77
diff changeset
11 Install and configure GUI tools, or with vim, choose between `gtk` and
77
0e0bfcf9ffb7 readme update
Meredith Howard <mhoward@roomag.org>
parents: 71
diff changeset
12 `nox`.
0e0bfcf9ffb7 readme update
Meredith Howard <mhoward@roomag.org>
parents: 71
diff changeset
13
0e0bfcf9ffb7 readme update
Meredith Howard <mhoward@roomag.org>
parents: 71
diff changeset
14 ## `disable_stock_users`
0e0bfcf9ffb7 readme update
Meredith Howard <mhoward@roomag.org>
parents: 71
diff changeset
15
94
3879346354aa Update README.md
Meredith Howard <mhoward@roomag.org>
parents: 77
diff changeset
16 Default `true`. Disable stock users like `pi` or `pine64`.
3879346354aa Update README.md
Meredith Howard <mhoward@roomag.org>
parents: 77
diff changeset
17
3879346354aa Update README.md
Meredith Howard <mhoward@roomag.org>
parents: 77
diff changeset
18 ## `bootstrap_ansible_controller`
3879346354aa Update README.md
Meredith Howard <mhoward@roomag.org>
parents: 77
diff changeset
19
3879346354aa Update README.md
Meredith Howard <mhoward@roomag.org>
parents: 77
diff changeset
20 Create an `ansible` user for the controller to connect as, with a public
3879346354aa Update README.md
Meredith Howard <mhoward@roomag.org>
parents: 77
diff changeset
21 key set up and sudo permission.
59
f1f2724d73a8 expand readme
Meredith Howard <mhoward@roomag.org>
parents: 4
diff changeset
22
68
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
23 # Running
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
24
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
25 ## Push
4
ee7f92e88b1a add README.md
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
26
94
3879346354aa Update README.md
Meredith Howard <mhoward@roomag.org>
parents: 77
diff changeset
27 1. Create inventory file with target hosts, maybe extra vars
3879346354aa Update README.md
Meredith Howard <mhoward@roomag.org>
parents: 77
diff changeset
28 - For a single host, `-i ${hostname},` works directly.
3879346354aa Update README.md
Meredith Howard <mhoward@roomag.org>
parents: 77
diff changeset
29 2. We'll need to be root:
3879346354aa Update README.md
Meredith Howard <mhoward@roomag.org>
parents: 77
diff changeset
30 1. If we can ssh as root with key, use `-u root`.
3879346354aa Update README.md
Meredith Howard <mhoward@roomag.org>
parents: 77
diff changeset
31 2. If we can sudo, use `-bK`.
3879346354aa Update README.md
Meredith Howard <mhoward@roomag.org>
parents: 77
diff changeset
32 3. `ansible-playbook -i $inventory $args playbook.yml`
77
0e0bfcf9ffb7 readme update
Meredith Howard <mhoward@roomag.org>
parents: 71
diff changeset
33 4. After the first run, `ansible` management user is created.
68
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
34
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
35 ## Pull
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
36
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
37 1. Install `ansible`, `git`
94
3879346354aa Update README.md
Meredith Howard <mhoward@roomag.org>
parents: 77
diff changeset
38 2. `ansible-pull -i localhost, -c local -U https://github.com/merrilymeredith/devbox-ansible.git`
68
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
39
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
40 ### cloud-init
59
f1f2724d73a8 expand readme
Meredith Howard <mhoward@roomag.org>
parents: 4
diff changeset
41
62
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
42 ```yaml
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
43 #cloud-config
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
44 packages:
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
45 - ansible
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
46 - git
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
47 runcmd:
94
3879346354aa Update README.md
Meredith Howard <mhoward@roomag.org>
parents: 77
diff changeset
48 - ansible-pull -i localhost, -c local -U https://github.com/merrilymeredith/devbox-ansible.git
62
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
49 ```
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
50
70
Meredith Howard <mhoward@roomag.org>
parents: 68
diff changeset
51 # TODO
Meredith Howard <mhoward@roomag.org>
parents: 68
diff changeset
52
94
3879346354aa Update README.md
Meredith Howard <mhoward@roomag.org>
parents: 77
diff changeset
53 - Make pull config or bootstrap install cron entry?

mercurial