Permalink
Browse files

Initial BDSM databases extension set.

  • Loading branch information...
0 parents commit 6ab49585163d0b1d9dab2cd050f9c23c5fa0fe78 @wayneeseguin wayneeseguin committed Aug 6, 2011
Showing with 1,838 additions and 0 deletions.
  1. +4 −0 elasticsearch/CHANGELOG.md
  2. +5 −0 elasticsearch/README.md
  3. +4 −0 elasticsearch/TODO.md
  4. +1 −0 elasticsearch/VERSION
  5. +7 −0 elasticsearch/actions/help
  6. +5 −0 elasticsearch/config/defaults
  7. +2 −0 elasticsearch/config/md5
  8. +29 −0 elasticsearch/modules/shell/dsl
  9. +2 −0 elasticsearch/modules/shell/modules
  10. +4 −0 memcached/CHANGELOG.md
  11. +6 −0 memcached/README.md
  12. +3 −0 memcached/TODO.md
  13. +1 −0 memcached/VERSION
  14. +14 −0 memcached/actions/help
  15. +4 −0 memcached/config/defaults
  16. +1 −0 memcached/config/md5
  17. +11 −0 memcached/modules/shell/initialize
  18. +2 −0 memcached/modules/shell/modules
  19. +36 −0 memcached/templates/init.d.template
  20. 0 mongodb/CHANGELOG.md
  21. +7 −0 mongodb/README.md
  22. +1 −0 mongodb/TODO.md
  23. +1 −0 mongodb/VERSION
  24. +14 −0 mongodb/actions/help
  25. +8 −0 mongodb/actions/setup
  26. +2 −0 mongodb/config/defaults
  27. +1 −0 mongodb/config/md5
  28. +85 −0 mongodb/modules/shell/dsl
  29. +11 −0 mongodb/modules/shell/initialize
  30. +2 −0 mongodb/modules/shell/modules
  31. +18 −0 mongodb/templates/conf.d.template
  32. +36 −0 mongodb/templates/init.template
  33. 0 mysql/CHANGELOG.md
  34. +13 −0 mysql/LICENSE
  35. 0 mysql/README
  36. 0 mysql/TODO.md
  37. +1 −0 mysql/VERSION
  38. +8 −0 mysql/actions/backup
  39. +6 −0 mysql/actions/configure
  40. +13 −0 mysql/actions/help
  41. +3 −0 mysql/actions/initialize
  42. +1 −0 mysql/actions/service/.actions
  43. +1 −0 mysql/config/defaults
  44. +2 −0 mysql/config/md5
  45. +159 −0 mysql/modules/shell/dsl
  46. +52 −0 mysql/modules/shell/initialize
  47. +2 −0 mysql/modules/shell/modules
  48. +444 −0 mysql/mysql.server
  49. +21 −0 mysql/templates/mysql.conf.d.template
  50. +6 −0 mysql/templates/mysql.sh.template
  51. +150 −0 mysql/templates/mysql.template
  52. +4 −0 neo4j/CHANGELOG.md
  53. +5 −0 neo4j/README.md
  54. +4 −0 neo4j/TODO.md
  55. +1 −0 neo4j/VERSION
  56. +7 −0 neo4j/actions/help
  57. +3 −0 neo4j/config/defaults
  58. +1 −0 neo4j/config/md5
  59. +23 −0 neo4j/modules/shell/dsl
  60. +12 −0 neo4j/modules/shell/initialize
  61. +2 −0 neo4j/modules/shell/modules
  62. +7 −0 neo4j/modules/shell/service/dsl
  63. +30 −0 neo4j/modules/shell/service/initialize
  64. 0 postgresql/CHANGELOG.md
  65. +13 −0 postgresql/LICENSE
  66. 0 postgresql/README
  67. 0 postgresql/TODO.md
  68. +1 −0 postgresql/VERSION
  69. +6 −0 postgresql/actions/backup/database
  70. +6 −0 postgresql/actions/backup/tables
  71. +11 −0 postgresql/actions/conf/edit
  72. +9 −0 postgresql/actions/conf/help
  73. +16 −0 postgresql/actions/help
  74. +3 −0 postgresql/config/defaults
  75. +3 −0 postgresql/config/md5
  76. +171 −0 postgresql/modules/shell/dsl
  77. +3 −0 postgresql/modules/shell/modules
  78. +2 −0 postgresql/modules/shell/package/cli
  79. +41 −0 postgresql/modules/shell/package/dsl
  80. +17 −0 postgresql/modules/shell/package/initialize
  81. +19 −0 postgresql/modules/shell/service/initialize
  82. +19 −0 postgresql/templates/postgresql.conf.d.template
  83. +110 −0 postgresql/templates/postgresql.template
  84. 0 sqlite3/CHANGELOG.md
  85. +2 −0 sqlite3/README.md
  86. 0 sqlite3/TODO.md
  87. +1 −0 sqlite3/VERSION
  88. +9 −0 sqlite3/actions/help
  89. +3 −0 sqlite3/config/defaults
  90. +1 −0 sqlite3/config/md5
  91. +6 −0 sqlite3/modules/shell/initialize
  92. +1 −0 sqlite3/modules/shell/modules
  93. +4 −0 voldemort/CHANGELOG.md
  94. +5 −0 voldemort/README.md
  95. +9 −0 voldemort/TODO.md
  96. +1 −0 voldemort/VERSION
  97. +7 −0 voldemort/actions/help
  98. +4 −0 voldemort/config/defaults
  99. +1 −0 voldemort/config/md5
  100. +19 −0 voldemort/modules/shell/dsl
  101. +1 −0 voldemort/modules/shell/env
  102. +4 −0 voldemort/modules/shell/initialize
  103. +2 −0 voldemort/modules/shell/modules
