Forge Home

profile_d

profile.d Module

10,407 downloads

10,407 latest version

3.4 quality score

Version information

  • 0.0.1 (latest)
released Apr 13th 2012

Start using this module

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

Add this module to your Puppetfile:

mod 'klangrud-profile_d', '0.0.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add klangrud-profile_d
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install klangrud-profile_d --version 0.0.1

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

klangrud/profile_d — version 0.0.1 Apr 13th 2012

Create a script in /etc/profile.d

Examples:

  1. create a simple script that sets one variable :

    profile_d::script {'name-of-script.sh': ensure => present, content => 'export VARIABLE=value', }

  2. create a multi-line script using a template :

    profile_d::script {'name-of-script.sh': ensure => present, content_file => "${module_name}/script-template.sh.erb", }

  1. use a file source :

    profile_d::script {'name-of-script.sh': ensure => present, source => "puppet:///modules/${module_name}/script.sh", }

  2. changing the default shell (/bin/sh) :

    profile_d::script {'name-of-script.sh': ensure => present, content => 'export VARIABLE=value', shell => '/bin/bash', }