Update ipfs and ipfs-cluster #15

Merged
greg merged 2 commits from feature/ipfs_updates into master 2019-02-25 17:11:52 +00:00
23 changed files with 344 additions and 57 deletions

View File

@ -64,4 +64,4 @@ cookbook 'mariadb', '= 0.3.1'
cookbook 'mingw', '= 2.0.0'
cookbook 'ipfs',
git: 'https://github.com/67P/ipfs-cookbook.git',
ref: 'master'
ref: 'v0.1.1'

View File

@ -22,8 +22,8 @@ DEPENDENCIES
iis (= 6.7.1)
ipfs
git: https://github.com/67P/ipfs-cookbook.git
revision: b98b45584cdb00a1a7b41e837352ce4156f127e7
ref: master
revision: 0668eae4c574fc5f8c630a9a888159b6dd0abe79
ref: v0.1.1
logrotate (= 2.2.0)
mariadb (= 0.3.1)
mediawiki
@ -120,7 +120,7 @@ GRAPH
hostsfile (2.4.5)
iis (6.7.1)
windows (>= 2.0)
ipfs (0.1.0)
ipfs (0.1.1)
ark (>= 0.0.0)
logrotate (2.2.0)
mariadb (0.3.1)
@ -207,7 +207,7 @@ GRAPH
chef_nginx (>= 0.0.0)
database (>= 1.6.0)
iis (>= 1.6.2)
mysql (>= 6.0.0)
mysql (>= 6.0)
mysql2_chef_gem (>= 1.0.1)
openssl (>= 0.0.0)
php (>= 0.0.0)

View File

@ -0,0 +1,23 @@
name 'composer'
maintainer 'David Joos'
maintainer_email 'development@davidjoos.com'
license 'MIT'
description 'Installs/Configures Composer'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '2.6.1'
%w(debian ubuntu redhat centos fedora scientific amazon windows).each do |os|
supports os
end
source_url 'https://github.com/djoos-cookbooks/composer' if respond_to?(:source_url)
issues_url 'https://github.com/djoos-cookbooks/composer/issues' if respond_to?(:issues_url)
depends 'apt'
depends 'php'
depends 'windows'
recipe 'composer', 'Installs (if applicable) and self-updates composer.'
recipe 'composer::install', 'Installs composer.'
recipe 'composer::self_update', 'Installs (if applicable) and self-updates composer.'
recipe 'composer::global_configs', 'Sets up global config options via `composer config --global`'

View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
name 'hostname'
maintainer 'Maciej Pasternacki'
maintainer_email 'maciej@3ofcoins.net'
license 'MIT'
description 'Configures hostname and FQDN'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.4.2'
supports 'debian'
supports 'ubuntu'
supports 'freebsd'
depends 'hostsfile'
source_url 'https://github.com/3ofcoins/chef-cookbook-hostname' if respond_to?(:source_url)
issues_url 'https://github.com/3ofcoins/chef-cookbook-hostname/issues' if respond_to?(:issues_url)
chef_version '>= 12.1' if respond_to?(:chef_version)

View File

@ -0,0 +1,7 @@
name 'hostsfile'
maintainer 'Seth Vargo'
maintainer_email 'sethvargo@gmail.com'
license 'Apache 2.0'
description 'Provides an LWRP for managing the /etc/hosts file'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '2.4.5'

View File

