Wed, 18 Sep 2019 13:08:53 -0500
rip bitbucket
59 | 1 | # Devbox playbook |
2 | ||
3 | This is a playbook that installs dev tools and DE tools I like to have around | |
60 | 4 | and sets up some other preferences like repositories, and drops in my dotfiles. |
59 | 5 | It's best-tested on Debian, but has some cases for OSX and FreeBSD too. |
6 | ||
77 | 7 | # Interesting Variables |
8 | ||
9 | ## `gui_enabled` | |
10 | ||
94 | 11 | Install and configure GUI tools, or with vim, choose between `gtk` and |
77 | 12 | `nox`. |
13 | ||
14 | ## `disable_stock_users` | |
15 | ||
94 | 16 | Default `true`. Disable stock users like `pi` or `pine64`. |
17 | ||
18 | ## `bootstrap_ansible_controller` | |
19 | ||
20 | Create an `ansible` user for the controller to connect as, with a public | |
21 | key set up and sudo permission. | |
59 | 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 | 26 | |
94 | 27 | 1. Create inventory file with target hosts, maybe extra vars |
28 | - For a single host, `-i ${hostname},` works directly. | |
29 | 2. We'll need to be root: | |
30 | 1. If we can ssh as root with key, use `-u root`. | |
31 | 2. If we can sudo, use `-bK`. | |
32 | 3. `ansible-playbook -i $inventory $args playbook.yml` | |
77 | 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 | 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 | 41 | |
62 | 42 | ```yaml |
43 | #cloud-config | |
44 | packages: | |
45 | - ansible | |
46 | - git | |
47 | runcmd: | |
94 | 48 | - ansible-pull -i localhost, -c local -U https://github.com/merrilymeredith/devbox-ansible.git |
62 | 49 | ``` |
50 | ||
70 | 51 | # TODO |
52 | ||
94 | 53 | - Make pull config or bootstrap install cron entry? |