際際滷

際際滷Share a Scribd company logo
Tuesday, 25 June, 13
Tuesday, 25 June, 13
Tuesday, 25 June, 13
Tuesday, 25 June, 13
Tuesday, 25 June, 13
+
Tuesday, 25 June, 13
+
Tuesday, 25 June, 13
+
Tuesday, 25 June, 13
+
Tuesday, 25 June, 13
+
Tuesday, 25 June, 13
+
Tuesday, 25 June, 13
+
Tuesday, 25 June, 13
vagrant init
vagrant up
vagrant halt
vagrant status
vagrant suspend
vagrant resume
vagrant reload
vagrant provision
vagrant box
vagrant ssh
vagrant destroy
Tuesday, 25 June, 13
Vagrant::Config.run do |config|
config.vm.box = local-boxname
# config.vm.box_url = "http://domain.com/
path/to/above.box"
...
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "pyvm.pp"
end
end
Tuesday, 25 June, 13
Vagrant::Config.run do |config|
# config.vm.box = local-boxname
config.vm.box_url = "http://domain.com/
path/to/above.box"
...
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "manifest.pp"
end
end
Tuesday, 25 June, 13
Vagrant::Config.run do |config|
config.vm.box = local-boxname
# config.vm.box_url = "http://domain.com/
path/to/above.box"
...
config.vm.provision :puppet do |puppet|
puppet.manifests_path = "manifests"
puppet.manifest_file = "manifest.pp"
end
end
Tuesday, 25 June, 13
Tuesday, 25 June, 13
facter
puppetmaster
puppetd
manifest files
Tuesday, 25 June, 13
package { "nginx":
ensure => installed,
}
service { "nginx":
enable => true,
}
# An erb that currently has no logic
file { "/etc/nginx/nginx.conf":
content => template("nginx/etc/nginx/
nginx.conf.erb"),
owner => nginx,
group => nginx,
require => Package["nginx"],
}
Tuesday, 25 June, 13
package { "nginx":
ensure => installed,
}
service { "nginx":
enable => true,
}
# An erb that currently has no logic
file { "/etc/nginx/nginx.conf":
content => template("nginx/etc/nginx/
nginx.conf.erb"),
owner => nginx,
group => nginx,
require => Package["nginx"],
}
Tuesday, 25 June, 13
package { "nginx":
ensure => installed,
}
service { "nginx":
enable => true,
}
# An erb that currently has no logic
file { "/etc/nginx/nginx.conf":
content => template("nginx/etc/nginx/
nginx.conf.erb"),
owner => nginx,
group => nginx,
require => Package["nginx"],
}
Tuesday, 25 June, 13
package { "nginx":
ensure => installed,
}
service { "nginx":
enable => true,
}
# An erb that currently has no logic
file { "/etc/nginx/nginx.conf":
content => template("nginx/etc/nginx/
nginx.conf.erb"),
owner => nginx,
group => nginx,
require => Package["nginx"],
}
Tuesday, 25 June, 13
class nginx {
package { "nginx":
ensure => installed,
}
service { "nginx":
enable => true,
}
...
}
Tuesday, 25 June, 13
include nginx
include mysql
include mongodb
include nodejs
include ...
Tuesday, 25 June, 13
Tuesday, 25 June, 13
http://www.vagrantup.com
http://www.virtualbox.org
http://www.vmware.com
http://www.puppetlabs.com
http://www.opscode.com
http://www.saltstack.com
http://www.gitscm.com
Tuesday, 25 June, 13
http://docs.puppetlabs.com/
http://www.puppetcookbook.com/
Tuesday, 25 June, 13
carlocostantini.ca
github.com/fifteen3
@fifteen3
Tuesday, 25 June, 13

More Related Content

Vagrant