Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 1.31 KB

osl_shell_environment.md

File metadata and controls

35 lines (26 loc) · 1.31 KB

osl_shell_environment

Actions

  • :add: Adds an environment variable to /etc/profile.d/
  • :remove: Removes an environment variable from /etc/profile.d/

Properties

Property Type Default Required Description
environment_variable String Resource Name yes Variable name
command String :add Content to set the variable to
user String root The user who owns the environment variable file
group String root The group who owns the environment variable file
mode String yes The file permissions for the created shell file
destination String /etc/profile.d/ The location to create the file at

Examples

Add an alias:

osl_shell_alias 'll' do
  command 'ls -l'
end

Remove an alias:

osl_shell_alias 'remove' do
  action :remove
end