GithubHelp home page GithubHelp logo

gvlproject / ansible-galaxy-os Goto Github PK

View Code? Open in Web Editor NEW

This project forked from galaxyproject/ansible-galaxy-os

0.0 7.0 0.0 37 KB

An Ansible role is for configuring the base operating system useful for running Galaxy.

Home Page: https://galaxy.ansible.com/list#/roles/2748

License: MIT License

ansible-galaxy-os's Introduction

This Ansible role is for configuring the base operating system useful for running Galaxy.

Build Status

Requirements

The role has been developed and tested on Ubuntu 14.04 and Debian 8. It requires sudo access.

Dependencies

None

Role variables

All of the listed variables are stored in defaults/main.yml. Individual variables can be set or overridden by setting them directly in a playbook for this role (see an example below for galaxy_user_uid). Alternatively, they can be set by creating group_vars directory in the root directory of the playbook used to execute this role and placing a file with the variables there. Note that the name of this file must match the value of hosts setting in the corresponding playbook (e.g., os-builder for the sample playbook provided below).

  • galaxy_user_name: (default: galaxy) system username to be used for Galaxy
  • galaxy_user_uid: (default: 1001) UID for the galaxy_user_name

Control flow variables

The following variables can be set to either yes or no to indicate if the given part of the role should be executed:

  • install_packages: (default: yes) install system level packages
  • install_maintainance_packages: (default: yes) install convenience system packages used for server maintenance and administration
  • configure_docker: (default: yes) configure Docker as part of install_packages
  • apt_package_state: (default: latest) set to present to not force update of existing installed packages.
  • add_system_users: (default: yes) configure system level users

Example playbook

To use the role, clone this repo and create a hosts file in the root repo dir with access information for the target machine, for example:

[os-builder]
130.56.250.204 ansible_ssh_private_key_file=key.pem ansible_ssh_user=ubuntu

Next, create a playbook.yml file, setting any variables as desired:

- hosts: os-builder
  become: yes
  tasks:
    - include: tasks/main.yml
      galaxy_user_uid: 1055

Run the playbook with:

$ ansible-playbook playbook.yml -i hosts -e "@defaults/main.yml"

ansible-galaxy-os's People

Contributors

afgane avatar jmchilton avatar gmauro avatar mvdbeek avatar nuwang avatar bgruening avatar drosofff avatar martenson avatar

Watchers

 avatar James Cloos avatar  avatar Simon Gladman avatar  avatar  avatar  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.