Changeset - 06bf1c3c9611
[Not reviewed]
0 4 2
Branko Majic (branko) - 9 years ago 2015-05-06 17:58:31
branko@majic.rs
MAR-5: Added server to test site for testing the web server roles. Updated mail server configuration to relay mails for the web server in test site.
6 files changed with 48 insertions and 2 deletions:
0 comments (0 inline, 0 general)
testsite/group_vars/mail.yml
Show inline comments
 
@@ -35,3 +35,4 @@ mail_postmaster: postmaster@example.com
 
smtp_allow_relay_from:
 
  - ldap.example.com
 
  - xmpp.example.com
 
  - web.example.com
 
\ No newline at end of file
testsite/group_vars/preseed.yml
Show inline comments
 
@@ -28,6 +28,18 @@ preseed_servers:
 
    root_password: root
 
    timezone: Europe/Stockholm
 
  - name: mail.example.com
 
    language: en
 
    country: SE
 
    locale: en_US.UTF-8
 
    keymap: us
 
    network_interface: eth0
 
    network_auto: yes
 
    mirror_hostname: ftp.se.debian.org
 
    mirror_directory: /debian
 
    mirror_proxy: ""
 
    root_password: root
 
    timezone: Europe/Stockholm
 
  - name: web.example.com
 
    language: en
 
    country: SE
 
    locale: en_US.UTF-8
testsite/group_vars/web.yml
Show inline comments
 
new file 100644
 
---
 

	
 
ldap_client_config:
 
  - comment: Set the base DN
 
    option: BASE
 
    value: dc=example,dc=com
 
  - comment: Set the default URI
 
    option: URI
 
    value: ldap://ldap.example.com/
 
  - comment: Set the LDAP TLS truststore
 
    option: TLS_CACERT
 
    value: /etc/ssl/certs/example_ca_chain.pem
 

	
 
local_mail_aliases:
 
  root: "root john.doe@example.com"
 

	
 
smtp_relay_host: mail.example.com
 

	
 
smtp_relay_truststore: /etc/ssl/certs/example_ca_chain.pem
testsite/hosts
Show inline comments
 
@@ -10,7 +10,11 @@ xmpp.example.com
 
[mail]
 
mail.example.com
 

	
 
[web]
 
web.example.com
 

	
 
[testsite:children]
 
ldap
 
xmpp
 
mail
 
\ No newline at end of file
 
mail
 
web
 
\ No newline at end of file
testsite/playbooks/site.yml
Show inline comments
 
@@ -3,4 +3,5 @@
 
- include: preseed.yml
 
- include: ldap.yml
 
- include: xmpp.yml
 
- include: mail.yml
 
\ No newline at end of file
 
- include: mail.yml
 
- include: web.yml
 
\ No newline at end of file
testsite/playbooks/web.yml
Show inline comments
 
new file 100644
 
---
 

	
 
- hosts: web
 
  remote_user: ansible
 
  sudo: yes
 
  roles:
 
    - common
 
    - ldap_client
 
    - mail_forwarder
0 comments (0 inline, 0 general)