Skip to content

Commit

Permalink
Finalize RockyLinux 8 support (#70)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-riddle authored Aug 1, 2023
1 parent de80e77 commit 35ed0de
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pr_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ jobs:
puppet_version: '~> 8.0'
ruby_version: 3.1
experimental: true
fail-fast: false
env:
PUPPET_VERSION: ${{matrix.puppet.puppet_version}}
steps:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ dist
/junit
/log
/doc
/Gemfile.lock
1 change: 1 addition & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ pup7.pe-unit:
<<: *pup_7_pe
<<: *unit_tests

# Commenting until Puppet 8 is released
#pup8.x-unit:
# <<: *pup_8_x
# <<: *unit_tests
Expand Down
69 changes: 69 additions & 0 deletions REFERENCE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Reference

<!-- DO NOT EDIT: This document was generated by Puppet Strings -->

## Table of Contents

### Classes

* [`sudosh`](#sudosh): sudosh class This class installs sudosh and optionally configures rsyslog and logrotate.

## Classes

### <a name="sudosh"></a>`sudosh`

sudosh class

This class installs sudosh and optionally configures rsyslog and logrotate.

#### Examples

##### Ensuring all sudo operations are run with sudosh

```puppet
Insert the following code in an appropriate manifest (e.g.,
/etc/puppet/manifests/nodes/default_classes/base_config.pp).
sudo::user_specification { 'global_admin':
user_list => '%administrators',
host_list => 'ALL',
runas => 'ALL',
cmnd => '/usr/bin/sudosh',
passwd => 'false'
}
```

#### Parameters

The following parameters are available in the `sudosh` class:

* [`syslog`](#-sudosh--syslog)
* [`logrotate`](#-sudosh--logrotate)
* [`package_ensure`](#-sudosh--package_ensure)

##### <a name="-sudosh--syslog"></a>`syslog`

Data type: `Boolean`

Whether to include SIMP's ::rsyslog class and use it to create
a specific log file for sudosh (/var/log/sudosh.log)

Default value: `simplib::lookup('simp_options::syslog', { 'default_value' => false })`

##### <a name="-sudosh--logrotate"></a>`logrotate`

Data type: `Boolean`

Whether to include SIMP's logrotate class and to use it
to create a log rotate rule for the sudosh log file.

Default value: `simplib::lookup('simp_options::logrotate', { 'default_value' => false })`

##### <a name="-sudosh--package_ensure"></a>`package_ensure`

Data type: `String`



Default value: `simplib::lookup('simp_options::package_ensure', { 'default_value' => 'installed' })`

0 comments on commit 35ed0de

Please sign in to comment.