lib/recipes/centos/mysql.rb in capitate-0.3.5 vs lib/recipes/centos/mysql.rb in capitate-0.3.6
- old
+ new
@@ -3,22 +3,13 @@
namespace :centos do
desc <<-DESC
Install mysql.
- <dl>
- <dt>mysql_admin_password_set</dt>
- <dd>Mysql admin password (to set)</dd>
- <dd class="default">Defaults to password prompt.</dd>
- <pre><code class="ruby">set :mysql_admin_password_set, prompt.password('Mysql admin password (to set): ')<code></pre>
- </dl>
"Source":#{link_to_source(__FILE__)}
DESC
+ task_arg(:mysql_admin_password_set, "Mysql admin password (to set)", :default => Proc.new{prompt.password('Mysql admin password (to set): ', :verify => true)}, :default_desc => "password prompt")
task :install do
-
- # Settings
- fetch_or_default(:mysql_admin_password_set, prompt.password('Mysql admin password (to set): ', :verify => true))
-
# Install through package manager
yum.install([ "mysql", "mysql-devel", "mysql-server" ])
# Install service
run_via "/sbin/chkconfig --level 345 mysqld on"
\ No newline at end of file