Skip to content

Commit

Permalink
vagrantfile configurable ram and cores
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip (flip) Kromer committed Jul 24, 2012
1 parent 7d2ce32 commit 99ca378
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/chef/knife/vagrant/skeleton_vagrantfile.rb
Expand Up @@ -32,16 +32,16 @@
# learn more abt vagrant to figure out where.
#

# TODO: FIXME: WTF is this hoary horseshit? At *least* do it by cluster-facet,
# TODO: FIXME: WTF is this hoary horseshit? At *least* do it by cluster-facet,
# not just facet (especially since the examples given are all *clusters*)
def ip_for(svr)
"#{Chef::Config.host_network_base}.#{(Chef::Config.host_network_ip_mapping[svr.facet_name] || 30) + svr.facet_index}"
end

# FIXME: things like this should be imputed by the `cloud` statement
ram_mb = 640
ram_mb = Chef::Config.vagrant_ram_mb || 640
video_ram_mb = 10
cores = 2
cores = Chef::Config.vagrant_cores || 2

# ===========================================================================
#
Expand Down

0 comments on commit 99ca378

Please sign in to comment.