The document discusses how operations teams deliver and operate infrastructures in the real world. It covers topics like provisioning infrastructure using tools like Chef, configuring systems with tools like Puppet and Ansible, implementing automation around areas like monitoring, logging, and testing with tools like Elasticsearch and Test Kitchen. It also discusses concepts like software-defined networking and storage. It emphasizes treating infrastructure as code, building automation pipelines, and integrating operations work with product development.
Report
Share
Report
Share
1 of 58
Download to read offline
More Related Content
Infra Agil: How the Ops teams delivery and operate the infrastructures in the real world
1. HOW THE OPS TEAMS DELIVERY AND OPERATE
THE INFRASTRUCTURES IN THE REAL WORLD
@mateusprado
34. # chef-recipe
# aws opsworks
directory '/opt/go/bin' do
owner 'demoiselle'
group 'demoiselle'
mode '0644'
action :create
recursive true
end
template '/opt/go/conf/config.toml' do
source 'conf/config.toml.erb'
owner 'demoiselle'
group 'demoiselle'
mode '0644'
action :create
end
package 'demoiselle-front-app' do
action :install
end
package 'nginx' do
action :install
end
service 'nginx' do
action :start
end
49. require 'chefspec'
describe 'file::delete' do
let(:chef_run) {
ChefSpec::SoloRunner.new(platform: 'ubuntu',
version: ’16.04’).converge(described_recipe)
}
it 'deletes a file with an explicit action' do
expect(chef_run).to delete_file('/tmp/explicit_action')
expect(chef_run).to_not delete_file('/tmp/not_explicit_action')
end
it 'deletes a file with attributes' do
expect(chef_run).to delete_file('/tmp/with_attributes').with(backup: false)
expect(chef_run).to_not delete_file('/tmp/with_attributes').with(backup:
true)
end
end
51. In the real world
• On demand available whenever
• Ephemeral short periods, disposable, show unused
• Elastic scale, PoC
• Integrate exposed
• Supported owned
54. Tips
• Treat your code as code;
• Build the Ops Pipeline;
• Think about Product and not servers;
• Docs;
• Rollback is a deploy;
• Share the metrics;
• Share the code;