profile_d

profile.d Module

Kurt Langrud

klangrud

9,674 downloads

9,674 latest version

3.4 quality score

Version information

  • 0.0.1 (latest)
released Apr 13th 2012

Start using this module

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', }