Browse Source

Update to handle new roles, random other bits.

master
Chris Smith 9 years ago
parent
commit
79163961fb
8 changed files with 50 additions and 2 deletions
  1. 1
    1
      ansible.cfg
  2. 1
    0
      data/keys/chris/root/tablet
  3. 2
    0
      hosts
  4. 11
    0
      playbooks/bower.yml
  5. 7
    0
      playbooks/do1.yml
  6. 16
    0
      playbooks/do2.yml
  7. 11
    0
      playbooks/includes/install-nodejs
  8. 1
    1
      roles

+ 1
- 1
ansible.cfg View File

@@ -169,7 +169,7 @@ nocows = 1
169 169
 # By default, this option is disabled to preserve compatibility with
170 170
 # sudoers configurations that have requiretty (the default on many distros).
171 171
 # 
172
-#pipelining = False
172
+pipelining = True
173 173
 
174 174
 # if True, make ansible use scp if the connection type is ssh 
175 175
 # (default is sftp)

+ 1
- 0
data/keys/chris/root/tablet View File

@@ -0,0 +1 @@
1
+ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDKSt966ea9f8ujb1hUbLN/Navb/RAyp5HA3fw/ni97VW7qiq3Ojx2e2XVXN3BppqTpaoPLgYK5QELOZ0xSM2cTBQny4RjD3NgN9gtgHPt0BJOXrrjqeQu15Wujkea6J83wvGKhV8RtDU5wAac13/dcOXGx4OcLva+4CLxutwsMLcKQrbHvvM7RZCEJROGtm5fqtEDWZN9JzTbKuqSRiNNhaSTZeLts2ETergyithr7qFXb/Nr61OPs24bxmOng5EPxa3QqtCbojnxAu1rC20D7622/OuetL01lMq7KiPAVVKr2cqQ4nFh/ekgIFe8GSFkZHRWc/Sg8ElFkvDo7ikAT JuiceSSH

+ 2
- 0
hosts View File

@@ -20,11 +20,13 @@ niobe.dmdirc.com
20 20
 [chris-owned]
21 21
 grok.dmdirc.com
22 22
 do1.chameth.com
23
+do2.chameth.com ansible_ssh_host=178.62.0.84
23 24
 quark.tenten.chameth.com
24 25
 
25 26
 [digitalocean]
26 27
 grok.dmdirc.com
27 28
 do1.chameth.com
29
+do2.chameth.com
28 30
 
29 31
 [chris-access:children]
30 32
 dmdirc

+ 11
- 0
playbooks/bower.yml View File

@@ -0,0 +1,11 @@
1
+---
2
+# Installs bower (http://bower.io/)
3
+
4
+- hosts: all
5
+  user: root
6
+  tasks:
7
+
8
+    - include: includes/install-nodejs
9
+
10
+    - name: install bower
11
+      npm: global=yes name=bower

+ 7
- 0
playbooks/do1.yml View File

@@ -0,0 +1,7 @@
1
+---
2
+- hosts: do1.chameth.com
3
+  user: root
4
+  roles:
5
+   - { role: sshd, ssh_root_key_glob: '/etc/ansible/data/keys/chris/root/*', ssh_revoked_root_key_glob: '/etc/ansible/data/keys/chris/revoked/*' }
6
+   - common
7
+   - java8

+ 16
- 0
playbooks/do2.yml View File

@@ -0,0 +1,16 @@
1
+---
2
+- hosts: do2.chameth.com
3
+  user: root
4
+  vars:
5
+   - teamcity_server_url: 'http://teamcity.dmdirc.com/'
6
+  roles:
7
+   - { role: sshd, ssh_root_key_glob: '/etc/ansible/data/keys/chris/root/*', ssh_revoked_root_key_glob: '/etc/ansible/data/keys/chris/revoked/*' }
8
+   - common
9
+   - nginx
10
+   - java8
11
+   - tapchat
12
+   - teamcity-agent
13
+   - dfbnc
14
+   - mysql
15
+   - python-dev
16
+   - uwsgi

+ 11
- 0
playbooks/includes/install-nodejs View File

@@ -0,0 +1,11 @@
1
+---
2
+# Adds a node JS release PPA and installs node.
3
+
4
+- include: install-from-ppa
5
+  vars:
6
+    ppa: 'ppa:chris-lea/node.js'
7
+    ppa_mint: 'deb http://ppa.launchpad.net/chris-lea/node.js/ubuntu raring main'
8
+    package: 'nodejs'
9
+
10
+- name: install npm
11
+  apt: pkg=npm force=yes

+ 1
- 1
roles

@@ -1 +1 @@
1
-Subproject commit f1e7a1d3205eb329287e267748fcc98bd8ddd648
1
+Subproject commit 764e771ee618abd621e35292f1bdd52b6f58b687

Loading…
Cancel
Save