README.md

Thu, 15 Jun 2017 20:29:07 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Thu, 15 Jun 2017 20:29:07 -0400
changeset 68
539425ad28ce
parent 67
37148a8955f0
child 70
04beed510fa3
permissions
-rw-r--r--

update for push/pull with notes

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
f1f2724d73a8 expand readme
Meredith Howard <mhoward@roomag.org>
parents: 4
diff changeset
7 The `gui_enabled` var controls whether or not to install graphical tools.
f1f2724d73a8 expand readme
Meredith Howard <mhoward@roomag.org>
parents: 4
diff changeset
8
68
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
9 # Running
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
10
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
11 ## Push
4
ee7f92e88b1a add README.md
Meredith Howard <mhoward@roomag.org>
parents:
diff changeset
12
68
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
13 1. Create inventory file with target host.
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
14 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
15 3. GUI box? `-e gui_enabled=true`
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
16 4. `ansible-playbook -i $inventory $args local.yml`
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
17
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
18 ## Pull
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 1. Install `ansible`, `git`
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
21 2. `echo -e '[localhost]\n127.0.0.1 ansible_connection=local' >> /etc/ansible/hosts`
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
22 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
23
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
24 ### cloud-init
59
f1f2724d73a8 expand readme
Meredith Howard <mhoward@roomag.org>
parents: 4
diff changeset
25
62
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
26 ```yaml
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
27 #cloud-config
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
28 packages:
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
29 - ansible
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
30 - git
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
31 runcmd:
67
Meredith Howard <mhoward@roomag.org>
parents: 65
diff changeset
32 - echo -e '[localhost]\n127.0.0.1 ansible_connection=local' >> /etc/ansible/hosts
68
539425ad28ce update for push/pull with notes
Meredith Howard <mhoward@roomag.org>
parents: 67
diff changeset
33 - ansible-pull -U https://github.com/merrilymeredith/devbox-ansible.git
62
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
34 ```
Meredith Howard <mhoward@roomag.org>
parents: 61
diff changeset
35

mercurial