Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Łukasz Nowak
slapos
Commits
65d034df
Commit
65d034df
authored
Oct 26, 2011
by
Antoine Catton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup the lamp stack
parent
9b4fa8de
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
9 deletions
+20
-9
stack/lamp/buildout.cfg
stack/lamp/buildout.cfg
+3
-3
stack/lamp/instance-mariadb-pseudo-replicating.cfg
stack/lamp/instance-mariadb-pseudo-replicating.cfg
+9
-2
stack/lamp/instance-mariadb-remote-backuped.cfg
stack/lamp/instance-mariadb-remote-backuped.cfg
+7
-2
stack/lamp/instance-mariadb.cfg
stack/lamp/instance-mariadb.cfg
+1
-2
No files found.
stack/lamp/buildout.cfg
View file @
65d034df
...
...
@@ -76,21 +76,21 @@ mode = 0644
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-mariadb.cfg
output = ${buildout:directory}/template-mariadb.cfg
md5sum =
13953fd1c6eeca15d00d9bd060903d12
md5sum =
52237e8921b070d0de3bb2f6716d40c7
mode = 0644
[template-mariadb-remote-backuped]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-mariadb-remote-backuped.cfg
output = ${buildout:directory}/template-mariadb-remote-backuped.cfg
md5sum =
fa4dae3a62ba2c42391c8275c632b84
8
md5sum =
222bb187b5628536a20a809f3faf31f
8
mode = 0644
[template-mariadb-pseudo-replicating]
recipe = slapos.recipe.template
url = ${:_profile_base_location_}/instance-mariadb-pseudo-replicating.cfg
output = ${buildout:directory}/template-mariadb-pseudo-replicating.cfg
md5sum =
d352b49500652bb64a44aae00d7678fd
md5sum =
e9f1d5f6dd5f7995d0be06863d196de9
mode = 0644
[eggs]
...
...
stack/lamp/instance-mariadb-pseudo-replicating.cfg
View file @
65d034df
...
...
@@ -23,6 +23,7 @@ remote-backup = $${slap-parameter:backup-url}
local-directory = $${directory:duplicity-recover}
duplicity-binary = ${buildout:bin-directory}/duplicity
wrapper = $${rootdirectory:bin}/raw_duplicity
cache = $${directory:duplicity-cache}
recover = true
[duplicity-recover-locked]
...
...
@@ -51,15 +52,21 @@ wait = true
[cron-entry-duplicity-recover]
<= cron
recipe = slapos.cookbook:cron.d
name = duplicity_recover
frequency =
0 0
* * *
frequency =
30 *
* * *
command = $${duplicity-recover-locked:wrapper}
[cron-entry-mariadb-import]
<= cron
recipe = slapos.cookbook:cron.d
name = mariadb_import
frequency = 0
1
* * *
frequency = 0
*
* * *
command = $${mydumper-import-locked:wrapper}
[basedirectory]
cache = $${rootdirectory:var}/cache/
[directory]
duplicity-recover = $${rootdirectory:srv}/recovering
duplicity-cache = $${basedirectory:cache}/duplicity
stack/lamp/instance-mariadb-remote-backuped.cfg
View file @
65d034df
...
...
@@ -40,6 +40,7 @@ local-directory = $${mydumper:backup-directory}
duplicity-binary = ${buildout:bin-directory}/duplicity
wrapper = $${rootdirectory:bin}/raw_duplicity
recover = false
cache = $${directory:duplicity-cache}
[duplicity-locked]
recipe = slapos.cookbook:lockfile
...
...
@@ -52,15 +53,19 @@ wait = true
<= cron
recipe = slapos.cookbook:cron.d
name = remote_backup
frequency =
0 1
* * *
frequency =
30 *
* * *
command = $${duplicity-locked:wrapper}
[cron-entry-mariadb-backup]
<= cron
recipe = slapos.cookbook:cron.d
name = backup
frequency = 0
0
* * *
frequency = 0
*
* * *
command = $${mydumper-locked:wrapper}
[basedirectory]
cache = $${rootdirectory:var}/cache/
[directory]
mariadb-backup = $${basedirectory:backup}/mariadb/
duplicity-cache = $${basedirectory:cache}/duplicity/
stack/lamp/instance-mariadb.cfg
View file @
65d034df
...
...
@@ -44,7 +44,6 @@ data-directory = $${directory:mariadb-data}
pid-file = $${basedirectory:run}/mariadb.pid
socket = $${basedirectory:run}/mariadb.sock
error-log = $${basedirectory:log}/mariadb_error.log
slow-query-log = $${basedirectory:log}/mariadb_slowquery.log
conf-file = $${rootdirectory:etc}/mariadb.cnf
promise = $${basedirectory:promises}/mysql
...
...
@@ -114,7 +113,7 @@ state-file = $${rootdirectory:srv}/logrotate.status
<= logrotate
recipe = slapos.cookbook:logrotate.d
name = mariadb
log = $${mariadb:error-log}
$${mariadb:slow-query-log}
log = $${mariadb:error-log}
frequency = daily
rotate-num = 30
post = $${mariadb:logrotate-post}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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