Giter Site home page Giter Site logo

gileri / ansible-scripts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from osm-fr/ansible-scripts

0.0 2.0 0.0 719 KB

Ansible commands for servers handled by Openstreetmap-France

License: GNU General Public License v2.0

Shell 43.63% HTML 7.08% Python 49.29%

ansible-scripts's Introduction

Ansible scripts to handle OSM-FR machines

This repository contains various scripts to setup and configure machines handled by OSM-FR association (a french association for OpenStreetMap). These scripts are used with ansible.

Configuring ansible

A version of ansible >= 2.3 is sufficient, and is available in Debian, or from git repository. To install all dependency on Debian, use:

apt-get install ansible python-jmespath

To install VM through proxmox, python promoxer module is necessary, It can be installed with:

sudo pip install proxmoxer

Using ansible scripts

Installation and configuration of a new VM with proxmox

  1. launch ./tools/add-vm.py to update file hosts and create proxmox configuration. Command line options are available to change parameters like number of cpus or size of disk.
  2. set shell variables PROXMOX_PASSWORD and PROXMOX_SSHPUBKEY
  3. launch following command to create VM, configure network on host for ipv6 access, and update local /etc/hosts to access VM before DNS update:
    ansible-playbook -u root -l <hostname> common.yml

Configuration of a new machine with default configuration

  1. add the machine to file hosts, in section [vm] if it is a virtual machine, at the top otherwise.
  2. launch following command:
    ansible-playbook -l <hostname> common.yml

Adding a new user to a specific machine

  1. add the machine to file hosts, in the relevant section [user]
  2. if necessary, add the user to roles/common/tasks/main.yml, with the public ssh key in public\_keys/<user>
  3. launch following command:
    ansible-playbook -l <hostname> common.yml --tags user_creation

Adding a service to a specific machine

  1. add the machine to file hosts, in the relevant section [service]
  2. launch following command:
    ansible-playbook -l <hostname> <service>.yml

ansible-scripts's People

Contributors

cquest avatar grischard avatar jocelynj avatar marc-marc-marc avatar niconil avatar ropp avatar

Watchers

 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.