stuff
This commit is contained in:
5
cookbooks/hosting/recipes/default.rb
Normal file
5
cookbooks/hosting/recipes/default.rb
Normal file
@ -0,0 +1,5 @@
|
||||
#
|
||||
# Cookbook:: hosting
|
||||
# Recipe:: default
|
||||
#
|
||||
# Copyright:: 2019, The Authors, All Rights Reserved.
|
20
cookbooks/hosting/recipes/mkdir.rb
Normal file
20
cookbooks/hosting/recipes/mkdir.rb
Normal 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
|
17
cookbooks/hosting/recipes/postgress.rb
Normal file
17
cookbooks/hosting/recipes/postgress.rb
Normal 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
|
10
cookbooks/hosting/recipes/user.rb
Normal file
10
cookbooks/hosting/recipes/user.rb
Normal 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
|
Reference in New Issue
Block a user