README.md

Sat, 22 Jun 2019 04:23:29 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Sat, 22 Jun 2019 04:23:29 -0400
changeset 81
47d7ef3be553
parent 77
0e0bfcf9ffb7
child 94
3879346354aa
permissions
-rw-r--r--

Forget lightdm for now

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
0e0bfcf9ffb7 readme update
Meredith Howard <mhoward@roomag.org>
parents: 71
diff changeset
11 Boolean. Install and configure GUI tools, or with vim, choose between `gtk` and
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
0e0bfcf9ffb7 readme update
Meredith Howard <mhoward@roomag.org>
parents: 71
diff changeset
16 Boolean. Disable stock users like `pi` or `pine64`.
59
f1f2724d73a8 expand readme
Meredith Howard <mhoward@roomag.org>
parents: 4
diff changeset
17
68
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
18 # Running
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
19
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
20 ## Push
4
ee7f92e88b1a add README.md
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
21
77
0e0bfcf9ffb7 readme update
Meredith Howard <mhoward@roomag.org>
parents: 71
diff changeset
22 1. Create inventory file with target host, maybe extra vars
68
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
23 2. If we can ssh as root with key, use `-u root`. If we can sudo, use `-bK`.
77
0e0bfcf9ffb7 readme update
Meredith Howard <mhoward@roomag.org>
parents: 71
diff changeset
24 3. `ansible-playbook -i $inventory $args local.yml`
0e0bfcf9ffb7 readme update
Meredith Howard <mhoward@roomag.org>
parents: 71
diff changeset
25 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
26
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
27 ## Pull
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
28
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
29 1. Install `ansible`, `git`
70
Meredith Howard <mhoward@roomag.org>
parents: 68
diff changeset
30 2. `echo -e '[localhost]\nlocalhost ansible_connection=local' >> /etc/ansible/hosts`
77
0e0bfcf9ffb7 readme update
Meredith Howard <mhoward@roomag.org>
parents: 71
diff changeset
31 3. `ansible-pull -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
32
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
33 ### cloud-init
59
f1f2724d73a8 expand readme
Meredith Howard <mhoward@roomag.org>
parents: 4
diff changeset
34
62
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
35 ```yaml
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
36 #cloud-config
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
37 packages:
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
38 - ansible
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
39 - git
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
40 runcmd:
71
Meredith Howard <mhoward@roomag.org>
parents: 70
diff changeset
41 - echo '[localhost]\nlocalhost ansible_connection=local' >> /etc/ansible/hosts
68
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
42 - ansible-pull -U https://github.com/merrilymeredith/devbox-ansible.git
62
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
43 ```
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
44
70
Meredith Howard <mhoward@roomag.org>
parents: 68
diff changeset
45 # TODO
Meredith Howard <mhoward@roomag.org>
parents: 68
diff changeset
46
Meredith Howard <mhoward@roomag.org>
parents: 68
diff changeset
47 - Make pull config install cron entry?

mercurial