Changeset - b4ac65219ef1
[Not reviewed]
0 3 0
Branko Majic (branko) - 9 years ago 2015-08-25 23:31:59
branko@majic.rs
MAR-34: Small usability improvements, not related to original issue. Improved the ssh-keyscan command a bit to include IP addresses in output as well. Store Ansible retry files locally in the retry directory (relative to testsite).
3 files changed with 5 insertions and 3 deletions:
0 comments (0 inline, 0 general)
.gitignore
Show inline comments
 
*.pyc
 
*~
 
tmp/
 
docs/_build/
 
testsite/preseed_files/
 

	
 
# Ignore "temporary" files created with the playbook tls.yml (certs, keys, and
 
# host config files for GnuTLS - ca.cfg is versioned, though).
 
testsite/tls/*.pem
 
testsite/tls/*.key
 
testsite/tls/*.*_*.cfg
 
\ No newline at end of file
 
testsite/tls/*.*_*.cfg
 
testsite/retry/*
 
\ No newline at end of file
docs/testsite.rst
Show inline comments
 
@@ -116,25 +116,25 @@ In order to deploy the test site, the following steps would normally be taken:
 

	
 
    ansible-playbook playbooks/preseed.yml
 

	
 
7. Install all servers using the generated preseed files.
 

	
 
8. Add the SSH host fingerprints to your ``known_hosts`` file (don't forget to
 
   remove old entries if you are redoing the process). You can easily obtain all
 
   the necessary fingerprints with command (don't forget to modify domain if you
 
   need to):
 

	
 
   .. code-block:: shell
 

	
 
      ssh-keyscan mail.example.com ldap.example.com xmpp.example.com web.example.com
 
      ssh-keyscan 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)
 

	
 
9. Invoke the ``bootstrap.yml`` playbook in order to set-up some basic
 
   environment for Ansible runs on all servers:
 

	
 
  .. code-block:: shell
 

	
 
    ansible-playbook playbooks/bootstrap.yml
 

	
 
10. Finally, apply configuration on all servers:
 

	
 
  .. code-block:: shell
 

	
testsite/ansible.cfg
Show inline comments
 
[defaults]
 

	
 
roles_path=../roles
 
force_handlers = True
 
\ No newline at end of file
 
force_handlers = True
 
retry_files_save_path = ./retry
 
\ No newline at end of file
0 comments (0 inline, 0 general)