summaryrefslogtreecommitdiffstats
path: root/testsuites/rubbos/puppet_manifests/modules/rubbos_mysql/manifests/rubbos_mysql_on.pp
diff options
context:
space:
mode:
authorwangyaoguang <sunshine.wang@huawei.com>2016-04-13 15:57:00 +0800
committerwangyaoguang <sunshine.wang@huawei.com>2016-04-13 15:59:19 +0800
commitdd7eae17aca39d609e28afd5fadf110c5e1e769e (patch)
tree6a7547da23bebe9db2bc68d5dee32b2d3030b842 /testsuites/rubbos/puppet_manifests/modules/rubbos_mysql/manifests/rubbos_mysql_on.pp
parentbdd42e03b0e8ce99888d8ead6a622113af6d2ab5 (diff)
add a script for loading data into mysql database
JIRA: BOTTLENECK-54 Change-Id: Iad7c56b67618fbf2a21b3872735e692c08e53175 Signed-off-by: wangyaoguang <sunshine.wang@huawei.com>
Diffstat (limited to 'testsuites/rubbos/puppet_manifests/modules/rubbos_mysql/manifests/rubbos_mysql_on.pp')
-rw-r--r--testsuites/rubbos/puppet_manifests/modules/rubbos_mysql/manifests/rubbos_mysql_on.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuites/rubbos/puppet_manifests/modules/rubbos_mysql/manifests/rubbos_mysql_on.pp b/testsuites/rubbos/puppet_manifests/modules/rubbos_mysql/manifests/rubbos_mysql_on.pp
index 15fe06c0..81d45427 100644
--- a/testsuites/rubbos/puppet_manifests/modules/rubbos_mysql/manifests/rubbos_mysql_on.pp
+++ b/testsuites/rubbos/puppet_manifests/modules/rubbos_mysql/manifests/rubbos_mysql_on.pp
@@ -75,6 +75,15 @@ class rubbos_mysql::rubbos_mysql_on {
require => Exec['ln -s ${rubbos_app_tools}/mysql-5.5.46-linux2.6-x86_64 mysql'],
}
+ # Prepare a script
+ file {'${rubbos_home}/prepare_rubbos_mysql_db.sh':
+ path => "${rubbos_home}/prepare_rubbos_mysql_db.sh",
+ ensure => present,
+ source => "puppet:///modules/rubbos_mysql/prepare_rubbos_mysql_db.sh",
+ backup => false,
+ show_diff => false,
+ }
+
# Start mysql service
service {'mysql':
ensure => running,