Forge Home

authselect

Manage authconfig active profile

3,019 downloads

1,119 latest version

5.0 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 1.1.2 (latest)
  • 1.1.1
  • 1.1.0
  • 1.0.1
  • 1.0.0
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0 (deleted)
released Sep 1st 2023
This version is compatible with:
  • Puppet Enterprise 2023.8.x, 2023.7.x, 2023.6.x, 2023.5.x, 2023.4.x, 2023.3.x, 2023.2.x, 2023.1.x, 2023.0.x, 2021.7.x, 2021.6.x, 2021.5.x, 2021.4.x, 2021.3.x, 2021.2.x, 2021.1.x, 2021.0.x, 2019.8.x
  • Puppet >= 6.21.0 < 9.0.0
  • , , , ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'jcpunk-authselect', '1.1.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add jcpunk-authselect
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install jcpunk-authselect --version 1.1.2

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

jcpunk/authselect — version 1.1.2 Sep 1st 2023

authselect

Manage authselect profile on systems that support it.

Table of Contents

Description

Set your authselect profile and any required features.

Setup

What authselect affects

This will alter your host's fundemental authentication and lookups via authselect. Understand what that means before using it.

Setup Requirements

You will need to start any required services BEFORE the authselect class runs.

This class does not track things like sssd or winbind services.

You may use Class[authselect] or Exec[authselect set profile] to ensure your services are running.

Usage

Basic class usage

Example class invocation:

class { 'authselect':
  profile => 'sssd',
  profile_options => [ 'with-mkhomedir', 'with-faillock']
}

And the Hiera file would look like:

authselect::profile: sssd
authselect::profile_options:
  - with-mkhomedir
  - without-pam-u2f-nouserok

Creating and selecting a custom profile

Example custom profile configuration:

class { 'authselect
  profile_manage  => true,
  profile         => 'custom/new_profile',
  custom_profiles => {
    'new_profile' => {
      'base_profile' => 'sssd',
      'contents' => {
        'nsswitch.conf' => {
          'content' => '<your custom nsswitch content here>'
        }
      }
    }
  }
}

And the Hierafile would look like:

authselect::profile_manage: true
authselect::profile: 'custom/new_profile'
authselect::custom_profiles:
  new_profile:
    base_profile: 'sssd'
    contents:
      nsswitch.conf:
        content: '<your custom nsswitch content here>'

The code above will create a new custom authselect profile called 'new_profile'. The profile will be based off of the sssd profile. The profile will also contain an nsswitch file that will contain the custom content specified in the content parameter. To use the new custom profile the authselect::profile parameter will need to prefix the name of the custom profile with custom/ as shown above.

Facts

This class also provides two facts: authselect_profile and authselect_profile_features.

Development

Folks should use the repo listed in metadata.json.