mirror of https://github.com/ceph/ceph-ansible.git
vagrant: add debug option
If debug is set to true in vagrant_variables.yml then during the vagrant provision phase Ansible will run with -vvvv option Signed-off-by: Sébastien Han <seb@redhat.com>pull/1397/head
parent
d82ad7778d
commit
2d0565b072
|
@ -5,8 +5,6 @@ require 'yaml'
|
|||
require 'time'
|
||||
VAGRANTFILE_API_VERSION = '2'
|
||||
|
||||
DEBUG = false
|
||||
|
||||
config_file=File.expand_path(File.join(File.dirname(__FILE__), 'vagrant_variables.yml'))
|
||||
settings=YAML.load_file(config_file)
|
||||
|
||||
|
@ -29,6 +27,7 @@ MEMORY = settings['memory']
|
|||
ETH = settings['eth']
|
||||
DOCKER = settings['docker']
|
||||
USER = settings['ssh_username']
|
||||
DEBUG = settings['debug']
|
||||
|
||||
ASSIGN_STATIC_IP = !(BOX == 'openstack' or BOX == 'linode')
|
||||
DISABLE_SYNCED_FOLDER = settings.fetch('vagrant_disable_synced_folder', false)
|
||||
|
@ -111,7 +110,7 @@ ansible_provision = proc do |ansible|
|
|||
end
|
||||
|
||||
if DEBUG then
|
||||
ansible.verbose = '-vvv'
|
||||
ansible.verbose = '-vvvv'
|
||||
end
|
||||
ansible.limit = 'all'
|
||||
end
|
||||
|
|
|
@ -62,3 +62,6 @@ vagrant_sync_dir: /home/vagrant/sync
|
|||
os_tuning_params:
|
||||
- { name: kernel.pid_max, value: 4194303 }
|
||||
- { name: fs.file-max, value: 26234859 }
|
||||
|
||||
# Debug mode, runs Ansible with -vvvv
|
||||
debug: false
|
||||
|
|
Loading…
Reference in New Issue