fluke/devops-service/db/mongo/models/deploy_env/deploy_env_openstack.rb

41 lines
1.4 KiB
Ruby
Raw Normal View History

require "db/mongo/models/deploy_env/cloud_deploy_env"
2014-06-24 13:40:52 +04:00
2015-03-06 12:20:30 +03:00
module Devops
module Model
class DeployEnvOpenstack < CloudDeployEnv
2015-03-06 12:20:30 +03:00
2015-11-03 11:46:54 +03:00
# types :identifier => {:type => String, :empty => false},
# :image => {:type => String, :empty => false},
# :flavor => {:type => String, :empty => false},
# :provider => {:type => String, :empty => false},
# :expires => {:type => String, :empty => false, :nil => true},
# :run_list => {:type => Array, :empty => true},
# :users => {:type => Array, :empty => true},
# :subnets => {:type => Array, :empty => true},
# :groups => {:type => Array, :empty => false},
# :stack_template => {:type => String, :empty => false, :nil => true}
=begin
set_validators ::Validators::DeployEnv::RunList,
::Validators::DeployEnv::Expiration,
::Validators::DeployEnv::Users,
::Validators::DeployEnv::Flavor,
::Validators::DeployEnv::Image,
::Validators::DeployEnv::SubnetNotEmpty,
::Validators::DeployEnv::SubnetBelongsToProvider,
::Validators::DeployEnv::Groups,
::Validators::DeployEnv::StackTemplate
=end
2015-03-06 12:20:30 +03:00
def self.create hash
DeployEnvOpenstack.new(hash)
end
def subnets_filter
nil
end
end
2014-06-24 13:40:52 +04:00
end
end