This commit is contained in:
2019-05-14 13:32:14 -04:00
parent 7dae237eb0
commit 6e69a84284
39 changed files with 727 additions and 0 deletions

View File

@ -0,0 +1,5 @@
#
# Cookbook:: hosting
# Recipe:: default
#
# Copyright:: 2019, The Authors, All Rights Reserved.

View File

@ -0,0 +1,20 @@
directory '/opt/theta42' do
owner 'root'
group 'root'
mode '0755'
action :create
end
directory '/opt/theta42/bin' do
owner 'root'
group 'root'
mode '0755'
action :create
end
directory '/opt/theta42/gitea' do
owner 'gitea'
group 'gitea'
mode '0755'
action :create
end

View File

@ -0,0 +1,17 @@
postgresql_server_install 'My PostgreSQL Server install' do
action :install
end
postgresql_access 'local_postgres_superuser' do
comment 'Local postgres superuser access'
access_type 'local'
access_db 'all'
access_user 'postgres'
access_addr nil
access_method 'ident'
end
postgresql_user 'gitea' do
password 'UserP4ssword'
createdb true
end

View File

@ -0,0 +1,10 @@
user 'gitea system user' do
comment 'gitea system user'
username 'gitea'
system true
shell '/bin/false'
end
group 'gitea' do
members 'gitea'
end