File tree Expand file tree Collapse file tree 4 files changed +43
-11
lines changed
templates/ipfs/etc/systemd/system Expand file tree Collapse file tree 4 files changed +43
-11
lines changed Original file line number Diff line number Diff line change 3
3
# override to disable go-ipfs setup
4
4
ipfs_enable : true
5
5
6
- ipfs_version : v0.4.19
6
+ ipfs_version : v0.9.0
7
7
ipfs_arch : amd64
8
8
ipfs_home : /home/ipfs
9
9
ipfs_storage_max : 10G
@@ -21,8 +21,6 @@ ipfs_reprovider_strategy: all
21
21
22
22
# override to disable ipfs cluster setup
23
23
ipfs_cluster_enable : true
24
-
25
- ipfs_cluster_secret : " use `od -vN 32 -An -tx1 /dev/urandom | tr -d ' \n ' ; echo` to generate this"
26
24
ipfs_cluster_arch : amd64
27
- ipfs_cluster_version : v0.10.0
25
+ ipfs_cluster_version : v0.13.3
28
26
ipfs_cluster_fd_max : 10000
Original file line number Diff line number Diff line change @@ -6,13 +6,18 @@ driver:
6
6
platforms :
7
7
- name : instance-1
8
8
image : centos:8
9
- command : /sbin/init
9
+ command : " /usr/sbin/init"
10
+ volumes :
11
+ - " /sys/fs/cgroup:/sys/fs/cgroup:rw"
10
12
privileged : True
11
13
groups :
12
14
- ipfs_cluster
13
15
provisioner :
14
16
name : ansible
15
17
inventory :
18
+ group_vars :
19
+ ipfs_cluster :
20
+ ipfs_cluster_secret : " 81643eba8fedcc4aa31fef6459e8b852a97c3cf3d0489158cb85166e8255e912"
16
21
host_vars :
17
22
instance-1 :
18
23
ipfs_peer_id : " QmUdZCogpVVrPMxdPHhtT2KuUuxNVi1uLb7UC4HwHBqejb"
Original file line number Diff line number Diff line change 1
1
---
2
- # This is an example playbook to execute Ansible tests.
2
+ # Validates if ipfs and ipfs-cluster are installed and running
3
3
4
4
- name : Verify
5
- hosts : all
5
+ hosts : instance-1
6
6
gather_facts : false
7
7
tasks :
8
- - name : Example assertion
9
- assert :
10
- that : true
8
+ - name : Check if IPFS is installed
9
+ package :
10
+ name : ipfs
11
+ state : present
12
+ check_mode : true
13
+ register : install_ipfs
14
+ failed_when : (install_ipfs is changed) or (install_ipfs is failed)
15
+
16
+ - name : Check if IPFS service is running
17
+ service :
18
+ name : ipfs
19
+ state : started
20
+ enabled : true
21
+ check_mode : true
22
+ register : service_ipfs
23
+ failed_when : (service_ipfs is changed) or (service_ipfs is failed)
24
+
25
+ - name : Check if IPFS Cluster is installed
26
+ package :
27
+ name : ipfs-cluster
28
+ state : present
29
+ check_mode : true
30
+ register : install_ipfs_cluster
31
+ failed_when : (install_ipfs_cluster is changed) or (install_ipfs_cluster is failed)
32
+
33
+ - name : Check if IPFS Cluster service is running
34
+ service :
35
+ name : ipfs-cluster
36
+ state : started
37
+ enabled : true
38
+ check_mode : true
39
+ register : service_ipfs_cluster
40
+ failed_when : (service_ipfs_cluster is changed) or (service_ipfs_cluster is failed)
Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ Description=IPFS daemon
3
3
After =network.target
4
4
5
5
[Service]
6
- Type =notify
7
6
User =ipfs
8
7
Group =ipfs
9
8
StateDirectory =ipfs
You can’t perform that action at this time.
0 commit comments