Bläddra i källkod

Support for haveged

tags/2016.12
Filip Pytloun 8 år sedan
förälder
incheckning
8296bb9c02
4 ändrade filer med 37 tillägg och 1 borttagningar
  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 Visa fil

@@ -294,7 +294,7 @@ day. Setting custom motd will cleanup existing ones.
printf "Unauthorized access strictly prohibited.\n"

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

Unfortunately ``update-motd`` is currently not available for RHEL so there's
no native support for dynamic motd.
@@ -308,6 +308,19 @@ You can still set static one, only pillar structure differs:
This is [company name] network.
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
-------------


+ 18
- 0
linux/system/haveged.sls Visa fil

@@ -0,0 +1,18 @@
{%- 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 Visa fil

@@ -54,3 +54,6 @@ include:
{%- if system.get('policyrcd', [])|length > 0 %}
- linux.system.policyrcd
{%- endif %}
{%- if system.haveged is defined %}
- linux.system.haveged
{%- endif %}

+ 2
- 0
tests/pillar/system.sls Visa fil

@@ -8,6 +8,8 @@ linux:
environment: prd
apparmor:
enabled: false
haveged:
enabled: true
console:
tty0:
autologin: root

Laddar…
Avbryt
Spara