Browse Source

Support for haveged

tags/2016.12
Filip Pytloun 9 years ago
parent
commit
8296bb9c02
4 changed files with 37 additions and 1 deletions
  1. +14
    -1
      README.rst
  2. +18
    -0
      linux/system/haveged.sls
  3. +3
    -0
      linux/system/init.sls
  4. +2
    -0
      tests/pillar/system.sls

+ 14
- 1
README.rst View File

printf "Unauthorized access strictly prohibited.\n" printf "Unauthorized access strictly prohibited.\n"


RHEL / CentOS RHEL / CentOS
~~~~~~~~~~~~~
^^^^^^^^^^^^^


Unfortunately ``update-motd`` is currently not available for RHEL so there's Unfortunately ``update-motd`` is currently not available for RHEL so there's
no native support for dynamic motd. no native support for dynamic motd.
This is [company name] network. This is [company name] network.
Unauthorized access strictly prohibited. Unauthorized access strictly prohibited.


Haveged
~~~~~~~

If you are running headless server and are low on entropy, it may be a good
idea to setup Haveged.

.. code-block:: yaml

linux:
system:
haveged:
enabled: true

Linux network Linux network
------------- -------------



+ 18
- 0
linux/system/haveged.sls View File

{%- from "linux/map.jinja" import system with context %}

{%- if system.haveged.enabled %}

haveged_pkgs:
pkg.installed:
- name: haveged
- watch_in:
- service: haveged_service

haveged_service:
service.running:
- name: haveged
- enable: true
- require:
- pkg: haveged_packages

{%- endif %}

+ 3
- 0
linux/system/init.sls View File

{%- if system.get('policyrcd', [])|length > 0 %} {%- if system.get('policyrcd', [])|length > 0 %}
- linux.system.policyrcd - linux.system.policyrcd
{%- endif %} {%- endif %}
{%- if system.haveged is defined %}
- linux.system.haveged
{%- endif %}

+ 2
- 0
tests/pillar/system.sls View File

environment: prd environment: prd
apparmor: apparmor:
enabled: false enabled: false
haveged:
enabled: true
console: console:
tty0: tty0:
autologin: root autologin: root

Loading…
Cancel
Save