Bundle main IPFS node recipes in a role

So we can find the VM/IP
This commit is contained in:
Râu Cao 2022-11-04 14:37:23 +01:00
parent 1c17906a41
commit 37710be28b
Signed by: raucao
GPG Key ID: 15E65F399D084BA9
2 changed files with 15 additions and 4 deletions

View File

@ -74,8 +74,6 @@
"run_list": [
"recipe[kosmos-base]",
"role[kvm_guest]",
"recipe[kosmos-ipfs]",
"recipe[kosmos-ipfs::public_gateway]",
"recipe[kosmos-ipfs::kredits_pinner]"
"role[ipfs_gateway]"
]
}
}

13
roles/ipfs_gateway.rb Normal file
View File

@ -0,0 +1,13 @@
name "ipfs_gateway"
default_run_list = %w(
kosmos-ipfs
kosmos-ipfs::public_gateway
kosmos-ipfs::kredits_pinner
)
env_run_lists(
'_default' => default_run_list,
'development' => default_run_list,
'production' => default_run_list
)