Forge Home

etc_profile

Manages /etc/profile

6,526 downloads

102 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

  • 0.3.0 (latest)
  • 0.2.3
released Apr 24th 2024
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, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 4.7.0 < 9.0.0
  • , , , , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'ccin2p3-etc_profile', '0.3.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add ccin2p3-etc_profile
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install ccin2p3-etc_profile --version 0.3.0

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

ccin2p3/etc_profile — version 0.3.0 Apr 24th 2024

etc_profile

Build Status

Table of Contents

  1. Description
  2. Setup - The basics of getting started with etc_profile
  3. Usage - Configuration options and additional functionality
  4. Reference - An under-the-hood peek at what the module is doing and how
  5. Limitations - OS compatibility, etc.
  6. Development - Guide for contributing to the module

Description

This module manages the Bourne and C shell system login profiles. It does not overwrite existing profiles handled by the OS.

Setup

What etc_profile affects

Complete list of resources managed by this module:

RedHat OS families

  • File['/etc/profile.d/site.sh']
  • File['/etc/profile.d/site.csh']
  • File['/etc/profile.d/site'] (purged)
  • File['/etc/profile.d/site/*.sh']
  • File['/etc/profile.d/site/*.csh']

Debian OS families

  • File['/etc/profile.d/site.sh']
  • File['/etc/profile.d/site'] (purged)
  • File['/etc/profile.d/site/*.sh']
  • File['/etc/csh/login.d/site.csh']
  • File['/etc/csh/login.d/site'] (purged)
  • File['/etc/csh/login.d/site/*.csh']

Synopsis

site_profile::entry {'oracle':
  config => {
    content => 'export ORACLE_HOME=/usr/local/oracle/product/instantclient/11.2.0.3',
  }
}
site_profile::entry {'openstack':
  config => {
    content => epp('site_openstack/template/system_profile.epp'),
  }
}

Usage

Reference

Classes etc_profile::sh and etc_profile::csh

These are usually never called on their own, as tehy only set up the requirements for site_profile::entry's. The only reason to call them is to change the OS defaults. It is preferred to open an issue if your OS isn't supported, and we'll add it to the module's data.

Defined Type site_profile::entry

This is the main resource you'll be using to add new profile entries. A profile entry is merely a Bourne or C shell script that will be added to system profiles.

Parameters

  • name String (Alphanum, Namevar) name of the resource
  • config Hash to add additional File parameters, e.g. mode
  • type Enum[sh|csh] script type

Examples

See Synopsis.

Limitations

Currently only supports RedHat and Debian OS families.

Development

For issues, merge requests, please use the project's github page