Skip to content

Commit

Permalink
Merge pull request #64 from djmitche/manage-all-jails
Browse files Browse the repository at this point in the history
Manage all jails
  • Loading branch information
Mikhail Sobolev committed Jan 18, 2015
2 parents ef41d00 + 6b8317d commit 8c02d59
Show file tree
Hide file tree
Showing 10 changed files with 91 additions and 5 deletions.
10 changes: 10 additions & 0 deletions jail-bot.yml
@@ -0,0 +1,10 @@
---
# TODO: actually manage configuration (#3154)
- name: configure bot
hosts: bot
gather_facts: no
connection: local
sudo: yes
roles:
- base

10 changes: 10 additions & 0 deletions jail-ftp.yml
@@ -0,0 +1,10 @@
---
# TODO: actually manage configuration (#3044)
- name: configure ftp
hosts: ftp
gather_facts: no
connection: local
sudo: yes
roles:
- base

10 changes: 10 additions & 0 deletions jail-lists.yml
@@ -0,0 +1,10 @@
---
# TODO: actually manage configuration (#3040)
- name: configure lists
hosts: lists
gather_facts: no
connection: local
sudo: yes
roles:
- base

9 changes: 9 additions & 0 deletions jail-mx.yml
@@ -0,0 +1,9 @@
---
# TODO: actually manage configuration (#3046)
- name: configure mx
hosts: mx
gather_facts: no
connection: local
sudo: yes
roles:
- base
10 changes: 10 additions & 0 deletions jail-mysql.yml
@@ -0,0 +1,10 @@
---
# TODO: actually manage configuration (#3047)
- name: configure mysql
hosts: mysql
gather_facts: no
connection: local
sudo: yes
roles:
- base

13 changes: 13 additions & 0 deletions jail-syslog.yml
@@ -0,0 +1,13 @@
---
# TODO: actually manage configuration (#3135)
- name: configure syslog
hosts: syslog
gather_facts: no
connection: local
sudo: yes
roles:
- role: base
# don't add the base configuration for syslog here, as this host
# has its own syslog configuration
configure_syslog: False

10 changes: 10 additions & 0 deletions jail-trac.yml
@@ -0,0 +1,10 @@
---
# TODO: actually manage configuration (#3038)
- name: configure trac
hosts: trac
gather_facts: no
connection: local
sudo: yes
roles:
- base

18 changes: 13 additions & 5 deletions local.yml
Expand Up @@ -18,18 +18,26 @@
key: "{{ansible_hostname}}"
changed_when: False

# Service hosts
# Service hosts and their jails
- include: "host-service1.yml"
- include: "jail-ns1.yml"
- include: "jail-mx.yml"
- include: "jail-syslog.yml"

- include: "host-service2.yml"
- include: "jail-trac.yml"
- include: "jail-lists.yml"
- include: "jail-bot.yml"
- include: "jail-ftp.yml"
- include: "jail-nine.yml"

- include: "host-service3.yml"
- include: "host-vm1.yml"
- include: "jail-mysql.yml"

# Jails
- include: "host-vm1.yml"
- include: "jail-bslave1.yml"
- include: "jail-buildbot.yml"
- include: "jail-docs.yml"
- include: "jail-nine.yml"
- include: "jail-ns1.yml"
- include: "jail-www.yml"

# vim:ts=2:sw=2:noai:nosi
4 changes: 4 additions & 0 deletions roles/base/defaults/main.yml
@@ -0,0 +1,4 @@
---
# set this to False to skip configuring syslog (on a host with a special syslog
# configuration)
configure_syslog: True
2 changes: 2 additions & 0 deletions roles/base/tasks/syslog.yml
Expand Up @@ -4,6 +4,7 @@
name: syslogd
enabled: yes
state: started
when: configure_syslog

- name: "syslog.conf - add configuration to send to global_syslog_server"
tags: syslog
Expand All @@ -15,3 +16,4 @@
insertafter: "Consult the syslog.conf.5. manpage."
dest: /etc/syslog.conf
notify: reload syslogd
when: configure_syslog

0 comments on commit 8c02d59

Please sign in to comment.