Commit 8b67a094 authored by Boxiang Sun's avatar Boxiang Sun

software/peertube: split instance and software

parent 26991c56
[buildout]
parts =
directory
[directory]
recipe = slapos.cookbook:mkdirectory
srv = $${buildout:directory}/srv
var = $${:srv}/var
www = $${:var}/www
peertube_directory = ${:www}/peertube
config = $${:peertube_directory}/config
storage = $${:peertube_directory}/storage
versions = $${:peertube_directory}/versions
...@@ -22,6 +22,9 @@ extends = ...@@ -22,6 +22,9 @@ extends =
../../component/postgresql/buildout.cfg ../../component/postgresql/buildout.cfg
../../component/openssl/buildout.cfg ../../component/openssl/buildout.cfg
../../component/gcc/buildout.cfg ../../component/gcc/buildout.cfg
../../component/libxml2/buildout.cfg
../../component/libxslt/buildout.cfg
../../component/lxml-python/buildout.cfg
# redis-server # redis-server
../../component/redis/buildout.cfg ../../component/redis/buildout.cfg
../../component/git/buildout.cfg ../../component/git/buildout.cfg
...@@ -31,9 +34,7 @@ parts = ...@@ -31,9 +34,7 @@ parts =
# Call installation of slapos.cookbook egg defined in stack/slapos.cfg (needed # Call installation of slapos.cookbook egg defined in stack/slapos.cfg (needed
# in 99,9% of Slapos Software Releases) # in 99,9% of Slapos Software Releases)
slapos-cookbook slapos-cookbook
# Call creation of instance.cfg file that will be called for deployment of gcc
# instance
instance-profile
unzip unzip
curl curl
vim vim
...@@ -43,24 +44,15 @@ parts = ...@@ -43,24 +44,15 @@ parts =
nginx nginx
ffmpeg ffmpeg
postgresql postgresql
gcc
redis redis
git git
wget wget
# peetube sections # peetube sections
directory # peertube-download
peertube-download postgresql-setup
postgresql
[directory] [nodejs]
recipe = slapos.cookbook:mkdirectory <= nodejs-16.13.2
srv = $${buildout:directory}/srv
var = $${:srv}/var
www = $${:var}/www
peertube_directory = ${:www}/peertube
config = $${:peertube_directory}/config
storage = $${:peertube_directory}/storage
versions = $${:peertube_directory}/versions
[peertube-download] [peertube-download]
recipe = slapos.recipe.build:download recipe = slapos.recipe.build:download
...@@ -68,13 +60,14 @@ url = https://github.com/Chocobozzz/PeerTube/releases/download/v4.2.2/peertube-v ...@@ -68,13 +60,14 @@ url = https://github.com/Chocobozzz/PeerTube/releases/download/v4.2.2/peertube-v
destination = ${directory:versions} destination = ${directory:versions}
# md5sum = # md5sum =
[postgresql]
recipe = slapos.cookbook:postgres [instance-profile]
bin = ${postgresql10:location}/bin/ # The <= is buildout verb to use defined template
services = $${directory:service} <= jinja-template
dbname = peertube rendered = ${buildout:directory}/instance.cfg
superuser = peertube extensions = jinja2.ext.do
password = $${postgresql-password:passwd} context =
pgdata-directory = $${directory:srv}/postgresql section buildout buildout
raw template_monitor ${monitor2-template:rendered}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment