README.md

Fri, 23 Jun 2017 20:17:46 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Fri, 23 Jun 2017 20:17:46 -0400
changeset 75
082685c4bd2a
parent 71
509db8d79ab5
child 77
0e0bfcf9ffb7
permissions
-rw-r--r--

actually remove defunct repositories

70
Meredith Howard <mhoward@roomag.org>
parents: 68
diff changeset
1
Meredith Howard <mhoward@roomag.org>
parents: 68
diff changeset
2
59
f1f2724d73a8 expand readme
Meredith Howard <mhoward@roomag.org>
parents: 4
diff changeset
3 # Devbox playbook
f1f2724d73a8 expand readme
Meredith Howard <mhoward@roomag.org>
parents: 4
diff changeset
4
f1f2724d73a8 expand readme
Meredith Howard <mhoward@roomag.org>
parents: 4
diff changeset
5 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
6 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
7 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
8
f1f2724d73a8 expand readme
Meredith Howard <mhoward@roomag.org>
parents: 4
diff changeset
9 The `gui_enabled` var controls whether or not to install graphical tools.
f1f2724d73a8 expand readme
Meredith Howard <mhoward@roomag.org>
parents: 4
diff changeset
10
68
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
11 # Running
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
12
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
13 ## Push
4
ee7f92e88b1a add README.md
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
14
68
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
15 1. Create inventory file with target host.
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
16 2. If we can ssh as root with key, use `-u root`. If we can sudo, use `-bK`.
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
17 3. GUI box? `-e gui_enabled=true`
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
18 4. `ansible-playbook -i $inventory $args local.yml`
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 ## Pull
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
21
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
22 1. Install `ansible`, `git`
70
Meredith Howard <mhoward@roomag.org>
parents: 68
diff changeset
23 2. `echo -e '[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
24 2. `ansible-pull -U https://github.com/merrilymeredith/devbox-ansible.git`
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
25
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
26 ### cloud-init
59
f1f2724d73a8 expand readme
Meredith Howard <mhoward@roomag.org>
parents: 4
diff changeset
27
62
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
28 ```yaml
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
29 #cloud-config
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
30 packages:
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
31 - ansible
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
32 - git
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
33 runcmd:
71
Meredith Howard <mhoward@roomag.org>
parents: 70
diff changeset
34 - 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
35 - ansible-pull -U https://github.com/merrilymeredith/devbox-ansible.git
62
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
36 ```
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
37
70
Meredith Howard <mhoward@roomag.org>
parents: 68
diff changeset
38 # TODO
Meredith Howard <mhoward@roomag.org>
parents: 68
diff changeset
39
Meredith Howard <mhoward@roomag.org>
parents: 68
diff changeset
40 - Make pull config install cron entry?
71
Meredith Howard <mhoward@roomag.org>
parents: 70
diff changeset
41 - Debian 8 ansible is still 1.7 lol

mercurial