From 33b8b39be2478090bfca7ecd1119c09e9df4c814 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Mon, 25 Feb 2019 12:50:07 +0100 Subject: [PATCH 1/2] Update ipfs and ipfs-cluster --- site-cookbooks/kosmos-ipfs/recipes/cluster.rb | 2 ++ site-cookbooks/kosmos-ipfs/recipes/default.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/site-cookbooks/kosmos-ipfs/recipes/cluster.rb b/site-cookbooks/kosmos-ipfs/recipes/cluster.rb index cf23b7f..128fca5 100644 --- a/site-cookbooks/kosmos-ipfs/recipes/cluster.rb +++ b/site-cookbooks/kosmos-ipfs/recipes/cluster.rb @@ -7,6 +7,8 @@ # All rights reserved - Do Not Redistribute # +node.override['ipfs']['cluster']['version'] = '0.9.0' + include_recipe "ipfs::cluster" include_recipe "ipfs::cluster_service" diff --git a/site-cookbooks/kosmos-ipfs/recipes/default.rb b/site-cookbooks/kosmos-ipfs/recipes/default.rb index adf4853..12aad8e 100644 --- a/site-cookbooks/kosmos-ipfs/recipes/default.rb +++ b/site-cookbooks/kosmos-ipfs/recipes/default.rb @@ -7,6 +7,8 @@ # All rights reserved - Do Not Redistribute # +node.override['ipfs']['version'] = '0.4.18' +node.override['ipfs']['checksum'] = '21e6c44c0fa8edf91a727f1e8257342a4c3a879462e656861b0a179e1f6a03f6' include_recipe "ipfs" # Configure ipfs From 2e1cdbecc66ee040275a1085a8d60d1e34e6033e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Kar=C3=A9kinian?= Date: Mon, 25 Feb 2019 12:57:11 +0100 Subject: [PATCH 2/2] Update the ipfs cookbook --- Berksfile | 2 +- Berksfile.lock | 8 +- cookbooks/composer/metadata.rb | 23 ++++ cookbooks/hostname/metadata.rb | 20 ++++ cookbooks/hostsfile/metadata.rb | 7 ++ cookbooks/ipfs/README.md | 4 +- cookbooks/ipfs/metadata.json | 19 ++-- cookbooks/ipfs/metadata.rb | 15 +++ .../default/ipfs-cluster.initd.service.erb | 2 +- .../default/ipfs-cluster.systemd.service.erb | 2 +- cookbooks/logrotate/metadata.rb | 18 ++++ cookbooks/mediawiki/metadata.json | 15 +-- cookbooks/mediawiki/metadata.rb | 59 +++++++++++ cookbooks/rbac/metadata.rb | 10 ++ cookbooks/redis/metadata.json | 14 +-- cookbooks/redis/metadata.rb | 15 +++ cookbooks/smf/metadata.rb | 13 +++ cookbooks/timezone_iii/metadata.rb | 27 +++++ cookbooks/wordpress/metadata.json | 15 +-- cookbooks/wordpress/metadata.rb | 100 ++++++++++++++++++ cookbooks/yum-epel/metadata.rb | 9 ++ 21 files changed, 340 insertions(+), 57 deletions(-) create mode 100644 cookbooks/composer/metadata.rb create mode 100644 cookbooks/hostname/metadata.rb create mode 100644 cookbooks/hostsfile/metadata.rb create mode 100644 cookbooks/ipfs/metadata.rb create mode 100644 cookbooks/logrotate/metadata.rb create mode 100644 cookbooks/mediawiki/metadata.rb create mode 100644 cookbooks/rbac/metadata.rb create mode 100644 cookbooks/redis/metadata.rb create mode 100644 cookbooks/smf/metadata.rb create mode 100644 cookbooks/timezone_iii/metadata.rb create mode 100644 cookbooks/wordpress/metadata.rb create mode 100644 cookbooks/yum-epel/metadata.rb diff --git a/Berksfile b/Berksfile index f542d9e..41d0b3f 100644 --- a/Berksfile +++ b/Berksfile @@ -64,4 +64,4 @@ cookbook 'mariadb', '= 0.3.1' cookbook 'mingw', '= 2.0.0' cookbook 'ipfs', git: 'https://github.com/67P/ipfs-cookbook.git', - ref: 'master' + ref: 'v0.1.1' diff --git a/Berksfile.lock b/Berksfile.lock index 9478720..3e1091c 100644 --- a/Berksfile.lock +++ b/Berksfile.lock @@ -22,8 +22,8 @@ DEPENDENCIES iis (= 6.7.1) ipfs git: https://github.com/67P/ipfs-cookbook.git - revision: b98b45584cdb00a1a7b41e837352ce4156f127e7 - ref: master + revision: 0668eae4c574fc5f8c630a9a888159b6dd0abe79 + ref: v0.1.1 logrotate (= 2.2.0) mariadb (= 0.3.1) mediawiki @@ -120,7 +120,7 @@ GRAPH hostsfile (2.4.5) iis (6.7.1) windows (>= 2.0) - ipfs (0.1.0) + ipfs (0.1.1) ark (>= 0.0.0) logrotate (2.2.0) mariadb (0.3.1) @@ -207,7 +207,7 @@ GRAPH chef_nginx (>= 0.0.0) database (>= 1.6.0) iis (>= 1.6.2) - mysql (>= 6.0.0) + mysql (>= 6.0) mysql2_chef_gem (>= 1.0.1) openssl (>= 0.0.0) php (>= 0.0.0) diff --git a/cookbooks/composer/metadata.rb b/cookbooks/composer/metadata.rb new file mode 100644 index 0000000..4cc7da0 --- /dev/null +++ b/cookbooks/composer/metadata.rb @@ -0,0 +1,23 @@ +name 'composer' +maintainer 'David Joos' +maintainer_email 'development@davidjoos.com' +license 'MIT' +description 'Installs/Configures Composer' +long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) +version '2.6.1' + +%w(debian ubuntu redhat centos fedora scientific amazon windows).each do |os| + supports os +end + +source_url 'https://github.com/djoos-cookbooks/composer' if respond_to?(:source_url) +issues_url 'https://github.com/djoos-cookbooks/composer/issues' if respond_to?(:issues_url) + +depends 'apt' +depends 'php' +depends 'windows' + +recipe 'composer', 'Installs (if applicable) and self-updates composer.' +recipe 'composer::install', 'Installs composer.' +recipe 'composer::self_update', 'Installs (if applicable) and self-updates composer.' +recipe 'composer::global_configs', 'Sets up global config options via `composer config --global`' diff --git a/cookbooks/hostname/metadata.rb b/cookbooks/hostname/metadata.rb new file mode 100644 index 0000000..8355ea1 --- /dev/null +++ b/cookbooks/hostname/metadata.rb @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- + +name 'hostname' +maintainer 'Maciej Pasternacki' +maintainer_email 'maciej@3ofcoins.net' +license 'MIT' +description 'Configures hostname and FQDN' +long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) +version '0.4.2' + +supports 'debian' +supports 'ubuntu' +supports 'freebsd' + +depends 'hostsfile' + +source_url 'https://github.com/3ofcoins/chef-cookbook-hostname' if respond_to?(:source_url) +issues_url 'https://github.com/3ofcoins/chef-cookbook-hostname/issues' if respond_to?(:issues_url) + +chef_version '>= 12.1' if respond_to?(:chef_version) diff --git a/cookbooks/hostsfile/metadata.rb b/cookbooks/hostsfile/metadata.rb new file mode 100644 index 0000000..5474e5d --- /dev/null +++ b/cookbooks/hostsfile/metadata.rb @@ -0,0 +1,7 @@ +name 'hostsfile' +maintainer 'Seth Vargo' +maintainer_email 'sethvargo@gmail.com' +license 'Apache 2.0' +description 'Provides an LWRP for managing the /etc/hosts file' +long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) +version '2.4.5' diff --git a/cookbooks/ipfs/README.md b/cookbooks/ipfs/README.md index 7d1d5f1..4970296 100644 --- a/cookbooks/ipfs/README.md +++ b/cookbooks/ipfs/README.md @@ -12,8 +12,8 @@ It currently only supports 64bit platforms ### Chef - Chef 12.5 or later (we are providing a - [https://docs.chef.io/custom_resources.html](Custom Resource) to configure - IPFS + [Custom Resource](https://docs.chef.io/custom_resources.html) to configure + IPFS) ### Cookbook dependencies diff --git a/cookbooks/ipfs/metadata.json b/cookbooks/ipfs/metadata.json index 49820a9..4da2ae5 100644 --- a/cookbooks/ipfs/metadata.json +++ b/cookbooks/ipfs/metadata.json @@ -1,7 +1,7 @@ { "name": "ipfs", "description": "Installs/Configures ipfs", - "long_description": "# ipfs Cookbook\n\nThis cookbook installs ipfs and starts it as a daemon\n\n## Requirements\n\n### Platforms\n\nThis cookbook is tested on Ubuntu 16.06, 14.04 and Debian 8 using Test Kitchen.\nIt currently only supports 64bit platforms\n\n### Chef\n\n- Chef 12.5 or later (we are providing a\n [https://docs.chef.io/custom_resources.html](Custom Resource) to configure\n IPFS\n\n### Cookbook dependencies\n\n- `ark` to download and uncompress the Go IPFS package\n\n## Usage\n\n### ipfs::default\n\nJust include `ipfs` in your node's `run_list`:\n\n```json\n{\n \"name\":\"my_node\",\n \"run_list\": [\n \"recipe[ipfs]\"\n ]\n}\n```\n\n## Attributes\n\n- `node.['ipfs']['version']` - the Go IPFS version to download from the official\nsite (64bit)\n- `node['ipfs']['checksum']` - the SHA256 checksum for the package\n- `node['ipfs']['config']['swarm']['addr_filter']` - the network ranges to not\nconnect to. This will stop platforms like Hetzner to block your server\n(https://github.com/ipfs/go-ipfs/issues/1226)\n\n## Resources\n\n`ipfs_config` sets the config. Supports hashes, arrays, booleans and strings.\nDoes not change anything if the config already has that value, and restarts\nthe server automatically\n\n```ruby\nipfs_config \"Gateway.Writable\" do\n value \"true\"\n end\n```\n\n## Running the specs and integrations tests\n\nInstall the latest [Chef DK](https://downloads.chef.io/chefdk).\n\n```\nchef exec delivery local all # Run the linting check, syntax check and unit tests\nkitchen verify # Run the integration tests for Ubuntu 16.04, 18.06 and Debian 9\n```\n\n## License and Authors\n\nAuthors: Kosmos Developers mail@kosmos.org\nCopyright: 2018, [Kosmos Developers](https://kredits.kosmos.org/)\n\n```\nUnless otherwise noted, all files are released under the MIT license, possible\nexceptions will contain licensing information in them.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n", + "long_description": "# ipfs Cookbook\n\nThis cookbook installs ipfs and starts it as a daemon\n\n## Requirements\n\n### Platforms\n\nThis cookbook is tested on Ubuntu 16.06, 14.04 and Debian 8 using Test Kitchen.\nIt currently only supports 64bit platforms\n\n### Chef\n\n- Chef 12.5 or later (we are providing a\n [Custom Resource](https://docs.chef.io/custom_resources.html) to configure\n IPFS)\n\n### Cookbook dependencies\n\n- `ark` to download and uncompress the Go IPFS package\n\n## Usage\n\n### ipfs::default\n\nJust include `ipfs` in your node's `run_list`:\n\n```json\n{\n \"name\":\"my_node\",\n \"run_list\": [\n \"recipe[ipfs]\"\n ]\n}\n```\n\n## Attributes\n\n- `node.['ipfs']['version']` - the Go IPFS version to download from the official\nsite (64bit)\n- `node['ipfs']['checksum']` - the SHA256 checksum for the package\n- `node['ipfs']['config']['swarm']['addr_filter']` - the network ranges to not\nconnect to. This will stop platforms like Hetzner to block your server\n(https://github.com/ipfs/go-ipfs/issues/1226)\n\n## Resources\n\n`ipfs_config` sets the config. Supports hashes, arrays, booleans and strings.\nDoes not change anything if the config already has that value, and restarts\nthe server automatically\n\n```ruby\nipfs_config \"Gateway.Writable\" do\n value \"true\"\n end\n```\n\n## Running the specs and integrations tests\n\nInstall the latest [Chef DK](https://downloads.chef.io/chefdk).\n\n```\nchef exec delivery local all # Run the linting check, syntax check and unit tests\nkitchen verify # Run the integration tests for Ubuntu 16.04, 18.06 and Debian 9\n```\n\n## License and Authors\n\nAuthors: Kosmos Developers mail@kosmos.org\nCopyright: 2018, [Kosmos Developers](https://kredits.kosmos.org/)\n\n```\nUnless otherwise noted, all files are released under the MIT license, possible\nexceptions will contain licensing information in them.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n", "maintainer": "Kosmos Developers", "maintainer_email": "mail@kosmos.org", "license": "MIT", @@ -11,23 +11,16 @@ "dependencies": { "ark": ">= 0.0.0" }, - "recommendations": { - }, - "suggestions": { - }, - "conflicting": { - }, "providing": { - }, - "replacing": { + }, "attributes": { - }, - "groupings": { + }, "recipes": { + }, - "version": "0.1.0", + "version": "0.1.1", "source_url": "https://github.com/67P/ipfs-cookbook", "issues_url": "https://github.com/67P/ipfs-cookbook/issues", "privacy": false, @@ -42,4 +35,4 @@ "gems": [ ] -} \ No newline at end of file +} diff --git a/cookbooks/ipfs/metadata.rb b/cookbooks/ipfs/metadata.rb new file mode 100644 index 0000000..fb160e5 --- /dev/null +++ b/cookbooks/ipfs/metadata.rb @@ -0,0 +1,15 @@ +name 'ipfs' +maintainer 'Kosmos Developers' +maintainer_email 'mail@kosmos.org' +license 'MIT' +description 'Installs/Configures ipfs' +long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) +version '0.1.1' + +supports %w(ubuntu debian) + +depends 'ark' + +source_url 'https://github.com/67P/ipfs-cookbook' +issues_url 'https://github.com/67P/ipfs-cookbook/issues' +chef_version '>= 12.14' if respond_to?(:chef_version) diff --git a/cookbooks/ipfs/templates/default/ipfs-cluster.initd.service.erb b/cookbooks/ipfs/templates/default/ipfs-cluster.initd.service.erb index 1b8c2ff..a301208 100644 --- a/cookbooks/ipfs/templates/default/ipfs-cluster.initd.service.erb +++ b/cookbooks/ipfs/templates/default/ipfs-cluster.initd.service.erb @@ -15,7 +15,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin DESC="ipfs-cluster daemon" NAME=ipfs-cluster DAEMON=/usr/local/bin/ipfs-cluster-service -DAEMON_ARGS="daemon" +DAEMON_ARGS="daemon --upgrade" PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME diff --git a/cookbooks/ipfs/templates/default/ipfs-cluster.systemd.service.erb b/cookbooks/ipfs/templates/default/ipfs-cluster.systemd.service.erb index 08bf2f0..74dc402 100644 --- a/cookbooks/ipfs/templates/default/ipfs-cluster.systemd.service.erb +++ b/cookbooks/ipfs/templates/default/ipfs-cluster.systemd.service.erb @@ -2,7 +2,7 @@ Description=Start ipfs-cluster [Service] -ExecStart=/usr/local/bin/ipfs-cluster-service daemon +ExecStart=/usr/local/bin/ipfs-cluster-service daemon --upgrade User=ipfs Group=ipfs Restart=always diff --git a/cookbooks/logrotate/metadata.rb b/cookbooks/logrotate/metadata.rb new file mode 100644 index 0000000..e0899fc --- /dev/null +++ b/cookbooks/logrotate/metadata.rb @@ -0,0 +1,18 @@ +name 'logrotate' +maintainer 'Steven Danna' +maintainer_email 'steve@chef.io' +license 'Apache 2.0' +description 'Installs logrotate package and provides a definition for logrotate configs' +long_description 'Installs the logrotate package, manages /etc/logrotate.conf, and provides a logrotate_app definition.' +version '2.2.0' + +recipe 'logrotate', 'Installs logrotate package' +provides 'logrotate_app' + +%w(amazon centos debian fedora redhat scientific solaris2 ubuntu).each do |platform| + supports platform +end + +source_url 'https://github.com/stevendanna/logrotate' +issues_url 'https://github.com/stevendanna/logrotate/issues' +chef_version '>= 12.5' if respond_to?(:chef_version) diff --git a/cookbooks/mediawiki/metadata.json b/cookbooks/mediawiki/metadata.json index 2128705..c5923ce 100644 --- a/cookbooks/mediawiki/metadata.json +++ b/cookbooks/mediawiki/metadata.json @@ -3,7 +3,7 @@ "description": "Installs/Configures mediawiki", "long_description": "Installs/Configures mediawiki", "maintainer": "pulsation", - "maintainer_email": "YOUR_EMAIL", + "maintainer_email": "", "license": "BSD", "platforms": { "centos": ">= 0.0.0", @@ -18,15 +18,8 @@ "mysql2_chef_gem": ">= 0.0.0", "php-fpm": ">= 0.0.0" }, - "recommendations": { - }, - "suggestions": { - }, - "conflicting": { - }, "providing": { - }, - "replacing": { + }, "attributes": { "mediawiki/version": { @@ -126,8 +119,6 @@ ] } }, - "groupings": { - }, "recipes": { "mediawiki::default": "Installs/Configures mediawiki" }, @@ -144,4 +135,4 @@ "gems": [ ] -} \ No newline at end of file +} diff --git a/cookbooks/mediawiki/metadata.rb b/cookbooks/mediawiki/metadata.rb new file mode 100644 index 0000000..cafb353 --- /dev/null +++ b/cookbooks/mediawiki/metadata.rb @@ -0,0 +1,59 @@ +name 'mediawiki' +maintainer 'pulsation' +license 'BSD' +description 'Installs/Configures mediawiki' +long_description 'Installs/Configures mediawiki' +version '0.3.0' + +depends 'apache2' +depends 'php' +depends 'mysql' +depends 'database' +depends 'chef_nginx' +depends 'mysql2_chef_gem' +depends 'php-fpm' + +attribute 'mediawiki/version', + :display_name => "Mediawiki version", + :type => "string", + :required => "recommended" + +attribute 'mediawiki/database/name', + :display_name => "Database name", + :type => "string", + :required => "optional" + +attribute 'mediawiki/database/user', + :display_name => "Database user", + :type => "string", + :required => "optional" + +attribute 'mediawiki/database/password', + :display_name => "Database password", + :type => "string", + :required => "optional" + +attribute 'mediawiki/server_name', + :display_name => "Server name", + :type => "string", + :required => "recommended" + +attribute 'mediawiki/sciptpath', + :display_name => "Script path", + :type => "string", + :required => "optional" + +attribute 'mediawiki/admin_user', + :display_name => "Admin user", + :type => "string", + :required => "recommended" + +attribute 'mediawiki/admin_password', + :display_name => "Admin password", + :type => "string", + :required => "recommended" + +recipe "mediawiki::default", "Installs/Configures mediawiki" + +supports "centos" +supports "debian" diff --git a/cookbooks/rbac/metadata.rb b/cookbooks/rbac/metadata.rb new file mode 100644 index 0000000..91c58d2 --- /dev/null +++ b/cookbooks/rbac/metadata.rb @@ -0,0 +1,10 @@ +name 'rbac' +maintainer 'Eric Saxby' +maintainer_email 'sax@livinginthepast.org' +license 'MIT' +description 'Allows delegation of service management to users with Solaris Role Based Access Control (RBAC)' +long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) +version '1.0.3' + +supports 'solaris2' +supports 'smartos' diff --git a/cookbooks/redis/metadata.json b/cookbooks/redis/metadata.json index f96c463..352fb4e 100644 --- a/cookbooks/redis/metadata.json +++ b/cookbooks/redis/metadata.json @@ -12,19 +12,11 @@ "dependencies": { "apt": ">= 0.0.0" }, - "recommendations": { - }, - "suggestions": { - }, - "conflicting": { - }, "providing": { - }, - "replacing": { + }, "attributes": { - }, - "groupings": { + }, "recipes": { "redis::default": "Sets up ppa apt repository", @@ -44,4 +36,4 @@ "gems": [ ] -} \ No newline at end of file +} diff --git a/cookbooks/redis/metadata.rb b/cookbooks/redis/metadata.rb new file mode 100644 index 0000000..d67a2c7 --- /dev/null +++ b/cookbooks/redis/metadata.rb @@ -0,0 +1,15 @@ +name "redis" +maintainer "Phil Cohen" +maintainer_email "github@phlippers.net" +license "MIT" +description "Installs and configures Redis" +version "0.5.6" + +recipe "redis::default", "Sets up ppa apt repository" +recipe "redis::server", "Installs redis server" +recipe "redis::client", "Installs redis client" + +supports "debian" +supports "ubuntu" + +depends "apt" diff --git a/cookbooks/smf/metadata.rb b/cookbooks/smf/metadata.rb new file mode 100644 index 0000000..94a4751 --- /dev/null +++ b/cookbooks/smf/metadata.rb @@ -0,0 +1,13 @@ +name 'smf' +maintainer 'Eric Saxby' +maintainer_email 'sax@livinginthepast.org' +license 'MIT' +description 'A light weight resource provider (LWRP) for SMF (Service Management Facility)' +long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) +version '2.2.8' + +supports 'smartos' + +depends 'rbac', '>= 1.0.1' + +suggests 'resource-control' # For managing Solaris projects, when setting project on a manifest diff --git a/cookbooks/timezone_iii/metadata.rb b/cookbooks/timezone_iii/metadata.rb new file mode 100644 index 0000000..06c7ed6 --- /dev/null +++ b/cookbooks/timezone_iii/metadata.rb @@ -0,0 +1,27 @@ +name 'timezone_iii' +maintainer 'Corey Hemminger' +maintainer_email 'hemminger@hotmail.com' +license 'Apache-2.0' +description 'Configures the timezone for node' +long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) +version '1.0.4' +chef_version '>= 12.1' if respond_to?(:chef_version) + +# The `issues_url` points to the location where issues for this cookbook are +# tracked. A `View Issues` link will be displayed on this cookbook's page when +# uploaded to a Supermarket. +# +issues_url 'https://github.com/Stromweld/timezone_iii/issues' + +# The `source_url` points to the development reposiory for this cookbook. A +# `View Source` link will be displayed on this cookbook's page when uploaded to +# a Supermarket. +# +source_url 'https://github.com/Stromweld/timezone_iii' + +%w(amazon centos debian fedora gentoo ubuntu pld redhat windows).each do |os| + supports os +end + +replaces 'timezone' +replaces 'timezone-ii' diff --git a/cookbooks/wordpress/metadata.json b/cookbooks/wordpress/metadata.json index 7af75af..bb0ee87 100644 --- a/cookbooks/wordpress/metadata.json +++ b/cookbooks/wordpress/metadata.json @@ -19,7 +19,7 @@ "openssl": ">= 0.0.0", "apache2": ">= 2.0.0", "database": ">= 1.6.0", - "mysql": ">= 6.0.0", + "mysql": ">= 6.0", "mysql2_chef_gem": ">= 1.0.1", "build-essential": ">= 0.0.0", "iis": ">= 1.6.2", @@ -28,15 +28,8 @@ "php-fpm": ">= 0.0.0", "selinux": "~> 0.7" }, - "recommendations": { - }, - "suggestions": { - }, - "conflicting": { - }, "providing": { - }, - "replacing": { + }, "attributes": { "WordPress/version": { @@ -241,8 +234,6 @@ ] } }, - "groupings": { - }, "recipes": { "WordPress": "Installs and configures WordPress LAMP stack on a single system", "WordPress::languages": "Install WordPress translation files" @@ -260,4 +251,4 @@ "gems": [ ] -} \ No newline at end of file +} diff --git a/cookbooks/wordpress/metadata.rb b/cookbooks/wordpress/metadata.rb new file mode 100644 index 0000000..603c779 --- /dev/null +++ b/cookbooks/wordpress/metadata.rb @@ -0,0 +1,100 @@ +name "wordpress" +maintainer "Brint O'Hearn" +maintainer_email "cookbooks@opscode.com" +license "Apache 2.0" +description "Installs/Configures WordPress" +long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) +version "3.1.0" + +recipe "WordPress", "Installs and configures WordPress LAMP stack on a single system" +recipe "WordPress::languages", "Install WordPress translation files" + +%w{ php openssl }.each do |cb| + depends cb +end + +depends "apache2", ">= 2.0.0" +depends "database", ">= 1.6.0" +depends "mysql", ">= 6.0" +depends "mysql2_chef_gem", ">= 1.0.1" +depends "build-essential" +depends "iis", ">= 1.6.2" +depends "tar", ">= 0.3.1" +depends "chef_nginx" +depends "php-fpm" +depends 'selinux', '~> 0.7' + +%w{ debian ubuntu windows centos redhat scientific oracle }.each do |os| + supports os +end + +attribute "WordPress/version", + :display_name => "WordPress download version", + :description => "Version of WordPress to download from the WordPress site or 'latest' for the current release.", + :default => "latest" + +attribute "WordPress/checksum", + :display_name => "WordPress tarball checksum", + :description => "Checksum of the tarball for the version specified.", + :default => "" + +attribute "WordPress/dir", + :display_name => "WordPress installation directory", + :description => "Location to place WordPress files.", + :default => "/var/www/wordpress" + +attribute "WordPress/db/database", + :display_name => "WordPress MySQL database", + :description => "WordPress will use this MySQL database to store its data.", + :default => "wordpressdb" + +attribute "WordPress/db/user", + :display_name => "WordPress MySQL user", + :description => "WordPress will connect to MySQL using this user.", + :default => "wordpressuser" + +attribute "WordPress/db/password", + :display_name => "WordPress MySQL password", + :description => "Password for the WordPress MySQL user.", + :default => "randomly generated" + +attribute "WordPress/keys/auth", + :display_name => "WordPress auth key", + :description => "WordPress auth key.", + :default => "randomly generated" + +attribute "WordPress/keys/secure_auth", + :display_name => "WordPress secure auth key", + :description => "WordPress secure auth key.", + :default => "randomly generated" + +attribute "WordPress/keys/logged_in", + :display_name => "WordPress logged-in key", + :description => "WordPress logged-in key.", + :default => "randomly generated" + +attribute "WordPress/keys/nonce", + :display_name => "WordPress nonce key", + :description => "WordPress nonce key.", + :default => "randomly generated" + +attribute "WordPress/server_aliases", + :display_name => "WordPress Server Aliases", + :description => "WordPress Server Aliases", + :default => "FQDN" + +attribute "WordPress/languages/lang", + :display_name => "WordPress WPLANG configulation value", + :description => "WordPress WPLANG configulation value", + :default => "" + +attribute "WordPress/languages/version", + :display_name => "Version of WordPress translation file", + :description => "Version of WordPress translation file", + :default => "" + +attribute "WordPress/languages/projects", + :display_name => "WordPress translation projects", + :description => "WordPress translation projects", + :type => "array", + :default => ["main", "admin", "admin/network", "cc"] diff --git a/cookbooks/yum-epel/metadata.rb b/cookbooks/yum-epel/metadata.rb new file mode 100644 index 0000000..3b9958b --- /dev/null +++ b/cookbooks/yum-epel/metadata.rb @@ -0,0 +1,9 @@ +name 'yum-epel' +maintainer 'Chef' +maintainer_email 'Sean OMeara ' +license 'Apache 2.0' +description 'Installs/Configures yum-epel' +long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) +version '0.3.6' + +depends 'yum', '~> 3.0'