Information Technology Reference
In-Depth Information
execute
Execute an arbitrary one-line command (as if it were entered on the command line):
# Write contents to a file
execute
'write status'
ddo
command
'echo "delicious" > /tmp/bacon'
end
end
file
Manage a file already present (but not already managed by Chef):
# Delete the /tmp/bacon file
file
'/tmp/bacon'
ddo
action
:delete
end
end
gem_package
Install a gem for use outside of Chef, such as an application or utility:
# Install bundler to manage dependencies
gem_package
'bundler'
group
Create or manage a local group definition with local user accounts as members:
# Create the bacon group
group
'bacon'
link
Create and manage symlinks and hard links:
# Link /tmp/bacon to /tmp/delicious
link
'/tmp/bacon'
ddo