@ -12,8 +12,8 @@ It currently only supports 64bit platforms
### Chef
- Chef 12.5 or later (we are providing a
[https://docs.chef.io/custom_resources.html](Custom Resource) to configure
IPFS
[Custom Resource](https://docs.chef.io/custom_resources.html) to configure
IPFS)
### Cookbook dependencies

View File

@ -1,7 +1,7 @@
{
"name": "ipfs",
"description": "Installs/Configures ipfs",
"long_description": "# ipfs Cookbook\n\nThis cookbook installs ipfs and starts it as a daemon\n\n## Requirements\n\n### Platforms\n\nThis cookbook is tested on Ubuntu 16.06, 14.04 and Debian 8 using Test Kitchen.\nIt currently only supports 64bit platforms\n\n### Chef\n\n- Chef 12.5 or later (we are providing a\n [https://docs.chef.io/custom_resources.html](Custom Resource) to configure\n IPFS\n\n### Cookbook dependencies\n\n- `ark` to download and uncompress the Go IPFS package\n\n## Usage\n\n### ipfs::default\n\nJust include `ipfs` in your node's `run_list`:\n\n```json\n{\n \"name\":\"my_node\",\n \"run_list\": [\n \"recipe[ipfs]\"\n ]\n}\n```\n\n## Attributes\n\n- `node.['ipfs']['version']` - the Go IPFS version to download from the official\nsite (64bit)\n- `node['ipfs']['checksum']` - the SHA256 checksum for the package\n- `node['ipfs']['config']['swarm']['addr_filter']` - the network ranges to not\nconnect to. This will stop platforms like Hetzner to block your server\n(https://github.com/ipfs/go-ipfs/issues/1226)\n\n## Resources\n\n`ipfs_config` sets the config. Supports hashes, arrays, booleans and strings.\nDoes not change anything if the config already has that value, and restarts\nthe server automatically\n\n```ruby\nipfs_config \"Gateway.Writable\" do\n value \"true\"\n end\n```\n\n## Running the specs and integrations tests\n\nInstall the latest [Chef DK](https://downloads.chef.io/chefdk).\n\n```\nchef exec delivery local all # Run the linting check, syntax check and unit tests\nkitchen verify # Run the integration tests for Ubuntu 16.04, 18.06 and Debian 9\n```\n\n## License and Authors\n\nAuthors: Kosmos Developers mail@kosmos.org\nCopyright: 2018, [Kosmos Developers](https://kredits.kosmos.org/)\n\n```\nUnless otherwise noted, all files are released under the MIT license, possible\nexceptions will contain licensing information in them.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n",
"long_description": "# ipfs Cookbook\n\nThis cookbook installs ipfs and starts it as a daemon\n\n## Requirements\n\n### Platforms\n\nThis cookbook is tested on Ubuntu 16.06, 14.04 and Debian 8 using Test Kitchen.\nIt currently only supports 64bit platforms\n\n### Chef\n\n- Chef 12.5 or later (we are providing a\n [Custom Resource](https://docs.chef.io/custom_resources.html) to configure\n IPFS)\n\n### Cookbook dependencies\n\n- `ark` to download and uncompress the Go IPFS package\n\n## Usage\n\n### ipfs::default\n\nJust include `ipfs` in your node's `run_list`:\n\n```json\n{\n \"name\":\"my_node\",\n \"run_list\": [\n \"recipe[ipfs]\"\n ]\n}\n```\n\n## Attributes\n\n- `node.['ipfs']['version']` - the Go IPFS version to download from the official\nsite (64bit)\n- `node['ipfs']['checksum']` - the SHA256 checksum for the package\n- `node['ipfs']['config']['swarm']['addr_filter']` - the network ranges to not\nconnect to. This will stop platforms like Hetzner to block your server\n(https://github.com/ipfs/go-ipfs/issues/1226)\n\n## Resources\n\n`ipfs_config` sets the config. Supports hashes, arrays, booleans and strings.\nDoes not change anything if the config already has that value, and restarts\nthe server automatically\n\n```ruby\nipfs_config \"Gateway.Writable\" do\n value \"true\"\n end\n```\n\n## Running the specs and integrations tests\n\nInstall the latest [Chef DK](https://downloads.chef.io/chefdk).\n\n```\nchef exec delivery local all # Run the linting check, syntax check and unit tests\nkitchen verify # Run the integration tests for Ubuntu 16.04, 18.06 and Debian 9\n```\n\n## License and Authors\n\nAuthors: Kosmos Developers mail@kosmos.org\nCopyright: 2018, [Kosmos Developers](https://kredits.kosmos.org/)\n\n```\nUnless otherwise noted, all files are released under the MIT license, possible\nexceptions will contain licensing information in them.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n```\n",
"maintainer": "Kosmos Developers",
"maintainer_email": "mail@kosmos.org",
"license": "MIT",
@ -11,23 +11,16 @@
"dependencies": {
"ark": ">= 0.0.0"
},
"recommendations": {
},
"suggestions": {
},
"conflicting": {
},
"providing": {
},
"replacing": {
},
"attributes": {
},
"groupings": {
},
"recipes": {
},
"version": "0.1.0",
"version": "0.1.1",
"source_url": "https://github.com/67P/ipfs-cookbook",
"issues_url": "https://github.com/67P/ipfs-cookbook/issues",
"privacy": false,
@ -42,4 +35,4 @@
"gems": [
]
}
}

View File

@ -0,0 +1,15 @@
name 'ipfs'
maintainer 'Kosmos Developers'
maintainer_email 'mail@kosmos.org'
license 'MIT'
description 'Installs/Configures ipfs'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '0.1.1'
supports %w(ubuntu debian)
depends 'ark'
source_url 'https://github.com/67P/ipfs-cookbook'
issues_url 'https://github.com/67P/ipfs-cookbook/issues'
chef_version '>= 12.14' if respond_to?(:chef_version)

View File

@ -15,7 +15,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/bin
DESC="ipfs-cluster daemon"
NAME=ipfs-cluster
DAEMON=/usr/local/bin/ipfs-cluster-service
DAEMON_ARGS="daemon"
DAEMON_ARGS="daemon --upgrade"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

View File

@ -2,7 +2,7 @@
Description=Start ipfs-cluster
[Service]
ExecStart=/usr/local/bin/ipfs-cluster-service daemon
ExecStart=/usr/local/bin/ipfs-cluster-service daemon --upgrade
User=ipfs
Group=ipfs
Restart=always

View File

@ -0,0 +1,18 @@
name 'logrotate'
maintainer 'Steven Danna'
maintainer_email 'steve@chef.io'
license 'Apache 2.0'
description 'Installs logrotate package and provides a definition for logrotate configs'
long_description 'Installs the logrotate package, manages /etc/logrotate.conf, and provides a logrotate_app definition.'
version '2.2.0'
recipe 'logrotate', 'Installs logrotate package'
provides 'logrotate_app'
%w(amazon centos debian fedora redhat scientific solaris2 ubuntu).each do |platform|
supports platform
end
source_url 'https://github.com/stevendanna/logrotate'
issues_url 'https://github.com/stevendanna/logrotate/issues'
chef_version '>= 12.5' if respond_to?(:chef_version)

View File

@ -3,7 +3,7 @@
"description": "Installs/Configures mediawiki",
"long_description": "Installs/Configures mediawiki",
"maintainer": "pulsation",
"maintainer_email": "YOUR_EMAIL",
"maintainer_email": "",
"license": "BSD",
"platforms": {
"centos": ">= 0.0.0",
@ -18,15 +18,8 @@
"mysql2_chef_gem": ">= 0.0.0",
"php-fpm": ">= 0.0.0"
},
"recommendations": {
},
"suggestions": {
},
"conflicting": {
},
"providing": {
},
"replacing": {
},
"attributes": {
"mediawiki/version": {
@ -126,8 +119,6 @@
]
}
},
"groupings": {
},
"recipes": {
"mediawiki::default": "Installs/Configures mediawiki"
},
@ -144,4 +135,4 @@
"gems": [
]
}
}

