Files
puppet-openstack/manifests/test_file.pp
Dan Bode 0ca48ee832 Add template to create test file
This commit creates a template to manage the nova test file.
It was converted to a template to make it more configurable.
It deletes the old static file.
2012-06-25 17:44:04 -07:00

29 lines
857 B
Puppet

#
# Class that can be used to create a test script for testing an
# installed openstack environment.
#
#
#
#
# [path] Path of test file to be created. Optional. Defaults to /tmp/test_nova.sh
# [rc_file_path] Path of openrc file that sets up all authentication environment
# variables. Optional. Defaults to /root/openrc.
# [image_type] Type of image to download. Accepts cirros or ubuntu. Optional.
# Defaults to cirros.
# [sleep_time] Used to tune how long to sleep for. Optional. Defaults to 60.
# [floating_ip] Rather to test flating ip address allocation. Optional.
# Defaults to true.
class openstack::test_file(
$path = '/tmp/test_nova.sh',
$rc_file_path = '/root/openrc',
$image_type = 'cirros',
$sleep_time = '15',
$floating_ip = true
) {
file { $path:
content => template('openstack/test_nova.sh.erb'),
}
}