Vagrant
- 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
- 14. 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
- 15. 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
- 16. 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
- 19. 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
- 20. 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
- 21. 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
- 22. 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
- 23. class nginx {
package { "nginx":
ensure => installed,
}
service { "nginx":
enable => true,
}
...
}
Tuesday, 25 June, 13