View File

@ -0,0 +1,59 @@
name 'mediawiki'
maintainer 'pulsation'
license 'BSD'
description 'Installs/Configures mediawiki'
long_description 'Installs/Configures mediawiki'
version '0.3.0'
depends 'apache2'
depends 'php'
depends 'mysql'
depends 'database'
depends 'chef_nginx'
depends 'mysql2_chef_gem'
depends 'php-fpm'
attribute 'mediawiki/version',
:display_name => "Mediawiki version",
:type => "string",
:required => "recommended"
attribute 'mediawiki/database/name',
:display_name => "Database name",
:type => "string",
:required => "optional"
attribute 'mediawiki/database/user',
:display_name => "Database user",
:type => "string",
:required => "optional"
attribute 'mediawiki/database/password',
:display_name => "Database password",
:type => "string",
:required => "optional"
attribute 'mediawiki/server_name',
:display_name => "Server name",
:type => "string",
:required => "recommended"
attribute 'mediawiki/sciptpath',
:display_name => "Script path",
:type => "string",
:required => "optional"
attribute 'mediawiki/admin_user',
:display_name => "Admin user",
:type => "string",
:required => "recommended"
attribute 'mediawiki/admin_password',
:display_name => "Admin password",
:type => "string",
:required => "recommended"
recipe "mediawiki::default", "Installs/Configures mediawiki"
supports "centos"
supports "debian"

