Class path::path
In: /tmp/puppet/modules/path/manifests/init.pp
Parent:

Class: path

Module: path

Description:

        This class attempts to check for dots or empty elements in roots path.
        It does a fairly decent job, but is not 100% error proof.  Some
        elements are added to the path after login from other services that
        the script cannot check.  This will catch things added in .bashrc and
        .bash_profile.

Guide Reference:

        2.3.4.1

CCE Reference:

        CCE-3301-9

TODO:

        On my test box, echo $PATH returns an extra item '/usr/X11R6/bin':
        Find out when this item is added and see if puppet can coax this
        script into running after that and similar scripts have been added.

Resources

Resources

Exec["/etc/puppet/scripts/checkRootPath.bash"]
   command => "/bin/su -lc /etc/puppet/scripts/checkRootPath.bash"
   logoutput => true
   require => File["/etc/puppet/scripts/checkRootPath.bash"]
File["/etc/puppet/scripts/checkRootPath.bash"]
   owner => root
   group => root
   mode => 755
   content => template("path/checkRootPath.bash.erb")

GuideSection 2.3.4.1 This template greps for a dot (.) or empty set (::) in roots $PATH

[Validate]