Skip to content

Commit dde4f6b

Browse files
committed
new directory structure, old files moved/renamed
1 parent e72e0cb commit dde4f6b

File tree

22 files changed

+89
-39
lines changed

22 files changed

+89
-39
lines changed
File renamed without changes.
File renamed without changes.

group_vars/ipfs.yml renamed to defaults/main.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
dist_url: https://dist.ipfs.io
2+
3+
# IPFS
4+
25
ipfs_version: v0.4.19
36
ipfs_arch: amd64
47
ipfs_home: /home/ipfs
@@ -11,4 +14,11 @@ ipfs_discovery: false
1114
ipfs_disk_sync: true
1215
ipfs_routing: dht
1316
ipfs_disable_bandthwidth_metrics: false
14-
ipfs_reprovider_strategy: all
17+
ipfs_reprovider_strategy: all
18+
19+
# IPFS Cluster
20+
21+
ipfs_cluster_secret: "use `od -vN 32 -An -tx1 /dev/urandom | tr -d ' \n' ; echo` to generate this"
22+
ipfs_cluster_arch: amd64
23+
ipfs_cluster_version: v0.10.0
24+
ipfs_cluster_fd_max: 10000

group_vars/ipfs_cluster.yml

Lines changed: 0 additions & 5 deletions
This file was deleted.

roles/ipfs/handlers/main.yml renamed to handlers/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
systemd:
44
daemon_reload: yes
55
name: ipfs
6-
notify: restart IPFS
76
when:
87
- not (ansible_distribution == "Amazon" and ansible_distribution_major_version == "NA")
98
- not (ansible_distribution == "Ubuntu" and ansible_distribution_version is version('15.04', '<'))
@@ -15,3 +14,10 @@
1514
name: ipfs
1615
enabled: yes
1716
state: restarted
17+
18+
- name: restart IPFS Cluster
19+
become: yes
20+
service:
21+
name: ipfs-cluster
22+
enabled: yes
23+
state: restarted

ipfs-cluster.yml

Lines changed: 0 additions & 3 deletions
This file was deleted.

ipfs.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

meta/main..yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
galaxy_info:
2+
author: your name
3+
description: your role description
4+
company: your company (optional)
5+
6+
# If the issue tracker for your role is not on github, uncomment the
7+
# next line and provide a value
8+
# issue_tracker_url: http://example.com/issue/tracker
9+
10+
# Choose a valid license ID from https://spdx.org - some suggested licenses:
11+
# - BSD-3-Clause (default)
12+
# - MIT
13+
# - GPL-2.0-or-later
14+
# - GPL-3.0-only
15+
# - Apache-2.0
16+
# - CC-BY-4.0
17+
license: license (GPL-2.0-or-later, MIT, etc)
18+
19+
min_ansible_version: 2.1
20+
21+
# If this a Container Enabled role, provide the minimum Ansible Container version.
22+
# min_ansible_container_version:
23+
24+
#
25+
# Provide a list of supported platforms, and for each platform a list of versions.
26+
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
27+
# To view available platforms and versions (or releases), visit:
28+
# https://galaxy.ansible.com/api/v1/platforms/
29+
#
30+
# platforms:
31+
# - name: Fedora
32+
# versions:
33+
# - all
34+
# - 25
35+
# - name: SomePlatform
36+
# versions:
37+
# - all
38+
# - 1.0
39+
# - 7
40+
# - 99.99
41+
42+
galaxy_tags: []
43+
# List tags for your role here, one per line. A tag is a keyword that describes
44+
# and categorizes the role. Users find roles by searching for tags. Be sure to
45+
# remove the '[]' above, if you add tags to this list.
46+
#
47+
# NOTE: A tag is limited to a single word comprised of alphanumeric characters.
48+
# Maximum 20 tags per role.
49+
50+
dependencies: []
51+
# List your role dependencies here, one per line. Be sure to remove the '[]' above,
52+
# if you add dependencies to this list.

roles/ipfs-cluster/handlers/main.yaml

Lines changed: 0 additions & 16 deletions
This file was deleted.

roles/ipfs-cluster/tasks/main.yml renamed to tasks/ipfs-cluster/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
- name: install ipfs-cluster init service
4646
become: yes
4747
template:
48-
src: etc/systemd/system/ipfs-cluster.service
48+
src: ipfs-cluster/etc/systemd/system/ipfs-cluster.service
4949
dest: /etc/systemd/system/ipfs-cluster.service
5050
owner: root
5151
group: root
@@ -61,7 +61,7 @@
6161
- name: install ipfs-custer init service
6262
become: yes
6363
template:
64-
src: etc/init.d/ipfs-cluster
64+
src: ipfs-cluster/etc/init.d/ipfs-cluster
6565
dest: /etc/init.d/ipfs-cluster
6666
owner: root
6767
group: root
@@ -85,7 +85,7 @@
8585
- name: copy configuration
8686
become: yes
8787
template:
88-
src: "{{ item }}"
88+
src: "ipfs-cluster/{{ item }}"
8989
dest: "{{ ipfs_home }}/.ipfs-cluster/{{ item }}"
9090
mode: 0600
9191
owner: ipfs
@@ -110,7 +110,7 @@
110110
- name: copy peerstore
111111
become: yes
112112
template:
113-
src: peerstore
113+
src: ipfs-cluster/peerstore
114114
dest: "{{ ipfs_home }}/.ipfs-cluster/peerstore"
115115
mode: 0600
116116
owner: ipfs

0 commit comments

Comments
 (0)