Project

General

Profile

« Previous | Next » 

Revision dd42df0a

Added by Ohad Levy about 12 years ago

  • ID dd42df0a3b5d8645ad6db731ec813e64b85a4120

adds ec2 provisioning support fixes #1223

- added progress bar for instance creation
- minor fixes for certname based deployments
- added ssh provisioning support to orchestartion, which utilize finish
scripts by default
- added images support (part of the vm compute tab)
- cleanup a lot of unused view attributes in favour of a couple html5
data attributes
- adds capabilities to each compute resource (e.g. build vs. image
provisioning)
- allow to access @host.compute_resource and @host.info in provisioning
templates
- added automatic ssh key pair generation when creating a new compute
resource (note, if you already created one, you would need to delete
it and create it again
- reverse dns now depends on the selected subnet - fixes #1558
- added readonly console support for ec2

View differences:

lib/foreman/renderer.rb
require 'tempfile'
module Foreman
module Renderer
def render_safe template, allowed_methods = [], allowed_vars = {}
......
render_safe template, allowed_helpers, allowed_variables
end
alias_method :pxe_render, :unattended_render
def unattended_render_to_temp_file content, prefix = id, options = {}
file = ""
Tempfile.open(prefix, Rails.root.join('tmp') ) do |f|
f.print(unattended_render(content))
f.flush
f.chmod options[:mode] if options[:mode]
file = f
end
file
end
end
end

Also available in: Unified diff