Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lysator
Puppet
Datorhandbok
Commits
df22caf2
Commit
df22caf2
authored
Jan 31, 2021
by
Hugo Hörnquist
Browse files
Setup mysql user.
parent
0cf8267c
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/init.pp
View file @
df22caf2
...
...
@@ -47,6 +47,27 @@ class profiles::datorhandbok {
#
│
<
Ok
>
│
#
│
│
#
└─────────────────────────────────────────────────────────────────────────────────────────────────┘
#
Mariadb
gave
the
following
notice
on
upgrade
.
Might
as
well
#
explicitly
specifify
it
here
group
{ 'mysql':
ensure => present,
system => true,
}
user
{ 'mysql':
ensule => present,
system => true,
gid => 'mysql',
home => '/var/lib/mysql',
}
file
{ '/var/lib/mysql':
ensure => directory,
owner => mysql,
group => mysql,
mode => '0755',
}
cron
{ 'backup-mysql':
command => 'TMPFILE=`/bin/mktemp /var/tmp/fulldump.sql.XXX` && /usr/bin/mysqldump --all-databases --events > "$ TMPFILE" && mv "$TMPFILE" /var/lib/mysql-dump/fulldump.sql',
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment