diff options
Diffstat (limited to 'testsuites/rubbos/puppet_manifests/modules/rubbos_mysql/manifests')
-rw-r--r-- | testsuites/rubbos/puppet_manifests/modules/rubbos_mysql/manifests/rubbos_mysql_off.pp | 8 | ||||
-rw-r--r-- | testsuites/rubbos/puppet_manifests/modules/rubbos_mysql/manifests/rubbos_mysql_on.pp | 9 |
2 files changed, 17 insertions, 0 deletions
diff --git a/testsuites/rubbos/puppet_manifests/modules/rubbos_mysql/manifests/rubbos_mysql_off.pp b/testsuites/rubbos/puppet_manifests/modules/rubbos_mysql/manifests/rubbos_mysql_off.pp index 8401470b..ec9a8717 100644 --- a/testsuites/rubbos/puppet_manifests/modules/rubbos_mysql/manifests/rubbos_mysql_off.pp +++ b/testsuites/rubbos/puppet_manifests/modules/rubbos_mysql/manifests/rubbos_mysql_off.pp @@ -43,6 +43,14 @@ class rubbos_mysql::rubbos_mysql_off { require => Service['stop mysql'], } + file {'${rubbos_home}/prepare_rubbos_mysql_db.sh': + ensure => absent, + path => "${rubbos_home}/prepare_rubbos_mysql_db.sh", + backup => false, + show_diff => false, + require => Service['stop mysql'], + } + # Remove user and group user {'${mysql_user_name}': name => "${mysql_user_name}", 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, |