GithubHelp home page GithubHelp logo

prune998 / ansible-gitea Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alvaroaleman/ansible-gitea

0.0 1.0 0.0 60 KB

License: GNU Affero General Public License v3.0

Ruby 23.41% Shell 76.59%

ansible-gitea's Introduction

ansible-gitea

Synopsis

- hosts: all
  vars:
    gitea_database_name: gitea
    gitea_database_user: gitea
    gitea_database_password: "{{ vault_crypted_gitea_database_pass }}"
    gitea_salt: "{{ vault_crypted_gitea_salt }}"
    gitea_domain: git.example.com
    gitea_database_uri: mysql.example.com:3306
  roles:
    - alvaroaleman.gitea

Description

Simple role to install the Gogs git server.

Requirements

Role Variables

  • gitea_domain: The baseurl for linkgeneration mandatory
  • gitea_database_bassword: Database password for gitea mandatory
  • gitea_salt: The salt to use for password storage mandatory
  • gitea_database_uri: Uri to use for database connection (default: localhost:3306)
  • gitea_database_name: Name of the database gitea shall use (default: gitea)
  • gitea_database_user: Name of the database usre gitea shall use (default: gitea)
  • gitea_database_type: Type of gitea database (default: mysql)
  • gitea_http_port: Http port gitea shall bind to (default: 3000)
  • gitea_ssh_port: SSH port gitea shall bind to (default: 2222)
  • gitea_http_proto: Whether to prepend http or https to generated links (default: http)
  • gitea_logdir: The directory to write logs into (default: /var/run/gitea)
  • gitea_appini_template: Template to use fot gitea app.ini config file (default: builtin_app.ini.j2)
  • gitea_home: Folder in which to put gitea data (default: /srv/gitea)
  • gitea_username: Username under which to run gitea. Must be root if you want gitea to bind to ports < 1024 (default: gitea)
  • gitea_install_dir: Folder to install gitea into (default: /opts/gitea)
  • gitea_config_dir: Folder in which to put gitea config (default: /etc/gitea)
  • gitea_version: The version of gitea to install (default: 1.0.0)
  • gitea_http_listen_addr: The address to listen on for http request (default: '')

Contributing

If you want to contribute to this repository please be aware that this project uses a gitflow workflow with the next release branch called next.

Please fork this repository and create a local branch split off of the next branch and create pull requests back to the origin next branch.

License

AGPLv3

Integration testing

This role provides integration tests using the Ruby RSpec/serverspec framework with a few drawbacks at the time of writing this documentation.

Running integration tests requires a number of dependencies being installed. As this role uses Ruby RSpec there is the need to have Ruby with rake and bundler available.

# install role specific dependencies with bundler
bundle install
# run the complete test suite with Docker
rake suite
# run the complete test suite with Vagrant
source  envvars-vagrant.sample
rake suite

# run the complete test suite with Vagrant without destroying the box afterwards
source  envvars-vagrant.sample
RAKE_ANSIBLE_VAGRANT_DONT_CLEANUP=1 rake suite

Author information

  • Alvaro Aleman

ansible-gitea's People

Contributors

alvaroaleman avatar prune998 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.