Skip to content
Snippets Groups Projects
Commit 02cba444 authored by Dennis Ahrens's avatar Dennis Ahrens
Browse files

Add locales and basic python packages

parent 6c77ca5d
No related branches found
No related tags found
No related merge requests found
...@@ -4,11 +4,12 @@ Basic server configuration used for most unix based servers at HsH. ...@@ -4,11 +4,12 @@ Basic server configuration used for most unix based servers at HsH.
## States ## States
* apt * **apt** proxy, sources.list and sources.list.d
* openvmtools * **openvmtools** use them for vmware
* **locale** setup your servers locales
* iptables * **python-packages** we are using for salt grains or modules.
* locale * **netifaces** useful information in grains about net cfg
* **psutil** who needs that?!
## Configuration ## Configuration
......
...@@ -6,3 +6,7 @@ hshbase: ...@@ -6,3 +6,7 @@ hshbase:
time: time:
server: time.rz.fh-hannover.de server: time.rz.fh-hannover.de
zone: Europe/Berlin zone: Europe/Berlin
locale:
system: en_US.UTF-8
present:
- de_DE.UTF-8
{% from "hshbase/map.jinja" import hshbase with context %} {% from "hshbase/map.jinja" import hshbase with context %}
# Include all submodules by default. # Include all submodules by default - they ca be disable in pillar, if necessary
include: include:
- .apt - .apt
- .openvmtools - .openvmtools
- .time - .time
- .locale
# Always ships this packages - we need them for grains
{% if grains['os'] == 'Debian' and grains['oscodename'] != 'squeeze' or grains['os'] == 'Ubuntu' %}
salt-python-packages:
pkg.installed:
- pkgs:
- python-netifaces
- python-psutil
{% elif grains['os'] == 'FreeBSD' %}
salt-python-packages:
pkg.installed:
- pkgs:
- net/py-netifaces
- py27-psutil
{% endif %}
{% from "hshbase/map.jinja" import hshbase with context %}
locales:
pkg.installed
hshbase_locale_system:
locale.present:
- name: {{ hshbase.locale.system }}
hshbase_locale_install_system:
locale.system:
- name: {{ hshbase.locale.system }}
- require:
- locale: hshbase_locale_system
{% for locale in hshbase.locale.present %}
hshbase_locale_{{ loop.index }}:
locale.present:
- name: {{ locale }}
{% endfor %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment