stancel.git-download-suitecrm

git-download-suitecrm

Ansible 角色,用于下载和安装选定版本的 SuiteCRM。

要求

需要先安装并配置好 MySQL / MariaDB / Percona Server,以及你的网络服务器(Apache 或 Nginx)。默认假设在基于 Debian 的 Linux(如 Ubuntu、Debian 等)上,默认的网络服务器根目录为 /var/www/html 来安装 SuiteCRM 软件。如果情况不同,你可以覆盖这些默认变量。

角色变量

选择你要下载和安装的 git 标签版本。没有默认值。

    git_download_suitecrm_tagged_release_version: "v7.10.9"

下载和安装应用程序时使用的默认 git 仓库。这个是默认值,但如果你有分叉或修改过的 git 仓库,也可以更改。

    git_download_suitecrm_git_repo: "https://github.com/salesagility/SuiteCRM.git"

如果你使用自己的分叉仓库并想使用分支而不是标签版本,可以填写一个值并注释掉 git_download_suitecrm_tagged_release_version 变量。默认值为空字符串 ""。

    git_download_suitecrm_git_branch: "my-super-special-branch"

设置应用程序时要创建的数据库。默认值为 "suitecrm"。

    git_download_suitecrm_db_name: "suitecrm"

在应用程序中使用的 DB 用户。没有默认值。

    git_download_suitecrm_db_user: "suitecrmDbUser"

为创建的 DB 用户设置的密码。没有默认值。

    git_download_suitecrm_db_password: "some-really-secure-password"

你的 MySQL、MariaDB 或 Percona Server 数据库实例的 root 密码, 用于创建数据库和用户。

    git_download_suitecrm_mysql_root_password: "your MySQL root password"

文件将被存储和由网络服务器提供服务的文档根目录或文件路径。默认路径为 /var/www/html,假设你在 Debian 或 Ubuntu 上运行 Apache2。

第一部分 => git_download_suitecrm_web_files_path: 是你的网络服务器的根目录

第二部分 => git_download_suitecrm_web_directory_for_application: 是根目录下的应用程序目录

!注意起始斜杠 / !

    git_download_suitecrm_web_files_path: "/var/www"
    git_download_suitecrm_web_directory_for_application: "/html"

由网络服务器使用的 Linux 用户名。默认值为 www-data,假设在 Debian 或 Ubuntu Linux 上使用 Apache。

    git_download_suitecrm_web_user: "www-data"

由网络服务器使用的 Linux 组。默认值为 www-data,假设在 Debian 或 Ubuntu Linux 上使用 Apache。

    git_download_suitecrm_web_group: "www-data"

通过 apt 管理软件包,可以禁用软件包的安装。

    git_download_suitecrm_manage_packages: true

php.ini 配置,允许或不允许这些项的设置,如果你的服务器已配置为不同的值非常有用,默认值为 true。

    git_download_suitecrm_configure_mysqli_allow_local_infile: true
    git_download_suitecrm_configure_memory_limit: true
    git_download_suitecrm_configure_post_max_size: true
    git_download_suitecrm_configure_upload_max_filesize: true
    git_download_suitecrm_configure_max_input_time: true
    git_download_suitecrm_configure_max_execution_time: true
    git_download_suitecrm_configure_php_timezone: true

是否安装 Composer,默认是 true,如果你已经安装了 Composer,可以禁用它。

    git_download_suitecrm_install_composer: true

这是一个“新安装”、“升级”还是“恢复”安装?“新安装”和“升级”将从 Git 安装文件,“恢复”跳过任何 Git 部署,期待后续角色将文件恢复到所需目录。默认为“新安装”。

    git_download_suitecrm_installation_type: "new"

该实例将用于“开发”、“测试”还是“生产”环境?只有“生产”环境会部署 SuiteCRM 调度程序。默认为“生产”。

    git_download_suitecrm_environment_type: "prod"

依赖关系

示例 Playbook

defaults/main.yml 复制并编辑为你的 vars/main.yml

- hosts: your_new_crm_server
  vars_files:
    - vars/main.yml
  roles:
    - stancel.git-download-suitecrm

或者直接在 Playbook 中传递变量

- hosts: your_new_crm_server 
  vars:
    git_download_suitecrm_tagged_release_version: "v7.10.9"
    git_download_suitecrm_db_user: "suitecrmDbUser"
    git_download_suitecrm_db_password: "some-really-secure-password"
    git_download_suitecrm_mysql_root_password: "your MySQL root password"
  roles:
    - stancel.git-download-suitecrm

许可证

GPLv3

作者信息

Brad Stancel

贡献者

Bouteillier Nicolas

关于项目

Downloads and installs a chosen release of SuiteCRM to the default document root for the Apache webserver, or other chosen path/document root directory

安装
ansible-galaxy install stancel.git-download-suitecrm
许可证
Unknown
下载
93
拥有者