Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hshbase-formula
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
salt
hshbase-formula
Commits
02cba444
Commit
02cba444
authored
9 years ago
by
Dennis Ahrens
Browse files
Options
Downloads
Patches
Plain Diff
Add locales and basic python packages
parent
6c77ca5d
No related branches found
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+6
-5
6 additions, 5 deletions
README.md
hshbase/defaults.yaml
+4
-0
4 additions, 0 deletions
hshbase/defaults.yaml
hshbase/init.sls
+19
-2
19 additions, 2 deletions
hshbase/init.sls
hshbase/locale.sls
+21
-0
21 additions, 0 deletions
hshbase/locale.sls
with
50 additions
and
7 deletions
README.md
+
6
−
5
View file @
02cba444
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
hshbase/defaults.yaml
+
4
−
0
View file @
02cba444
...
@@ -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
This diff is collapsed.
Click to expand it.
hshbase/init.sls
+
19
−
2
View file @
02cba444
{% 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 %}
This diff is collapsed.
Click to expand it.
hshbase/locale.sls
0 → 100644
+
21
−
0
View file @
02cba444
{% 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 %}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment