Class: VagrantSalt::Provisioner::Config

Inherits:
Vagrant::Config::Base
  • Object
show all
Defined in:
lib/vagrant-salt/provisioner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#minion_configObject

Returns the value of attribute minion_config.



4
5
6
# File 'lib/vagrant-salt/provisioner.rb', line 4

def minion_config
  @minion_config
end

#minion_keyObject

Returns the value of attribute minion_key.



6
7
8
# File 'lib/vagrant-salt/provisioner.rb', line 6

def minion_key
  @minion_key
end

#minion_pubObject

Returns the value of attribute minion_pub.



7
8
9
# File 'lib/vagrant-salt/provisioner.rb', line 7

def minion_pub
  @minion_pub
end

#run_highstateObject

Returns the value of attribute run_highstate.



8
9
10
# File 'lib/vagrant-salt/provisioner.rb', line 8

def run_highstate
  @run_highstate
end

#salt_install_argsObject

Returns the value of attribute salt_install_args.



10
11
12
# File 'lib/vagrant-salt/provisioner.rb', line 10

def salt_install_args
  @salt_install_args
end

#salt_install_typeObject

Returns the value of attribute salt_install_type.



9
10
11
# File 'lib/vagrant-salt/provisioner.rb', line 9

def salt_install_type
  @salt_install_type
end

#temp_config_dirObject

Returns the value of attribute temp_config_dir.



5
6
7
# File 'lib/vagrant-salt/provisioner.rb', line 5

def temp_config_dir
  @temp_config_dir
end

Instance Method Details

#bootstrap_optionsObject



25
26
27
28
29
30
31
32
# File 'lib/vagrant-salt/provisioner.rb', line 25

def bootstrap_options
  options = ''
  if temp_config_dir
    options = options + '-c %s' % temp_config_dir
  end
  options = options + ' %s %s' % [salt_install_type, salt_install_args]
  return options
end

#expanded_path(root_path, rel_path) ⇒ Object



21
22
23
# File 'lib/vagrant-salt/provisioner.rb', line 21

def expanded_path(root_path, rel_path)
  Pathname.new(rel_path).expand_path(root_path)
end