1. 15 Dec, 2020 1 commit
    • Thomas Bellman's avatar
      Quote numeric (octal) file modes. · 05a389b2
      Thomas Bellman authored
      In order for numeric file modes to still be properly interpreted as
      octal modes in Puppet version 4 and later, they need to be specified
      as strings, not as integers.  There was one instance where we had
      missed that.  Fix it.
      05a389b2
  2. 10 May, 2020 1 commit
  3. 04 May, 2020 1 commit
    • Thomas Bellman's avatar
      Track splitting of nsc-puppet-utils module. · 7055e743
      Thomas Bellman authored
      We used some definitions, resource types and facts from the module
      nsc-puppet-utils.  That module has been refactored, renamed to
      "nscutils", and split into multiple modules, so we need to track
      those changes.  We use resource types and definitions for editing
      config files, which have been moved to the new module "cfgfile",
      and the custom fact 'initsystem', which at the moment is still left
      in the "nscutils" module.
      7055e743
  4. 17 Sep, 2019 1 commit
  5. 16 Aug, 2019 1 commit
    • Thomas Bellman's avatar
      Better Upstart conflict handling for serial getty. · ef9ced7f
      Thomas Bellman authored
      Previously, on RHEL-6, we always disabled the automatic starting
      of getty on serial port consoles, to avoid conflicts with explicit
      configuration of the same port.  This had the disadvantage that even
      if logins were not explicit configured for, e.g, ttyS17, and you
      booted the system with console=ttyS17, you would not get a login
      prompt there.  That is probably not what most users would want.
      
      We here make use of the 'stop on' event handling in Upstart job
      definitions, to force the automatic getty job to be stopped, if an
      explicit getty job for that port is started.  This assumes that such
      jobs are named "serial-$DEV", as the console::serial::login definition
      names them.
      Signed-off-by: Thomas Bellman's avatarThomas Bellman <bellman@lysator.liu.se>
      ef9ced7f
  6. 08 Jul, 2019 1 commit
  7. 30 Sep, 2018 1 commit
    • Thomas Bellman's avatar
      Add definition for managing getty(8) on serial ports. · bee2f269
      Thomas Bellman authored
      This adds a definition console::serial::login for managing if and how
      getty(8) (or usually agetty(8)) is run on serial ports.
      
      The current version only supports systemd-based Linux distributions
      (and has only been actually tested on CentOS 7).
      bee2f269
  8. 29 Sep, 2018 1 commit
  9. 20 Dec, 2017 2 commits
    • Thomas Bellman's avatar
      Add class for disabling console screensaver. · 030ca77c
      Thomas Bellman authored
      By default, the console screensaver is enabled on Linux systems (at
      least RedHat:ish systems).  That makes it difficult to see kernel
      crash messages on the console on physical servers, as the screensaver
      typically is activated, and you can't deactivate it since the kernel
      is dead and does not respond to key presses...
      
      This adds a class console::screensaver::disable which disables the
      console screensaver when the machine boots.
      030ca77c
    • Thomas Bellman's avatar
      Class for disabling suspend when closing laptop lid. · 0c0e5f52
      Thomas Bellman authored
      At least modern Fedora and RHEL versions by default suspend your
      laptop when you close the lid.  Some people, including me, don't
      like that behaviour.  Add a class console::lid::ignore_close that
      disables that; currently only implements this for systemd-based
      systems, though.
      
      Whether this belongs in the console module is debatable, but at the
      moment I don't have any better place to hide it.
      0c0e5f52
  10. 19 Dec, 2017 2 commits
  11. 18 Dec, 2017 3 commits