Giter Club home page Giter Club logo

git-deploy-setup's Introduction

git-deploy-setup

Ansible role that sets up a git bare repository and git working tree directory so that a git repo can be pushed to deploy onto a web server.

Requirements

You'll want to already have some sort of webserver setup (Apache, NginX, etc.).

Role Variables

The domain of the site to receive the Git post-receive hook. This is a required variable.

	git_deploy_setup_domain: "somesite.com"

The document root for the webserver. The default is set as "/var/www".

	git_deploy_setup_web_home: "/var/www"

The folder inside the web_home document root that stores the files served up by the webserver for this site. The default is set as "/html".

	git_deploy_setup_web_folder: "/html"

The file path on the server for setting up the git bare repo. The default is "/var/git".

	git_deploy_setup_git_home: "/var/git"

Whether or not this git deployment setup should be run

	git_deploy_setup_git_create: True

The linux username used by your webserver. The default value is "www-data" which assumes Apache is used on a Debian or Ubuntu linux.

	git_deploy_setup_web_user: "www-data"

The linux group used by your webserver. The default value is "www-data" which assumes Apache is used on a Debian or Ubuntu linux.

	git_deploy_setup_web_group: "www-data"

Will you be passing a list of domains to setup?

	git_deploy_setup_use_list_of_server_fqdn: false

List of sites to setup Git deployments for. Not needed unless the git_deploy_setup_use_list_of_server_fqdn variable is set to true. Default is false.

    git_deploy_setup_sites_to_setup:
	  - {
          url: 'somesite.com'
        }
      - {
          url: 'mysubdomain.somesite.com'
        } 

Dependencies

None

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

	- hosts: your_server
	  vars_files:
	    - vars/main.yml
	  roles:
	    - stancel.git-deploy-setup 

or just pass the variables in the playbook

	- hosts: your_server 
	  vars:
		git_deploy_setup_domain: "somesite.com"
	  roles:
	    - stancel.git-deploy-setup

License

GPLv3

Author Information

Brad Stancel

git-deploy-setup's People

Contributors

stancel avatar

Stargazers

Roman 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.