~michael.nelson/charms/precise/elasticsearch/add-provides-elasticsearch

« back to all changes in this revision

Viewing changes to README.md

  • Committer: Michael Nelson
  • Date: 2014-02-20 15:40:09 UTC
  • mfrom: (7.1.8 allow-install-from-package)
  • Revision ID: michael.nelson@canonical.com-20140220154009-0opm9njl5l795l8q
Allow install from an archive package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
    juju bootstrap
6
6
    juju deploy --repository=../.. local:elasticsearch
7
7
 
8
 
Note: before this charm goes in the charm store, it'll
9
 
need to be renamed.
10
 
 
11
8
You can add more units and they will discover each other and
12
9
join the cluster.
13
10
 
47
44
## Downloading ElasticSearch
48
45
 
49
46
By default, the charm will download (and check) the elasticsearch
50
 
debian package during install but you can also include the package at
51
 
files/elasticsearch-0.90.7.deb and it will not need to be downloaded during
52
 
install. To make that easier, you can download the default version into 
53
 
 
54
 
    make charm-payload
55
 
 
56
 
## TODO
57
 
 * Add other ElasticSearch config options as needed.
 
47
debian package during the install hook but this is not ideal in
 
48
production environments (you don't want the deploy to fail because a
 
49
third-party site is down). For this reason, the charm provides two other
 
50
methods for installing elasticsearch:
 
51
 
 
52
First, you can ensure the versioned deb package as available at
 
53
files/elasticsearch-0.90.7.deb as part of your build step, and it will not need
 
54
to be downloaded during install. To make that easier, you can download the
 
55
default version into
 
56
 
 
57
    make pre-download-deb
 
58
 
 
59
The other alternative is to ensure a relevant debian package is available
 
60
in an archive that you've configured via the execd_preinstall in the install
 
61
hook, and set the archive-package-name config option. This will ensure that
 
62
no download is required either during a build phase or the install hook,
 
63
other than from your archive.