Class: VagrantPlugins::VagrantBosh::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-bosh/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ Config

Returns a new instance of Config.



28
29
30
31
# File 'lib/vagrant-bosh/config.rb', line 28

def initialize(*args)
  super
  @base_dir = "/opt/bosh-provisioner"
end

Instance Attribute Details

#agent_configurationObject

Returns the value of attribute agent_configuration.



21
22
23
# File 'lib/vagrant-bosh/config.rb', line 21

def agent_configuration
  @agent_configuration
end

#agent_infrastructureObject

Returns the value of attribute agent_infrastructure.



21
22
23
# File 'lib/vagrant-bosh/config.rb', line 21

def agent_infrastructure
  @agent_infrastructure
end

#agent_platformObject

Returns the value of attribute agent_platform.



21
22
23
# File 'lib/vagrant-bosh/config.rb', line 21

def agent_platform
  @agent_platform
end

#assets_dirObject (readonly)

Returns the value of attribute assets_dir.



8
9
10
# File 'lib/vagrant-bosh/config.rb', line 8

def assets_dir
  @assets_dir
end

#base_dirObject

Returns the value of attribute base_dir.



6
7
8
# File 'lib/vagrant-bosh/config.rb', line 6

def base_dir
  @base_dir
end

#config_pathObject (readonly)

Returns the value of attribute config_path.



10
11
12
# File 'lib/vagrant-bosh/config.rb', line 10

def config_path
  @config_path
end

#create_release_cmdObject

Command to run to create a BOSH release on the host. BOSH release has a rake task to create a dev release because it creates locally versioned gems.



26
27
28
# File 'lib/vagrant-bosh/config.rb', line 26

def create_release_cmd
  @create_release_cmd
end

#full_stemcell_compatibilityObject

Full stemcell compatibility forces provisioner to install all (not just minimum) dependencies usually found on a stemcell.



19
20
21
# File 'lib/vagrant-bosh/config.rb', line 19

def full_stemcell_compatibility
  @full_stemcell_compatibility
end

#local_blobstore_dirObject (readonly)

Returns the value of attribute local_blobstore_dir.



12
13
14
# File 'lib/vagrant-bosh/config.rb', line 12

def local_blobstore_dir
  @local_blobstore_dir
end

#manifestObject

Manifest holds full BOSH deployment manifest as a string.



15
16
17
# File 'lib/vagrant-bosh/config.rb', line 15

def manifest
  @manifest
end

#manifest_pathObject (readonly)

Returns the value of attribute manifest_path.



10
11
12
# File 'lib/vagrant-bosh/config.rb', line 10

def manifest_path
  @manifest_path
end

#repos_dirObject (readonly)

Returns the value of attribute repos_dir.



8
9
10
# File 'lib/vagrant-bosh/config.rb', line 8

def repos_dir
  @repos_dir
end

#synced_releases_dirObject (readonly)

Returns the value of attribute synced_releases_dir.



12
13
14
# File 'lib/vagrant-bosh/config.rb', line 12

def synced_releases_dir
  @synced_releases_dir
end

Instance Method Details

#finalize!Object



33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/vagrant-bosh/config.rb', line 33

def finalize!
  @assets_dir = File.join(@base_dir, "assets")
  @repos_dir  = File.join(@base_dir, "repos")

  @manifest_path = File.join(@base_dir, "manifest.yml")
  @config_path   = File.join(@base_dir, "config.json")

  @local_blobstore_dir = File.join(@base_dir, "blobstore")
  @synced_releases_dir = File.join(@base_dir, "synced-releases")

  @full_stemcell_compatibility = !!@full_stemcell_compatibility

  @create_release_cmd ||= "ruby -v; bosh -n create release --force"
end

#validate(machine) ⇒ Object



48
49
# File 'lib/vagrant-bosh/config.rb', line 48

def validate(machine)
end