def install(): with sudo(): from blues import java java.install() version = blueprint.get('version', '1.0') info('Adding apt repository for {} version {}', 'elasticsearch', version) repository = 'http://packages.elasticsearch.org/elasticsearch/{0}/debian stable main'.format(version) debian.add_apt_repository(repository) info('Adding apt key for', repository) debian.add_apt_key('http://packages.elasticsearch.org/GPG-KEY-elasticsearch') debian.apt_get('update') # Install elasticsearch (and java) info('Installing {} version {}', 'elasticsearch', version) debian.apt_get('install', 'elasticsearch') # Install plugins plugins = blueprint.get('plugins', []) for plugin in plugins: info('Installing elasticsearch "{}" plugin...', plugin) install_plugin(plugin) # Enable on boot debian.add_rc_service('elasticsearch', priorities='defaults 95 10')
def install(): with sudo(): from blues import java java.install() version = blueprint.get('version', '1.0') info('Adding apt repository for {} version {}', 'elasticsearch', version) repository = 'http://packages.elasticsearch.org/elasticsearch/{0}/debian stable main'.format( version) debian.add_apt_repository(repository) info('Adding apt key for', repository) debian.add_apt_key( 'http://packages.elasticsearch.org/GPG-KEY-elasticsearch') debian.apt_get('update') # Install elasticsearch (and java) info('Installing {} version {}', 'elasticsearch', version) debian.apt_get('install', 'elasticsearch') # Install plugins plugins = blueprint.get('plugins', []) for plugin in plugins: info('Installing elasticsearch "{}" plugin...', plugin) install_plugin(plugin) # Enable on boot debian.add_rc_service('elasticsearch', priorities='defaults 95 10')
def install(): # Ensure Java is installed from blues import java java.install() # Create solr user, group and directories install_user() # Download and extract solr install_solr()
def install(install_java=True): with sudo(): if install_java: from blues import java java.install() version = blueprint.get('version', '0.13.3') info('Downloading Metabase v%s' % version) run('mkdir -p /etc/metabase/ && cd /etc/metabase/ && curl -O ' 'http://downloads.metabase.com/v%s/metabase.jar' % version)
def install(): """ Install Neo4j """ with sudo(): from blues import java java.install() version = blueprint.get('version', '2.2') info('Adding apt repository for {} version {}', 'neo4j', version) repository = 'http://debian.neo4j.org/repo stable/'.format(version) debian.add_apt_repository(repository) info('Adding apt key for', repository) debian.add_apt_key('http://debian.neo4j.org/neotechnology.gpg.key') debian.apt_get_update() debian.apt_get('install', 'neo4j')
def install(): with sudo(): from blues import java java.install() branch = blueprint.get('branch', '6.x') add_elastic_repo(branch) version = blueprint.get('version', 'latest') info('Installing {} version {}', 'elasticsearch', version) package = 'elasticsearch' + ('={}'.format(version) if version != 'latest' else '') debian.apt_get('install', package) # Install plugins plugins = blueprint.get('plugins', []) for plugin in plugins: info('Installing elasticsearch "{}" plugin...', plugin) install_plugin(plugin) # Enable on boot debian.add_rc_service('elasticsearch', priorities='defaults 95 10')