diff --git a/nodes/lq-1.json b/nodes/lq-1.json index e3b0a26..574ec90 100644 --- a/nodes/lq-1.json +++ b/nodes/lq-1.json @@ -25,8 +25,8 @@ "kosmos_garage", "kosmos_garage::default", "kosmos_garage::firewall_rpc", - "liquor_cabinet", - "liquor_cabinet::default", + "kosmos_liquor-cabinet", + "kosmos_liquor-cabinet::default", "apt::default", "timezone_iii::default", "timezone_iii::debian", @@ -41,7 +41,8 @@ "postfix::_attributes", "postfix::sasl_auth", "hostname::default", - "firewall::default" + "firewall::default", + "liquor_cabinet::default" ], "platform": "ubuntu", "platform_version": "20.04", diff --git a/roles/liquor_cabinet.rb b/roles/liquor_cabinet.rb index 2651a6a..9183055 100644 --- a/roles/liquor_cabinet.rb +++ b/roles/liquor_cabinet.rb @@ -1,5 +1,5 @@ name "liquor_cabinet" run_list %w( - liquor_cabinet::default + kosmos_liquor-cabinet::default ) diff --git a/site-cookbooks/kosmos_liquor-cabinet/.gitignore b/site-cookbooks/kosmos_liquor-cabinet/.gitignore new file mode 100644 index 0000000..f1e57b8 --- /dev/null +++ b/site-cookbooks/kosmos_liquor-cabinet/.gitignore @@ -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/ + diff --git a/site-cookbooks/kosmos_liquor-cabinet/CHANGELOG.md b/site-cookbooks/kosmos_liquor-cabinet/CHANGELOG.md new file mode 100644 index 0000000..bc1846e --- /dev/null +++ b/site-cookbooks/kosmos_liquor-cabinet/CHANGELOG.md @@ -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. diff --git a/site-cookbooks/kosmos_liquor-cabinet/LICENSE b/site-cookbooks/kosmos_liquor-cabinet/LICENSE new file mode 100644 index 0000000..a00749b --- /dev/null +++ b/site-cookbooks/kosmos_liquor-cabinet/LICENSE @@ -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. diff --git a/site-cookbooks/kosmos_liquor-cabinet/README.md b/site-cookbooks/kosmos_liquor-cabinet/README.md new file mode 100644 index 0000000..5c0b08f --- /dev/null +++ b/site-cookbooks/kosmos_liquor-cabinet/README.md @@ -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 diff --git a/site-cookbooks/kosmos_liquor-cabinet/attributes/default.rb b/site-cookbooks/kosmos_liquor-cabinet/attributes/default.rb new file mode 100644 index 0000000..e69de29 diff --git a/site-cookbooks/kosmos_liquor-cabinet/chefignore b/site-cookbooks/kosmos_liquor-cabinet/chefignore new file mode 100644 index 0000000..cc170ea --- /dev/null +++ b/site-cookbooks/kosmos_liquor-cabinet/chefignore @@ -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 diff --git a/site-cookbooks/kosmos_liquor-cabinet/kitchen.yml b/site-cookbooks/kosmos_liquor-cabinet/kitchen.yml new file mode 100644 index 0000000..bd2abe1 --- /dev/null +++ b/site-cookbooks/kosmos_liquor-cabinet/kitchen.yml @@ -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: diff --git a/site-cookbooks/kosmos_liquor-cabinet/metadata.rb b/site-cookbooks/kosmos_liquor-cabinet/metadata.rb new file mode 100644 index 0000000..1ab8e56 --- /dev/null +++ b/site-cookbooks/kosmos_liquor-cabinet/metadata.rb @@ -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' diff --git a/site-cookbooks/kosmos_liquor-cabinet/recipes/default.rb b/site-cookbooks/kosmos_liquor-cabinet/recipes/default.rb new file mode 100644 index 0000000..1e6d8f8 --- /dev/null +++ b/site-cookbooks/kosmos_liquor-cabinet/recipes/default.rb @@ -0,0 +1,6 @@ +# +# Cookbook:: kosmos_liquor-cabinet +# Recipe:: default +# + +include_recipe 'liquor_cabinet'