Add/use kosmos_liquor-cabinet cookbook
This commit is contained in:
parent
715fdbc2ba
commit
a2ec41b68a
@ -25,8 +25,8 @@
|
|||||||
"kosmos_garage",
|
"kosmos_garage",
|
||||||
"kosmos_garage::default",
|
"kosmos_garage::default",
|
||||||
"kosmos_garage::firewall_rpc",
|
"kosmos_garage::firewall_rpc",
|
||||||
"liquor_cabinet",
|
"kosmos_liquor-cabinet",
|
||||||
"liquor_cabinet::default",
|
"kosmos_liquor-cabinet::default",
|
||||||
"apt::default",
|
"apt::default",
|
||||||
"timezone_iii::default",
|
"timezone_iii::default",
|
||||||
"timezone_iii::debian",
|
"timezone_iii::debian",
|
||||||
@ -41,7 +41,8 @@
|
|||||||
"postfix::_attributes",
|
"postfix::_attributes",
|
||||||
"postfix::sasl_auth",
|
"postfix::sasl_auth",
|
||||||
"hostname::default",
|
"hostname::default",
|
||||||
"firewall::default"
|
"firewall::default",
|
||||||
|
"liquor_cabinet::default"
|
||||||
],
|
],
|
||||||
"platform": "ubuntu",
|
"platform": "ubuntu",
|
||||||
"platform_version": "20.04",
|
"platform_version": "20.04",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name "liquor_cabinet"
|
name "liquor_cabinet"
|
||||||
|
|
||||||
run_list %w(
|
run_list %w(
|
||||||
liquor_cabinet::default
|
kosmos_liquor-cabinet::default
|
||||||
)
|
)
|
||||||
|
25
site-cookbooks/kosmos_liquor-cabinet/.gitignore
vendored
Normal file
25
site-cookbooks/kosmos_liquor-cabinet/.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/
|
||||||
|
|
7
site-cookbooks/kosmos_liquor-cabinet/CHANGELOG.md
Normal file
7
site-cookbooks/kosmos_liquor-cabinet/CHANGELOG.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# kosmos_liquor-cabinet CHANGELOG
|
||||||
|
|
||||||
|
This file is used to list changes made in each version of the kosmos_liquor-cabinet cookbook.
|
||||||
|
|
||||||
|
## 0.1.0
|
||||||
|
|
||||||
|
Initial release.
|
21
site-cookbooks/kosmos_liquor-cabinet/LICENSE
Normal file
21
site-cookbooks/kosmos_liquor-cabinet/LICENSE
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
The MIT License (MIT)
|
||||||
|
|
||||||
|
Copyright (c) 2024 Kosmos Developers
|
||||||
|
|
||||||
|
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.
|
7
site-cookbooks/kosmos_liquor-cabinet/README.md
Normal file
7
site-cookbooks/kosmos_liquor-cabinet/README.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
# kosmos_liquor-cabinet
|
||||||
|
|
||||||
|
Installs/configures the [Liquor Cabinet][1] [remoteStorage][2] API server and
|
||||||
|
reverse proxy.
|
||||||
|
|
||||||
|
[1]: https://gitea.kosmos.org/5apps/liquor-cabinet
|
||||||
|
[2]: https://remotestorage.io
|
115
site-cookbooks/kosmos_liquor-cabinet/chefignore
Normal file
115
site-cookbooks/kosmos_liquor-cabinet/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
|
37
site-cookbooks/kosmos_liquor-cabinet/kitchen.yml
Normal file
37
site-cookbooks/kosmos_liquor-cabinet/kitchen.yml
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
driver:
|
||||||
|
name: dokken
|
||||||
|
privileged: true # allows systemd services to start
|
||||||
|
|
||||||
|
provisioner:
|
||||||
|
name: dokken
|
||||||
|
|
||||||
|
transport:
|
||||||
|
name: dokken
|
||||||
|
|
||||||
|
verifier:
|
||||||
|
name: inspec
|
||||||
|
|
||||||
|
platforms:
|
||||||
|
# @see https://github.com/chef-cookbooks/testing_examples/blob/main/kitchen.dokken.yml
|
||||||
|
# @see https://hub.docker.com/u/dokken
|
||||||
|
- name: ubuntu-20.04
|
||||||
|
driver:
|
||||||
|
image: dokken/ubuntu-20.04
|
||||||
|
pid_one_command: /bin/systemd
|
||||||
|
intermediate_instructions:
|
||||||
|
- RUN /usr/bin/apt-get update
|
||||||
|
|
||||||
|
- name: centos-8
|
||||||
|
driver:
|
||||||
|
image: dokken/centos-8
|
||||||
|
pid_one_command: /usr/lib/systemd/systemd
|
||||||
|
|
||||||
|
suites:
|
||||||
|
- name: default
|
||||||
|
run_list:
|
||||||
|
- recipe[kosmos_liquor-cabinet::default]
|
||||||
|
verifier:
|
||||||
|
inspec_tests:
|
||||||
|
- test/integration/default
|
||||||
|
attributes:
|
12
site-cookbooks/kosmos_liquor-cabinet/metadata.rb
Normal file
12
site-cookbooks/kosmos_liquor-cabinet/metadata.rb
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
name 'kosmos_liquor-cabinet'
|
||||||
|
maintainer 'Kosmos Developers'
|
||||||
|
maintainer_email 'ops@kosmos.org'
|
||||||
|
license 'MIT'
|
||||||
|
description 'Installs/configures Liquor Cabinet API and reverse proxy'
|
||||||
|
version '0.1.0'
|
||||||
|
chef_version '>= 18.2'
|
||||||
|
issues_url 'https://gitea.kosmos.org/kosmos/chef/issues'
|
||||||
|
# source_url 'https://gitea.kosmos.org/kosmos/chef'
|
||||||
|
|
||||||
|
depends 'liquor_cabinet'
|
||||||
|
depends 'kosmos_openresty'
|
6
site-cookbooks/kosmos_liquor-cabinet/recipes/default.rb
Normal file
6
site-cookbooks/kosmos_liquor-cabinet/recipes/default.rb
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#
|
||||||
|
# Cookbook:: kosmos_liquor-cabinet
|
||||||
|
# Recipe:: default
|
||||||
|
#
|
||||||
|
|
||||||
|
include_recipe 'liquor_cabinet'
|
Loading…
x
Reference in New Issue
Block a user