Added project name in

This commit is contained in:
Tim Kuhlman 2014-06-11 08:59:11 -06:00
parent 8e90a15307
commit 797cc43078
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@ and logging levels.
"keystone_url": "http://192.168.10.4:5000/v2.0",
"username": "joe_user",
"password": "correcthorsebatterystaple",
"project_name": "worldpeace",
"mon_api_url": "http://192.168.10.4:8080/v2.0",
"service": "mini-mon"
}

View File

@ -16,7 +16,7 @@ end
setting = data_bag_item(node[:mon_agent][:data_bag], 'mon_agent')
execute 'mon-setup' do
action :run
cmd "/usr/local/bin/mon-setup -u #{settings['username']} -p #{settings['password']} -s #{settings['service']} --keystone_url #{settings['keystone_url']} --mon_url #{settings['mon_api_url']}"
cmd "/usr/local/bin/mon-setup -u #{settings['username']} -p #{settings['password']} -s #{settings['service']} --keystone_url #{settings['keystone_url']} --project_name #{settings['project_name']} --mon_url #{settings['mon_api_url']}"
end
include_recipe 'mon_agent::plugin_cfg'