Forge Home


Manages /etc/profile


6,162 latest version

5.0 quality score

Version information

  • 0.2.3 (latest)
released Apr 4th 2018
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 4.7.0 < 6.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.2.3'
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.2.3

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.



ccin2p3/etc_profile — version 0.2.3 Apr 4th 2018


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


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


What etc_profile affects

Complete list of resources managed by this module:

RedHat OS families

  • File['/etc/profile.d/']
  • 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/']
  • 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']


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



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.


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


See Synopsis.


Currently only supports RedHat and Debian OS families.


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