Compare commits
4 Commits
8072fafa46
...
1bdcda0e97
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1bdcda0e97 | ||
|
|
0a15199364 | ||
|
|
aebf0a12e8 | ||
|
|
2950ab5bfc |
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -1,3 +1,6 @@
|
|||||||
[submodule "site-cookbooks/postgresql"]
|
[submodule "site-cookbooks/postgresql"]
|
||||||
path = site-cookbooks/postgresql
|
path = site-cookbooks/postgresql
|
||||||
url = git@github.com:67P/postgresql.git
|
url = git@github.com:67P/postgresql.git
|
||||||
|
[submodule "site-cookbooks/openresty"]
|
||||||
|
path = site-cookbooks/openresty
|
||||||
|
url = https://github.com/67P/chef-openresty.git
|
||||||
|
|||||||
12
Berksfile
12
Berksfile
@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
source 'https://supermarket.chef.io'
|
source 'https://supermarket.chef.io'
|
||||||
|
|
||||||
cookbook 'elasticsearch', '~> 5.1.3'
|
cookbook 'elasticsearch', '~> 5.1.3'
|
||||||
cookbook 'firewall', '~> 6.2.16'
|
cookbook 'firewall', '~> 6.2.16'
|
||||||
cookbook 'redisio', '~> 6.4.1'
|
cookbook 'redisio', '~> 6.4.1'
|
||||||
cookbook 'ruby_build', '~> 2.5.0'
|
cookbook 'ruby_build', '~> 2.5.0'
|
||||||
|
|
||||||
cookbook 'ipfs',
|
cookbook 'ipfs',
|
||||||
git: 'https://gitea.kosmos.org/kosmos/ipfs-cookbook.git',
|
git: 'https://gitea.kosmos.org/kosmos/ipfs-cookbook.git',
|
||||||
@ -37,3 +37,7 @@ cookbook 'timezone_iii', '= 1.0.4'
|
|||||||
cookbook 'ulimit', '~> 1.0.0'
|
cookbook 'ulimit', '~> 1.0.0'
|
||||||
cookbook 'users', '~> 5.3.1'
|
cookbook 'users', '~> 5.3.1'
|
||||||
cookbook 'zerotier', '~> 1.0.7'
|
cookbook 'zerotier', '~> 1.0.7'
|
||||||
|
|
||||||
|
# openresty dependency
|
||||||
|
cookbook 'jemalloc', '~> 0.1.7'
|
||||||
|
cookbook 'yum'
|
||||||
|
|||||||
@ -15,6 +15,7 @@ DEPENDENCIES
|
|||||||
revision: d7c25b6ce5fa490b6de3529fdc163fb64f1ece8a
|
revision: d7c25b6ce5fa490b6de3529fdc163fb64f1ece8a
|
||||||
ref: v0.7.0
|
ref: v0.7.0
|
||||||
java (~> 4.3.0)
|
java (~> 4.3.0)
|
||||||
|
jemalloc (~> 0.1.7)
|
||||||
logrotate (= 2.2.0)
|
logrotate (= 2.2.0)
|
||||||
mediawiki
|
mediawiki
|
||||||
git: https://github.com/67P/mediawiki-cookbook.git
|
git: https://github.com/67P/mediawiki-cookbook.git
|
||||||
@ -33,6 +34,7 @@ DEPENDENCIES
|
|||||||
timezone_iii (= 1.0.4)
|
timezone_iii (= 1.0.4)
|
||||||
ulimit (~> 1.0.0)
|
ulimit (~> 1.0.0)
|
||||||
users (~> 5.3.1)
|
users (~> 5.3.1)
|
||||||
|
yum
|
||||||
zerotier (~> 1.0.7)
|
zerotier (~> 1.0.7)
|
||||||
|
|
||||||
GRAPH
|
GRAPH
|
||||||
@ -65,6 +67,8 @@ GRAPH
|
|||||||
java (4.3.0)
|
java (4.3.0)
|
||||||
homebrew (>= 0.0.0)
|
homebrew (>= 0.0.0)
|
||||||
windows (>= 0.0.0)
|
windows (>= 0.0.0)
|
||||||
|
jemalloc (0.1.7)
|
||||||
|
build-essential (>= 0.0.0)
|
||||||
logrotate (2.2.0)
|
logrotate (2.2.0)
|
||||||
mediawiki (0.5.0)
|
mediawiki (0.5.0)
|
||||||
apache2 (>= 0.0.0)
|
apache2 (>= 0.0.0)
|
||||||
@ -97,6 +101,7 @@ GRAPH
|
|||||||
ulimit (1.0.0)
|
ulimit (1.0.0)
|
||||||
users (5.3.1)
|
users (5.3.1)
|
||||||
windows (7.0.2)
|
windows (7.0.2)
|
||||||
|
yum (7.4.13)
|
||||||
yum-epel (4.2.3)
|
yum-epel (4.2.3)
|
||||||
zerotier (1.0.7)
|
zerotier (1.0.7)
|
||||||
ohai (>= 0.0.0)
|
ohai (>= 0.0.0)
|
||||||
|
|||||||
@ -4,6 +4,9 @@
|
|||||||
"json_class": "Chef::Environment",
|
"json_class": "Chef::Environment",
|
||||||
"chef_type": "environment",
|
"chef_type": "environment",
|
||||||
"default_attributes": {
|
"default_attributes": {
|
||||||
|
"openresty": {
|
||||||
|
"try_aio": false
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"override_attributes": {
|
"override_attributes": {
|
||||||
"kosmos-mastodon": {
|
"kosmos-mastodon": {
|
||||||
|
|||||||
25
site-cookbooks/kosmos_openresty/.gitignore
vendored
Normal file
25
site-cookbooks/kosmos_openresty/.gitignore
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
.vagrant
|
||||||
|
*~
|
||||||
|
*#
|
||||||
|
.#*
|
||||||
|
\#*#
|
||||||
|
.*.sw[a-z]
|
||||||
|
*.un~
|
||||||
|
|
||||||
|
# Bundler
|
||||||
|
Gemfile.lock
|
||||||
|
gems.locked
|
||||||
|
bin/*
|
||||||
|
.bundle/*
|
||||||
|
|
||||||
|
# test kitchen
|
||||||
|
.kitchen/
|
||||||
|
kitchen.local.yml
|
||||||
|
|
||||||
|
# Chef Infra
|
||||||
|
Berksfile.lock
|
||||||
|
.zero-knife.rb
|
||||||
|
Policyfile.lock.json
|
||||||
|
|
||||||
|
.idea/
|
||||||
|
|
||||||
5
site-cookbooks/kosmos_openresty/CHANGELOG.md
Normal file
5
site-cookbooks/kosmos_openresty/CHANGELOG.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
# kosmos_openresty CHANGELOG
|
||||||
|
|
||||||
|
## 0.1.0
|
||||||
|
|
||||||
|
Initial release.
|
||||||
21
site-cookbooks/kosmos_openresty/LICENSE
Normal file
21
site-cookbooks/kosmos_openresty/LICENSE
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2023 Kosmos
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
4
site-cookbooks/kosmos_openresty/README.md
Normal file
4
site-cookbooks/kosmos_openresty/README.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# kosmos_openresty
|
||||||
|
|
||||||
|
Wrapper cookbook for our fork of the openresty cookbook. It adds support for
|
||||||
|
installing from the package using the official apt repository.
|
||||||
115
site-cookbooks/kosmos_openresty/chefignore
Normal file
115
site-cookbooks/kosmos_openresty/chefignore
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
# Put files/directories that should be ignored in this file when uploading
|
||||||
|
# to a Chef Infra Server or Supermarket.
|
||||||
|
# Lines that start with '# ' are comments.
|
||||||
|
|
||||||
|
# OS generated files #
|
||||||
|
######################
|
||||||
|
.DS_Store
|
||||||
|
ehthumbs.db
|
||||||
|
Icon?
|
||||||
|
nohup.out
|
||||||
|
Thumbs.db
|
||||||
|
.envrc
|
||||||
|
|
||||||
|
# EDITORS #
|
||||||
|
###########
|
||||||
|
.#*
|
||||||
|
.project
|
||||||
|
.settings
|
||||||
|
*_flymake
|
||||||
|
*_flymake.*
|
||||||
|
*.bak
|
||||||
|
*.sw[a-z]
|
||||||
|
*.tmproj
|
||||||
|
*~
|
||||||
|
\#*
|
||||||
|
REVISION
|
||||||
|
TAGS*
|
||||||
|
tmtags
|
||||||
|
.vscode
|
||||||
|
.editorconfig
|
||||||
|
|
||||||
|
## COMPILED ##
|
||||||
|
##############
|
||||||
|
*.class
|
||||||
|
*.com
|
||||||
|
*.dll
|
||||||
|
*.exe
|
||||||
|
*.o
|
||||||
|
*.pyc
|
||||||
|
*.so
|
||||||
|
*/rdoc/
|
||||||
|
a.out
|
||||||
|
mkmf.log
|
||||||
|
|
||||||
|
# Testing #
|
||||||
|
###########
|
||||||
|
.circleci/*
|
||||||
|
.codeclimate.yml
|
||||||
|
.delivery/*
|
||||||
|
.foodcritic
|
||||||
|
.kitchen*
|
||||||
|
.mdlrc
|
||||||
|
.overcommit.yml
|
||||||
|
.rspec
|
||||||
|
.rubocop.yml
|
||||||
|
.travis.yml
|
||||||
|
.watchr
|
||||||
|
.yamllint
|
||||||
|
azure-pipelines.yml
|
||||||
|
Dangerfile
|
||||||
|
examples/*
|
||||||
|
features/*
|
||||||
|
Guardfile
|
||||||
|
kitchen.yml*
|
||||||
|
mlc_config.json
|
||||||
|
Procfile
|
||||||
|
Rakefile
|
||||||
|
spec/*
|
||||||
|
test/*
|
||||||
|
|
||||||
|
# SCM #
|
||||||
|
#######
|
||||||
|
.git
|
||||||
|
.gitattributes
|
||||||
|
.gitconfig
|
||||||
|
.github/*
|
||||||
|
.gitignore
|
||||||
|
.gitkeep
|
||||||
|
.gitmodules
|
||||||
|
.svn
|
||||||
|
*/.bzr/*
|
||||||
|
*/.git
|
||||||
|
*/.hg/*
|
||||||
|
*/.svn/*
|
||||||
|
|
||||||
|
# Berkshelf #
|
||||||
|
#############
|
||||||
|
Berksfile
|
||||||
|
Berksfile.lock
|
||||||
|
cookbooks/*
|
||||||
|
tmp
|
||||||
|
|
||||||
|
# Bundler #
|
||||||
|
###########
|
||||||
|
vendor/*
|
||||||
|
Gemfile
|
||||||
|
Gemfile.lock
|
||||||
|
|
||||||
|
# Policyfile #
|
||||||
|
##############
|
||||||
|
Policyfile.rb
|
||||||
|
Policyfile.lock.json
|
||||||
|
|
||||||
|
# Documentation #
|
||||||
|
#############
|
||||||
|
CODE_OF_CONDUCT*
|
||||||
|
CONTRIBUTING*
|
||||||
|
documentation/*
|
||||||
|
TESTING*
|
||||||
|
UPGRADING*
|
||||||
|
|
||||||
|
# Vagrant #
|
||||||
|
###########
|
||||||
|
.vagrant
|
||||||
|
Vagrantfile
|
||||||
9
site-cookbooks/kosmos_openresty/metadata.rb
Normal file
9
site-cookbooks/kosmos_openresty/metadata.rb
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
name 'kosmos_openresty'
|
||||||
|
maintainer 'Kosmos'
|
||||||
|
maintainer_email 'mail@kosmos.org'
|
||||||
|
license 'MIT'
|
||||||
|
description 'Installs/Configures kosmos_openresty'
|
||||||
|
version '0.1.0'
|
||||||
|
chef_version '>= 16.0'
|
||||||
|
|
||||||
|
depends 'openresty'
|
||||||
7
site-cookbooks/kosmos_openresty/recipes/default.rb
Normal file
7
site-cookbooks/kosmos_openresty/recipes/default.rb
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#
|
||||||
|
# Cookbook:: kosmos_openresty
|
||||||
|
# Recipe:: default
|
||||||
|
#
|
||||||
|
|
||||||
|
# Install openresty from official packages
|
||||||
|
include_recipe 'openresty::apt_package'
|
||||||
1
site-cookbooks/openresty
Submodule
1
site-cookbooks/openresty
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 028daab9525f54845312fdba87872822f3cc7d76
|
||||||
Loading…
x
Reference in New Issue
Block a user