Information Technology Reference
In-Depth Information
# Install the HTTParty gem to make RESTful requests
chef_gem 'httparty'
cron
Create or manage a cron entry that schedules commands to run periodically at specified
intervals:
# Restart the computer every week
cron 'weekly_restart' ddo
weekday '1'
minute '0'
hour '0'
command 'sudo reboot'
end
end
deploy_revision
Control and manage a deployment of code from source control (such as a Rails applica-
tion):
# Clone and sync an application from revision control
deploy_revision '/opt/my_app' ddo
repo 'git://github.com/username/app.git'
end
end
directory
Manage a directory or directory tree, handling permissions and ownership:
# Recursively ensure a directory exists
directory '/opt/my/deep/directory' ddo
owner 'root'
group 'root'
mode '0644'
recursive true
end
end
Search WWH ::




Custom Search