Skip to content
Snippets Groups Projects
Select Git revision
  • 470914f75b0d526433d987ccb9b4deb961a43607
  • master default protected
2 results

hshbase-formula

user avatar
Jan Philipp Timme authored
470914f7
History

hshbase

Basic server configuration used for most unix based servers at HsH.

NOTE: ELC also relies on this formula - they will receive updates immediately. If your plan to make breaking changes. Communicate this just in time

States

hshbase

Installs everything

hshbase.apt

Configures apt package manager on debian and ubuntu machines

hshbase.time

Install NTP, and sets timezone + timeserver

hshbase.openvmtools

Install the package open-vm-tools

hshbase.locale

Install system locales and additional ones optionally

hshbase.snmpd

Install snmpd ready to be used with Whats Up Gold

python-packages

Install python modules for salt grains or modules - Currently:

  • netifaces useful information in grains about net cfg
  • psutil TODO: who needs that?!

Configuration

The states of this formula should be configurable using one central pillar for all configurations. Have a look at pillar.example for details.

Development

All features should be as configurable as necessary. Keep it simple, stupid (KISS).

Working on this formula requires virtualbox and vagrant installed. It comes with an vagrant box you can instantly set up to get a machine where all states will apply against.

git clone ssh://git@lab.it.hs-hannover.de:2222/salt/hshbase-formula.git
cd hshbase-formula
vagrant up
vagrant ssh
sudo salt-call state.highstate

Default values when developing the formula

If you introduce a new feature and want to make it configurable you might need default values. Just add them to defauls.yaml and they are magically available.

Consult map.jinja for details on this topic.