Pynguins

genconf

GENERAL SETTINGS

-h, --help            show this help message and exit
-c CONF_FILE, --conf-file CONF_FILE
                      INI file with various configuration. Defaults to file
                      "config.ini" in current directory.
-j JSON_FILE, --json-file JSON_FILE
                      JSON database file with accounts and domains. Defaults
                      to file "database.json" in current directory.
-o OUTPUT_FOLDER, --output-folder OUTPUT_FOLDER
                      Folder to output generated files to. The folder will
                      be created if missing. Defaults to folder "output" in
                      current directory.
-d, --delete-output-folder
                      Remove all files and folders in output folder first.

GENERATE STUFF

-pv, --generate-paster-virtual-hosts
                      PYTHON: Generate a paster virtual host INI file.
-z, --generate-zonefiles
                      DNS: Generate zone files for bind and nsd.
-n, --generate-nginx  WEB: Generate virtual hosts and other nginx
                      configuration.
-ap, --generate-apache
                      WEB: Generate apache virtual hosts.
-sw, --generate-web-ssl
                      SSL: Generate SSL certificates for HTTPS.
-sm, --generate-mail-ssl
                      SSL: Generate SSL certificates for mail.
-p, --generate-postfix
                      MAIL: Generate Postfix configuration files.

COMMANDS

-a, --generate-accounts
                      COMMANDS: Generate helpful bash scripts for managing
                      accounts.
-aa USERNAME, --add-account USERNAME
                      COMMANDS: Add a unix account.
-da USERNAME, --delete-account USERNAME
                      COMMANDS: Delete a unix account.

CONFIG

DOMAIN

-cad DOMAIN, --config-add-domain DOMAIN
                      CONFIG: Add a domain to JSON database.
-cdd DOMAIN, --config-delete-domain DOMAIN
                      CONFIG: Delete a domain from JSON database.
-as DOMAIN SUBDOMAIN, --config-add-sub-domain DOMAIN SUBDOMAIN
                      COMMANDS: Add a unix account.
-ds DOMAIN SUBDOMAIN, --config-delete-sub-domain DOMAIN SUBDOMAIN
                      CONFIG: Delete a sub-domain from JSON database.

USERS

-cau USERNAME DOMAIN, --config-add-user USERNAME DOMAIN
                      CONFIG: Add a user to JSON database.
-cdu USERNAME, --config-delete-user USERNAME
                      CONFIG: Delete a user from JSON database.
-uc USERNAME, --config-user-config USERNAME
                      CONFIG: Get configuration information about a user.
-cl, --config-list-users
                      CONFIG: List all users in JSON database.
-cd, --config-list-domains
                      CONFIG: List all domains in JSON database.
-cs DOMAIN, --config-list-sub-domains DOMAIN
                      CONFIG: List all sub-domains in DOMAIN from JSON
                      database.

GENERAL CONFIG

-uf USERNAME FULLNAME, --config-update-fullname USERNAME FULLNAME
                      CONFIG: Change a users full name.
-ud USERNAME DOMAIN, --config-update-domain USERNAME DOMAIN
                      CONFIG: Change a users domain.
-ue USERNAME EMAIL, --config-update-email USERNAME EMAIL
                      CONFIG: Change a users email.

WSGI

-uw USERNAME MODULENAME, --config-update-wsgi-module USERNAME MODULENAME
                      CONFIG: Change a users python module name for WSGI.
-uwd USERNAME DIR, --config-update-wsgi-dir USERNAME DIR
                      CONFIG: Change a users python directory for WSGI.
-ew USERNAME, --config-enable-wsgi USERNAME
                      CONFIG: Enable WSGI support for a user.
-dw USERNAME, --config-disable-wsgi USERNAME
                      CONFIG: Disable WSGI support for a user.

PROXY

-up USERNAME PORT, --config-update-proxy-port USERNAME PORT
                      CONFIG: Change a users proxy port.
-ex USERNAME, --config-enable-proxy USERNAME
                      CONFIG: Enable Proxy support for a user.
-dx USERNAME, --config-disable-proxy USERNAME
                      CONFIG: Disable Proxy support for a user.

PHP

-ep USERNAME, --config-enable-php USERNAME
                      CONFIG: Enable PHP support for a user.
-dp USERNAME, --config-disable-php USERNAME
                      CONFIG: Disable PHP support for a user.

DATABASE

-dl, --database-list-drivers
                      DATABASE: List supported database drivers, pass one of
                      these into the database commands.
-au DRIVER USERNAME, --database-add-user DRIVER USERNAME
                      DATABASE: Add a database user.
-du DRIVER USERNAME, --database-delete-user DRIVER USERNAME
                      DATABASE: Delete a database user.
-ad DRIVER DATABASE, --database-add-database DRIVER DATABASE
                      DATABASE: Add a database user.
-dd DRIVER DATABASE, --database-delete-database DRIVER DATABASE
                      DATABASE: Delete a database user.
-dt DRIVER USERNAME DATABASE, --database-user-to-database DRIVER USERNAME DATABASE
                      DATABASE: Associate a user with a database.
-lu DRIVER, --database-list-users DRIVER
                      DATABASE: List users.
-ld DRIVER, --database-list-databases DRIVER
                      DATABASE: List databases.

Comments | Gallery