Coder Social home page Coder Social logo

eganjs / workstation-ansible Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 22 KB

Ansible playbooks to configure a simple CentOS 7 dev VM, aimed to be compatible with Fedora

Shell 100.00%
ansible ansible-playbooks ansible-project development-environment centos7 centos-vm

workstation-ansible's People

Contributors

eganjs avatar

Watchers

 avatar  avatar

workstation-ansible's Issues

Add playbook to change io scheduler to noop implementation

See this gist for an example: https://gist.github.com/keithchambers/80b60559ad83cebf1672
Could be tidied up with using the copy module with the content property

---
- name: test if grub configured for noop i/o scheduler
  command: egrep -q 'elevator=noop' /boot/grub2/grub.cfg
  register: grub
  changed_when: no
  failed_when: grub_test.rc == 2

- name: configure grub for noop i/o scheduler
  sudo: yes
  command: grubby --update-kernel=ALL --args=elevator=noop
  when: grub_test.rc == 1

- name: get list of block devices to test
  shell: ls /sys/block/ | egrep '^([shv]|xv])d[a-z]$'
  register: block_devs
  changed_when: no

- name: test if block device using noop i/o scheduler
  shell: cat /sys/block/{{ item }}/queue/scheduler | egrep -q '\[noop\]'
  with_items: block_devs.stdout
  register: noop_test
  changed_when: noop_test.rc == 1
  failed_when: noop_test.rc == 2

- name: set block device to use noop i/o scheduler
  sudo: yes
  shell: echo noop > /sys/block/{{ item }}/queue/scheduler
  with_items: block_devs.stdout
  when: noop_test.changed

Use sdkman to manage Java/Kotlin dev tooling

  • Includes tools such as Maven and Gradle
  • Should replace existing installation method for Maven

Using sdkman gives a managed method for installing the latest versions of sdks such as Maven and Gradle which are not (knowingly) offered through CentOS repos

vim configuration

  • configure for dark theme (preference - gruvbox dark high contrast)
  • tabs as spaces (2?)
  • ideally avoid using a vim plugin manager, the implementation should be minimal

Install java through dnf

Include versions 11 and 8

  • Java 11 should be sufficient because it is (90% sure) backwards compatible
  • Includes clean up of ansible galaxy roles that currently facilitate this

terminal configuration

  • configure terminal to use dark theme (preference - gruvbox dark high contrast)
  • don't break characters for oh-my-zsh
  • installing a new terminal is an option but higher complexity

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.