View File

@ -0,0 +1,10 @@
name 'rbac'
maintainer 'Eric Saxby'
maintainer_email 'sax@livinginthepast.org'
license 'MIT'
description 'Allows delegation of service management to users with Solaris Role Based Access Control (RBAC)'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '1.0.3'
supports 'solaris2'
supports 'smartos'

View File

@ -12,19 +12,11 @@
"dependencies": {
"apt": ">= 0.0.0"
},
"recommendations": {
},
"suggestions": {
},
"conflicting": {
},
"providing": {
},
"replacing": {
},
"attributes": {
},
"groupings": {
},
"recipes": {
"redis::default": "Sets up ppa apt repository",
@ -44,4 +36,4 @@
"gems": [
]
}
}

View File

@ -0,0 +1,15 @@
name "redis"
maintainer "Phil Cohen"
maintainer_email "github@phlippers.net"
license "MIT"
description "Installs and configures Redis"
version "0.5.6"
recipe "redis::default", "Sets up ppa apt repository"
recipe "redis::server", "Installs redis server"
recipe "redis::client", "Installs redis client"
supports "debian"
supports "ubuntu"
depends "apt"

13
cookbooks/smf/metadata.rb Normal file
View File

@ -0,0 +1,13 @@
name 'smf'
maintainer 'Eric Saxby'
maintainer_email 'sax@livinginthepast.org'
license 'MIT'
description 'A light weight resource provider (LWRP) for SMF (Service Management Facility)'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '2.2.8'
supports 'smartos'
depends 'rbac', '>= 1.0.1'
suggests 'resource-control' # For managing Solaris projects, when setting project on a manifest

View File

@ -0,0 +1,27 @@
name 'timezone_iii'
maintainer 'Corey Hemminger'
maintainer_email 'hemminger@hotmail.com'
license 'Apache-2.0'
description 'Configures the timezone for node'
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version '1.0.4'
chef_version '>= 12.1' if respond_to?(:chef_version)
# The `issues_url` points to the location where issues for this cookbook are
# tracked. A `View Issues` link will be displayed on this cookbook's page when
# uploaded to a Supermarket.
#
issues_url 'https://github.com/Stromweld/timezone_iii/issues'
# The `source_url` points to the development reposiory for this cookbook. A
# `View Source` link will be displayed on this cookbook's page when uploaded to
# a Supermarket.
#
source_url 'https://github.com/Stromweld/timezone_iii'
%w(amazon centos debian fedora gentoo ubuntu pld redhat windows).each do |os|
supports os
end
replaces 'timezone'
replaces 'timezone-ii'

View File

@ -19,7 +19,7 @@
"openssl": ">= 0.0.0",
"apache2": ">= 2.0.0",
"database": ">= 1.6.0",
"mysql": ">= 6.0.0",
"mysql": ">= 6.0",
"mysql2_chef_gem": ">= 1.0.1",
"build-essential": ">= 0.0.0",
"iis": ">= 1.6.2",
@ -28,15 +28,8 @@
"php-fpm": ">= 0.0.0",
"selinux": "~> 0.7"
},
"recommendations": {
},
"suggestions": {
},
"conflicting": {
},
"providing": {
},
"replacing": {
},
"attributes": {
"WordPress/version": {
@ -241,8 +234,6 @@
]
}
},
"groupings": {
},
"recipes": {
"WordPress": "Installs and configures WordPress LAMP stack on a single system",
"WordPress::languages": "Install WordPress translation files"
@ -260,4 +251,4 @@
"gems": [
]
}
}

