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

Add Ansible deploy #38

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
4 changes: 2 additions & 2 deletions commander/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ verify_ssl = true
name = "pypi"

[packages]
dronekit = "*"
dronekit-sitl = "*"
pyserial = "*"
pyzmq = "*"
tornado = "*"
dronekit = {file = "https://github.com/dronekit/dronekit-python.git"}

[dev-packages]
"flake8" = "*"
Expand All @@ -18,4 +18,4 @@ pylint = "<2.0.0"
pytest = "*"

[requires]
python_version = "2.7"
python_version = "3.6"
300 changes: 133 additions & 167 deletions commander/Pipfile.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion commander/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def start_sitl_rover():
return sitl


@pytest.fixture
@pytest.fixture(scope="module")
def connection_parameters():
connection_string = settings.DEFAULT_SERIAL_PORT
baud_rate = settings.DEFAULT_BAUD_RATE
Expand Down
60 changes: 0 additions & 60 deletions commander/tests/test_engine.py~HEAD

This file was deleted.

2 changes: 1 addition & 1 deletion datamgr/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ pylint = "<2.0.0"
pytest = "*"

[requires]
python_version = "3.5"
python_version = "3.6"
135 changes: 63 additions & 72 deletions datamgr/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions deploy/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Deploy commander, datamgr and mastermind

**You must add your public key to the host**

## Provision in production:

Add system dependencies for compiling Python 3 as well as some packages for
Ansible deployment.

```
$ ansible-playbook -i inventories/production/hosts provision.yml
```

## Deploy in production:

```
$ ansible-playbook -i inventories/production/hosts deploy.yml
```
5 changes: 5 additions & 0 deletions deploy/ansible.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[defaults]
retry_files_enabled = False

[ssh_connection]
ssh_args = -F ssh_config
Loading