Commit Graph

5 Commits

Author SHA1 Message Date
Emilien Macchi f2158dd312 Remove deprecated securetty
This code isn't used anymore.

Depends-On: https://review.opendev.org/707293
Change-Id: I50cc6e5d6a31e28be317aff9637b4b9c42d1ec37
2020-02-17 20:29:38 +00:00
Tobias Urdin a07db29002 Use validate_legacy
This changes all the puppet 3 validate_* functions
to use the validate_legacy function.

The validate_legacy function has been available since
about three years but require Puppet >= 4.4.0 and since
there is Puppet 4.10.12 as latest we should assume people
are running a fairly new Puppet 4 version.

This is the first step to then remove all validate function
calls and use proper types for parameter as described in spec [1].

[1] https://review.openstack.org/#/c/568929/

Change-Id: Iee8c082b5e4dcb7b035faa56a2182718947ad495
2019-02-25 22:51:07 +01:00
Steve Baker 94f13e6608 Ensure hiera step value is an integer
The step is typically set with the hieradata setting an integer value:

  {"step": 1}

However it would be useful for the value to be a string so that
substitutions are possible, for example:

  {"step": "%{::step}"}

This change ensures the step parameter defaults to an integer by
calling Integer(hiera('step'))

This change was made by manually removing the undef defaults from
fluentd.pp, uchiwa.pp, and sensu.pp then bulk updating with:

    find ./ -type f -print0 |xargs -0 sed -i "s/= hiera('step')/= Integer(hiera('step'))/"

Change-Id: I8a47ca53a7dea8391103abcb8960a97036a6f5b3
2017-06-14 14:31:52 +12:00
Juan Antonio Osorio Robles a0e410797a securetty: use validate_array for tty list
Change-Id: I1e79407ec6f360a2b205cec6cf8e812a11b799ea
2017-03-30 12:05:57 +03:00
lhinds 87850942ad Adds service for managing securetty
This adds the ability to manage the securetty file.

By allowing management of securetty, operators can limit root
console access and improve security through hardening.

Change-Id: Ic4647fb823bd112648c5b8d102913baa8b4dac1c
Closes-Bug: #1665042
2017-03-29 20:25:21 +01:00