some vagrant/ansible fixes

This commit is contained in:
Noah Levitt 2016-10-14 13:47:54 -07:00
parent 3627209be1
commit 5a373466a3
7 changed files with 21 additions and 10 deletions

View File

@ -1,7 +1,7 @@
ansible_ssh_private_key_file=.vagrant/machines/10.9.9.9/virtualbox/private_key
[all:vars]
warcs_dir=/vagrant/warcs
brozzler_pip_name='-e git+file:///brozzler'
brozzler_pip_name='-e /brozzler'
user=vagrant
### possible values for a prod deployment
# brozzler_pip_name=brozzler # get it from pypi
# brozzler_pip_name=git+https://github.com/internetarchive/brozzler.git#egg=brozzler

View File

@ -3,6 +3,8 @@
apt_repository: repo='deb http://archive.canonical.com/ubuntu trusty partner'
state=present
become: true
- apt: update_cache=yes
become: true
- name: ensure required packages are installed
become: true
apt: name={{item}} state=present

View File

@ -19,7 +19,12 @@
## command: python3 setup.py install chdir=/tmp/pip-8.1.2
## creates=/usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg/pip/__init__.py
## become: true
- command: id {{user}}
register: id_user
ignore_errors: true
changed_when: false
- name: ensure service user {{user}} exists
user: name={{user}} system=yes createhome=no home=/nonexistent
shell=/usr/sbin/nologin
become: true
when: id_user|failed

View File

@ -3,11 +3,11 @@ collections:
brozzler:
index_paths: !!python/object:brozzler.pywb.RethinkCDXSource
db: brozzler
servers:
{% for node in groups['rethinkdb'] %}
- {{node}}
{% endfor %}
table: captures
servers:
{% for node in groups['rethinkdb'] %}
- {{node}}
{% endfor %}
enable_auto_colls: false
enable_cdx_api: true
framed_replay: true

View File

@ -6,6 +6,8 @@
apt_repository: repo='deb http://download.rethinkdb.com/apt trusty main'
state=present
become: true
- apt: update_cache=yes
become: true
- name: ensure rethinkdb package is installed
apt: name=rethinkdb state=present
become: true

View File

@ -32,7 +32,7 @@ def find_package_data(package):
setuptools.setup(
name='brozzler',
version='1.1b7.dev97',
version='1.1b7.dev98',
description='Distributed web crawling with browsers',
url='https://github.com/internetarchive/brozzler',
author='Noah Levitt',

View File

@ -1,5 +1,7 @@
#!/bin/bash
cd $(dirname "${BASH_SOURCE[0]}")
echo service status:
vagrant ssh -- 'status warcprox ;
status Xvnc ;
@ -8,5 +10,5 @@ vagrant ssh -- 'status warcprox ;
status vnc-websock'
echo
vagrant ssh -- 'source brozzler-ve34/bin/activate && pip install pytest'
vagrant ssh -- 'source brozzler-ve34/bin/activate && py.test -v -s /brozzler/tests'
vagrant ssh -- 'source /opt/brozzler-ve34/bin/activate && pip install pytest'
vagrant ssh -- 'source /opt/brozzler-ve34/bin/activate && py.test -v -s /brozzler/tests'