Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8393236
installdb.pp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
837 B
Subscribers
None
installdb.pp
View Options
#
class
mysql
::
server
::
installdb
{
if
$mysql::server::package_manage
{
# Build the initial databases.
$mysqluser
=
$mysql::server::options['mysqld']
[
'user'
]
$datadir
=
$mysql::server::options['mysqld']
[
'datadir'
]
$basedir
=
$mysql::server::options['mysqld']
[
'basedir'
]
$config_file
=
$mysql::server::config_file
if
$mysql::server::manage_config_file
{
$_config_file=$config_file
}
else
{
$_config_file=undef
}
mysql_datadir
{
$datadir:
ensure
=>
'present'
,
datadir
=>
$datadir,
basedir
=>
$basedir,
user
=>
$mysqluser,
defaults_extra_file
=>
$_config_file,
}
if
$mysql::server::restart
{
Mysql_datadir
[
$datadir]
{
notify
=>
Class
[
'mysql::server::service'
],
}
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Jun 4 2025, 7:10 PM (9 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3381848
Attached To
rSPMY puppet-puppetlabs-mysql
Event Timeline
Log In to Comment