File tree 4 files changed +58
-0
lines changed
4 files changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ - import_playbook : ansible-version.yml
3
+
4
+ - hosts : fastpath.ooni.nu
5
+ roles :
6
+ - role : fastpath
Original file line number Diff line number Diff line change @@ -193,6 +193,9 @@ staticiforme.torproject.org # tor LDAP
193
193
[no_nodeexp:children]
194
194
no_passwd # no passwd => no nodeexp user ;-)
195
195
196
+ [fastpath]
197
+ fastpath.ooni.nu
198
+
196
199
########################################################################
197
200
# TO DELETE.
198
201
# Stopped VMs that should be deleted from GH and DNS after some grace period:
Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ # Deploy the fastpath
4
+ #
5
+ # Deploy .deb package to the fastpath host
6
+ #
7
+ # Fetch SSH pubkey and deploy it on the collector hosts
8
+ #
9
+ # Set the hostname of the collectors in the fastpath config file
10
+
11
+ # Usage: place the .deb file in files/
12
+ # update the version number as needed
13
+
14
+ - name : copy fastpath .deb package
15
+ copy :
16
+ src : files/fastpath_0.1_all.deb
17
+ dest : /root/
18
+ owner : root
19
+ group : root
20
+ mode : ' 0644'
21
+
22
+ # Leave a copy of the .deb in /root as an emergency backup for rollbacks
23
+
24
+ - name : install .deb using dpkg
25
+ apt :
26
+ deb : ' {{ item }}'
27
+ state : present
28
+ with_items :
29
+ - /root/fastpath_0.1_all.deb
30
+
31
+ - name : Fetch sshfeeder pubkey from fastpath host
32
+ slurp :
33
+ src : /var/lib/fastpath/ssh/id_ed25519.pub
34
+ register : sshfeeder_pubkey_b64encoded
35
+
36
+ - name : generate fastpath.conf file with collectors
37
+ template :
38
+ owner : " root"
39
+ group : " root"
40
+ mode : ' 0644'
41
+ src : " fastpath.conf.j2"
42
+ dest : " /etc/fastpath.conf"
Original file line number Diff line number Diff line change
1
+ # Deployed by ansible
2
+ # deploy-fastpath.yml
3
+ # roles/fastpath/tasks/main.yml
4
+ # roles/fastpath/templates/fastpath.conf.j2
5
+
6
+ [DEFAULT]
7
+ collectors = {{ groups['have_collector'] | join(' ') }}
You can’t perform that action at this time.
0 commit comments