Changeset - 8b88132d2576
[Not reviewed]
0 3 0
Branko Majic (branko) - 9 years ago 2015-05-05 00:21:50
branko@majic.rs
MAR-13: Update docs for testsite. No need to run bootstrap.yml with -k option (we use public key at this point). Optimimsed the bootstrap process a bit to be faster/easier.
3 files changed with 15 insertions and 10 deletions:
0 comments (0 inline, 0 general)
docs/testsite.rst
Show inline comments
 
@@ -17,14 +17,14 @@ playbook runs.
 

	
 
A number of playbooks is provided out of the box:
 

	
 
bootstrap.yml (for bootstrapping a new node)
 
  This playbook can be used for bootstrapping a new node. This playbook expects
 
  that a server name is passed via extra variables in CLI. The server name has
 
  to be included in the hosts file, of course. For example:
 
bootstrap.yml (for bootstrapping fresh nodes)
 
  This playbook can be used for bootstrapping fresh nodes. By default, the
 
  entire test site will be included in the bootstrap. If you wish to limit
 
  bootstrap to a single server, just run the playbook with (for example):
 

	
 
  .. code-block:: shell
 

	
 
    ansible-playbook -e server=ldap.example.com playbooks/bootstrap.yml
 
    ansible-playbook -l ldap.example.com playbooks/bootstrap.yml
 

	
 
ldap.yml
 
  This playbook sets-up the LDAP servers. It is included in ``site.yml``.
 
@@ -70,12 +70,12 @@ In order to deploy the test site, the following steps would normally be taken:
 

	
 
5. Install all servers using the generated preseed files.
 

	
 
6. Invoke the ``bootstrap.yml`` playbook for every server, one by one. For
 
   example:
 
6. Invoke the ``bootstrap.yml`` playbook in order to set-up some basic
 
   environment for Ansible runs on all servers:
 

	
 
  .. code-block:: shell
 

	
 
    ansible-playbook -k -e server=ldap.example.com playbooks/bootstrap.yml
 
    ansible-playbook playbooks/bootstrap.yml
 

	
 
7. Finally, apply configuration on all servers:
 

	
testsite/hosts
Show inline comments
 
@@ -8,4 +8,9 @@ ldap.example.com
 
xmpp.example.com
 

	
 
[mail]
 
mail.example.com
 
\ No newline at end of file
 
mail.example.com
 

	
 
[testsite:children]
 
ldap
 
xmpp
 
mail
 
\ No newline at end of file
testsite/playbooks/bootstrap.yml
Show inline comments
 
---
 

	
 
- hosts: "{{ server }}"
 
- hosts: testsite
 
  remote_user: root
 
  roles:
 
    - bootstrap
 
\ No newline at end of file
0 comments (0 inline, 0 general)