GithubHelp home page GithubHelp logo

ansible-hestiacp's Introduction

Ifgy - Ansible-HestiaCP

This is a HestiaCP Control Panel installer based on ansible role.

Tests are built in Molecule with Vagrant.

This code is a fork of an excelent work developed by https://github.com/softasap/sa-box-vestacp

Usage

Example of usage:

Simple

- { role: "ansible_hestiacp" }

Advanced

- {
    role: "ansible_hestiacp",
    hestia_hostname: "{{ inventory_hostname }}",
    hestia_email: "[email protected]",
    hestia_password: "password",
    hestia_port: 8083,
    hestia_lang: en,
    option_apache: yes,
    option_phpfpm: no,
    option_multiphp: yes,
    option_vsftpd: yes,
    option_proftpd: no,
    option_named: yes,
    option_mysql: no,
    option_mysql8: yes,
    option_postgresql: no,
    option_exim: yes,
    option_dovecot: yes,
    option_sieve: no,
    option_clamav: yes,
    option_spamassassin: yes,
    option_iptables: yes,
    option_fail2ban: yes,
    option_quota: no,
    option_api: yes,
  }

Usage with ansible galaxy workflow

If you installed the ansible_hestiacp role using the command:

    $ ansible-galaxy install ifgy.ansible_hestiacp

the role will be available in the folder library/ifgy.ansible_hestiacp Please adjust the path accordingly.

- { role: "ifgy.ansible_hestiacp" }

Development

Setup Environment

Basic setup of a development, first install molecule and install vagrant.

Step 1: Initialize a new scenario with Molecule

    molecule init scenario -d vagrant

Step 2: Configure your role’s dependencies

Edit files:

    $ vim /molecule/default/molecule.yml

Step 3: Test your role

    $ molecule create ## create the VM and prepare it
    $ molecule login ## log in to the VM and check the installation
    $ molecule converge  ## deploy your role - converge.yml
    $ molecule verify ## validate to production - verify.yml
    $ molecule destroy ## delete the VMs that we just created
    $ molecule test ## which will run all of the steps

References

Copyright and license

Code is dual licensed under the BSD 3 clause and the MIT License. Choose the one that suits you best.

ansible-hestiacp's People

Contributors

rodrigoprior avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.