Giter Site home page Giter Site logo

palazzem / hanzo Goto Github PK

View Code? Open in Web Editor NEW
23.0 3.0 5.0 400 KB

Ansible orchestration to configure a development environment -

Home Page: http://hanzo.sh

License: Other

Shell 85.46% Dockerfile 5.72% Jinja 8.82%
ansible ansible-playbook devops-tools devtools devenv

hanzo's Introduction

Hanzō

Hattori Hanzō: You must have big rats if you need Hattori Hanzo's steel. The Bride: ...Huge.

Testing Nightly builds

This Ansible playbook configures a new ArchLinux installation with some development tools. The goal of the playbook is inspiring developers to prepare programmatically their development environment. This repository targets my requirements and it's very unlikely it can be used in a general purpose sense.

Quickstart

If you like living on the bleeding edge and curlbombs don't scare you, the automatic installer is the easiest way to configure your system:

    $ sh <(curl -L http://j.mp/hattori-hanzo)

A clean ArchLinux installation is recommended but not required. Anyway, bear in mind it WILL OVERWRITE ENTIRELY your system.

If you use this approach, nothing else is required and you can enjoy your new system!

Manual Installation

In case you don't want to use the curl command above, you can clone or download this repository, using either git or the release page. After the checkout, run the following commands:

    $ cd hanzo/
    $ HANZO_FOLDER=$(pwd) bash bin/bootstrap.sh

Unattended Installer

If you don't want to use the interactive shell to configure Hanzo, you can set the following environment variables:

  • HANZO_FOLDER: if specified, that folder is used as Hanzo root. If not specified, the bootstrap script fetches Hanzo from GitHub.
  • HANZO_FULLNAME: your full name used in the .gitconfig.
  • HANZO_EMAIL: your email address used in the .gitconfig.
  • HANZO_USERNAME: username used to create the main user.
  • TAGS: sets Ansible tags. Available options are [chromeos]. If not tags are set, a standard Archlinux toolbox is configured.
  • EXTRA_ARGS: sets Ansible extra arguments. Use this variable if you want to set options such as --verbose or --check.

Testing

If you want to apply the playbook changes without touching your current configuration, or you want to test any change of the current configuration, a Dockerfile is available to build an ArchLinux container. To start the provisioning, just:

    $ docker build -t hanzo:test . \
        --build-arg HANZO_FULLNAME=test \
        --build-arg HANZO_USERNAME=test \
        --build-arg [email protected] \
        && docker rmi hanzo:test

Contribute

The playbook provisions a machine with my current configuration. Because it's unlikely that you use exactly my current environment, you may use this repository as a base to create your own configuration. Indeed, I'll be glad to accept any PR that:

  • Fixes the current playbook execution
  • Improves the playbook styles or Ansible best practices
  • Enhances or makes me aware of different methods to distribute the playbook

I will not accept any PR that adds new development tools, but I will be grateful if you can discuss about it in the issue tracker.

hanzo's People

Contributors

palazzem avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hanzo's Issues

Merge Arch Linux branch

Avoid creation of branches for each distribution. Use a single Ansible script able to discover the running distribution or let user choose one.

README instruction

On README add:

  • update & reboot instruction before everything
  • git clone https instead of git (it requires authentication)
  • pip install ansible==1.1

missing ntpd daemon

Ansible role should achieve the following steps:

  • pacman -S ntp
  • systemctl enable ntpd
  • systemctl start ntpd (optional)

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.