View File

@ -0,0 +1,100 @@
name "wordpress"
maintainer "Brint O'Hearn"
maintainer_email "cookbooks@opscode.com"
license "Apache 2.0"
description "Installs/Configures WordPress"
long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
version "3.1.0"
recipe "WordPress", "Installs and configures WordPress LAMP stack on a single system"
recipe "WordPress::languages", "Install WordPress translation files"
%w{ php openssl }.each do |cb|
depends cb
end
depends "apache2", ">= 2.0.0"
depends "database", ">= 1.6.0"
depends "mysql", ">= 6.0"
depends "mysql2_chef_gem", ">= 1.0.1"
depends "build-essential"
depends "iis", ">= 1.6.2"
depends "tar", ">= 0.3.1"
depends "chef_nginx"
depends "php-fpm"
depends 'selinux', '~> 0.7'
%w{ debian ubuntu windows centos redhat scientific oracle }.each do |os|
supports os
end
attribute "WordPress/version",
:display_name => "WordPress download version",
:description => "Version of WordPress to download from the WordPress site or 'latest' for the current release.",
:default => "latest"
attribute "WordPress/checksum",
:display_name => "WordPress tarball checksum",
:description => "Checksum of the tarball for the version specified.",
:default => ""
attribute "WordPress/dir",
:display_name => "WordPress installation directory",
:description => "Location to place WordPress files.",
:default => "/var/www/wordpress"
attribute "WordPress/db/database",
:display_name => "WordPress MySQL database",
:description => "WordPress will use this MySQL database to store its data.",
:default => "wordpressdb"
attribute "WordPress/db/user",
:display_name => "WordPress MySQL user",
:description => "WordPress will connect to MySQL using this user.",
:default => "wordpressuser"
attribute "WordPress/db/password",
:display_name => "WordPress MySQL password",
:description => "Password for the WordPress MySQL user.",
:default => "randomly generated"
attribute "WordPress/keys/auth",
:display_name => "WordPress auth key",
:description => "WordPress auth key.",
:default => "randomly generated"
attribute "WordPress/keys/secure_auth",
:display_name => "WordPress secure auth key",
:description => "WordPress secure auth key.",
:default => "randomly generated"
attribute "WordPress/keys/logged_in",
:display_name => "WordPress logged-in key",
:description => "WordPress logged-in key.",
:default => "randomly generated"
attribute "WordPress/keys/nonce",
:display_name => "WordPress nonce key",
:description => "WordPress nonce key.",
:default => "randomly generated"
attribute "WordPress/server_aliases",
:display_name => "WordPress Server Aliases",
:description => "WordPress Server Aliases",
:default => "FQDN"
attribute "WordPress/languages/lang",
:display_name => "WordPress WPLANG configulation value",
:description => "WordPress WPLANG configulation value",
:default => ""
attribute "WordPress/languages/version",
:display_name => "Version of WordPress translation file",
:description => "Version of WordPress translation file",
:default => ""
attribute "WordPress/languages/projects",
:display_name => "WordPress translation projects",
:description => "WordPress translation projects",
:type => "array",
:default => ["main", "admin", "admin/network", "cc"]

View File

@ -0,0 +1,9 @@
name 'yum-epel'
maintainer 'Chef'
maintainer_email 'Sean OMeara <someara@getchef.com>'
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'

View File

@ -7,6 +7,8 @@
# All rights reserved - Do Not Redistribute
#
node.override['ipfs']['cluster']['version'] = '0.9.0'
include_recipe "ipfs::cluster"
include_recipe "ipfs::cluster_service"

View File

@ -7,6 +7,8 @@
# All rights reserved - Do Not Redistribute
#
node.override['ipfs']['version'] = '0.4.18'
node.override['ipfs']['checksum'] = '21e6c44c0fa8edf91a727f1e8257342a4c3a879462e656861b0a179e1f6a03f6'
include_recipe "ipfs"
# Configure ipfs