Skip to main content

Easy deployment of Apache Guacamole.

Project description

guacamole-compose

docker-compose script for running apache guacamole.

Overview

This set of scripts and templates automates the deployment process for guacamole.

  • Generates the docker-compose script.
  • Generates the mysql initialization script, to configure a new mysql database.
  • Generates an nginx configuration.
  • Has parameter options and templates, so you should just have to change a single parameter file for each deployment.
  • Adds users to mysql from ldap.
  • Configures connections from ldap.
  • Configures additional manual connections from the paramters.yaml file.

Requirements

  • docker
  • docker-compose
  • python3 (3.9)
  • pip

Python Packages

  • guacamole-compose

  • Note, guacamole-compose will install the following packages:

    • sqlalchemy
    • docker
    • ldap3
    • pymysql
    • dnspython (v2.0.0)
    • pyyaml
    • cryptography
    • yamlarg
    • cffi

Usage

sudo python3.9 -m pip install --upgrade guacamole-compose
sudo guacamole-compose --init
sudo guacamole-compose --deploy --ldap

% guacamole-compose --help
usage: guacamole-compose [-h] [--init] [--clean] [--deploy] [--nginx] [--ldap]

optional arguments:
  -h, --help  show this help message and exit
  --init      Initialize the directory and files required.
  --clean     Clean the directories automatically created during deployment.
  --deploy    Generate configurations and deploy guacamole using docker-compose.
  --nginx     Generate the nginx.conf file located at./nginx/conf/nginx.conf.
  --ldap      Used to create/update connections, groups, and permissions using ldap.

Cleanup of shared directory, and periodic user sync.

Note: Check your python executable path, and modify for the cron entry below. Or just use 'python3.9' in the cron job, instead of the full path.

python3.9
import sys
print(sys.executable)
crontab -e

0 0 * * * find /root/shared/* -mtime +6 -type f -delete

Updating the package and uploading to pypi

Make sure the version information is updated before uploading. You cannot upload 2 copies with the same version.

sudo rm -r dist
python3.9 setup.py bdist_wheel --universal
twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

guacamole_compose-0.1.0-py2.py3-none-any.whl (20.3 MB view details)

Uploaded Python 2Python 3

File details

Details for the file guacamole_compose-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: guacamole_compose-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 20.3 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.9.1

File hashes

Hashes for guacamole_compose-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f88bce705db5f3140bbb206a48954dc36761a89861643fe480683f2b8bce5db4
MD5 347d414c688fc40f74e59ee52f13acd3
BLAKE2b-256 de11260b0889bc8687def0685f6a097874e9652c13de029146f0ee3b5a012a78

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page