Skip to content

Commit

Permalink
Adding elasticsearch to Vagrant box
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioperic committed Dec 3, 2014
1 parent c87abd6 commit 6ac373b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 2 additions & 1 deletion vagrant/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ puppet module install puppetlabs/apt --version 1.4.0 --force
puppet module install example42/php --version 2.0.17 --force
puppet module install puppetlabs/mysql --version 2.1.0 --force
puppet module install willdurand/composer --version 0.0.6 --force
puppet module install maestrodev/wget --version 1.2.3 --force
puppet module install maestrodev/wget --version 1.2.3 --force
puppet module install elasticsearch/elasticsearch --force
14 changes: 12 additions & 2 deletions vagrant/manifests/default.pp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
'vim',
'curl',
'git-core',
'mc'
'mc',
'openjdk-7-jre-headless'
]:
ensure => 'installed',
}
Expand Down Expand Up @@ -142,4 +143,13 @@
ensure => present,
charset => 'utf8',
require => Class['mysql::server'],
}
}

class { 'elasticsearch':
ensure => 'present',
package_url => 'https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.4.deb'
} ->
service { "elasticsearch-service":
name => 'elasticsearch',
ensure => running
}

0 comments on commit 6ac373b

Please sign in to comment.