Changeset - c161524058d5
[Not reviewed]
0 2 0
Branko Majic (branko) - 8 years ago 2016-01-11 16:47:43
branko@majic.rs
MAR-44: Updated testsite documentation, mostly small tweaks. Include backup server itself as backup client (backing-up logs and the like).
2 files changed with 7 insertions and 3 deletions:
0 comments (0 inline, 0 general)
docs/testsite.rst
Show inline comments
 
@@ -50,6 +50,9 @@ web.yml
 
xmpp.yml
 
  This playbook sets-up the XMPP server. It is included in ``site.yml``.
 

	
 
backup.yml
 
  This playbook sets-up the backup server. It is included in ``site.yml``.
 

	
 
In order to deploy the test site, the following steps would normally be taken:
 

	
 
1. As mentioned in introduction, default domain used by test site is
 
@@ -131,7 +134,6 @@ In order to deploy the test site, the following steps would normally be taken:
 
     mkdir ./backup_keyring
 
     chmod 700 ./backup_keyring
 
     cat << EOF | gpg2 --homedir ./backup_keyring --batch --gen-key
 
     # Signing keys first.
 
     Key-Type:RSA
 
     Key-Length:1024
 
     Name-Real:ldap.example.com
 
@@ -156,7 +158,6 @@ In order to deploy the test site, the following steps would normally be taken:
 
     Expire-Date:0
 
     %commit
 

	
 
     # This is the actual encryption key that will be used.
 
     Key-Type:RSA
 
     Key-Length:1024
 
     Name-Real:backup.example.com
 
@@ -179,7 +180,7 @@ In order to deploy the test site, the following steps would normally be taken:
 

	
 
    .. code-block:: shell
 

	
 
      ssh-keyscan -t ed25519 mail.example.com ldap.example.com xmpp.example.com web.example.com $(resolveip -s mail.example.com) $(resolveip -s ldap.example.com) $(resolveip -s xmpp.example.com) $(resolveip -s web.example.com)
 
      ssh-keyscan -t ed25519 mail.example.com ldap.example.com xmpp.example.com web.example.com backup.example.com $(resolveip -s mail.example.com) $(resolveip -s ldap.example.com) $(resolveip -s xmpp.example.com) $(resolveip -s web.example.com) $(resolveip -s backup.example.com)
 

	
 
11. Invoke the ``bootstrap.yml`` playbook in order to set-up some basic
 
    environment for Ansible runs on all servers:
testsite/group_vars/backup.yml
Show inline comments
 
@@ -20,6 +20,9 @@ backup_clients:
 
  - server: xmpp.{{ testsite_domain }}
 
    public_key: "{{ lookup('file', inventory_dir + '/ssh/xmpp.' + testsite_domain + '.pub') }}"
 
    ip: 10.32.64.16
 
  - server: backup.{{ testsite_domain }}
 
    public_key: "{{ lookup('file', inventory_dir + '/ssh/backup.' + testsite_domain + '.pub') }}"
 
    ip: 127.0.0.1
 

	
 
backup_host_ssh_private_keys:
 
  dsa: "{{ lookup('file', inventory_dir + '/ssh/backup_server_dsa_key') }}"
0 comments (0 inline, 0 general)