GithubHelp home page GithubHelp logo

mihaineagu / fedora-dev-machine Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alexandrunastase/fedora-dev-machine

0.0 1.0 0.0 12.64 MB

Fedora Workstation provisioning using Ansible

Shell 100.00%

fedora-dev-machine's Introduction

Fedora Workstation provisioning using Ansible

Note: The playbook was tested only on Fedora 30.

What the playbook does:

  • Ensures the following are installed:

    • git
    • vim
    • htop
  • Instals and configures fish shell. It includes fzf and fzf fish plugin to enable history search and the pure theme.

  • Installs Brave browser

  • Installs the following development tools:

  • Ensures a folder named Projects exists in the user's home directory

  • Clones devilbox (LEMP/MEAN development environment) in the Projects folder. (https://github.com/cytopia/devilbox)

  • Configures colors for git. It also adds name and email in .gitconfig if the corresponding variables are set in vars.yml

  • Adds the following OS configuration :

    • Sets the hostname if the corresponding variable is set in vars.yml
    • Enables Automatic Login
  • Installs docker and docker-compose. Configures docker to use 10.10.0.0/16 subnet with a smaller network size than the default. This was done in order to avoid issue when connecting to the AWS network via VPN

  • Installs Kubernetes and kubectx. If uncommented, adds aliases (kubectl -> ktl, kubectx -> ktx, kubens -> kns)

  • Adds the following keyboard shortcuts:

    • Super+T from Nautilus to open terminal from the current location in the file explorer
    • CTRL+Shift+Esc opens the Sytem Monitor
    • CTRL+Alt+T opens the terminal
    • Super+D hides all windows
  • Inhibts/overrides the following default shorcuts:

    • Alt+F7 - used as 'Find Usages'
    • Alt+F8 - used as 'Evaluate(in debugger context)'
  • Sets fs.inotify.max_user_watches in sysctl to fs.inotify.max_user_watches to prevent issues with some IDEs

Note:

  • Some dependencies needed to run the ansible commands might be installed as well, such as python3-psutil needed for the dconf module or unzip
  • Running the playbook will override other custom keybindings

Getting started


1. Copy the vars.yml file

$ cp vars.yml-example vars.yml

The vars.yml file contains some variables that can override the default variable in the Ansible roles

2. Edit the vars.yml file

By default all variables are commented out. To enable them, just uncomment and change the variables that you need.


3. Run the provision.sh file

What it does:

  1. Installs Ansible using dnf
  2. Runs the Ansible playbook
$ ./provision.sh

Note: The script will ask for the sudo password twice: once for installing Ansible, and one more time for running the playbook.

fedora-dev-machine's People

Contributors

alexandrunastase avatar

Watchers

James Cloos 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.