Set cacti exec's cwd to fully rooted path.

The cwd of a puppet exec resource must be a fully rooted path. Make the
cacti_import_xml exec use a fully rooted cwd.

Change-Id: I8701dd9ef306e488e72e92d5fc38fa3508407af1
Reviewed-on: https://review.openstack.org/15117
Reviewed-by: Paul Belanger <paul.belanger@polybeacon.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
This commit is contained in:
Clark Boylan 2012-10-31 09:32:58 -07:00 committed by Jenkins
parent 35e4918485
commit f8da250056

View File

@ -52,7 +52,7 @@ class openstack_project::cacti (
command => '/usr/bin/php -q /usr/share/cacti/cli/import_template.php \ command => '/usr/bin/php -q /usr/share/cacti/cli/import_template.php \
--filename=/var/lib/cacti/linux_host.xml \ --filename=/var/lib/cacti/linux_host.xml \
--with-template-rras', --with-template-rras',
cwd => 'usr/share/cacti/cli', cwd => '/usr/share/cacti/cli',
require => File['/var/lib/cacti/linux_host.xml'], require => File['/var/lib/cacti/linux_host.xml'],
} }