You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace the hosts under the stratum-0, stratum-1, proxy, client, and cvmfs groups with the ones you want to use.
35
+
36
+
1. Copy the [`hosts.yml`](hosts.yml) file.
37
+
Replace the hosts under the stratum-0, stratum-1, proxy, client, and cvmfs groups with the ones you want to use.
37
38
If you would like to not use stratum-1s and/or proxies, leave the values of their `host:` key blank, but do not remove the `stratum-1:` or `proxies:` keys entirely.
38
-
The format of this file is described [here](https://docs.ansible.com/ansible/latest/inventory_guide/intro_inventory.html).
39
+
The format of this file is described in
40
+
[How to build your inventory](https://docs.ansible.com/ansible/latest/inventory_guide/intro_inventory.html).
39
41
This file is also where the parameters for the setup are configured.
40
42
41
43
2. Create a copy of this [`ansible.cfg`](ansible.cfg) file.
42
44
43
-
44
45
3. With both the `hosts.yml` and `ansible.cfg` files in your working directory.
45
46
Test that things are working with the command
47
+
46
48
```bash
47
49
ansible-playbook cvmfs.setup.ping
48
50
```
49
51
50
-
4. Many of the ansible commands require `sudo` privileges on the remote machines.
51
-
If you would like to disable the sudo password on the remote machines so that the playbooks in this collection can be ran without a password, first run the following command, enter the sudo password for the machine which will have its sudo password removed, then press enter.
52
+
4. Many of the ansible commands require `sudo` privileges on the remote machines.
53
+
If you would like to disable the sudo password on the remote machines so that the playbooks in this collection can be run without a password, first run the following command, enter the sudo password for the machine which will have its sudo password removed, then press enter.
where `<hosts>` is the hostname (specified in`hosts.yaml`) of the machine whose sudo password we are removing.
60
-
61
64
65
+
where `<hosts>` is the hostname (specified in`hosts.yaml`) of the machine whose sudo password we are removing.
62
66
63
67
## Usage
68
+
64
69
1. Run
70
+
65
71
```bash
66
72
ansible-playbook cvmfs.setup.all
67
73
```
@@ -75,19 +81,18 @@ Test that things are working with the command
75
81
ansible-playbook cvmfs.setup.clients
76
82
```
77
83
78
-
after running `cvmfs.setup.all`, any of the individual playbooks above case be re-ranif needed. However, they all rely on `cvmfs.setup.stratum_0` having been ran once in order for the stratum-0 public keys to be copied over properly.
84
+
after running `cvmfs.setup.all`, any of the individual playbooks above case be re-runif needed. However, they all rely on `cvmfs.setup.stratum_0` having been run once in order for the stratum-0 public keys to be copied over properly.
79
85
80
86
2. To ensure that the environment was set up correctly, you could try propagating a test file through all the machines. i.e. from
81
87
82
88
``` bash
83
89
stratum-0 -> stratum-1 -> proxy -> client
84
90
```
85
-
91
+
86
92
By following [these](https://cvmfs-contrib.github.io/cvmfs-tutorial-2021/02_stratum0_client/#216-adding-files-to-the-repository) instructions, we can do this with the following commands
87
-
88
93
89
94
1. **On the Stratum-0**
90
-
95
+
91
96
Set an environment variable to the name of your repository.
92
97
93
98
```bash
@@ -107,18 +112,20 @@ Test that things are working with the command
107
112
2. **On a Stratum-1**
108
113
109
114
Synchronize the file with[^2]
115
+
110
116
```bash
111
117
cvmfs_server snapshot repo.org.tld>
112
118
```
119
+
113
120
again, replacing `<repo.org.tld>` with your cvmfs-repository name.
114
121
115
122
3. **On one of the Client machines**
116
-
123
+
117
124
Test that you can access the file with the command
118
125
119
126
```bash
120
127
/cvmfs/<repo.org.tld>/hello.sh
121
-
```
128
+
```
122
129
123
130
You can also run the following test commands on the client[^3] [^4].
124
131
@@ -132,14 +139,10 @@ Test that things are working with the command
132
139
```bash
133
140
Connection: http://<STRATUM1_IP>/cvmfs/repo.organization.tld through proxy http://<PROXY_IP>:3128 (online)
134
141
```
135
-
136
-
137
-
138
-
139
142
140
143
## Testing
141
-
This repository uses the [Ansible Molecule](https://ansible.readthedocs.io/projects/molecule/) framework for testing.
142
144
145
+
This repository uses the [Ansible Molecule](https://ansible.readthedocs.io/projects/molecule/) framework for testing.
143
146
144
147
### Installation / Setup
145
148
@@ -152,8 +155,8 @@ This repository uses the [Ansible Molecule](https://ansible.readthedocs.io/proje
152
155
```
153
156
154
157
Otherwise, follow these instructions to install podman and molecule
0 commit comments