Polemarch is service for orchestration infrastructure by ansible. Simply WEB gui for orchestration infrastructure by ansible playbooks.
Official site: https://gitlab.com/vstconsulting/polemarch
- scheduled tasks execution;
- share hosts, groups between projects;
- history of tasks execution with all details;
- easy configurable clustering for reliability and scalability:
- import Ansible projects from Git repository or tar archive;
- documentation: http://polemarch.readthedocs.io/en/latest/ ;
- groups of hosts and groups hierarchy;
- multiuser;
- responsive design;
Download rpm from official site: https://github.com/vstconsulting/polemarch/releases
Install it with command
sudo yum localinstall polemarch-0.0.2-0.x86_64.rpm.
Run services with commands
sudo service polemarchweb start sudo service polemarchworker start
That's it. Polemarch web panel on 8080 port. Default administrative account is admin/admin.
Note: If you using authentication by password at some of your machines
managed by Polemarch, you also must install sshpass
package because it
required for ansible to autheticate via ssh by password. It available in
EPEL for Red Hat/CentOS. Also you can use specify connection
command line
argument during playbook run as paramiko
. When ansible uses paramiko to
make ssh connection, sshpass
not necessary.
Download deb from official site: https://github.com/vstconsulting/polemarch/releases
Install it with command
sudo dpkg -i polemarch_0.0.2-1_amd64.deb || sudo apt-get install -f
Run services with commands
sudo service polemarchweb start sudo service polemarchworker start
That's it. Polemarch web panel on 8080 port. Default administrative account is admin/admin.
After you install Polemarch by instructions above you can use it without any further configurations. Interface is pretty intuitive and common for any web application.
Default installation is suitable for most simple and common cases, but Polemarch is highly configurable system. If you need something more advanced (scalability, dedicated DB, custom cache, logging or directories) you can always configure Polemarch like said in documentation at http://polemarch.readthedocs.io/en/latest/
If you found some bug in the codebase or documentation or want some improvement in project, you can easily do it myself. Here is how to proceed:
1. Create (or find if already exist) an issue at https://gitlab.com/vstconsulting/polemarch for problem you want to solve. Maybe somebody is working on that or maybe during discussion will become clear that is not a problem.
2. Make your fork of our repository and clone it to your local development machine.
git clone https://gitlab.com/cepreu/polemarch.git
Create a branch for your work named with number of issue:
cd polemarch git checkout -b issue_1
4. To investigate problem, you probably must be able to run cloned project. To do so install required dependencies. See http://polemarch.readthedocs.io/en/latest/pipinstall.html for more detailed explanation, which dependencies and why they are needed. System packages (example for Ubuntu 16.04):
sudo apt-get install apache2 apache2-dev python-pip python-dev libffi-dev libssl-dev git sshpass
Python dependencies:
pip install -r requirements-git.txt -r requirements.txt -r requirements-doc.txt tox --user
Initialize empty database with all required stuff (tables and so on) for Polemarch:
./polemarchctl migrate
Run Polemarch and investigate with your debugger how it works to find out what need to be changed:
# run web-server ./polemarchctl webserver -P 8080
# run worker ~/.local/bin/celery -A polemarch.celery_app:app worker -l INFO -B -S django
You may also want to change
./polemarch/main/settings.ini
to enabledebug
setting and to changelog_level
for easy debugging.Write tests for your changes and changes itself (we prefer TDD approach). Execute those tests with all other Polemarch's tests by:
make test
This command also doing PEP8 check of codebase and static analyzing with pylint and flake. Make sure that your code meet those checks.
Reflect your changes in documentation (if needed). Build documentation, read what you changed and make sure that all right. To build documentation use:
make docs
Make commit. We prefer commit messages with briefly explains your changes. Bad: "issue #1" or "fix". Good: "fix end slashes for GET in docs".
Create pull request and refer it in issue.
ATTENTION: Keep in mind, that we expect that all your changes are MIT-licensed to prevent any license problems to project in future.
That's it. Thank you for your contribution.