Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demonstrate how to override package_checksum #351

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 12 additions & 6 deletions README.md
Expand Up @@ -68,8 +68,9 @@ elasticsearch_install 'my_es_installation' do
owner 'elasticsearch' # user and group to install under
group 'elasticsearch'

tarball_url "https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.5.0.tar.gz"
tarball_checksum "acf572c606552bc446cceef3f8e93814a363ba0d215b323a2864682b3abfbe45"
tarball_url "https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.7.0.tar.gz"
# sha256
tarball_checksum "6fabed2db09e1b88587df15269df328ecef33e155b3c675a2a6d2299bda09c95"

action :install # could be :remove as well
end
Expand All @@ -78,24 +79,29 @@ end
```
elasticsearch_install 'my_es_installation' do
type :tarball # type of install
version '1.5.0'
version '1.7.0'
# sha256
package_checksum '6fabed2db09e1b88587df15269df328ecef33e155b3c675a2a6d2299bda09c95'
action :install # could be :remove as well
end
```

```
elasticsearch_install 'my_es_installation' do
type :package # type of install
package_url "https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.5.0.deb"
package_checksum "15a02a2bea74da2330bb78718efb3a8f83a2b2e040a6ee859e100a6556981f36"
package_url "https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.7.0.deb"
# sha256
package_checksum "ce0db2227cbf3a50f4acf74b9f1fa75e7457f72e450b933e279e5db3bc14ce8e"
action :install # could be :remove as well
end
```

```
elasticsearch_install 'my_es_installation' do
type :package # type of install
version "1.5.0"
version "1.7.0"
# sha256
package_checksum "ce0db2227cbf3a50f4acf74b9f1fa75e7457f72e450b933e279e5db3bc14ce8e"
action :install # could be :remove as well
end
```
Expand Down