diff --git a/Batali b/Batali deleted file mode 100644 index 9750fa5..0000000 --- a/Batali +++ /dev/null @@ -1,49 +0,0 @@ -# vim: set filetype=ruby - -Batali.define do - source 'https://supermarket.chef.io' - - cookbook 'mediawiki', - git: 'https://github.com/67P/mediawiki-cookbook.git', - ref: 'nginx' - cookbook 'wordpress', - git: 'https://github.com/67P/wordpress-cookbook.git', - ref: 'relax_dependencies' - cookbook 'redis', - git: 'https://github.com/phlipper/chef-redis.git', - ref: 'v0.5.6' - cookbook 'postfix', '~> 5.0.2' - cookbook 'php-fpm', '~> 0.7.9' - cookbook 'php', '~> 4.2.0' - cookbook 'poise-ruby-build', '~> 1.1.0' - cookbook 'application', '~> 5.2.0' - cookbook 'application_javascript', '~> 1.0.0' - cookbook 'application_ruby', '~> 4.1.0' - cookbook 'application_git', '~> 1.1.0' # 1.2.0 doesn't work with knife-solo - cookbook 'poise', '~> 2.8.1' - cookbook 'poise-languages', '~> 2.1.1' - cookbook 'poise-ruby', '~> 2.3.0' - # cookbook 'poise-javascript', '~> 1.2.0' - cookbook 'poise-javascript', - git: 'https://github.com/tulip/poise-javascript.git', - ref: 'built' - cookbook 'users', '~> 5.1.0' - cookbook 'sudo', '~> 3.5.0' - cookbook 'hostname', '~> 0.4.2' - cookbook 'firewall', '~> 2.6.2' - cookbook 'chef_nginx', '~> 6.1.1' - cookbook 'build-essential', '~> 8.0.3' - cookbook 'mysql', '= 6.1.3' - cookbook 'postgresql', '~> 6.1.1' - # Deprecated, but wordpress and mediawiki depend on it and it would painful - # to change it without moving the databases - cookbook 'database' - cookbook 'mysql2_chef_gem', '= 1.1.0' - cookbook 'chef_client_updater', '~> 1.1.1' - cookbook 'timezone_iii', '~> 1.0.4' - cookbook 'nodejs', '~> 3.0.0' - cookbook 'ark', '~> 3.1.0' - cookbook 'logrotate', '~> 2.2.0' - cookbook 'openssl', '~> 7.1.0' - cookbook 'ntp', '~> 3.4.0' -end diff --git a/Berksfile b/Berksfile new file mode 100644 index 0000000..8cda2cf --- /dev/null +++ b/Berksfile @@ -0,0 +1,65 @@ +# vim: set filetype=ruby + +source 'https://supermarket.chef.io' + +cookbook 'mediawiki', + git: 'https://github.com/67P/mediawiki-cookbook.git', + ref: 'd96a886e554e338e982e82c2502701d8e40fa55d' +cookbook 'wordpress', + git: 'https://github.com/67P/wordpress-cookbook.git', + ref: 'relax_dependencies' +cookbook 'redis', + git: 'https://github.com/phlipper/chef-redis.git', + ref: 'v0.5.6' +cookbook 'postfix', '= 5.0.2' +cookbook 'php-fpm', '= 0.7.9' +cookbook 'php', '= 4.2.0' +cookbook 'poise-ruby-build', '= 1.1.0' +cookbook 'application', '= 5.2.0' +cookbook 'application_javascript', '= 1.0.0' +cookbook 'application_ruby', '= 4.1.0' +cookbook 'application_git', '= 1.1.0' # 1.2.0 doesn't work with knife-solo +cookbook 'poise', '= 2.8.1' +cookbook 'poise-languages', '= 2.1.1' +cookbook 'poise-ruby', '= 2.3.0' +# cookbook 'poise-javascript', '~> 1.2.0' +cookbook 'poise-javascript', + git: 'https://github.com/tulip/poise-javascript.git', + ref: 'built' +cookbook 'poise-archive', '= 1.4.0' +cookbook 'poise-service', '= 1.4.2' +cookbook 'users', '= 5.1.0' +cookbook 'sudo', '= 3.5.0' +cookbook 'hostname', '= 0.4.2' +cookbook 'firewall', '= 2.6.2' +cookbook 'chef_nginx', '= 6.1.1' +cookbook 'build-essential', '= 8.0.3' +cookbook 'mysql', '= 6.1.3' +cookbook 'postgresql', '= 6.1.1' +cookbook 'apt', '= 2.9.2' +cookbook 'git', '= 6.0.0' +cookbook 'hostsfile', '= 2.4.5' +cookbook 'ohai', '= 5.0.4' +# Deprecated, but wordpress and mediawiki depend on it and it would painful +# to change it without moving the databases +cookbook 'database', '= 6.1.1' +cookbook 'mysql2_chef_gem', '= 1.1.0' +cookbook 'chef_client_updater', '= 1.1.1' +cookbook 'timezone_iii', '= 1.0.4' +cookbook 'nodejs', '= 3.0.0' +cookbook 'ark', '= 3.1.0' +cookbook 'logrotate', '= 2.2.0' +cookbook 'openssl', '= 7.1.0' +cookbook 'ntp', '= 3.4.0' +cookbook 'yum', '= 3.13.0' +cookbook 'yum-epel', '= 0.3.6' +cookbook 'yum-mysql-community', '= 2.1.0' +cookbook 'apache2', '= 3.3.0' +cookbook 'chef-sugar', '= 3.3.0' +cookbook 'compat_resource', '= 12.19.0' +cookbook 'dmg', '= 4.0.0' +cookbook 'homebrew', '= 3.0.0' +cookbook 'windows', '= 3.1.1' +cookbook 'iis', '= 6.7.1' +cookbook 'mariadb', '= 0.3.1' +cookbook 'mingw', '= 2.0.0' diff --git a/Berksfile.lock b/Berksfile.lock new file mode 100644 index 0000000..8f631c9 --- /dev/null +++ b/Berksfile.lock @@ -0,0 +1,219 @@ +DEPENDENCIES + apache2 (= 3.3.0) + application (= 5.2.0) + application_git (= 1.1.0) + application_javascript (= 1.0.0) + application_ruby (= 4.1.0) + apt (= 2.9.2) + ark (= 3.1.0) + build-essential (= 8.0.3) + chef-sugar (= 3.3.0) + chef_client_updater (= 1.1.1) + chef_nginx (= 6.1.1) + compat_resource (= 12.19.0) + database (= 6.1.1) + dmg (= 4.0.0) + firewall (= 2.6.2) + git (= 6.0.0) + homebrew (= 3.0.0) + hostname (= 0.4.2) + hostsfile (= 2.4.5) + iis (= 6.7.1) + logrotate (= 2.2.0) + mariadb (= 0.3.1) + mediawiki + git: https://github.com/67P/mediawiki-cookbook.git + revision: d96a886e554e338e982e82c2502701d8e40fa55d + ref: d96a886 + mingw (= 2.0.0) + mysql (= 6.1.3) + mysql2_chef_gem (= 1.1.0) + nodejs (= 3.0.0) + ntp (= 3.4.0) + ohai (= 5.0.4) + openssl (= 7.1.0) + php (= 4.2.0) + php-fpm (= 0.7.9) + poise (= 2.8.1) + poise-archive (= 1.4.0) + poise-javascript + git: https://github.com/tulip/poise-javascript.git + revision: 7e9ea94c0159e0980b3676a0a2a692af3569f681 + ref: built + poise-languages (= 2.1.1) + poise-ruby (= 2.3.0) + poise-ruby-build (= 1.1.0) + poise-service (= 1.4.2) + postfix (= 5.0.2) + postgresql (= 6.1.1) + redis + git: https://github.com/phlipper/chef-redis.git + revision: 7476279fc9c8727f082b8d77b5e1922dc2ef437b + ref: v0.5.6 + sudo (= 3.5.0) + timezone_iii (= 1.0.4) + users (= 5.1.0) + windows (= 3.1.1) + wordpress + git: https://github.com/67P/wordpress-cookbook.git + revision: a80b8a17fb823a01b769f690349d745c40fff04c + ref: relax_d + yum (= 3.13.0) + yum-epel (= 0.3.6) + yum-mysql-community (= 2.1.0) + +GRAPH + apache2 (3.3.0) + application (5.2.0) + poise (~> 2.4) + poise-service (~> 1.0) + application_git (1.1.0) + application (~> 5.0) + git (>= 0.0.0) + poise (~> 2.0) + application_javascript (1.0.0) + application (~> 5.0) + poise (~> 2.0) + poise-javascript (~> 1.0) + poise-service (~> 1.0) + application_ruby (4.1.0) + application (~> 5.0) + poise (~> 2.0) + poise-ruby (~> 2.1) + poise-service (~> 1.0) + apt (2.9.2) + ark (3.1.0) + build-essential (>= 0.0.0) + seven_zip (>= 0.0.0) + windows (>= 0.0.0) + build-essential (8.0.3) + mingw (>= 1.1) + seven_zip (>= 0.0.0) + chef-sugar (3.3.0) + chef_client_updater (1.1.1) + compat_resource (>= 12.16.3) + chef_nginx (6.1.1) + build-essential (>= 0.0.0) + compat_resource (>= 12.16.3) + ohai (>= 4.1.0) + yum-epel (>= 0.0.0) + zypper (>= 0.0.0) + compat_resource (12.19.0) + database (6.1.1) + postgresql (>= 1.0.0) + dmg (4.0.0) + firewall (2.6.2) + chef-sugar (>= 0.0.0) + git (6.0.0) + build-essential (>= 0.0.0) + dmg (>= 0.0.0) + yum-epel (>= 0.0.0) + homebrew (3.0.0) + hostname (0.4.2) + hostsfile (>= 0.0.0) + hostsfile (2.4.5) + iis (6.7.1) + windows (>= 2.0) + logrotate (2.2.0) + mariadb (0.3.1) + apt (>= 0.0.0) + yum (>= 0.0.0) + yum-epel (>= 0.0.0) + mediawiki (0.3.0) + apache2 (>= 0.0.0) + chef_nginx (>= 0.0.0) + database (>= 0.0.0) + mysql (>= 0.0.0) + mysql2_chef_gem (>= 0.0.0) + php (>= 0.0.0) + php-fpm (>= 0.0.0) + mingw (2.0.0) + seven_zip (>= 0.0.0) + mysql (6.1.3) + smf (>= 0.0.0) + yum-mysql-community (>= 0.0.0) + mysql2_chef_gem (1.1.0) + build-essential (>= 0.0.0) + mariadb (>= 0.0.0) + mysql (>= 6.0) + nodejs (3.0.0) + apt (>= 2.9.1) + ark (>= 0.0.0) + build-essential (>= 0.0.0) + homebrew (>= 0.0.0) + yum-epel (>= 0.0.0) + ntp (3.4.0) + ohai (5.0.4) + openssl (7.1.0) + php (4.2.0) + build-essential (>= 0.0.0) + mysql (>= 6.0.0) + xml (>= 0.0.0) + yum-epel (>= 0.0.0) + php-fpm (0.7.9) + apt (>= 0.0.0) + yum (>= 3.0) + poise (2.8.1) + poise-archive (1.4.0) + poise (~> 2.6) + poise-build-essential (1.0.0) + poise (~> 2.6) + poise-git (1.0.0) + poise (~> 2.6) + poise-languages (~> 2.1) + poise-javascript (1.2.1) + poise (~> 2.0) + poise-languages (~> 2.0) + poise-languages (2.1.1) + poise (~> 2.5) + poise-archive (~> 1.0) + poise-ruby (2.3.0) + poise (~> 2.0) + poise-languages (~> 2.0) + poise-ruby-build (1.1.0) + poise (~> 2.0) + poise-build-essential (~> 1.0) + poise-git (~> 1.0) + poise-ruby (~> 2.1) + poise-service (1.4.2) + poise (~> 2.0) + postfix (5.0.2) + postgresql (6.1.1) + build-essential (>= 2.0.0) + compat_resource (>= 12.16.3) + openssl (>= 4.0) + rbac (1.0.3) + redis (0.5.6) + apt (>= 0.0.0) + selinux (0.9.0) + seven_zip (2.0.2) + windows (>= 1.2.2) + smf (2.2.8) + rbac (>= 1.0.1) + sudo (3.5.0) + tar (2.1.1) + timezone_iii (1.0.4) + users (5.1.0) + windows (3.1.1) + ohai (>= 4.0.0) + wordpress (3.1.0) + apache2 (>= 2.0.0) + build-essential (>= 0.0.0) + chef_nginx (>= 0.0.0) + database (>= 1.6.0) + iis (>= 1.6.2) + mysql (>= 6.0.0) + mysql2_chef_gem (>= 1.0.1) + openssl (>= 0.0.0) + php (>= 0.0.0) + php-fpm (>= 0.0.0) + selinux (~> 0.7) + tar (>= 0.3.1) + xml (3.1.2) + build-essential (>= 0.0.0) + yum (3.13.0) + yum-epel (0.3.6) + yum (~> 3.0) + yum-mysql-community (2.1.0) + compat_resource (>= 12.16.3) + zypper (0.4.0) diff --git a/Gemfile b/Gemfile index 48d0f6d..20940bd 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,7 @@ source 'https://rubygems.org' gem 'chef', '~> 12.21.1' -gem 'batali' +gem 'berkshelf', '~> 6.3' gem 'knife-solo' gem 'knife-solo_data_bag' gem 'cookstyle' diff --git a/Gemfile.lock b/Gemfile.lock index 3811533..cf1c1e4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -5,35 +5,36 @@ GEM public_suffix (~> 2.0, >= 2.0.2) artifactory (2.8.1) ast (2.3.0) - attribute_struct (0.3.4) - bogo (>= 0.1.31, < 0.3.0) - batali (0.4.10) - attribute_struct (>= 0.2.14, < 0.5) - bogo (>= 0.1.20, < 0.4) - bogo-cli (>= 0.1.23, < 0.4) - bogo-config (>= 0.1.10, < 0.4) - bogo-ui (>= 0.1.6, < 0.4) - git - grimoire (>= 0.2.14, < 0.4) - http (>= 0.8.2, < 1.0.0) - bogo (0.2.8) - hashie - multi_json - bogo-cli (0.2.12) - bogo (>= 0.1.6, < 0.6) - bogo-config (>= 0.1.15, < 0.5) - bogo-ui - slop (~> 3) - bogo-config (0.2.2) - attribute_struct - bogo (>= 0.1.4, < 1.0) - multi_json - multi_xml - bogo-ui (0.1.24) - bogo - command_line_reporter - paint + berkshelf (6.3.2) + buff-config (~> 2.0) + buff-extensions (~> 2.0) + chef (>= 12.7.2, < 14.0) + cleanroom (~> 1.0) + concurrent-ruby (~> 1.0) + faraday (~> 0.9) + httpclient (~> 2.7) + minitar (~> 0.5, >= 0.5.4) + mixlib-archive (~> 0.4) + mixlib-shellout (~> 2.0) + octokit (~> 4.0) + retryable (~> 2.0) + ridley (~> 5.0) + solve (~> 4.0) + thor (~> 0.19, < 0.19.2) + buff-config (2.0.0) + buff-extensions (~> 2.0) + varia_model (~> 0.6) + buff-extensions (2.0.0) + buff-ignore (1.2.0) + buff-ruby_engine (1.0.0) + buff-shell_out (1.1.0) + buff-ruby_engine (~> 1.0) builder (3.2.3) + celluloid (0.16.0) + timers (~> 4.0.0) + celluloid-io (0.16.2) + celluloid (>= 0.16.0) + nio4r (>= 1.1.0) chef (12.21.1) addressable bundler (>= 1.10) @@ -74,42 +75,32 @@ GEM mixlib-log (~> 1.3) rack (~> 2.0) uuidtools (~> 2.1) - colored (1.2) - command_line_reporter (3.3.6) - colored (>= 1.2) + cleanroom (1.0.0) + concurrent-ruby (1.0.5) cookstyle (1.3.1) rubocop (= 0.47.1) diff-lcs (1.3) - domain_name (0.5.20170223) - unf (>= 0.0.5, < 1.0.0) erubis (2.7.0) + faraday (0.14.0) + multipart-post (>= 1.2, < 3) ffi (1.9.18) ffi-yajl (2.3.1) libyajl2 (~> 1.2) fuzzyurl (0.9.0) - git (1.3.0) - grimoire (0.2.16) - attribute_struct (>= 0.1.12, < 0.5) - bogo (>= 0.1.10, < 1.0) hashie (3.5.5) highline (1.7.8) - http (0.9.9) - addressable (~> 2.3) - http-cookie (~> 1.0) - http-form_data (~> 1.0.1) - http_parser.rb (~> 0.6.0) - http-cookie (1.0.3) - domain_name (~> 0.5) - http-form_data (1.0.1) - http_parser.rb (0.6.0) + hitimes (1.2.6) + httpclient (2.8.3) iniparse (1.4.4) ipaddress (0.8.3) + json (2.1.0) knife-solo (0.6.0) chef (>= 10.20) erubis (~> 2.7.0) net-ssh (>= 2.7, < 4.0) knife-solo_data_bag (2.1.0) libyajl2 (1.2.0) + minitar (0.6.1) mixlib-archive (0.4.1) mixlib-log mixlib-authentication (1.4.1) @@ -124,8 +115,9 @@ GEM mixlib-log (1.7.1) mixlib-shellout (2.2.7) mixlib-versioning (1.1.0) + molinillo (0.6.5) multi_json (1.12.1) - multi_xml (0.6.0) + multipart-post (2.0.0) net-scp (1.2.1) net-ssh (>= 2.6.5) net-sftp (2.1.2) @@ -137,6 +129,9 @@ GEM net-ssh (>= 2.6.5) net-ssh-gateway (>= 1.2.0) net-telnet (0.1.1) + nio4r (2.3.0) + octokit (4.8.0) + sawyer (~> 0.8.0, >= 0.5.3) ohai (8.24.1) chef-config (>= 12.5.0.alpha.1, < 14) ffi (~> 1.9) @@ -149,7 +144,6 @@ GEM plist (~> 3.1) systemu (~> 2.6.4) wmi-lite (~> 1.0) - paint (2.0.0) parser (2.4.0.0) ast (~> 2.2) plist (3.3.0) @@ -160,6 +154,25 @@ GEM rainbow (2.2.2) rake rake (12.0.0) + retryable (2.0.4) + ridley (5.1.1) + addressable + buff-config (~> 2.0) + buff-extensions (~> 2.0) + buff-ignore (~> 1.2) + buff-shell_out (~> 1.0) + celluloid (~> 0.16.0) + celluloid-io (~> 0.16.1) + chef-config (>= 12.5.0) + erubis + faraday (~> 0.9) + hashie (>= 2.0.2, < 4.0.0) + httpclient (~> 2.7) + json (>= 1.7.7) + mixlib-authentication (>= 1.3.0) + retryable (~> 2.0) + semverse (~> 2.0) + varia_model (~> 0.6) rspec (3.6.0) rspec-core (~> 3.6.0) rspec-expectations (~> 3.6.0) @@ -187,13 +200,19 @@ GEM unicode-display_width (~> 1.0, >= 1.0.1) ruby-progressbar (1.8.1) safe_yaml (1.0.4) + sawyer (0.8.1) + addressable (>= 2.3.5, < 2.6) + faraday (~> 0.8, < 1.0) + semverse (2.0.0) serverspec (2.39.1) multi_json rspec (~> 3.0) rspec-its specinfra (~> 2.68) sfl (2.3) - slop (3.6.0) + solve (4.0.0) + molinillo (~> 0.6) + semverse (>= 1.1, < 3.0) specinfra (2.68.1) net-scp net-ssh (>= 2.7, < 5.0) @@ -210,18 +229,20 @@ GEM safe_yaml (~> 1.0) thor (~> 0.19, < 0.19.2) thor (0.19.1) - unf (0.1.4) - unf_ext - unf_ext (0.0.7.2) + timers (4.0.4) + hitimes unicode-display_width (1.2.1) uuidtools (2.1.5) + varia_model (0.6.0) + buff-extensions (~> 2.0) + hashie (>= 2.0.2, < 4.0.0) wmi-lite (1.0.0) PLATFORMS ruby DEPENDENCIES - batali + berkshelf (~> 6.3) chef (~> 12.21.1) cookstyle knife-solo @@ -229,4 +250,4 @@ DEPENDENCIES test-kitchen BUNDLED WITH - 1.15.1 + 1.16.1 diff --git a/batali.manifest b/batali.manifest deleted file mode 100644 index 926a11e..0000000 --- a/batali.manifest +++ /dev/null @@ -1,1059 +0,0 @@ -{ - "infrastructure": false, - "cookbook": [ - { - "name": "mediawiki", - "dependencies": [ - [ - "apache2", - "> 0" - ], - [ - "php", - "> 0" - ], - [ - "mysql", - "> 0" - ], - [ - "database", - "> 0" - ], - [ - "chef_nginx", - "> 0" - ], - [ - "mysql2_chef_gem", - "> 0" - ], - [ - "php-fpm", - "> 0" - ] - ], - "version": "0.3.0", - "source": { - "url": "https://github.com/67P/mediawiki-cookbook.git", - "ref": "3e931a0150d4e2d7be5ba80d6ab6656aef7845d9", - "type": "Batali::Source::Git", - "subdirectory": null - } - }, - { - "name": "apache2", - "dependencies": [ - - ], - "version": "3.3.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/apache2/versions/3.3.0/download", - "version": "3.3.0" - } - }, - { - "name": "php", - "dependencies": [ - [ - "build-essential", - ">= 0.0.0" - ], - [ - "xml", - ">= 0.0.0" - ], - [ - "mysql", - ">= 6.0.0" - ], - [ - "yum-epel", - ">= 0.0.0" - ] - ], - "version": "4.2.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/php/versions/4.2.0/download", - "version": "4.2.0" - } - }, - { - "name": "build-essential", - "dependencies": [ - [ - "seven_zip", - ">= 0.0.0" - ], - [ - "mingw", - ">= 1.1" - ] - ], - "version": "8.0.3", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/build-essential/versions/8.0.3/download", - "version": "8.0.3" - } - }, - { - "name": "seven_zip", - "dependencies": [ - [ - "windows", - ">= 1.2.2" - ] - ], - "version": "2.0.2", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/seven_zip/versions/2.0.2/download", - "version": "2.0.2" - } - }, - { - "name": "windows", - "dependencies": [ - [ - "ohai", - ">= 4.0.0" - ] - ], - "version": "3.1.1", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/windows/versions/3.1.1/download", - "version": "3.1.1" - } - }, - { - "name": "ohai", - "dependencies": [ - - ], - "version": "5.0.4", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/ohai/versions/5.0.4/download", - "version": "5.0.4" - } - }, - { - "name": "mingw", - "dependencies": [ - [ - "seven_zip", - ">= 0.0.0" - ] - ], - "version": "2.0.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/mingw/versions/2.0.0/download", - "version": "2.0.0" - } - }, - { - "name": "xml", - "dependencies": [ - [ - "build-essential", - ">= 0.0.0" - ] - ], - "version": "3.1.2", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/xml/versions/3.1.2/download", - "version": "3.1.2" - } - }, - { - "name": "mysql", - "dependencies": [ - [ - "yum-mysql-community", - ">= 0.0.0" - ], - [ - "smf", - ">= 0.0.0" - ] - ], - "version": "6.1.3", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/mysql/versions/6.1.3/download", - "version": "6.1.3" - } - }, - { - "name": "yum-mysql-community", - "dependencies": [ - [ - "compat_resource", - ">= 12.16.3" - ] - ], - "version": "2.1.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/yum-mysql-community/versions/2.1.0/download", - "version": "2.1.0" - } - }, - { - "name": "compat_resource", - "dependencies": [ - - ], - "version": "12.19.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/compat_resource/versions/12.19.0/download", - "version": "12.19.0" - } - }, - { - "name": "smf", - "dependencies": [ - [ - "rbac", - ">= 1.0.1" - ] - ], - "version": "2.2.8", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/smf/versions/2.2.8/download", - "version": "2.2.8" - } - }, - { - "name": "rbac", - "dependencies": [ - - ], - "version": "1.0.3", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/rbac/versions/1.0.3/download", - "version": "1.0.3" - } - }, - { - "name": "yum-epel", - "dependencies": [ - [ - "yum", - "~> 3.0" - ] - ], - "version": "0.3.6", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/yum-epel/versions/0.3.6/download", - "version": "0.3.6" - } - }, - { - "name": "yum", - "dependencies": [ - - ], - "version": "3.13.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/yum/versions/3.13.0/download", - "version": "3.13.0" - } - }, - { - "name": "database", - "dependencies": [ - [ - "postgresql", - ">= 1.0.0" - ] - ], - "version": "6.1.1", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/database/versions/6.1.1/download", - "version": "6.1.1" - } - }, - { - "name": "postgresql", - "dependencies": [ - [ - "compat_resource", - ">= 12.16.3" - ], - [ - "build-essential", - ">= 2.0.0" - ], - [ - "openssl", - ">= 4.0" - ] - ], - "version": "6.1.1", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/postgresql/versions/6.1.1/download", - "version": "6.1.1" - } - }, - { - "name": "openssl", - "dependencies": [ - - ], - "version": "7.1.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/openssl/versions/7.1.0/download", - "version": "7.1.0" - } - }, - { - "name": "chef_nginx", - "dependencies": [ - [ - "build-essential", - ">= 0.0.0" - ], - [ - "ohai", - ">= 4.1.0" - ], - [ - "yum-epel", - ">= 0.0.0" - ], - [ - "compat_resource", - ">= 12.16.3" - ], - [ - "zypper", - ">= 0.0.0" - ] - ], - "version": "6.1.1", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/chef_nginx/versions/6.1.1/download", - "version": "6.1.1" - } - }, - { - "name": "zypper", - "dependencies": [ - - ], - "version": "0.4.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/zypper/versions/0.4.0/download", - "version": "0.4.0" - } - }, - { - "name": "mysql2_chef_gem", - "dependencies": [ - [ - "build-essential", - ">= 0.0.0" - ], - [ - "mysql", - ">= 6.0" - ], - [ - "mariadb", - ">= 0.0.0" - ] - ], - "version": "1.1.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/mysql2_chef_gem/versions/1.1.0/download", - "version": "1.1.0" - } - }, - { - "name": "mariadb", - "dependencies": [ - [ - "apt", - ">= 0.0.0" - ], - [ - "yum", - ">= 0.0.0" - ], - [ - "yum-epel", - ">= 0.0.0" - ] - ], - "version": "0.3.1", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/mariadb/versions/0.3.1/download", - "version": "0.3.1" - } - }, - { - "name": "apt", - "dependencies": [ - - ], - "version": "2.9.2", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/apt/versions/2.9.2/download", - "version": "2.9.2" - } - }, - { - "name": "php-fpm", - "dependencies": [ - [ - "apt", - ">= 0.0.0" - ], - [ - "yum", - ">= 3.0" - ] - ], - "version": "0.7.9", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/php-fpm/versions/0.7.9/download", - "version": "0.7.9" - } - }, - { - "name": "wordpress", - "dependencies": [ - [ - "php", - "> 0" - ], - [ - "openssl", - "> 0" - ], - [ - "apache2", - ">= 2.0.0" - ], - [ - "database", - ">= 1.6.0" - ], - [ - "mysql", - ">= 6.0" - ], - [ - "mysql2_chef_gem", - ">= 1.0.1" - ], - [ - "build-essential", - "> 0" - ], - [ - "iis", - ">= 1.6.2" - ], - [ - "tar", - ">= 0.3.1" - ], - [ - "chef_nginx", - "> 0" - ], - [ - "php-fpm", - "> 0" - ], - [ - "selinux", - "~> 0.7" - ] - ], - "version": "3.1.0", - "source": { - "url": "https://github.com/67P/wordpress-cookbook.git", - "ref": "a80b8a17fb823a01b769f690349d745c40fff04c", - "type": "Batali::Source::Git", - "subdirectory": null - } - }, - { - "name": "iis", - "dependencies": [ - [ - "windows", - ">= 2.0" - ] - ], - "version": "6.7.1", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/iis/versions/6.7.1/download", - "version": "6.7.1" - } - }, - { - "name": "tar", - "dependencies": [ - - ], - "version": "2.1.1", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/tar/versions/2.1.1/download", - "version": "2.1.1" - } - }, - { - "name": "selinux", - "dependencies": [ - - ], - "version": "0.9.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/selinux/versions/0.9.0/download", - "version": "0.9.0" - } - }, - { - "name": "redis", - "dependencies": [ - [ - "apt", - "> 0" - ] - ], - "version": "0.5.6", - "source": { - "url": "https://github.com/phlipper/chef-redis.git", - "ref": "7476279fc9c8727f082b8d77b5e1922dc2ef437b", - "type": "Batali::Source::Git", - "subdirectory": null - } - }, - { - "name": "postfix", - "dependencies": [ - - ], - "version": "5.0.2", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/postfix/versions/5.0.2/download", - "version": "5.0.2" - } - }, - { - "name": "poise-ruby-build", - "dependencies": [ - [ - "poise", - "~> 2.0" - ], - [ - "poise-build-essential", - "~> 1.0" - ], - [ - "poise-git", - "~> 1.0" - ], - [ - "poise-ruby", - "~> 2.1" - ] - ], - "version": "1.1.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/poise-ruby-build/versions/1.1.0/download", - "version": "1.1.0" - } - }, - { - "name": "poise", - "dependencies": [ - - ], - "version": "2.8.1", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/poise/versions/2.8.1/download", - "version": "2.8.1" - } - }, - { - "name": "poise-build-essential", - "dependencies": [ - [ - "poise", - "~> 2.6" - ] - ], - "version": "1.0.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/poise-build-essential/versions/1.0.0/download", - "version": "1.0.0" - } - }, - { - "name": "poise-git", - "dependencies": [ - [ - "poise", - "~> 2.6" - ], - [ - "poise-languages", - "~> 2.1" - ] - ], - "version": "1.0.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/poise-git/versions/1.0.0/download", - "version": "1.0.0" - } - }, - { - "name": "poise-languages", - "dependencies": [ - [ - "poise", - "~> 2.5" - ], - [ - "poise-archive", - "~> 1.0" - ] - ], - "version": "2.1.1", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/poise-languages/versions/2.1.1/download", - "version": "2.1.1" - } - }, - { - "name": "poise-archive", - "dependencies": [ - [ - "poise", - "~> 2.6" - ] - ], - "version": "1.4.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/poise-archive/versions/1.4.0/download", - "version": "1.4.0" - } - }, - { - "name": "poise-ruby", - "dependencies": [ - [ - "poise", - "~> 2.0" - ], - [ - "poise-languages", - "~> 2.0" - ] - ], - "version": "2.3.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/poise-ruby/versions/2.3.0/download", - "version": "2.3.0" - } - }, - { - "name": "application", - "dependencies": [ - [ - "poise", - "~> 2.4" - ], - [ - "poise-service", - "~> 1.0" - ] - ], - "version": "5.2.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/application/versions/5.2.0/download", - "version": "5.2.0" - } - }, - { - "name": "poise-service", - "dependencies": [ - [ - "poise", - "~> 2.0" - ] - ], - "version": "1.4.2", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/poise-service/versions/1.4.2/download", - "version": "1.4.2" - } - }, - { - "name": "application_javascript", - "dependencies": [ - [ - "poise", - "~> 2.0" - ], - [ - "application", - "~> 5.0" - ], - [ - "poise-javascript", - "~> 1.0" - ], - [ - "poise-service", - "~> 1.0" - ] - ], - "version": "1.0.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/application_javascript/versions/1.0.0/download", - "version": "1.0.0" - } - }, - { - "name": "poise-javascript", - "dependencies": [ - [ - "poise", - "~> 2.0" - ], - [ - "poise-languages", - "~> 2.0" - ] - ], - "version": "1.2.1", - "source": { - "url": "https://github.com/tulip/poise-javascript.git", - "ref": "7e9ea94c0159e0980b3676a0a2a692af3569f681", - "type": "Batali::Source::Git", - "subdirectory": null - } - }, - { - "name": "application_ruby", - "dependencies": [ - [ - "poise", - "~> 2.0" - ], - [ - "application", - "~> 5.0" - ], - [ - "poise-ruby", - "~> 2.1" - ], - [ - "poise-service", - "~> 1.0" - ] - ], - "version": "4.1.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/application_ruby/versions/4.1.0/download", - "version": "4.1.0" - } - }, - { - "name": "application_git", - "dependencies": [ - [ - "git", - ">= 0.0.0" - ], - [ - "poise", - "~> 2.0" - ], - [ - "application", - "~> 5.0" - ] - ], - "version": "1.1.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/application_git/versions/1.1.0/download", - "version": "1.1.0" - } - }, - { - "name": "git", - "dependencies": [ - [ - "build-essential", - ">= 0.0.0" - ], - [ - "dmg", - ">= 0.0.0" - ], - [ - "yum-epel", - ">= 0.0.0" - ] - ], - "version": "6.0.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/git/versions/6.0.0/download", - "version": "6.0.0" - } - }, - { - "name": "dmg", - "dependencies": [ - - ], - "version": "4.0.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/dmg/versions/4.0.0/download", - "version": "4.0.0" - } - }, - { - "name": "users", - "dependencies": [ - - ], - "version": "5.1.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/users/versions/5.1.0/download", - "version": "5.1.0" - } - }, - { - "name": "sudo", - "dependencies": [ - - ], - "version": "3.5.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/sudo/versions/3.5.0/download", - "version": "3.5.0" - } - }, - { - "name": "hostname", - "dependencies": [ - [ - "hostsfile", - ">= 0.0.0" - ] - ], - "version": "0.4.2", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/hostname/versions/0.4.2/download", - "version": "0.4.2" - } - }, - { - "name": "hostsfile", - "dependencies": [ - - ], - "version": "2.4.5", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/hostsfile/versions/2.4.5/download", - "version": "2.4.5" - } - }, - { - "name": "firewall", - "dependencies": [ - [ - "chef-sugar", - ">= 0.0.0" - ] - ], - "version": "2.6.2", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/firewall/versions/2.6.2/download", - "version": "2.6.2" - } - }, - { - "name": "chef-sugar", - "dependencies": [ - - ], - "version": "3.3.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/chef-sugar/versions/3.3.0/download", - "version": "3.3.0" - } - }, - { - "name": "chef_client_updater", - "dependencies": [ - [ - "compat_resource", - ">= 12.16.3" - ] - ], - "version": "1.1.1", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/chef_client_updater/versions/1.1.1/download", - "version": "1.1.1" - } - }, - { - "name": "timezone_iii", - "dependencies": [ - - ], - "version": "1.0.4", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/timezone_iii/versions/1.0.4/download", - "version": "1.0.4" - } - }, - { - "name": "nodejs", - "dependencies": [ - [ - "yum-epel", - ">= 0.0.0" - ], - [ - "build-essential", - ">= 0.0.0" - ], - [ - "ark", - ">= 0.0.0" - ], - [ - "apt", - ">= 2.9.1" - ], - [ - "homebrew", - ">= 0.0.0" - ] - ], - "version": "3.0.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/nodejs/versions/3.0.0/download", - "version": "3.0.0" - } - }, - { - "name": "ark", - "dependencies": [ - [ - "build-essential", - ">= 0.0.0" - ], - [ - "windows", - ">= 0.0.0" - ], - [ - "seven_zip", - ">= 0.0.0" - ] - ], - "version": "3.1.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/ark/versions/3.1.0/download", - "version": "3.1.0" - } - }, - { - "name": "homebrew", - "dependencies": [ - - ], - "version": "3.0.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/homebrew/versions/3.0.0/download", - "version": "3.0.0" - } - }, - { - "name": "logrotate", - "dependencies": [ - - ], - "version": "2.2.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/logrotate/versions/2.2.0/download", - "version": "2.2.0" - } - }, - { - "name": "ntp", - "dependencies": [ - - ], - "version": "3.4.0", - "source": { - "type": "Batali::Source::Site", - "url": "https://supermarket.chef.io:443/api/v1/cookbooks/ntp/versions/3.4.0/download", - "version": "3.4.0" - } - } - ] -} \ No newline at end of file diff --git a/cookbooks/chef_nginx/templates/debian/nginx.init.erb b/cookbooks/chef_nginx/templates/debian/nginx.init.erb old mode 100644 new mode 100755 diff --git a/cookbooks/chef_nginx/templates/ubuntu/nginx.init.erb b/cookbooks/chef_nginx/templates/ubuntu/nginx.init.erb old mode 100644 new mode 100755 diff --git a/cookbooks/hostname/.rspec b/cookbooks/hostname/.rspec deleted file mode 100644 index 4e1e0d2..0000000 --- a/cookbooks/hostname/.rspec +++ /dev/null @@ -1 +0,0 @@ ---color diff --git a/cookbooks/hostname/.travis.yml b/cookbooks/hostname/.travis.yml deleted file mode 100644 index b2ed931..0000000 --- a/cookbooks/hostname/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -bundler_args: --without integration -before_script: bundle exec berks install -script: bundle exec rake -language: ruby -rvm: - - 2.3.1 -sudo: false -notifications: - hipchat: - secure: ! 'mTePogP3SZVXbZ8l3o1yN+uszEEwQY3WgBXXXQc4hV1nLGhAXgjgj5ueCKAE - - JzFSZEjp+31OOg4CIMKs+awwv/SUnFUjB1hlHPrpVnWqUORez6l2fvPABiIs - - kshNJ3x5zPlxJwo/U8jObaxJ7XdjxFKugod3q2rzTsq3TlLF2WA=' diff --git a/cookbooks/hostname/Berksfile b/cookbooks/hostname/Berksfile deleted file mode 100644 index 0bda926..0000000 --- a/cookbooks/hostname/Berksfile +++ /dev/null @@ -1,8 +0,0 @@ -# -*- ruby -*- -source 'https://supermarket.getchef.com' - -metadata - -group :integration do - cookbook 'minitest-handler' -end diff --git a/cookbooks/hostname/CHANGELOG.md b/cookbooks/hostname/CHANGELOG.md deleted file mode 100644 index fd93678..0000000 --- a/cookbooks/hostname/CHANGELOG.md +++ /dev/null @@ -1,65 +0,0 @@ -# Change History - -0.4.2 (2017-05-04) -================== - - #51: Make host file idempotent on RHEL - - #52: Add `append_hostsfile_ip` logic for improved idempotence - - #55: Ensure sysctl `kernel.hostname` set correctly on RHEL - -0.4.1 (2017-04-24) -================== - - #43: Set unique hosts file entry for hostname - - #44: Make hostname mapping to `127.0.0.1` optional - - #59: Updates to resolve deprecations warnings - - #60, #61: various test fixes - -0.4.0 (2015-03-16) -================== - - #40: Use file resources with lazy eval and notifies to prevent network restarts from occurring on every chef run (Matt Kasa) - - Add box with Ubuntu 14.04 for kitchen tests - - #27: Update default recipe to reload only the hostname plugin instead of ohai (Jonathan Serafini) - -0.3.0 (2014-05-20) -================== - - Fixed (and tested) FreeBSD support - - #17: added support for RedHat & CentOS (Damien Roche, Marta Paciorkowska) - - added instructions on manual testing with reboot (Marta Paciorkowska) - -0.2.0 -===== - - Refresh and fix tests, add Rubocop style checks (Marta Paciorkowska) - - #16: do not remove existing /etc/hosts entries on 127.0.0.1, use - configurable IP for hostname entry we need to have for ourselves - (Jean Mertz, Marta Paciorkowska) - -0.1.0 -===== - - Tests: chefspec, test-kitchen - - Substitute `*` in `set_fqdn` with `node.name` to allow fully - automatic FQDN setup. - -0.0.6 -===== - - Clean up backup files from community.opscode.com release - -0.0.5 -===== - - Added change log - - `metadata.rb` explicitly states cookbook name (Chulki Lee) - - New recipe `hostname::vmware` (tily) - - Use hostsfile cookbook to manipulate `/etc/hosts`, use 127.0.1.1 - instead of trying to figure out own IP (Guilhem Lettron) - -0.0.4 -===== - - Use attribute levels when setting for Chef 11 compatibility (Alan - Wilhelm) - -0.0.3 -===== - - Syntax fix for compatibility with Ruby 1.9.2 - -0.0.2 and before -================ - -This is prehistory. diff --git a/cookbooks/hostname/metadata.json b/cookbooks/hostname/metadata.json new file mode 100644 index 0000000..82b2a09 --- /dev/null +++ b/cookbooks/hostname/metadata.json @@ -0,0 +1,44 @@ +{ + "name": "hostname", + "description": "Configures hostname and FQDN", + "long_description": "# hostname cookbook\n\n[![Build Status](https://travis-ci.org/3ofcoins/chef-cookbook-hostname.svg?branch=master)](https://travis-ci.org/3ofcoins/chef-cookbook-hostname)\n[![Chef cookbook](https://img.shields.io/cookbook/v/hostname.svg)](https://supermarket.chef.io/cookbooks/hostname)\n## Description\n\nSets hostname and FQDN of the node. The latest code is hosted at\nhttps://github.com/3ofcoins/chef-cookbook-hostname\n\n### Important\n\nSetting hostname on FQDN is not (and won't be) supported. Unfortunately, using dots in the hostname can cause\n[inconsistent results for any system that consumes DNS](http://serverfault.com/questions/229331/can-i-have-dots-in-a-hostname)\nand [is not allowed by RFC952](http://tools.ietf.org/html/rfc952). If a user\nneeds additional info in their shell prompt, they can change PS1 in etc/profile\nto include the FQDN together with any information they find useful (such as\nthe customer, the environment, etc).\n\n## Attributes\n\n- `node['set_fqdn']` - FQDN to set.\n\nThe asterisk character will be replaced with `node.name`. This way,\nyou can add this to base role:\n\n```ruby\ndefault_attributes :set_fqdn => '*.project-domain.com'\n```\n\nand have node set its FQDN and hostname based on its chef node name\n(which is provided on `chef-client` first run's command line).\n\n- `node['hostname_cookbook']['hostsfile_ip']` -- IP used in\n `/etc/hosts` to correctly set FQDN (default: `127.0.1.1`)\n- `node['hostname_cookbook']['hostsfile_aliases']` -- list of aliases used in\n `/etc/hosts` for the ip set above (default: [`hostname`])\n- `node['hostname_cookbook']['hostsfile_include_hostname_in_aliases']` -- whether to include the hostname\n at the end of the aliases list above (default: true)\n\n- `node['hostname_cookbook']['append_hostsfile_ip']` -- Set to `false` to\n prevent an entry for the node's hostname from being appended in `/etc/hosts` (default: `true`)\n\n## Recipes\n\n* `hostname::default` -- will set node's FQDN to value of `set_fqdn` attribute,\nand hostname to its host part (up to first dot).\n* `hostname::vmware` -- sets hostname automatically using vmtoolsd.\nYou do not need to set `node[\"set_fqdn\"]`.\n\n## Author\n\nAuthor: Maciej Pasternacki maciej@3ofcoins.net\n", + "maintainer": "Maciej Pasternacki", + "maintainer_email": "maciej@3ofcoins.net", + "license": "MIT", + "platforms": { + "debian": ">= 0.0.0", + "ubuntu": ">= 0.0.0", + "freebsd": ">= 0.0.0" + }, + "dependencies": { + "hostsfile": ">= 0.0.0" + }, + "recommendations": { + + }, + "suggestions": { + + }, + "conflicting": { + + }, + "providing": { + + }, + "replacing": { + + }, + "attributes": { + + }, + "groupings": { + + }, + "recipes": { + + }, + "version": "0.4.2", + "source_url": "https://github.com/3ofcoins/chef-cookbook-hostname", + "issues_url": "https://github.com/3ofcoins/chef-cookbook-hostname/issues", + "privacy": false +} diff --git a/cookbooks/hostname/metadata.rb b/cookbooks/hostname/metadata.rb deleted file mode 100644 index 8355ea1..0000000 --- a/cookbooks/hostname/metadata.rb +++ /dev/null @@ -1,20 +0,0 @@ -# -*- 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 deleted file mode 100644 index 5474e5d..0000000 --- a/cookbooks/hostsfile/metadata.rb +++ /dev/null @@ -1,7 +0,0 @@ -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/logrotate/.gitignore b/cookbooks/logrotate/.gitignore deleted file mode 100644 index abdff6a..0000000 --- a/cookbooks/logrotate/.gitignore +++ /dev/null @@ -1,51 +0,0 @@ -*.rbc -.config -coverage -InstalledFiles -lib/bundler/man -pkg -rdoc -spec/reports -test/tmp -test/version_tmp -tmp -_Store -*~ -*# -.#* -\#*# -.*.sw[a-z] -*.un~ -*.tmp -*.bk -*.bkup - -# ruby/bundler files -.ruby-version -.ruby-gemset -.rvmrc -Gemfile.lock -.bundle -*.gem - -# YARD artifacts -.yardoc -_yardoc -doc/ -.idea - -# chef stuff -Berksfile.lock -.kitchen -.kitchen.local.yml -vendor/ -.coverage/ -.zero-knife.rb -Policyfile.lock.json -Cheffile.lock -.librarian/ - -# vagrant stuff -.vagrant/ -.vagrant.d/ -.kitchen/ diff --git a/cookbooks/logrotate/.kitchen.yml b/cookbooks/logrotate/.kitchen.yml deleted file mode 100644 index 8952c71..0000000 --- a/cookbooks/logrotate/.kitchen.yml +++ /dev/null @@ -1,29 +0,0 @@ -driver: - name: vagrant - -provisioner: - name: chef_zero - # We have tests that ensure our deprecated features still - # work so we can't turn this on globally. - # deprecations_as_errors: true - -platforms: - - name: centos-6.8 - - name: centos-7.3 - # - name: debian-7.11 - - name: debian-8.6 - - name: fedora-25 - - name: opensuse-leap-42.1 - - name: ubuntu-14.04 - - name: ubuntu-16.04 - -suites: - - name: default - run_list: - - recipe[logrotate::default] - - name: definition - run_list: - - recipe[fake::definition] - - name: global - run_list: - - recipe[logrotate::global] diff --git a/cookbooks/logrotate/.travis.yml b/cookbooks/logrotate/.travis.yml deleted file mode 100644 index 2adff2a..0000000 --- a/cookbooks/logrotate/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -# Use Travis's cointainer based infrastructure -sudo: false -addons: - apt: - sources: - - chef-stable-precise - packages: - - chefdk - -branches: - only: - - master - -# Ensure we make ChefDK's Ruby the default -install: echo "Using ChefDK for all dependencies" -before_script: - - eval "$(/opt/chefdk/bin/chef shell-init bash)" - -script: - - make travis diff --git a/cookbooks/logrotate/Berksfile b/cookbooks/logrotate/Berksfile deleted file mode 100644 index 4a0c13f..0000000 --- a/cookbooks/logrotate/Berksfile +++ /dev/null @@ -1,7 +0,0 @@ -source 'https://supermarket.chef.io' - -metadata - -group :development do - cookbook 'fake', path: 'test/fixtures/cookbooks/fake' -end diff --git a/cookbooks/logrotate/CHANGELOG.md b/cookbooks/logrotate/CHANGELOG.md deleted file mode 100644 index cbe0c6f..0000000 --- a/cookbooks/logrotate/CHANGELOG.md +++ /dev/null @@ -1,194 +0,0 @@ -logrotate Cookbook CHANGELOG -============================ -This file is used to list changes made in each version of the -logrotate cookbook. - -v2.2.0 ------- -# Compatibility Notes - -The `compat_resource` dependency was removed. This means we now -require Chef 12.5 or higher. It also means we now better support Chef -13. - -# Enhancements - -- The global configuration now supports scripts. -- The package install action (upgrade by default) is now configurable - via an attribute. -- The development environment now more closely follows modern cookbook - practices. - -# Bug Fixes - -- ChefSpec matcher now correctly calls ChefSpec.define_matcher. -- -# Contributors - -- Austin Heiman -- Baptiste Courtois -- Bogdan Katynski -- Thomas Dziedzic -- Tim Smith - -v2.1.0 ------- - -# Bug Fixes - -- Restore `cookbook` parameter for `logrotate_app` resource due to - popular demand. - -- Add a `template_name` parameter to replace the 1.x `template` - parameter. The name `template` can't be used inside a resource - without conflicting with an attribute of the same name. - -- Fix exception when `options` specified as a string rather than an - array - -v2.0.0 ------- - -- Convert the logrotate_app definition to a resource -- Accept all options included in logrotate 3.9.2 - -# Known incompatibilities - -- The `cookbook` parameter to `logrotate_app` is no longer accepted. - - -v1.9.2 ------- - -## Bug Fixes - -- Fix deprecation warnings from ChefSpec - -v1.9.1 ------- - -## Bug Fixes - -- Fixes regression in the sharedscripts logrotate_app - parameter (Bug #69) - -v1.9.0 ------- - -### Improvements - -- All configuration options from the logrotate 3.8.8 manual page can -be used by the global configuration and the logrotate_app -definition. - -- Berkshelf is no longer a development dependency of the -logrotate cookbook. - -- Rubocop lint failures have been resolved. - - - - -v1.8.0 ------- - -### Resolved Bugs - -- `su` parameter now supported in global config. - -### Improvements - -- firstaction and lastaction attributes documented in the README -- rotate attribute documented in the README -- Use hash-rocket syntax in rspec matcher to maintain 1.9 support. - -v1.7.0 ------- - -### Bugs - -- Use `raise` rather than Application.fatal! to prevent killing a - daemonized chef-client - -### Improvements - -- Chefspec matcher for logrotate_app definition -- Support the following options: compressoptions, maxage, - shred/shredcycles, extension, tabooext -- Add Solaris support - - -v1.6.0 ------- - -### Bugs - -- Fix documentation error - -### Improvements - -- Support for options "compresscmd", "uncompresscmd", "compressext" -- Allow nodateext as parameter for logrotate_app definition -- Move to chefspec ~> 3.0 - -v1.5.0 ------- - -### Bugs -- Fix missing end tag in template -- Don't re-initialize constants. -- Fix rubocop finding - -### Improvements -- [COOK-3911] Allow to use maxsize parameter. -- [COOK-4000] Allow to use dateyesterday option. -- [COOK-4024] Allow to use su parameter. -- [COOK-4175] Allows use of the dateformat parameter. -- Loosen test-kitchen version constraint -- Add rvm files to gitignore - - -v1.4.0 ------- -### Bug -- **[COOK-3632](https://tickets.chef.io/browse/COOK-3632)** - Raise Exception when adding more than one invalid option -- **[COOK-3141](https://tickets.chef.io/browse/COOK-3141)** - Do not duplicate template entires for multiple paths -- **[COOK-3034](https://tickets.chef.io/browse/COOK-3034)** - Update logrotate_app params to accept arrays and strings - -### Improvement -- **[COOK-2646](https://tickets.chef.io/browse/COOK-2646)** - Add ability to choose file mode for logrotate template - -v1.3.0 ------- -### Improvement -- **[COOK-3341](https://tickets.chef.io/browse/COOK-3341)** - Add optional `frequency` and `rotate` params when defined globally -- **[COOK-3298](https://tickets.chef.io/browse/COOK-3298)** - Use `Array` instead of `respond_to?(:each)` -- **[COOK-3285](https://tickets.chef.io/browse/COOK-3285)** - Change `logrotate.d` config file mode to `0644` -- **[COOK-3250](https://tickets.chef.io/browse/COOK-3250)** - Add `minsize` - -### Bug -- **[COOK-3274](https://tickets.chef.io/browse/COOK-3274)** - Fix README typo that suggested the opposite action - -### New Feature -- **[COOK-2923](https://tickets.chef.io/browse/COOK-2923)** - Add `olddir` option -- **[COOK-1651](https://tickets.chef.io/browse/COOK-1651)** - Add `dateext` ability - -v1.2.2 ------ -### Bug -- [COOK-2872]: Add firstaction/lastaction ability to logrotate -- [COOK-2908]: Argument error in `logrotate_app` definition - -v1.2.0 ------ -- [COOK-2401] - Add the ability to manage the global logrotate configuration - -v1.1.0 ------ -- [COOK-2218] - Logrotate size parameter - -v1.0.2 ------ -- [COOK-1027] - Add support for pre-/post-rotate commands -- [COOK-1338] - Update log rotate for more flexibility of rotate options -- [COOK-1598] - "Create" isn't a mandatory option diff --git a/cookbooks/logrotate/CONTRIBUTING.md b/cookbooks/logrotate/CONTRIBUTING.md deleted file mode 100644 index f69f59f..0000000 --- a/cookbooks/logrotate/CONTRIBUTING.md +++ /dev/null @@ -1,46 +0,0 @@ -## Contribution Guidelines - -- Please submit improvements and bug fixes via Github pull requests or - by sending an email to steve@chef.io in git's format-patch - format. - -- All patches should have well-written commit message. The first line - should summarize the change while the rest of the commit message - should explain the reason the change is needed. - -- Please ensure all tests and lint checking pass before submitting - pull requests. - -## Development - -### Requirements - -- Ruby 2.0+ -- Latest ChefDK -- [Vagrant](https://vagrantup.com) -- [VirtualBox](https://virtualbox.org) - -### Development Flow - -1. Clone the git repository from GitHub: - - git clone git@github.com:stevendanna/logrotate.git - -2. Ensure you have ChefDK installed: - - chef --version - -3. Create a branch for your changes: - - git checkout -b my_bug_fix - -4. Make any changes - -5. Write tests to support those changes. It is highly recommended you - write both unit and integration tests. - -6. Run the tests: - - `make travis` - - `kitchen test` - -7. Assuming the tests pass, open a Pull Request on GitHub diff --git a/cookbooks/logrotate/metadata.rb b/cookbooks/logrotate/metadata.rb deleted file mode 100644 index e0899fc..0000000 --- a/cookbooks/logrotate/metadata.rb +++ /dev/null @@ -1,18 +0,0 @@ -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/CHANGELOG.md b/cookbooks/mediawiki/CHANGELOG.md deleted file mode 100644 index c66f91a..0000000 --- a/cookbooks/mediawiki/CHANGELOG.md +++ /dev/null @@ -1,9 +0,0 @@ -# 0.1.0 - -Initial release of mediawiki - -* Enhancements - * an enhancement - -* Bug Fixes - * a bug fix diff --git a/cookbooks/mediawiki/Vagrantfile b/cookbooks/mediawiki/Vagrantfile deleted file mode 100644 index 4f44318..0000000 --- a/cookbooks/mediawiki/Vagrantfile +++ /dev/null @@ -1,88 +0,0 @@ -# -*- mode: ruby -*- -# vi: set ft=ruby : - -# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! -VAGRANTFILE_API_VERSION = "2" - -Vagrant.require_version ">= 1.5.0" - -Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| - # All Vagrant configuration is done here. The most common configuration - # options are documented and commented below. For a complete reference, - # please see the online documentation at vagrantup.com. - - config.vm.hostname = "mediawiki-berkshelf" - - # Set the version of chef to install using the vagrant-omnibus plugin - config.omnibus.chef_version = :latest - - # Every Vagrant virtual environment requires a box to build off of. - # If this value is a shorthand to a box in Vagrant Cloud then - # config.vm.box_url doesn't need to be specified. - config.vm.box = "chef/ubuntu-14.04" - - # The url from where the 'config.vm.box' box will be fetched if it - # is not a Vagrant Cloud box and if it doesn't already exist on the - # user's system. - # config.vm.box_url = "https://vagrantcloud.com/chef/ubuntu-14.04/version/1/provider/virtualbox.box" - - # Assign this VM to a host-only network IP, allowing you to access it - # via the IP. Host-only networks can talk to the host machine as well as - # any other machines on the same network, but cannot be accessed (through this - # network interface) by any external networks. - config.vm.network :private_network, type: "dhcp" - - # Create a forwarded port mapping which allows access to a specific port - # within the machine from a port on the host machine. In the example below, - # accessing "localhost:8080" will access port 80 on the guest machine. - - # Share an additional folder to the guest VM. The first argument is - # the path on the host to the actual folder. The second argument is - # the path on the guest to mount the folder. And the optional third - # argument is a set of non-required options. - # config.vm.synced_folder "../data", "/vagrant_data" - - # Provider-specific configuration so you can fine-tune various - # backing providers for Vagrant. These expose provider-specific options. - # Example for VirtualBox: - # - # config.vm.provider :virtualbox do |vb| - # # Don't boot with headless mode - # vb.gui = true - # - # # Use VBoxManage to customize the VM. For example to change memory: - # vb.customize ["modifyvm", :id, "--memory", "1024"] - # end - # - # View the documentation for the provider you're using for more - # information on available options. - - # The path to the Berksfile to use with Vagrant Berkshelf - # config.berkshelf.berksfile_path = "./Berksfile" - - # Enabling the Berkshelf plugin. To enable this globally, add this configuration - # option to your ~/.vagrant.d/Vagrantfile file - config.berkshelf.enabled = true - - # An array of symbols representing groups of cookbook described in the Vagrantfile - # to exclusively install and copy to Vagrant's shelf. - # config.berkshelf.only = [] - - # An array of symbols representing groups of cookbook described in the Vagrantfile - # to skip installing and copying to Vagrant's shelf. - # config.berkshelf.except = [] - - config.vm.provision :chef_solo do |chef| - chef.json = { - mysql: { - server_root_password: 'rootpass', - server_debian_password: 'debpass', - server_repl_password: 'replpass' - } - } - - chef.run_list = [ - "recipe[mediawiki::default]" - ] - end -end diff --git a/cookbooks/mediawiki/metadata.json b/cookbooks/mediawiki/metadata.json new file mode 100644 index 0000000..2128705 --- /dev/null +++ b/cookbooks/mediawiki/metadata.json @@ -0,0 +1,147 @@ +{ + "name": "mediawiki", + "description": "Installs/Configures mediawiki", + "long_description": "Installs/Configures mediawiki", + "maintainer": "pulsation", + "maintainer_email": "YOUR_EMAIL", + "license": "BSD", + "platforms": { + "centos": ">= 0.0.0", + "debian": ">= 0.0.0" + }, + "dependencies": { + "apache2": ">= 0.0.0", + "php": ">= 0.0.0", + "mysql": ">= 0.0.0", + "database": ">= 0.0.0", + "chef_nginx": ">= 0.0.0", + "mysql2_chef_gem": ">= 0.0.0", + "php-fpm": ">= 0.0.0" + }, + "recommendations": { + }, + "suggestions": { + }, + "conflicting": { + }, + "providing": { + }, + "replacing": { + }, + "attributes": { + "mediawiki/version": { + "display_name": "Mediawiki version", + "type": "string", + "required": "recommended", + "choice": [ + + ], + "calculated": false, + "recipes": [ + + ] + }, + "mediawiki/database/name": { + "display_name": "Database name", + "type": "string", + "required": "optional", + "choice": [ + + ], + "calculated": false, + "recipes": [ + + ] + }, + "mediawiki/database/user": { + "display_name": "Database user", + "type": "string", + "required": "optional", + "choice": [ + + ], + "calculated": false, + "recipes": [ + + ] + }, + "mediawiki/database/password": { + "display_name": "Database password", + "type": "string", + "required": "optional", + "choice": [ + + ], + "calculated": false, + "recipes": [ + + ] + }, + "mediawiki/server_name": { + "display_name": "Server name", + "type": "string", + "required": "recommended", + "choice": [ + + ], + "calculated": false, + "recipes": [ + + ] + }, + "mediawiki/sciptpath": { + "display_name": "Script path", + "type": "string", + "required": "optional", + "choice": [ + + ], + "calculated": false, + "recipes": [ + + ] + }, + "mediawiki/admin_user": { + "display_name": "Admin user", + "type": "string", + "required": "recommended", + "choice": [ + + ], + "calculated": false, + "recipes": [ + + ] + }, + "mediawiki/admin_password": { + "display_name": "Admin password", + "type": "string", + "required": "recommended", + "choice": [ + + ], + "calculated": false, + "recipes": [ + + ] + } + }, + "groupings": { + }, + "recipes": { + "mediawiki::default": "Installs/Configures mediawiki" + }, + "version": "0.3.0", + "source_url": "", + "issues_url": "", + "privacy": false, + "chef_versions": [ + + ], + "ohai_versions": [ + + ], + "gems": [ + + ] +} \ No newline at end of file diff --git a/cookbooks/mediawiki/metadata.rb b/cookbooks/mediawiki/metadata.rb deleted file mode 100644 index cafb353..0000000 --- a/cookbooks/mediawiki/metadata.rb +++ /dev/null @@ -1,59 +0,0 @@ -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/mediawiki/recipes/default.rb b/cookbooks/mediawiki/recipes/default.rb index 5550464..bb8d8f2 100644 --- a/cookbooks/mediawiki/recipes/default.rb +++ b/cookbooks/mediawiki/recipes/default.rb @@ -63,8 +63,8 @@ bash "configure_mediawiki_database" do cwd node["mediawiki"]["webdir"] code "php maintenance/install.php" + " --pass '" + node["mediawiki"]["admin_password"] + + "' --dbserver 'localhost:/run/mysql-default/mysqld.sock" + "' --dbname '" + node["mediawiki"]["db"]["name"] + - "' --dbpass '" + node["mediawiki"]["db"]["pass"] + "' --dbuser '" + node["mediawiki"]["db"]["user"] + "' --server '" + node["mediawiki"]["server"] + "' --scriptpath '" + node["mediawiki"]["scriptpath"] + diff --git a/cookbooks/nodejs/.gitignore b/cookbooks/nodejs/.gitignore deleted file mode 100644 index 6c97e28..0000000 --- a/cookbooks/nodejs/.gitignore +++ /dev/null @@ -1,49 +0,0 @@ -*.rbc -.config -coverage -InstalledFiles -lib/bundler/man -pkg -rdoc -spec/reports -test/tmp -test/version_tmp -tmp -_Store -*~ -*# -.#* -\#*# -.*.sw[a-z] -*.un~ -*.tmp -*.bk -*.bkup - -# ruby/bundler files -.ruby-version -.ruby-gemset -.rvmrc -Gemfile.lock -.bundle -*.gem - -# YARD artifacts -.yardoc -_yardoc -doc/ -.idea - -# chef stuff -Berksfile.lock -.kitchen -.kitchen.local.yml -vendor/ -.coverage/ -.zero-knife.rb -Policyfile.lock.json - -# vagrant stuff -.vagrant/ -.vagrant.d/ -.kitchen/ diff --git a/cookbooks/nodejs/.kitchen.yml b/cookbooks/nodejs/.kitchen.yml deleted file mode 100644 index dc5da76..0000000 --- a/cookbooks/nodejs/.kitchen.yml +++ /dev/null @@ -1,105 +0,0 @@ -driver: - name: vagrant - -provisioner: - name: chef_zero - -verifier: - name: inspec - -driver_config: - customize: - memory: 512 - cpus: 4 - -platforms: - - name: centos-5.11 - - name: centos-6.8 - - name: centos-7.2 - - name: debian-7.11 - run_list: apt::default - - name: debian-8.5 - run_list: apt::default - - name: fedora-24 - run_list: yum::dnf_yum_compat - - name: ubuntu-12.04 - run_list: apt::default - - name: ubuntu-14.04 - run_list: apt::default - - name: ubuntu-16.04 - run_list: apt::default - -suites: -- name: default - run_list: - - recipe[nodejs] -- name: package - run_list: - - recipe[nodejs] - attributes: - nodejs: - install_method: package -- name: binary - run_list: - - recipe[nodejs] - attributes: - nodejs: - install_method: binary -- name: source - run_list: - - recipe[nodejs] - attributes: - nodejs: - install_method: source - excludes: - - ubuntu-12.04 - - centos-5.11 - - centos-6.8 -- name: source-iojs - run_list: - - recipe[nodejs] - attributes: - nodejs: - engine: iojs - install_method: source - source: - checksum: 55e79cc4f4cde41f03c1e204d2af5ee4b6e4edcf14defc82e518436e939195fa - version: 2.2.1 - excludes: - - ubuntu-12.04 - - centos-5.11 - - centos-6.8 -- name: npm - run_list: - - recipe[nodejs::npm] - - recipe[nodejs_test::npm] -- name: npm_embedded - run_list: - - recipe[nodejs::npm] - - recipe[nodejs_test::npm] - attributes: - nodejs: - npm: - install_method: embedded -- name: npm_source - run_list: - - recipe[nodejs::npm] - - recipe[nodejs_test::npm] - attributes: - nodejs: - npm: - install_method: source - excludes: - - ubuntu-12.04 - - centos-5.11 - - centos-6.8 -- name: npm_packages - run_list: recipe[nodejs] - attributes: - nodejs: - npm_packages: - - name: express - - name: socket.io - version: 1.0.4 - - name: express - action: uninstall diff --git a/cookbooks/nodejs/.travis.yml b/cookbooks/nodejs/.travis.yml deleted file mode 100644 index 2c085f9..0000000 --- a/cookbooks/nodejs/.travis.yml +++ /dev/null @@ -1,25 +0,0 @@ -# Use Travis's cointainer based infrastructure -sudo: false -addons: - apt: - sources: - - chef-current-precise - packages: - - chefdk - -# Don't `bundle install` -install: echo "skip bundle install" - -branches: - only: - - master - -# Ensure we make ChefDK's Ruby the default -before_script: - - eval "$(/opt/chefdk/bin/chef shell-init bash)" - -script: - - /opt/chefdk/embedded/bin/chef --version - - /opt/chefdk/embedded/bin/cookstyle --version - - /opt/chefdk/embedded/bin/foodcritic --version - - /opt/chefdk/bin/chef exec rake diff --git a/cookbooks/nodejs/Berksfile b/cookbooks/nodejs/Berksfile deleted file mode 100644 index 8ba108f..0000000 --- a/cookbooks/nodejs/Berksfile +++ /dev/null @@ -1,9 +0,0 @@ -source 'https://supermarket.chef.io' - -metadata - -group :integration do - cookbook 'yum' - cookbook 'apt' - cookbook 'nodejs_test', path: './test/cookbooks/nodejs_test' -end diff --git a/cookbooks/nodejs/CHANGELOG.md b/cookbooks/nodejs/CHANGELOG.md deleted file mode 100644 index 282bcd6..0000000 --- a/cookbooks/nodejs/CHANGELOG.md +++ /dev/null @@ -1,134 +0,0 @@ -# NodeJS Cookbook Changelog - -## 3.0.0 (2016-11-02) - -- Updated the default release to the nodejs 6.9.1\. This requires C++11 extensions to compile, which are only present in GCC 4.8+. Due to this RHEL 5/6 and Ubuntu 12.04 are not supported if using this version. -- Switched the download URLs to the .xz packages since the .tar.gz packages are no longer being created -- Improvements to the readme examples and requirements sections -- Removed installation of apt-transport-https and instead rely on an apt cookbook that will do the same -- Fixed the ChefSpec matchers -- Added Scientific, Oracle, and Amazon as supported distros in the metadata -- Added chef_version metadata -- Removed conflicts and suggests metadata which aren't implemented or recommended for use -- Removed Chef 10 compatibility code -- Switched Integration testing to Inspec from bats -- Added the Apache 2.0 license file to the repo -- Expanded Test Kitchen testing -- Switched from Rubocop to Cookstyle and resolved all warnings -- Switched Travis to testing using ChefDK - -## 2.4.4 - -- Use HTTPS prefix URLs for node download #98 -- Update NPM symlink when installing from source #105 -- Add support for NPM private modules #107 - -## v2.4.2 - -- Fix check version -- Support iojs package install - -## v2.4.0 - -- Move `npm_packages` to his own recipe -- Fix different race conditions when using direct recipe call -- Fix npm recipe - -## v2.3.2 - -- Fix package recipe - -## v2.3.0 - -- Support io.js. Use node['nodejs']['engine']. -- Add MacOS support via homebrew - -## v2.2.0 - -- Add node['nodejs']['keyserver'] -- Update arm checksum -- Fix `npm_packages` JSON - -## v2.1.0 - -- Use official nodesource repository -- Add node['nodejs']['npm_packages'] to install npm package with `default` recipe - -## v2.0.0 - -- Travis integration -- Gems updated -- Rewrite cookbook dependencies -- Added complete test-kitchen integration : Rake, rubocop, foodcritic, vagrant, bats testing ... -- Added NodeJS `install_method` option (sources, bins or packages) -- Added NPM `install_method` option (sources or packages) -- NPM version can now be chosen independently from nodejs' embedded version -- Added a `nodejs_npm` LWRP to manage, install and resolve NPM packages - -## v1.3.0 - -- update default versions to the latest: node - v0.10.15 and npm - v1.3.5 -- default to package installation of nodejs on smartos ([@wanelo-pair]) -- Add Raspberry pi support ([@robertkowalski]) - -## v1.2.0 - -- implement installation from package on RedHat - ([@vaskas]) - -## v1.1.3: - -- update default version of node to 0.10.13 - and npm - v1.3.4 ([@jodosha][]) - -## v1.1.2: - -- update default version of node to 0.10.2 - ([@bakins]) -- fully migrated to test-kitchen 1.alpha and vagrant 1.1.x/berkshelf 1.3.1 - -## v1.1.1: - -- update default versions to the latest: node - v0.10.0 and npm - v1.2.14 -- `make_thread` is now a real attribute - ([@ChrisLundquist]) - -## v1.1.0: - -- rewrite the package install; remove rpm support since there are no longer any packages available anywhere -- add support to install `legacy_packages` from ubuntu repo as well as the latest 0.10.x branch (this is default). - -## v1.0.4: - -- add support for binary installation method ([@JulesAU]) - -## v1.0.3: - -- unreleased - -## v1.0.2: - -- add smartos support for package install ([@sax]) -- support to compile with all processors available (default 2 if unknown) - ([@ChrisLundquist]) -- moved to `platform_family` syntax -- ensure npm recipe honours the 'source' or 'package' setting - ([@markbirbeck]) -- updated the default versions to the latest stable node/npm - -## v1.0.1: - -- fixed bug that prevented overwritting the node/npm versions (moved the `src_url`s as local variables instead of attributes) - ([@johannesbecker]) -- updated the default versions to the latest node/npm - -## v1.0.0: - -- added packages installation support ([@smith]) - -[@bakins]: https://github.com/bakins -[@chrislundquist]: https://github.com/ChrisLundquist -[@gmccue]: https://github.com/gmccue -[@johannesbecker]: https://github.com/johannesbecker -[@julesau]: https://github.com/JulesAU -[@markbirbeck]: https://github.com/markbirbeck -[@predominant]: https://github.com/predominant -[@robertkowalski]: https://github.com/robertkowalski -[@sax]: https://github.com/sax -[@sjlu]: https://github.com/sjlu -[@smith]: https://github.com/smith -[@vaskas]: https://github.com/vaskas -[@wanelo-pair]: https://github.com/wanelo-pair diff --git a/cookbooks/nodejs/Rakefile b/cookbooks/nodejs/Rakefile deleted file mode 100644 index 0513520..0000000 --- a/cookbooks/nodejs/Rakefile +++ /dev/null @@ -1,67 +0,0 @@ -#!/usr/bin/env rake - -# Style tests. cookstyle (rubocop) and Foodcritic -namespace :style do - begin - require 'cookstyle' - require 'rubocop/rake_task' - - desc 'Run Ruby style checks' - RuboCop::RakeTask.new(:ruby) - rescue LoadError => e - puts ">>> Gem load error: #{e}, omitting #{task.name}" unless ENV['CI'] - end - - begin - require 'foodcritic' - - desc 'Run Chef style checks' - FoodCritic::Rake::LintTask.new(:chef) do |t| - t.options = { - fail_tags: ['any'], - progress: true - } - end - rescue LoadError => e - puts ">>> Gem load error: #{e}, omitting #{task.name}" unless ENV['CI'] - end -end - -desc 'Run all style checks' -task style: ['style:chef', 'style:ruby'] - -# ChefSpec -begin - require 'rspec/core/rake_task' - - desc 'Run ChefSpec examples' - RSpec::Core::RakeTask.new(:spec) -rescue LoadError - puts ">>> Gem load error: #{e}, omitting #{task.name}" unless ENV['CI'] -end - -# Integration tests. Kitchen.ci -namespace :integration do - begin - require 'kitchen/rake_tasks' - - desc 'Run kitchen integration tests' - Kitchen::RakeTasks.new - rescue StandardError => e - puts ">>> Gem load error: #{e}, omitting #{task.name}" unless ENV['CI'] - end -end - -namespace :supermarket do - begin - require 'stove/rake_task' - - desc 'Publish cookbook to Supermarket with Stove' - Stove::RakeTask.new - rescue LoadError => e - puts ">>> Gem load error: #{e}, omitting #{task.name}" unless ENV['CI'] - end -end - -# Default -task default: %w(style spec) diff --git a/cookbooks/nodejs/metadata.rb b/cookbooks/nodejs/metadata.rb deleted file mode 100644 index 083681e..0000000 --- a/cookbooks/nodejs/metadata.rb +++ /dev/null @@ -1,20 +0,0 @@ -name 'nodejs' -maintainer 'redguide' -maintainer_email 'guilhem@lettron.fr' -license 'Apache 2.0' -description 'Installs/Configures node.js & io.js' -long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) -source_url 'https://github.com/redguide/nodejs' if respond_to?(:source_url) -issues_url 'https://github.com/redguide/nodejs/issues' if respond_to?(:issues_url) -chef_version '>= 11.0' if respond_to?(:chef_version) -version '3.0.0' - -depends 'yum-epel' -depends 'build-essential' -depends 'ark' -depends 'apt', '>= 2.9.1' -depends 'homebrew' - -%w(debian ubuntu centos redhat scientific oracle amazon smartos mac_os_x).each do |os| - supports os -end diff --git a/cookbooks/poise-archive/files/halite_gem/poise_archive/bzip2/LICENSE b/cookbooks/poise-archive/files/halite_gem/poise_archive/bzip2/LICENSE old mode 100644 new mode 100755 diff --git a/cookbooks/poise-archive/files/halite_gem/poise_archive/bzip2/constants.rb b/cookbooks/poise-archive/files/halite_gem/poise_archive/bzip2/constants.rb old mode 100644 new mode 100755 diff --git a/cookbooks/poise-archive/files/halite_gem/poise_archive/bzip2/crc.rb b/cookbooks/poise-archive/files/halite_gem/poise_archive/bzip2/crc.rb old mode 100644 new mode 100755 diff --git a/cookbooks/poise-archive/files/halite_gem/poise_archive/bzip2/decompressor.rb b/cookbooks/poise-archive/files/halite_gem/poise_archive/bzip2/decompressor.rb old mode 100644 new mode 100755 diff --git a/cookbooks/poise-archive/files/halite_gem/poise_archive/bzip2/input_data.rb b/cookbooks/poise-archive/files/halite_gem/poise_archive/bzip2/input_data.rb old mode 100644 new mode 100755 diff --git a/cookbooks/poise-archive/files/halite_gem/poise_archive/bzip2/output_data.rb b/cookbooks/poise-archive/files/halite_gem/poise_archive/bzip2/output_data.rb old mode 100644 new mode 100755 diff --git a/cookbooks/poise-javascript/metadata.json b/cookbooks/poise-javascript/metadata.json new file mode 100644 index 0000000..dfc993d --- /dev/null +++ b/cookbooks/poise-javascript/metadata.json @@ -0,0 +1,60 @@ +{ + "name": "poise-javascript", + "description": "A Chef cookbook for managing Node.js and io.js installations.", + "long_description": "# Poise-Javascript Cookbook\n\n[![Build Status](https://img.shields.io/travis/poise/poise-javascript.svg)](https://travis-ci.org/poise/poise-javascript)\n[![Gem Version](https://img.shields.io/gem/v/poise-javascript.svg)](https://rubygems.org/gems/poise-javascript)\n[![Cookbook Version](https://img.shields.io/cookbook/v/poise-javascript.svg)](https://supermarket.chef.io/cookbooks/poise-javascript)\n[![Coverage](https://img.shields.io/codecov/c/github/poise/poise-javascript.svg)](https://codecov.io/github/poise/poise-javascript)\n[![Gemnasium](https://img.shields.io/gemnasium/poise/poise-javascript.svg)](https://gemnasium.com/poise/poise-javascript)\n[![License](https://img.shields.io/badge/license-Apache_2-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n\nA [Chef](https://www.chef.io/) cookbook to provide a unified interface for\ninstalling server-side JavaScript runtimes like Node.js and io.js.\n\n## Quick Start\n\nTo install the latest available version of Node.js 0.12:\n\n```ruby\njavascript_runtime '0.12'\n```\n\n## Supported JavaScript Runtimes\n\nThis cookbook can install Node.js and io.js on Linux and OS X.\n\n## Requirements\n\nChef 12.1 or newer is required.\n\n## Attributes\n\nAttributes are used to configure the default recipe.\n\n* `node['poise-javascript']['install_nodejs']` – Install a Node.js runtime. *(default: true)*\n* `node['poise-javascript']['install_iojs']` – Install an io.js runtime. *(default: false)*\n\n## Recipes\n\n### `default`\n\nThe default recipe installs Node.js or io.js based on the node attributes. It is\nentirely optional and can be ignored in favor of direct use of the\n`javascript_runtime` resource.\n\n## Resources\n\n### `javascript_runtime`\n\nThe `javascript_runtime` resource installs a JavaScript interpreter.\n\n```ruby\njavascript_runtime '0.12'\n```\n\n#### Actions\n\n* `:install` – Install the JavaScript interpreter. *(default)*\n* `:uninstall` – Uninstall the JavaScript interpreter.\n\n#### Properties\n\n* `version` – Version of the runtime to install. If a partial version is given,\n use the latest available version matching that prefix. *(name property)*\n\n#### Provider Options\n\nThe `poise-javascript` library offers an additional way to pass configuration\ninformation to the final provider called \"options\". Options are key/value pairs\nthat are passed down to the `javascript_runtime` provider and can be used to control how it\ninstalls JavaScript. These can be set in the `javascript_runtime`\nresource using the `options` method, in node attributes or via the\n`javascript_runtime_options` resource. The options from all sources are merged\ntogether in to a single hash.\n\nWhen setting options in the resource you can either set them for all providers:\n\n```ruby\njavascript_runtime 'myapp' do\n version '0.10'\n options dev_package: false\nend\n```\n\nor for a single provider:\n\n```ruby\njavascript_runtime 'myapp' do\n version '0.10'\n options :system, dev_package: false\nend\n```\n\nSetting via node attributes is generally how an end-user or application cookbook\nwill set options to customize installations in the library cookbooks they are using.\nYou can set options for all installations or for a single runtime:\n\n```ruby\n# Global, for all installations.\noverride['poise-javascript']['options']['version'] = '0.10'\n# Single installation.\noverride['poise-javascript']['myapp']['version'] = 'iojs'\n```\n\nThe `javascript_runtime_options` resource is also available to set node attributes\nfor a specific installation in a DSL-friendly way:\n\n```ruby\njavascript_runtime_options 'myapp' do\n version 'iojs'\nend\n```\n\nUnlike resource attributes, provider options can be different for each provider.\nNot all providers support the same options so make sure to the check the\ndocumentation for each provider to see what options the use.\n\n### `javascript_runtime_options`\n\nThe `javascript_runtime_options` resource allows setting provider options in a\nDSL-friendly way. See [the Provider Options](#provider-options) section for more\ninformation about provider options overall.\n\n```ruby\njavascript_runtime_options 'myapp' do\n version 'iojs'\nend\n```\n\n#### Actions\n\n* `:run` – Apply the provider options. *(default)*\n\n#### Properties\n\n* `resource` – Name of the `javascript_runtime` resource. *(name property)*\n* `for_provider` – Provider to set options for.\n\nAll other attribute keys will be used as options data.\n\n### `javascript_execute`\n\nThe `javascript_execute` resource executes a JavaScript script using the configured runtime.\n\n```ruby\njavascript_execute 'myapp.js' do\n user 'myuser'\nend\n```\n\nThis uses the built-in `execute` resource and supports all the same properties.\n\n#### Actions\n\n* `:run` – Execute the script. *(default)*\n\n#### Properties\n\n* `command` – Script and arguments to run. Must not include the `node`. *(name attribute)*\n* `javascript` – Name of the `javascript_runtime` resource to use. If not specified, the\n most recently declared `javascript_runtime` will be used. Can also be set to the\n full path to a `node` binary.\n\nFor other properties see the [Chef documentation](https://docs.chef.io/resource_execute.html#attributes).\n\n### `node_package`\n\nThe `node_package` resource installs Node.js packages using\n[NPM](https://www.npmjs.com/).\n\n```ruby\nnode_package 'express' do\n version '4.13.3'\nend\n```\n\nThis uses the built-in `package` resource and supports the same actions and\nproperties. Multi-package installs are supported using the standard syntax.\n\n#### Actions\n\n* `:install` – Install the package. *(default)*\n* `:upgrade` – Upgrade the package.\n* `:remove` – Uninstall the package.\n\nThe `:purge` and `:reconfigure` actions are not supported.\n\n#### Properties\n\n* `group` – System group to install the package.\n* `package_name` – Package or packages to install. *(name property)*\n* `path` – Path to install the package in to. If unset install using `--global`.\n *(default: nil)*\n* `version` – Version or versions to install.\n* `javascript` – Name of the `javascript_runtime` resource to use. If not specified, the\n most recently declared `javascript_runtime` will be used. Can also be set to the\n full path to a `node` binary.\n* `unsafe_perm` – Enable `--unsafe-perm`. *(default: true)*\n* `user` – System user to install the package.\n\nFor other properties see the [Chef documentation](https://docs.chef.io/resource_package.html#attributes).\nThe `response_file`, `response_file_variables`, and `source` properties are not\nsupported.\n\n### `npm_install`\n\nThe `npm_install` resource runs `npm install` for a package.\n\n```ruby\nnpm_install '/opt/myapp'\n```\n\nThe underlying `npm install` command will run on every converge, but notifications\nwill only be triggered if a package is actually installed.\n\n#### Actions\n\n* `:install` – Run `npm install`. *(default)*\n\n#### Properties\n\n* `path` – Path to the package folder containing a `package.json`. *(name attribute)*\n* `group` – System group to install the packages.\n* `javascript` – Name of the `javascript_runtime` resource to use. If not specified, the\n most recently declared `javascript_runtime` will be used. Can also be set to the\n full path to a `node` binary.\n* `production` – Enable production install mode. *(default: true)*\n* `unsafe_perm` – Enable `--unsafe-perm`. *(default: true)*\n* `user` – System user to install the packages.\n\n## Javascript Providers\n\n### Common Options\n\nThese provider options are supported by all providers.\n\n* `version` – Override the runtime version.\n\n### `system`\n\nThe `system` provider installs Node.js using system packages. This is currently\nonly tested on platforms using `apt-get` and `yum` (Debian, Ubuntu, RHEL, CentOS\nAmazon Linux, and Fedora). It may work on other platforms but is untested.\n\n```ruby\njavascript_runtime 'myapp' do\n provider :system\n version '0.10'\nend\n```\n\n#### Options\n\n* `dev_package` – Install the package with the headers and other development\n files. Can be set to a string to select the dev package specifically.\n *(default: true)*\n* `package_name` – Override auto-detection of the package name.\n* `package_upgrade` – Install using action `:upgrade`. *(default: false)*\n* `package_version` – Override auto-detection of the package version.\n\n### `scl`\n\nThe `scl` provider installs Node.js using the [Software Collections](https://www.softwarecollections.org/)\npackages. This is only available on RHEL and CentOS. SCL offers more\nrecent versions of Node.js than the system packages for the most part. If an SCL\npackage exists for the requests version, it will be used in preference to the\n`system` provider.\n\n```ruby\njavascript_runtime 'myapp' do\n provider :scl\n version '0.10'\nend\n```\n\n### `nodejs`\n\nThe `nodejs` provider installs Node.js from the static binaries on nodejs.org.\nSupport is included for Linux and OS X.\n\n```ruby\njavascript_runtime 'myapp' do\n provider :nodejs\n version '0.12'\nend\n```\n\n#### Options\n\n* `path` – Folder to install Node.js to. *(default: /opt/nodejs-)*\n* `static_version` – Specific version number to use for computing the URL and\n path. *(default: automatic from `version`)*\n* `strip_components` – Value to pass to tar --strip-components. *(automatic)*\n* `url` – URL template to download the archive from. *(default: automatic)*\n\n### `iojs`\n\nThe `iojs` provider installs io.js from the static binaries on iojs.org.\nSupport is included for Linux and OS X.\n\n```ruby\njavascript_runtime 'myapp' do\n provider :iojs\n version '3'\nend\n```\n\n#### Options\n\n* `path` – Folder to install io.js to. *(default: /opt/iojs-)*\n* `static_version` – Specific version number to use for computing the URL and\n path. *(default: automatic from `version`)*\n* `strip_components` – Value to pass to tar --strip-components. *(automatic)*\n* `url` – URL template to download the archive from. *(default: automatic)*\n\n## Sponsors\n\nThe Poise test server infrastructure is sponsored by [Rackspace](https://rackspace.com/).\n\n## License\n\nCopyright 2015-2017, Noah Kantrowitz\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n", + "maintainer": "Noah Kantrowitz", + "maintainer_email": "noah@coderanger.net", + "license": "Apache-2.0", + "platforms": { + "amazon": ">= 0.0.0", + "arch": ">= 0.0.0", + "centos": ">= 0.0.0", + "debian": ">= 0.0.0", + "fedora": ">= 0.0.0", + "gentoo": ">= 0.0.0", + "mac_os_x": ">= 0.0.0", + "opensuse": ">= 0.0.0", + "oracle": ">= 0.0.0", + "raspbian": ">= 0.0.0", + "redhat": ">= 0.0.0", + "slackware": ">= 0.0.0", + "suse": ">= 0.0.0", + "ubuntu": ">= 0.0.0" + }, + "dependencies": { + "poise": "~> 2.0", + "poise-languages": "~> 2.0" + }, + "recommendations": { + }, + "suggestions": { + }, + "conflicting": { + }, + "providing": { + }, + "replacing": { + }, + "attributes": { + }, + "groupings": { + }, + "recipes": { + }, + "version": "1.2.1", + "source_url": "https://github.com/poise/poise-javascript", + "issues_url": "https://github.com/poise/poise-javascript/issues", + "privacy": false, + "chef_versions": [ + [ + "< 14", + ">= 12.1" + ] + ], + "ohai_versions": [ + + ], + "gems": [ + + ] +} \ No newline at end of file diff --git a/cookbooks/poise-javascript/metadata.rb b/cookbooks/poise-javascript/metadata.rb deleted file mode 100644 index bd09cf7..0000000 --- a/cookbooks/poise-javascript/metadata.rb +++ /dev/null @@ -1,42 +0,0 @@ -# -# Copyright 2015-2017, Noah Kantrowitz -# -# 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. -# - -name "poise-javascript" -version "1.2.1" -description "A Chef cookbook for managing Node.js and io.js installations." -long_description "# Poise-Javascript Cookbook\n\n[![Build Status](https://img.shields.io/travis/poise/poise-javascript.svg)](https://travis-ci.org/poise/poise-javascript)\n[![Gem Version](https://img.shields.io/gem/v/poise-javascript.svg)](https://rubygems.org/gems/poise-javascript)\n[![Cookbook Version](https://img.shields.io/cookbook/v/poise-javascript.svg)](https://supermarket.chef.io/cookbooks/poise-javascript)\n[![Coverage](https://img.shields.io/codecov/c/github/poise/poise-javascript.svg)](https://codecov.io/github/poise/poise-javascript)\n[![Gemnasium](https://img.shields.io/gemnasium/poise/poise-javascript.svg)](https://gemnasium.com/poise/poise-javascript)\n[![License](https://img.shields.io/badge/license-Apache_2-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)\n\nA [Chef](https://www.chef.io/) cookbook to provide a unified interface for\ninstalling server-side JavaScript runtimes like Node.js and io.js.\n\n## Quick Start\n\nTo install the latest available version of Node.js 0.12:\n\n```ruby\njavascript_runtime '0.12'\n```\n\n## Supported JavaScript Runtimes\n\nThis cookbook can install Node.js and io.js on Linux and OS X.\n\n## Requirements\n\nChef 12.1 or newer is required.\n\n## Attributes\n\nAttributes are used to configure the default recipe.\n\n* `node['poise-javascript']['install_nodejs']` – Install a Node.js runtime. *(default: true)*\n* `node['poise-javascript']['install_iojs']` – Install an io.js runtime. *(default: false)*\n\n## Recipes\n\n### `default`\n\nThe default recipe installs Node.js or io.js based on the node attributes. It is\nentirely optional and can be ignored in favor of direct use of the\n`javascript_runtime` resource.\n\n## Resources\n\n### `javascript_runtime`\n\nThe `javascript_runtime` resource installs a JavaScript interpreter.\n\n```ruby\njavascript_runtime '0.12'\n```\n\n#### Actions\n\n* `:install` – Install the JavaScript interpreter. *(default)*\n* `:uninstall` – Uninstall the JavaScript interpreter.\n\n#### Properties\n\n* `version` – Version of the runtime to install. If a partial version is given,\n use the latest available version matching that prefix. *(name property)*\n\n#### Provider Options\n\nThe `poise-javascript` library offers an additional way to pass configuration\ninformation to the final provider called \"options\". Options are key/value pairs\nthat are passed down to the `javascript_runtime` provider and can be used to control how it\ninstalls JavaScript. These can be set in the `javascript_runtime`\nresource using the `options` method, in node attributes or via the\n`javascript_runtime_options` resource. The options from all sources are merged\ntogether in to a single hash.\n\nWhen setting options in the resource you can either set them for all providers:\n\n```ruby\njavascript_runtime 'myapp' do\n version '0.10'\n options dev_package: false\nend\n```\n\nor for a single provider:\n\n```ruby\njavascript_runtime 'myapp' do\n version '0.10'\n options :system, dev_package: false\nend\n```\n\nSetting via node attributes is generally how an end-user or application cookbook\nwill set options to customize installations in the library cookbooks they are using.\nYou can set options for all installations or for a single runtime:\n\n```ruby\n# Global, for all installations.\noverride['poise-javascript']['options']['version'] = '0.10'\n# Single installation.\noverride['poise-javascript']['myapp']['version'] = 'iojs'\n```\n\nThe `javascript_runtime_options` resource is also available to set node attributes\nfor a specific installation in a DSL-friendly way:\n\n```ruby\njavascript_runtime_options 'myapp' do\n version 'iojs'\nend\n```\n\nUnlike resource attributes, provider options can be different for each provider.\nNot all providers support the same options so make sure to the check the\ndocumentation for each provider to see what options the use.\n\n### `javascript_runtime_options`\n\nThe `javascript_runtime_options` resource allows setting provider options in a\nDSL-friendly way. See [the Provider Options](#provider-options) section for more\ninformation about provider options overall.\n\n```ruby\njavascript_runtime_options 'myapp' do\n version 'iojs'\nend\n```\n\n#### Actions\n\n* `:run` – Apply the provider options. *(default)*\n\n#### Properties\n\n* `resource` – Name of the `javascript_runtime` resource. *(name property)*\n* `for_provider` – Provider to set options for.\n\nAll other attribute keys will be used as options data.\n\n### `javascript_execute`\n\nThe `javascript_execute` resource executes a JavaScript script using the configured runtime.\n\n```ruby\njavascript_execute 'myapp.js' do\n user 'myuser'\nend\n```\n\nThis uses the built-in `execute` resource and supports all the same properties.\n\n#### Actions\n\n* `:run` – Execute the script. *(default)*\n\n#### Properties\n\n* `command` – Script and arguments to run. Must not include the `node`. *(name attribute)*\n* `javascript` – Name of the `javascript_runtime` resource to use. If not specified, the\n most recently declared `javascript_runtime` will be used. Can also be set to the\n full path to a `node` binary.\n\nFor other properties see the [Chef documentation](https://docs.chef.io/resource_execute.html#attributes).\n\n### `node_package`\n\nThe `node_package` resource installs Node.js packages using\n[NPM](https://www.npmjs.com/).\n\n```ruby\nnode_package 'express' do\n version '4.13.3'\nend\n```\n\nThis uses the built-in `package` resource and supports the same actions and\nproperties. Multi-package installs are supported using the standard syntax.\n\n#### Actions\n\n* `:install` – Install the package. *(default)*\n* `:upgrade` – Upgrade the package.\n* `:remove` – Uninstall the package.\n\nThe `:purge` and `:reconfigure` actions are not supported.\n\n#### Properties\n\n* `group` – System group to install the package.\n* `package_name` – Package or packages to install. *(name property)*\n* `path` – Path to install the package in to. If unset install using `--global`.\n *(default: nil)*\n* `version` – Version or versions to install.\n* `javascript` – Name of the `javascript_runtime` resource to use. If not specified, the\n most recently declared `javascript_runtime` will be used. Can also be set to the\n full path to a `node` binary.\n* `unsafe_perm` – Enable `--unsafe-perm`. *(default: true)*\n* `user` – System user to install the package.\n\nFor other properties see the [Chef documentation](https://docs.chef.io/resource_package.html#attributes).\nThe `response_file`, `response_file_variables`, and `source` properties are not\nsupported.\n\n### `npm_install`\n\nThe `npm_install` resource runs `npm install` for a package.\n\n```ruby\nnpm_install '/opt/myapp'\n```\n\nThe underlying `npm install` command will run on every converge, but notifications\nwill only be triggered if a package is actually installed.\n\n#### Actions\n\n* `:install` – Run `npm install`. *(default)*\n\n#### Properties\n\n* `path` – Path to the package folder containing a `package.json`. *(name attribute)*\n* `group` – System group to install the packages.\n* `javascript` – Name of the `javascript_runtime` resource to use. If not specified, the\n most recently declared `javascript_runtime` will be used. Can also be set to the\n full path to a `node` binary.\n* `production` – Enable production install mode. *(default: true)*\n* `unsafe_perm` – Enable `--unsafe-perm`. *(default: true)*\n* `user` – System user to install the packages.\n\n## Javascript Providers\n\n### Common Options\n\nThese provider options are supported by all providers.\n\n* `version` – Override the runtime version.\n\n### `system`\n\nThe `system` provider installs Node.js using system packages. This is currently\nonly tested on platforms using `apt-get` and `yum` (Debian, Ubuntu, RHEL, CentOS\nAmazon Linux, and Fedora). It may work on other platforms but is untested.\n\n```ruby\njavascript_runtime 'myapp' do\n provider :system\n version '0.10'\nend\n```\n\n#### Options\n\n* `dev_package` – Install the package with the headers and other development\n files. Can be set to a string to select the dev package specifically.\n *(default: true)*\n* `package_name` – Override auto-detection of the package name.\n* `package_upgrade` – Install using action `:upgrade`. *(default: false)*\n* `package_version` – Override auto-detection of the package version.\n\n### `scl`\n\nThe `scl` provider installs Node.js using the [Software Collections](https://www.softwarecollections.org/)\npackages. This is only available on RHEL and CentOS. SCL offers more\nrecent versions of Node.js than the system packages for the most part. If an SCL\npackage exists for the requests version, it will be used in preference to the\n`system` provider.\n\n```ruby\njavascript_runtime 'myapp' do\n provider :scl\n version '0.10'\nend\n```\n\n### `nodejs`\n\nThe `nodejs` provider installs Node.js from the static binaries on nodejs.org.\nSupport is included for Linux and OS X.\n\n```ruby\njavascript_runtime 'myapp' do\n provider :nodejs\n version '0.12'\nend\n```\n\n#### Options\n\n* `path` – Folder to install Node.js to. *(default: /opt/nodejs-)*\n* `static_version` – Specific version number to use for computing the URL and\n path. *(default: automatic from `version`)*\n* `strip_components` – Value to pass to tar --strip-components. *(automatic)*\n* `url` – URL template to download the archive from. *(default: automatic)*\n\n### `iojs`\n\nThe `iojs` provider installs io.js from the static binaries on iojs.org.\nSupport is included for Linux and OS X.\n\n```ruby\njavascript_runtime 'myapp' do\n provider :iojs\n version '3'\nend\n```\n\n#### Options\n\n* `path` – Folder to install io.js to. *(default: /opt/iojs-)*\n* `static_version` – Specific version number to use for computing the URL and\n path. *(default: automatic from `version`)*\n* `strip_components` – Value to pass to tar --strip-components. *(automatic)*\n* `url` – URL template to download the archive from. *(default: automatic)*\n\n## Sponsors\n\nThe Poise test server infrastructure is sponsored by [Rackspace](https://rackspace.com/).\n\n## License\n\nCopyright 2015-2017, Noah Kantrowitz\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n" -maintainer "Noah Kantrowitz" -maintainer_email "noah@coderanger.net" -source_url "https://github.com/poise/poise-javascript" if defined?(source_url) -issues_url "https://github.com/poise/poise-javascript/issues" if defined?(issues_url) -license "Apache-2.0" -depends "poise", "~> 2.0" -depends "poise-languages", "~> 2.0" -chef_version "< 14", ">= 12.1" if defined?(chef_version) -supports "amazon" -supports "arch" -supports "centos" -supports "debian" -supports "fedora" -supports "gentoo" -supports "mac_os_x" -supports "opensuse" -supports "oracle" -supports "raspbian" -supports "redhat" -supports "slackware" -supports "suse" -supports "ubuntu" diff --git a/cookbooks/rbac/metadata.rb b/cookbooks/rbac/metadata.rb deleted file mode 100644 index 91c58d2..0000000 --- a/cookbooks/rbac/metadata.rb +++ /dev/null @@ -1,10 +0,0 @@ -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/.gitignore b/cookbooks/redis/.gitignore new file mode 100644 index 0000000..bf6420b --- /dev/null +++ b/cookbooks/redis/.gitignore @@ -0,0 +1,9 @@ +*.tgz +*.tar.gz +vendor/bundle +.bundle +.DS_Store +build/* +tmp/ +*.lock +.kitchen/* diff --git a/cookbooks/redis/metadata.json b/cookbooks/redis/metadata.json new file mode 100644 index 0000000..f96c463 --- /dev/null +++ b/cookbooks/redis/metadata.json @@ -0,0 +1,47 @@ +{ + "name": "redis", + "description": "Installs and configures Redis", + "long_description": "", + "maintainer": "Phil Cohen", + "maintainer_email": "github@phlippers.net", + "license": "MIT", + "platforms": { + "debian": ">= 0.0.0", + "ubuntu": ">= 0.0.0" + }, + "dependencies": { + "apt": ">= 0.0.0" + }, + "recommendations": { + }, + "suggestions": { + }, + "conflicting": { + }, + "providing": { + }, + "replacing": { + }, + "attributes": { + }, + "groupings": { + }, + "recipes": { + "redis::default": "Sets up ppa apt repository", + "redis::server": "Installs redis server", + "redis::client": "Installs redis client" + }, + "version": "0.5.6", + "source_url": "", + "issues_url": "", + "privacy": false, + "chef_versions": [ + + ], + "ohai_versions": [ + + ], + "gems": [ + + ] +} \ No newline at end of file diff --git a/cookbooks/redis/metadata.rb b/cookbooks/redis/metadata.rb deleted file mode 100644 index d67a2c7..0000000 --- a/cookbooks/redis/metadata.rb +++ /dev/null @@ -1,15 +0,0 @@ -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/redis/test/.chef/knife.rb b/cookbooks/redis/test/.chef/knife.rb new file mode 100644 index 0000000..a0fd5a0 --- /dev/null +++ b/cookbooks/redis/test/.chef/knife.rb @@ -0,0 +1,2 @@ +cache_type "BasicFile" +cache_options(path: "#{ENV["HOME"]}/.chef/checksums") diff --git a/cookbooks/smf/metadata.rb b/cookbooks/smf/metadata.rb deleted file mode 100644 index 94a4751..0000000 --- a/cookbooks/smf/metadata.rb +++ /dev/null @@ -1,13 +0,0 @@ -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/smf/templates/default/SMFServicesOK.sh.erb b/cookbooks/smf/templates/default/SMFServicesOK.sh.erb old mode 100644 new mode 100755 diff --git a/cookbooks/timezone_iii/.codeclimate.yml b/cookbooks/timezone_iii/.codeclimate.yml deleted file mode 100644 index 8e42e7a..0000000 --- a/cookbooks/timezone_iii/.codeclimate.yml +++ /dev/null @@ -1,32 +0,0 @@ ---- -engines: - duplication: - enabled: true - config: - languages: - - ruby - - javascript - - python - - php - fixme: - enabled: true - rubocop: - enabled: true - foodcritic: - enabled: true - markdownlint: - enabled: true - checks: - MD013: - enabled: false -ratings: - paths: - - "**.inc" - - "**.js" - - "**.jsx" - - "**.module" - - "**.php" - - "**.py" - - "**.rb" - - "**.md" -exclude_paths: [] diff --git a/cookbooks/timezone_iii/.gitignore b/cookbooks/timezone_iii/.gitignore deleted file mode 100644 index febee30..0000000 --- a/cookbooks/timezone_iii/.gitignore +++ /dev/null @@ -1,21 +0,0 @@ -.vagrant -*~ -*# -.#* -\#*# -.*.sw[a-z] -*.un~ - -# Bundler -Gemfile.lock -bin/* -.bundle/* - -# test kitchen -.kitchen/ -.kitchen.local.yml - -# Chef -Berksfile.lock -.zero-knife.rb -Policyfile.lock.json diff --git a/cookbooks/timezone_iii/.kitchen.yml b/cookbooks/timezone_iii/.kitchen.yml deleted file mode 100644 index be3dc3f..0000000 --- a/cookbooks/timezone_iii/.kitchen.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -driver: - name: vagrant - -provisioner: - name: chef_zero - # You may wish to disable always updating cookbooks in CI or other testing environments. - # For example: - # always_update_cookbooks: <%= !ENV['CI'] %> - always_update_cookbooks: true - -verifier: - name: inspec - -platforms: - - name: ubuntu-16.04 - - name: centos-7.3 - -suites: - - name: default - run_list: - - recipe[timezone_iii::default] - verifier: - inspec_tests: - - test/smoke/default - attributes: diff --git a/cookbooks/timezone_iii/.rubocop.yml b/cookbooks/timezone_iii/.rubocop.yml deleted file mode 100644 index 25a83cf..0000000 --- a/cookbooks/timezone_iii/.rubocop.yml +++ /dev/null @@ -1,18 +0,0 @@ -AllCops: - Exclude: - - vendor/**/* - - Guardfile - TargetRubyVersion: 2.4 - -ClassLength: - Enabled: false -CyclomaticComplexity: - Enabled: false -LineLength: - Enabled: false -MethodLength: - Enabled: false -Metrics/ModuleLength: - Enabled: false -PerceivedComplexity: - Enabled: false diff --git a/cookbooks/timezone_iii/Berksfile b/cookbooks/timezone_iii/Berksfile deleted file mode 100644 index 34fea21..0000000 --- a/cookbooks/timezone_iii/Berksfile +++ /dev/null @@ -1,3 +0,0 @@ -source 'https://supermarket.chef.io' - -metadata diff --git a/cookbooks/timezone_iii/CHANGELOG.md b/cookbooks/timezone_iii/CHANGELOG.md deleted file mode 100644 index 2b730d2..0000000 --- a/cookbooks/timezone_iii/CHANGELOG.md +++ /dev/null @@ -1,21 +0,0 @@ -# CHANGELOG for timezone_ii - -## 1.0.4 (6/6/2017) - -- [badsector3] - Temp fix for recent Ubuntu releases with local time file overriding timezone file - -## 1.0.3 (4/20/2017) - -- [Corey Hemminger] - fixed linux include_recipe line that was being skipped - -## 1.0.2 (4/19/2017) - -- [Corey Hemminger] - changed hash rockets to new hash style - -## 1.0.1 (4/18/2017) - -- [Corey Hemminger] - fixed windows idempotency - -## 1.0.0 (4/18/2017) - -- [Corey Hemminger] - Initial commit \ No newline at end of file diff --git a/cookbooks/timezone_iii/CONTRIBUTING.md b/cookbooks/timezone_iii/CONTRIBUTING.md deleted file mode 100644 index cd21578..0000000 --- a/cookbooks/timezone_iii/CONTRIBUTING.md +++ /dev/null @@ -1 +0,0 @@ -Please refer to diff --git a/cookbooks/timezone_iii/TESTING.md b/cookbooks/timezone_iii/TESTING.md deleted file mode 100644 index 359579c..0000000 --- a/cookbooks/timezone_iii/TESTING.md +++ /dev/null @@ -1 +0,0 @@ -Please refer to diff --git a/cookbooks/timezone_iii/metadata.rb b/cookbooks/timezone_iii/metadata.rb deleted file mode 100644 index 06c7ed6..0000000 --- a/cookbooks/timezone_iii/metadata.rb +++ /dev/null @@ -1,27 +0,0 @@ -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/hostname/.gitignore b/cookbooks/wordpress/.gitignore similarity index 57% rename from cookbooks/hostname/.gitignore rename to cookbooks/wordpress/.gitignore index 02e8bbc..dd1e425 100644 --- a/cookbooks/hostname/.gitignore +++ b/cookbooks/wordpress/.gitignore @@ -1,16 +1,14 @@ -*# -*.un~ -*~ -.#* -.*.sw[a-z] -.bundle/* -.kitchen.local.yml -.kitchen/ .vagrant -/cookbooks Berksfile.lock Gemfile.lock +*~ +*# +.#* \#*# -bin/* -metadata.json -Gemfile.lock +.*.sw[a-z] +*.un~ +.bundle +.cache +.kitchen +bin +.kitchen.local.yml diff --git a/cookbooks/wordpress/metadata.json b/cookbooks/wordpress/metadata.json new file mode 100644 index 0000000..7af75af --- /dev/null +++ b/cookbooks/wordpress/metadata.json @@ -0,0 +1,263 @@ +{ + "name": "wordpress", + "description": "Installs/Configures WordPress", + "long_description": "[![Build Status](https://travis-ci.org/brint/wordpress-cookbook.svg?branch=master)](https://travis-ci.org/brint/wordpress-cookbook)\n[![Dependency Status](https://gemnasium.com/brint/wordpress-cookbook.svg)](https://gemnasium.com/brint/wordpress-cookbook)\n\nDescription\n===========\n\nThe Chef WordPress cookbook installs and configures WordPress according to the instructions at http://codex.wordpress.org/Installing_WordPress.\n\nDescription\n===========\n\nThis cookbook does not set up the WordPress blog. You will need to do this manually by going to http://hostname/wp-admin/install.php (this URL may be different if you change the attribute values).\n\nRequirements\n============\n\nPlatform\n--------\n\n* Ubuntu 12.04, 14.04\n* RHEL/CentOS 5, 6\n* Windows\n\nCookbooks\n---------\n\n* mysql\n* mysql_chef_gem\n* php\n* apache2\n* iis\n* windows\n* openssl (uses library to generate secure passwords)\n* selinux (used to disable selinux for MySQL on RHEL-based systems)\n\nAttributes\n==========\n\n### WordPress\n\n* `node['wordpress']['version']` - Version of WordPress to download. Use 'latest' to download most recent version.\n* `node['wordpress']['parent_dir']` - Parent directory to where WordPress will be extracted. (Windows Only)\n* `node['wordpress']['dir']` - Location to place WordPress files.\n* `node['wordpress']['db']['root_password']` - Root password for MySQL (added for support with community cookbook version 6+)\n* `node['wordpress']['db']['instance_name']` - Name of the MySQL instance to use with MySQL (community cookbook version 6+)\n* `node['wordpress']['db']['name']` - Name of the WordPress MySQL database.\n* `node['wordpress']['db']['user']` - Name of the WordPress MySQL user.\n* `node['wordpress']['db']['pass']` - Password of the WordPress MySQL user. By default, generated using openssl cookbook.\n* `node['wordpress']['db']['prefix']` - Prefix of all MySQL tables created by WordPress.\n* `node['wordpress']['db']['host']` - Host of the WordPress MySQL database.\n* `node['wordpress']['db']['port']` - Port of the WordPress MySQL database.\n* `node['wordpress']['db']['charset']` - [Character set](http://dev.mysql.com/doc/refman/5.7/en/charset-charsets.html) of the WordPress MySQL database tables. Defaults to 'utf8'.\n* `node['wordpress']['db']['collate']` - [Collation](http://dev.mysql.com/doc/refman/5.7/en/charset-collation-effect.html) of the WordPress MySQL database tables.\n\n* `node['wordpress']['allow_multisite']` - Enable [multisite](http://codex.wordpress.org/Create_A_Network) features (default: false).\n* `node['wordpress']['wp_config_options']` - A hash of options to define in wp_config.php, output as key value pairs into a PHP constant e.g. `define( '<%= @key %>', <%= @value %> );`. Note: for values you will need to add single quotes around text but omit them for booleans and numbers. (default: {}).\n* `node['wordpress']['config_perms']` - Permissions to set for a site's wp-config.php.\n* `node['wordpress']['server_aliases']` - Aliases to use when setting up Virtual Host with Nginx or Apache\n* `node['wordpress']['server_port']` - Port to use when setting up the Virtual Host with Nginx or Apache\n\n* `node['wordpress']['install']['user']` - Install user used for WordPress file permissions and the PHP-FPM user (if applicable)\n* `node['wordpress']['install']['group']` - Install group used for WordPress file permissions and the PHP-FPM group (if necessary)\n\n* `node['wordpress']['parent_dir']` - Parent directory of where WordPress will be installed. This is used in the Windows installation to determine where the .zip will be downloaded to.\n* `node['wordpress']['dir']` - Path where WordPress should be installed\n* `node['wordpress']['url']` - URL to the zip or tarball installer of WordPress\n* `node['wordpress']['server_name']` - Hostname used for setting up the Virtual Host configuration for your WordPress site\n\n* `node['wordpress']['php_options']` - Additional PHP settings for the installation.\n\nUsage\n=====\n\nAdd the \"wordpress\" recipe to your node's run list or role, or include the recipe in another cookbook.\n\nLicense and Author\n==================\n\n* Author:: Barry Steinglass (barry@opscode.com)\n* Author:: Joshua Timberman (joshua@opscode.com)\n* Author:: Seth Chisamore (schisamo@opscode.com)\n* Author:: Lucas Hansen (lucash@opscode.com)\n* Author:: Julian C. Dunn (jdunn@getchef.com)\n\nCopyright:: 2010-2013, Chef Software, Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n", + "maintainer": "Brint O'Hearn", + "maintainer_email": "cookbooks@opscode.com", + "license": "Apache 2.0", + "platforms": { + "debian": ">= 0.0.0", + "ubuntu": ">= 0.0.0", + "windows": ">= 0.0.0", + "centos": ">= 0.0.0", + "redhat": ">= 0.0.0", + "scientific": ">= 0.0.0", + "oracle": ">= 0.0.0" + }, + "dependencies": { + "php": ">= 0.0.0", + "openssl": ">= 0.0.0", + "apache2": ">= 2.0.0", + "database": ">= 1.6.0", + "mysql": ">= 6.0.0", + "mysql2_chef_gem": ">= 1.0.1", + "build-essential": ">= 0.0.0", + "iis": ">= 1.6.2", + "tar": ">= 0.3.1", + "chef_nginx": ">= 0.0.0", + "php-fpm": ">= 0.0.0", + "selinux": "~> 0.7" + }, + "recommendations": { + }, + "suggestions": { + }, + "conflicting": { + }, + "providing": { + }, + "replacing": { + }, + "attributes": { + "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", + "choice": [ + + ], + "calculated": false, + "type": "string", + "required": "optional", + "recipes": [ + + ] + }, + "WordPress/checksum": { + "display_name": "WordPress tarball checksum", + "description": "Checksum of the tarball for the version specified.", + "default": "", + "choice": [ + + ], + "calculated": false, + "type": "string", + "required": "optional", + "recipes": [ + + ] + }, + "WordPress/dir": { + "display_name": "WordPress installation directory", + "description": "Location to place WordPress files.", + "default": "/var/www/wordpress", + "choice": [ + + ], + "calculated": false, + "type": "string", + "required": "optional", + "recipes": [ + + ] + }, + "WordPress/db/database": { + "display_name": "WordPress MySQL database", + "description": "WordPress will use this MySQL database to store its data.", + "default": "wordpressdb", + "choice": [ + + ], + "calculated": false, + "type": "string", + "required": "optional", + "recipes": [ + + ] + }, + "WordPress/db/user": { + "display_name": "WordPress MySQL user", + "description": "WordPress will connect to MySQL using this user.", + "default": "wordpressuser", + "choice": [ + + ], + "calculated": false, + "type": "string", + "required": "optional", + "recipes": [ + + ] + }, + "WordPress/db/password": { + "display_name": "WordPress MySQL password", + "description": "Password for the WordPress MySQL user.", + "default": "randomly generated", + "choice": [ + + ], + "calculated": false, + "type": "string", + "required": "optional", + "recipes": [ + + ] + }, + "WordPress/keys/auth": { + "display_name": "WordPress auth key", + "description": "WordPress auth key.", + "default": "randomly generated", + "choice": [ + + ], + "calculated": false, + "type": "string", + "required": "optional", + "recipes": [ + + ] + }, + "WordPress/keys/secure_auth": { + "display_name": "WordPress secure auth key", + "description": "WordPress secure auth key.", + "default": "randomly generated", + "choice": [ + + ], + "calculated": false, + "type": "string", + "required": "optional", + "recipes": [ + + ] + }, + "WordPress/keys/logged_in": { + "display_name": "WordPress logged-in key", + "description": "WordPress logged-in key.", + "default": "randomly generated", + "choice": [ + + ], + "calculated": false, + "type": "string", + "required": "optional", + "recipes": [ + + ] + }, + "WordPress/keys/nonce": { + "display_name": "WordPress nonce key", + "description": "WordPress nonce key.", + "default": "randomly generated", + "choice": [ + + ], + "calculated": false, + "type": "string", + "required": "optional", + "recipes": [ + + ] + }, + "WordPress/server_aliases": { + "display_name": "WordPress Server Aliases", + "description": "WordPress Server Aliases", + "default": "FQDN", + "choice": [ + + ], + "calculated": false, + "type": "string", + "required": "optional", + "recipes": [ + + ] + }, + "WordPress/languages/lang": { + "display_name": "WordPress WPLANG configulation value", + "description": "WordPress WPLANG configulation value", + "default": "", + "choice": [ + + ], + "calculated": false, + "type": "string", + "required": "optional", + "recipes": [ + + ] + }, + "WordPress/languages/version": { + "display_name": "Version of WordPress translation file", + "description": "Version of WordPress translation file", + "default": "", + "choice": [ + + ], + "calculated": false, + "type": "string", + "required": "optional", + "recipes": [ + + ] + }, + "WordPress/languages/projects": { + "display_name": "WordPress translation projects", + "description": "WordPress translation projects", + "type": "array", + "default": [ + "main", + "admin", + "admin/network", + "cc" + ], + "choice": [ + + ], + "calculated": false, + "required": "optional", + "recipes": [ + + ] + } + }, + "groupings": { + }, + "recipes": { + "WordPress": "Installs and configures WordPress LAMP stack on a single system", + "WordPress::languages": "Install WordPress translation files" + }, + "version": "3.1.0", + "source_url": "", + "issues_url": "", + "privacy": false, + "chef_versions": [ + + ], + "ohai_versions": [ + + ], + "gems": [ + + ] +} \ No newline at end of file diff --git a/cookbooks/wordpress/metadata.rb b/cookbooks/wordpress/metadata.rb deleted file mode 100644 index 603c779..0000000 --- a/cookbooks/wordpress/metadata.rb +++ /dev/null @@ -1,100 +0,0 @@ -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 deleted file mode 100644 index 3b9958b..0000000 --- a/cookbooks/yum-epel/metadata.rb +++ /dev/null @@ -1,9 +0,0 @@ -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'