-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added submit topology to playbook Ansible. Updated README
- Loading branch information
1 parent
80a2c84
commit b54f36e
Showing
8 changed files
with
125 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
- name: Install SpamScope | ||
hosts: develop | ||
gather_facts: yes | ||
become: true | ||
become_method: su | ||
|
||
tasks: | ||
- name: Submit spamscope_debug topology | ||
shell: "{{ spamscope_path }}/venv/bin/spamscope-topology submit -g spamscope_debug -p 100 -t 30 -e prod_vm" | ||
args: | ||
chdir: "{{ spamscope_path }}" | ||
when: spamscope_debug_submit == "true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
- import_playbook: 00_apache_storm_install.yml | ||
- import_playbook: 01_spamscope_install.yml | ||
- import_playbook: 01_spamscope_install.yml | ||
- import_playbook: 02_submit_spamscope_debug.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"serializer": "json", | ||
"topology_specs": "topologies/", | ||
"virtualenv_specs": "virtualenvs/", | ||
"use_virtualenv": "false", | ||
"envs": { | ||
"prod": { | ||
"user": "root", | ||
"nimbus": "localhost", | ||
"workers": [ | ||
"localhost" | ||
], | ||
"log": { | ||
"path": "/logs", | ||
"max_bytes": 5000000, | ||
"backup_count": 1, | ||
"level": "info" | ||
}, | ||
"use_virtualenv": false, | ||
"use_ssh_for_nimbus": false, | ||
"virtualenv_root": "" | ||
}, | ||
"prod_vm": { | ||
"user": "root", | ||
"nimbus": "localhost", | ||
"workers": [ | ||
"localhost" | ||
], | ||
"log": { | ||
"path": "/var/log/spamscope", | ||
"max_bytes": 5000000, | ||
"backup_count": 7, | ||
"level": "info" | ||
}, | ||
"use_virtualenv": true, | ||
"install_virtualenv": false, | ||
"use_ssh_for_nimbus": false, | ||
"virtualenv_root": "{{ spamscope_path }}/venv", | ||
"virtualenv_name": "" | ||
}, | ||
"debug": { | ||
"user": "fedelemantuano", | ||
"nimbus": "localhost", | ||
"workers": [ | ||
"localhost" | ||
], | ||
"log": { | ||
"path": "/tmp/logs/", | ||
"max_bytes": 5000000, | ||
"backup_count": 1, | ||
"level": "debug" | ||
}, | ||
"use_virtualenv": true, | ||
"install_virtualenv": false, | ||
"use_ssh_for_nimbus": false, | ||
"virtualenv_root": "", | ||
"virtualenv_name": "" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters