Skip to content

Commit 3d0097d

Browse files
committed
Add info on running Ansible
1 parent 2b3179f commit 3d0097d

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

source/ansible.rst

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
Running Ansible
2+
===============
3+
4+
Both the management node and the compute nodes are configured using `Ansible <https://docs.ansible.com/ansible/>`_.
5+
This is a configuration tool which does things like putting config files in the right place, installing software and creating user accounts.
6+
The configuration for it is stored on GitHub at `github.com/clusterinthecloud/ansible <https://github.com/clusterinthecloud/ansible>`__
7+
8+
A local clone of the Ansible configuration is made early in the setup of CitC in the folder ``/root/citc-ansible``.
9+
All further configuration of the system is made in reference to that folder.
10+
11+
Under normal circumstances, you should not have to deal with Ansible manually, but if something goes wrong or you are adding a new feature then you will need this.
12+
13+
Updating Ansible
14+
----------------
15+
16+
If any bug fixes or new features are added to the version of Ansible on GitHub, they will not automatically become available on your cluster.
17+
In order to retrieve the changes, you must run:
18+
19+
.. code-block:: shell-session
20+
21+
$ sudo /root/update_ansible_repo
22+
23+
Configuring the management node
24+
-------------------------------
25+
26+
The management node is configured automatically by a run of Ansible which is started when the node is first created.
27+
28+
To re-run this manually (for example to retry a failure, or if you've updated the config) you can run:
29+
30+
.. code-block:: shell-session
31+
32+
$ sudo /root/run_ansible
33+
34+
This will run Ansible in the foreground and also send its output to the usual ``/root/ansible-pull.log`` file.
35+
36+
Compute nodes
37+
-------------
38+
39+
The same Ansible configuration is used by Packer when creating compute node images.
40+
The process described under :doc:`node-images` uses this same configuration folder.

source/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Once you've got your cluster up and running, see these topics for more informati
6565
:caption: How-tos
6666

6767
node-images
68+
ansible
6869

6970
.. toctree::
7071
:maxdepth: 1

0 commit comments

Comments
 (0)