:add
: Adds an environment variable to/etc/profile.d/
:remove
: Removes an environment variable from/etc/profile.d/
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 |
Add an alias:
osl_shell_alias 'll' do
command 'ls -l'
end
Remove an alias:
osl_shell_alias 'remove' do
action :remove
end