@@ -0,0 +1,4 @@
+# BDSM Extension Change Log
+
+* 0.0.1 - Initial Extension Release
+
@@ -0,0 +1,5 @@
+# Extension README
+
+This extension installs the excellent elasticsearch database engine.
+For more information visit their website at http://www.elasticsearch.org/
+
@@ -0,0 +1,4 @@
+# Extension TODO List
+
+* TODO: Package and release the extension.
+
@@ -0,0 +1 @@
+0.0.1
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+description "${extension} BDSM extension."
+
+action "help" "Display help for ${extension}."
+
+show_help usage
@@ -0,0 +1,5 @@
+version=0.17.1
+base_url=https://github.com/downloads/elasticsearch/elasticsearch
+archive_format=tar.gz
+website_url=http://www.elasticsearch.org/
+documentation_url=http://www.elasticsearch.org/guide/
@@ -0,0 +1,2 @@
+elasticsearch-0.17.1.tar.gz=439002f5f0e7d213d2e27b166fb87d87
+elasticsearch-0.17.0.tar.gz=1158d3918d65ee8d3c59914149803568
@@ -0,0 +1,29 @@
+#!/usr/bin/env bash
+
+elasticsearch_configure()
+{
+ : # Beautifully, nothing to do here :)
+}
+
+elasticsearch_build()
+{
+ : # Nothing to do here, either!
+}
+
+elasticsearch_install()
+{
+ local _path _paths _file _files
+
+ _paths=($( find "${source_path}/${package_dir}" -type d ))
+ for _path in "${_paths[@]}"
+ do
+ ensure_paths_exist "${install_path}${_path##${source_path}/${package_dir}}"
+ done
+
+ _files=($( find "${source_path}/${package_dir}" -type f ))
+ for _file in "${_files[@]}"
+ do
+ cp -f "${_file}" "${install_path}${_file##${source_path}/${package_dir}}"
+ done
+}
+
@@ -0,0 +1,2 @@
+ext/package
+ext/service
@@ -0,0 +1,4 @@
+# BDSM Extension Change Log
+
+* 0.0.1 - Initial Extension Release
+
@@ -0,0 +1,6 @@
+# BDSM Extension README
+
+This extension installs and manages memcached on a system.
+
+Visit the memcached website for more information on memcached,
+ http://memcached.org/
@@ -0,0 +1,3 @@
+# BDSM Extension TODO List
+
+* TODO: Package and release the extension.
@@ -0,0 +1 @@
+0.0.1
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+
+description "${extension} BDSM extension."
+
+action "package install" "Installs ${package_name} ${package_version}."
+action "package uninstall" "Installs ${package_name} ${package_version}."
+
+action "setup" "Setup and Configure $extension."
+action "start" "Start ${extensoin}."
+action "stop" "Stop ${extension}."
+action "restart" "Restart ${extension}."
+action "status" "Display ${extension} status."
+
+show_help usage
@@ -0,0 +1,4 @@
+version=1.4.5
+base_url=http://memcached.googlecode.com/files
+archive_format=tar.gz
+website=http://memcached.org/
@@ -0,0 +1 @@
+memcached-1.4.5.tar.gz=583441a25f937360624024f2881e5ea8
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+# Default service_flags for memcached.
+service_flags=(
+ -d
+ -p ${port:-11212}
+ -u "${user:-memcached}"
+ -m ${memory:-64}
+ -c ${max_connections:-1024}
+ -P "${service_pid_file:-"/var/run/memcached/memcached.pid"}"
+)
@@ -0,0 +1,2 @@
+ext/package
+ext/service
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+#
+# {{extension}} System Init script
+#
+# Copyright (c) 2009-2011 Wayne E. Seguin <wayneeseguin@gmail.com>
+#
+# Licensed under the Apache License, Version 2.0 (the \"License\");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an \"AS IS\" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# Initialize the BDSM framework for use in this script.
+#
+source {{modules_path}}/bash/core/initialize
+
+#
+# Set the service extension name
+#
+export extension="{{extension}}"
+
+#
+# Load the service module.
+#
+modules ext/service
+
+service_init_d
+
No changes.
@@ -0,0 +1,7 @@
+# BDSM MongoDB Extension
+
+This extension installs MongoDB
+
+Visit the MongoDB website for more information about MongoDB
+http://www.mongodb.org/
+
@@ -0,0 +1 @@
+* Package and release mongodb extension.
@@ -0,0 +1 @@
+0.0.1
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+
+description "${extension} BDSM extension."
+
+action "package install" "Installs ${package_name} ${package_version}."
+action "package uninstall" "Installs ${package_name} ${package_version}."
+
+action "setup" "Setup and Configure $extension."
+action "start" "Start extension."
+action "stop" "Stop extension."
+action "restart" "Restart extension."
+action "status" "Display extension status."
+
+show_help usage
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+install_template "${extension}" to "${init_scripts_path}"
+
+ensure_files_are_executable "${init_scripts_path}/${extension}"
+
+install_template "${extension}.conf" \
+ to "${init_scripts_path}/${extension}/${extension}.conf"
@@ -0,0 +1,2 @@
+version=1.8.1
+archive_format=tgz
@@ -0,0 +1 @@
+mongodb-osx-x86_64-1.8.1.tgz=e446ba61cc8898fa2ffd5046953155ca
@@ -0,0 +1,85 @@
+#!/usr/bin/env bash
+
+mongodb_configure()
+{
+ true # no-op
+}
+
+mongodb_build()
+{
+ true # no-op
+}
+
+mongodb_install()
+{
+ local file files name
+
+ ensure_paths_exist "${install_path}"
+
+ files=($(
+ find "${source_path}/${package_dir}/bin" -mindepth 1 -maxdepth 1 -type f
+ ))
+
+ for file in "${files[@]}"
+ do
+ name=${file//*\/}
+ ensure_paths_exist "${install_path}/bin"
+ copy_file "${file}" to "${install_path}/bin/${name}" mode 0755
+ done
+}
+
+mongodb_postinstall()
+{
+ if path_exists "${install_base_path}"
+ then
+ return 0
+ else
+ activate_package "${package_name}" "${package_version}"
+ fi
+}
+
+mongodb_set_architecture()
+{
+ case "$(os_arch_capable)" in
+ i386|i686)
+ architecture="i686"
+ ;;
+
+ x86_64)
+ architecture="x86_64"
+ ;;
+
+ *)
+ if [[ "$action" = *install ]] ; then
+ fail "Unhandled architecture: $HOSTTYPE for ${extension} ${action}"
+ fi
+ ;;
+ esac
+}
+
+mongodb_set_os()
+{
+ case "$MACHTYPE" in
+ *linux*)
+ os="linux"
+ ;;
+
+ *darwin*)
+ os="osx"
+ ;;
+
+ *solaris*)
+ os="sunos5"
+ if [[ "$architecture" = "i686" ]] ; then
+ architecture="i86pc" # C'mon Solaris, really???
+ fi
+ ;;
+
+ *)
+ if [[ "$action" = *install ]] ; then
+ fail "Unhandled operating system: $MACHTYPE for ${extension} ${action}"
+ fi
+ ;;
+ esac
+}
+
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+
+# The binary downloads are customized based on OS and Arch.
+mongodb_set_architecture
+mongodb_set_os
+
+package_definition \
+ base_url "http://fastdl.mongodb.org/${os}" \
+ file "mongodb-${os}-${architecture}-${package_version}.${archive_format}" \
+ dir "mongodb-${os}-${architecture}-${package_version}"
+
@@ -0,0 +1,2 @@
+ext/package
+ext/service
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+
+#
+# /etc/conf.d/mongodb
+#
+
+# mongodb installation location
+prefix_path="{{prefix_path}}/mongodb"
+
+# Data directory, note that the first /data is a symlink to the server version.
+data_path="{{data_path}}/mongodb/data/db"
+
+# Where to keep a log file
+log_file="${data_path}/server.log"
+
+# Who to run the postmaster as, usually "postgres". (NOT "root")
+user="mongodb"
+
@@ -0,0 +1,36 @@
+#!/bin/bash
+
+#
+# {{extension}} System Init script
+#
+# Copyright (c) 2009-2011 Wayne E. Seguin <wayneeseguin@gmail.com>
+#
+# Licensed under the Apache License, Version 2.0 (the \"License\");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an \"AS IS\" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+#
+# Initialize the BDSM framework for use in this script.
+#
+source "{{modules_path}}/bash/core/initialize"
+
+#
+# Set the service extension name
+#
+export extension="{{extension}}"
+
+#
+# Load the service module.
+#
+modules ext/service
+
+service_init_d
+
No changes.
@@ -0,0 +1,13 @@
+Copyright (c) 2009-2011 Wayne E. Seguin
+
+Licensed under the Apache License, Version 2.0 (the \"License\");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an \"AS IS\" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
No changes.
No changes.
@@ -0,0 +1 @@
+0.0.1
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+# TODO:
+# Ability to backup either:
+# - A list of one or more databases
+# - A list of one or more tables for a given database
+# - All databases for specified server, localhost by default.
+
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+
+mysql_postinstall
+
+configure_mysql_for_users
+
Oops, something went wrong.

0 comments on commit 6ab4958

Please sign in to comment.