summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2017-04-10 22:20:46 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2017-04-10 22:20:46 +0000
commitd2e2ffd9f8a1103cb7a671ad2289dae6b00b2637 (patch)
tree1573b7a8a0d3799aedfca016af69ff326bb0ea96
parentAnnotating recommends and suggests in control. (diff)
downloadopen-infrastructure-storage-tools-d2e2ffd9f8a1103cb7a671ad2289dae6b00b2637.tar.xz
open-infrastructure-storage-tools-d2e2ffd9f8a1103cb7a671ad2289dae6b00b2637.zip
Adding debconf handling for /etc/default/storage-tools.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--debian/local/storage-tools9
-rw-r--r--debian/open-infrastructure-storage-tools.config68
-rw-r--r--debian/open-infrastructure-storage-tools.install1
-rwxr-xr-xdebian/open-infrastructure-storage-tools.postinst138
-rwxr-xr-xdebian/open-infrastructure-storage-tools.postrm22
-rw-r--r--debian/open-infrastructure-storage-tools.templates105
-rw-r--r--debian/po/POTFILES.in1
-rw-r--r--debian/po/templates.pot293
8 files changed, 627 insertions, 10 deletions
diff --git a/debian/local/storage-tools b/debian/local/storage-tools
deleted file mode 100644
index 40f0b8a..0000000
--- a/debian/local/storage-tools
+++ /dev/null
@@ -1,9 +0,0 @@
-# /etc/default/storage-tools
-
-CEPH_INFO="true"
-CEPH_LOG="true"
-
-CEPHFS_SNAP="true"
-CEPHFS_DIRECTORIES=""
-
-IRK_TARGETS=""
diff --git a/debian/open-infrastructure-storage-tools.config b/debian/open-infrastructure-storage-tools.config
new file mode 100644
index 0000000..daf26c6
--- /dev/null
+++ b/debian/open-infrastructure-storage-tools.config
@@ -0,0 +1,68 @@
+#!/bin/sh
+
+set -e
+
+CONFFILE="/etc/default/storage-tools"
+
+. /usr/share/debconf/confmodule
+
+if [ -e "${CONFFILE}" ]
+then
+ . ${CONFFILE} || true
+
+ db_set open-infrastructure-storage-tools/ceph-log "${CEPH_LOG}"
+ db_set open-infrastructure-storage-tools/ceph-info "${CEPH_INFO}"
+
+ db_set open-infrastructure-storage-tools/cephfs-snap "${CEPHFS_SNAP}"
+ db_set open-infrastructure-storage-tools/cephfs-snap-directories "${CEPHFS_SNAP_DIRECTORIES}"
+
+ db_set open-infrastructure-storage-tools/cephfs-snap-hourly "${CEPHFS_SNAP_HOURLY}"
+ db_set open-infrastructure-storage-tools/cephfs-snap-daily "${CEPHFS_SNAP_DAILY}"
+ db_set open-infrastructure-storage-tools/cephfs-snap-weekly "${CEPHFS_SNAP_WEEKLY}"
+ db_set open-infrastructure-storage-tools/cephfs-snap-monthly "${CEPHFS_SNAP_MONTHLY}"
+ db_set open-infrastructure-storage-tools/cephfs-snap-yearly "${CEPHFS_SNAP_YEARLY}"
+
+ db_set open-infrastructure-storage-tools/irc "${IRK_TARGETS}"
+fi
+
+db_settitle open-infrastructure-storage-tools/title
+db_input low open-infrastructure-storage-tools/ceph-log || true
+db_go
+
+db_settitle open-infrastructure-storage-tools/title
+db_input low open-infrastructure-storage-tools/ceph-info || true
+db_go
+
+db_settitle open-infrastructure-storage-tools/title
+db_input low open-infrastructure-storage-tools/cephfs-snap || true
+db_go
+
+db_settitle open-infrastructure-storage-tools/title
+db_input low open-infrastructure-storage-tools/cephfs-snap-directories || true
+db_go
+
+db_settitle open-infrastructure-storage-tools/title
+db_input low open-infrastructure-storage-tools/cephfs-snap-hourly || true
+db_go
+
+db_settitle open-infrastructure-storage-tools/title
+db_input low open-infrastructure-storage-tools/cephfs-snap-daily || true
+db_go
+
+db_settitle open-infrastructure-storage-tools/title
+db_input low open-infrastructure-storage-tools/cephfs-snap-weekly || true
+db_go
+
+db_settitle open-infrastructure-storage-tools/title
+db_input low open-infrastructure-storage-tools/cephfs-snap-monthly || true
+db_go
+
+db_settitle open-infrastructure-storage-tools/title
+db_input low open-infrastructure-storage-tools/cephfs-snap-yearly || true
+db_go
+
+db_settitle open-infrastructure-storage-tools/title
+db_input low open-infrastructure-storage-tools/irc || true
+db_go
+
+db_stop
diff --git a/debian/open-infrastructure-storage-tools.install b/debian/open-infrastructure-storage-tools.install
deleted file mode 100644
index 749c4c3..0000000
--- a/debian/open-infrastructure-storage-tools.install
+++ /dev/null
@@ -1 +0,0 @@
-debian/local/* /etc/defaults
diff --git a/debian/open-infrastructure-storage-tools.postinst b/debian/open-infrastructure-storage-tools.postinst
new file mode 100755
index 0000000..e207f8f
--- /dev/null
+++ b/debian/open-infrastructure-storage-tools.postinst
@@ -0,0 +1,138 @@
+#!/bin/sh
+
+set -e
+
+CONFFILE="/etc/default/storage-tools"
+
+case "${1}" in
+ configure)
+ . /usr/share/debconf/confmodule
+
+ db_get open-infrastructure-storage-tools/ceph-log
+ CEPH_LOG="${RET}" # boolean
+
+ db_get open-infrastructure-storage-tools/ceph-info
+ CEPH_INFO="${RET}" # boolean
+
+ db_get open-infrastructure-storage-tools/cephfs-snap
+ CEPHFS_SNAP="${RET}" # boolean
+
+ db_get open-infrastructure-storage-tools/cephfs-snap-directories
+ CEPHFS_SNAP_DIRECTORIES="${RET}" # string (w/ empty)
+
+ db_get open-infrastructure-storage-tools/cephfs-snap-hourly
+ CEPHFS_SNAP_HOURLY="${RET}" # string (w/ empty)
+
+ db_get open-infrastructure-storage-tools/cephfs-snap-daily
+ CEPHFS_SNAP_DAILY="${RET}" # string (w/ empty)
+
+ db_get open-infrastructure-storage-tools/cephfs-snap-weekly
+ CEPHFS_SNAP_WEEKLY="${RET}" # string (w/ empty)
+
+ db_get open-infrastructure-storage-tools/cephfs-snap-monthly
+ CEPHFS_SNAP_MONTHLY="${RET}" # string (w/ empty)
+
+ db_get open-infrastructure-storage-tools/cephfs-snap-yearly
+ CEPHFS_SNAP_YEARLY="${RET}" # string (w/ empty)
+
+ db_get open-infrastructure-storage-tools/irc
+ IRK_TARGETS="${RET}" # string (w/ empty)
+
+ db_stop
+
+ if [ ! -e "${CONFFILE}" ]
+ then
+
+cat > "${CONFFILE}" << EOF
+# /etc/default/storage-tools
+
+CEPH_INFO="${CEPH_INFO}"
+CEPH_LOG="${CEPH_LOG}"
+
+CEPHFS_SNAP="${CEPHFS_SNAP}"
+CEPHFS_SNAP_DIRECTORIES="${CEPHFS_SNAP_DIRECTORIES}"
+
+CEPHFS_SNAP_HOURLY="${CEPHFS_SNAP_HOURLY}"
+CEPHFS_SNAP_DAILY="${CEPHFS_SNAP_DAILY}"
+CEPHFS_SNAP_WEEKLY="${CEPHFS_SNAP_WEEKLY}"
+CEPHFS_SNAP_MONTHLY="${CEPHFS_SNAP_MONTHLY}"
+CEPHFS_SNAP_YEARLY="${CEPHFS_SNAP_YEARLY}"
+
+IRK_TARGETS="${IRK_TARGETS}"
+EOF
+
+ fi
+
+ cp -a -f "${CONFFILE}" "${CONFFILE}.tmp"
+
+ # If the admin deleted or commented some variables but then set
+ # them via debconf, (re-)add them to the config file.
+
+ test -z "${CEPH_LOG}" || \
+ grep -Eq '^ *CEPH_LOG=' "${CONFFILE}" || \
+ echo "CEPH_LOG=" >> "${CONFFILE}"
+
+ test -z "${CEPH_INFO}" || \
+ grep -Eq '^ *CEPH_INFO=' "${CONFFILE}" || \
+ echo "CEPH_INFO=" >> "${CONFFILE}"
+
+ test -z "${CEPHFS_SNAP}" || \
+ grep -Eq '^ *CEPHFS_SNAP=' "${CONFFILE}" || \
+ echo "CEPHFS_SNAP=" >> "${CONFFILE}"
+
+ test -z "${CEPHFS_SNAP_DIRECTORIES}" || \
+ grep -Eq '^ *CEPHFS_SNAP_DIRECTORIES=' "${CONFFILE}" || \
+ echo "CEPHFS_SNAP_DIRECTORIES=" >> "${CONFFILE}"
+
+ test -z "${CEPHFS_SNAP_HOURLY}" || \
+ grep -Eq '^ *CEPHFS_SNAP_HOURLY=' "${CONFFILE}" || \
+ echo "CEPHFS_SNAP_HOURLY=" >> "${CONFFILE}"
+
+ test -z "${CEPHFS_SNAP_DAILY}" || \
+ grep -Eq '^ *CEPHFS_SNAP_DAILY=' "${CONFFILE}" || \
+ echo "CEPHFS_SNAP_DAILY=" >> "${CONFFILE}"
+
+ test -z "${CEPHFS_SNAP_WEEKLY}" || \
+ grep -Eq '^ *CEPHFS_SNAP_WEEKLY=' "${CONFFILE}" || \
+ echo "CEPHFS_SNAP_WEEKLY=" >> "${CONFFILE}"
+
+ test -z "${CEPHFS_SNAP_MONTHLY}" || \
+ grep -Eq '^ *CEPHFS_SNAP_MONTHLY=' "${CONFFILE}" || \
+ echo "CEPHFS_SNAP_MONTHLY=" >> "${CONFFILE}"
+
+ test -z "${CEPHFS_SNAP_YEARLY}" || \
+ grep -Eq '^ *CEPHFS_SNAP_YEARLY=' "${CONFFILE}" || \
+ echo "CEPHFS_SNAP_YEARLY=" >> "${CONFFILE}"
+
+ test -z "${IRK_TARGETS}" || \
+ grep -Eq '^ *IRK_TARGETS=' "${CONFFILE}" || \
+ echo "IRK_TARGETS=" >> "${CONFFILE}"
+
+ sed -e "s|^ *CEPH_LOG=.*|CEPH_LOG=\"${CEPH_LOG}\"|" \
+ -e "s|^ *CEPH_INFO=.*|CEPH_INFO=\"${CEPH_INFO}\"|" \
+ -e "s|^ *CEPHFS_SNAP=.*|CEPHFS_SNAP=\"${CEPHFS_SNAP}\"|" \
+ -e "s|^ *CEPHFS_SNAP_DIRECTORIES=.*|CEPHFS_SNAP_DIRECTORIES=\"${CEPHFS_SNAP_DIRECTORIES}\"|" \
+ -e "s|^ *CEPHFS_SNAP_HOURLY=.*|CEPHFS_SNAP_HOURLY=\"${CEPHFS_SNAP_HOURLY}\"|" \
+ -e "s|^ *CEPHFS_SNAP_DAILY=.*|CEPHFS_SNAP_DAILY=\"${CEPHFS_SNAP_DAILY}\"|" \
+ -e "s|^ *CEPHFS_SNAP_WEEKLY=.*|CEPHFS_SNAP_WEEKLY=\"${CEPHFS_SNAP_WEEKLY}\"|" \
+ -e "s|^ *CEPHFS_SNAP_MONTHLY=.*|CEPHFS_SNAP_MONTHLY=\"${CEPHFS_SNAP_MONTHLY}\"|" \
+ -e "s|^ *CEPHFS_SNAP_YEARLY=.*|CEPHFS_SNAP_YEARLY=\"${CEPHFS_SNAP_YEARLY}\"|" \
+ -e "s|^ *IRK_TARGETS=.*|IRK_TARGETS=\"${IRK_TARGETS}\"|" \
+ < "${CONFFILE}" > "${CONFFILE}.tmp"
+
+ mv -f "${CONFFILE}.tmp" "${CONFFILE}"
+ ;;
+
+ abort-upgrade|abort-remove|abort-deconfigure)
+
+ ;;
+
+ *)
+ echo "postinst called with unknown argument \`${1}'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/open-infrastructure-storage-tools.postrm b/debian/open-infrastructure-storage-tools.postrm
new file mode 100755
index 0000000..3efff27
--- /dev/null
+++ b/debian/open-infrastructure-storage-tools.postrm
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+case "${1}" in
+ purge)
+ rm -f /etc/default/storage-tools
+ ;;
+
+ remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+
+ ;;
+
+ *)
+ echo "postrm called with unknown argument \`$1'" >&2
+ exit 1
+ ;;
+esac
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/open-infrastructure-storage-tools.templates b/debian/open-infrastructure-storage-tools.templates
new file mode 100644
index 0000000..2aa1152
--- /dev/null
+++ b/debian/open-infrastructure-storage-tools.templates
@@ -0,0 +1,105 @@
+Template: open-infrastructure-storage-tools/title
+Type: title
+_Description: storage-tools: Setup
+
+Template: open-infrastructure-storage-tools/ceph-log
+Type: boolean
+Default: false
+_Description: ceph-log:
+ ceph-log stores Ceph cluster log as a logfile, see ceph-log(1).
+ .
+ Should ceph-log be enabled?
+
+Template: open-infrastructure-storage-tools/ceph-info
+Type: boolean
+Default: false
+_Description: ceph-info:
+ ceph-info shows Ceph cluster information as a website, see ceph-info(1).
+ .
+ Should ceph-info be enabled?
+
+Template: open-infrastructure-storage-tools/cephfs-snap
+Type: boolean
+Default: false
+_Description: cephfs-snap:
+ cephfs-snap creates CephFS snapshots periodically, see cephfs-snap(1).
+ .
+ Should cephfs-snap be enabled?
+
+Template: open-infrastructure-storage-tools/cephfs-snap-directories
+Type: string
+_Default:
+_Description: cephfs-snap directories:
+ Please specify the directories (space separated) where CephFS are mounted
+ that should be snapshoted.
+ .
+ If unsure, leave empty.
+
+Template: open-infrastructure-storage-tools/cephfs-snap-hourly
+Type: string
+_Default: 168
+_Description: cephfs-snap hourly:
+ Please specify the number of hourly snapshots that should be kept.
+ .
+ Depending on the use case a reasonable default might be to keep hourly
+ snapshots for 1 week, means: (24 * 7) + 1 = 169
+ .
+ If unsure, leave empty (no automatic hourly snapshot rotation).
+
+Template: open-infrastructure-storage-tools/cephfs-snap-daily
+Type: string
+_Default: 32
+_Description: cephfs-snap daily:
+ Please specify the number of daily snapshots that should be kept.
+ .
+ Depending on the use case a reasonable default might be to keep daily
+ snapshots for 1 month, means: (31 * 1) + 1 = 32
+ .
+ If unsure, leave empty (no automatic daily snapshot rotation).
+
+Template: open-infrastructure-storage-tools/cephfs-snap-weekly
+Type: string
+_Default: 25
+_Description: cephfs-snap weekly:
+ Please specify the number of weekly snapshots that should be kept.
+ .
+ Depending on the use case a reasonable default might be to keep weekly
+ snapshots for 6 months, means: (6 * 4) + 1 = 25
+ .
+ If unsure, leave empty (no automatic weekly snapshot rotation).
+
+Template: open-infrastructure-storage-tools/cephfs-snap-monthly
+Type: string
+_Default: 13
+_Description: cephfs-snap monthly:
+ Please specify the number of monthly snapshots that should be kept.
+ .
+ Depending on the use case a reasonable default might be to keep monthly
+ snapshots for 1 year, means: (12 * 1) + 1 = 13
+ .
+ If unsure, leave empty (no automatic monthly snapshot rotation).
+
+Template: open-infrastructure-storage-tools/cephfs-snap-yearly
+Type: string
+_Default: 11
+_Description: cephfs-snap yearly:
+ Please specify the number of yearly snapshots that should be kept.
+ .
+ Depending on the use case a reasonable default might be to keep yearly
+ snapshots for 10 years, means: (10 * 1) + 1 = 11
+ .
+ If unsure, leave empty (no automatic yearly snapshot rotation).
+
+Template: open-infrastructure-storage-tools/irc
+Type: string
+_Default:
+_Description: IRC notifications:
+ The cephfs-snap command can send IRC notifications via irker to one or
+ more (whitespace separated) IRC channels.
+ .
+ The following example will send IRC notifications to the
+ open-infrastructure channel on irc.oftc.net:
+ .
+ irc://irc.oftc.net:6668/open-infrastructure
+ .
+ If unsure, leave empty (default).
diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in
new file mode 100644
index 0000000..600c844
--- /dev/null
+++ b/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] open-infrastructure-storage-tools.templates
diff --git a/debian/po/templates.pot b/debian/po/templates.pot
new file mode 100644
index 0000000..4834828
--- /dev/null
+++ b/debian/po/templates.pot
@@ -0,0 +1,293 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the open-infrastructure-storage-tools package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: open-infrastructure-storage-tools\n"
+"Report-Msgid-Bugs-To: open-infrastructure-storage-tools@packages.debian.org\n"
+"POT-Creation-Date: 2017-04-09 19:17+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: title
+#. Description
+#: ../open-infrastructure-storage-tools.templates:1001
+msgid "storage-tools: Setup"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../open-infrastructure-storage-tools.templates:2001
+msgid "ceph-log:"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../open-infrastructure-storage-tools.templates:2001
+msgid "ceph-log stores Ceph cluster log as a logfile, see ceph-log(1)."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../open-infrastructure-storage-tools.templates:2001
+msgid "Should ceph-log be enabled?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../open-infrastructure-storage-tools.templates:3001
+msgid "ceph-info:"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../open-infrastructure-storage-tools.templates:3001
+msgid ""
+"ceph-info shows Ceph cluster information as a website, see ceph-info(1)."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../open-infrastructure-storage-tools.templates:3001
+msgid "Should ceph-info be enabled?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../open-infrastructure-storage-tools.templates:4001
+msgid "cephfs-snap:"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../open-infrastructure-storage-tools.templates:4001
+msgid "cephfs-snap creates CephFS snapshots periodically, see cephfs-snap(1)."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../open-infrastructure-storage-tools.templates:4001
+msgid "Should cephfs-snap be enabled?"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:5002
+msgid "cephfs-snap directories:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:5002
+msgid ""
+"Please specify the directories (space separated) where CephFS are mounted "
+"that should be snapshoted."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:5002
+msgid "If unsure, leave empty."
+msgstr ""
+
+#. Type: string
+#. Default
+#: ../open-infrastructure-storage-tools.templates:6001
+msgid "168"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:6002
+msgid "cephfs-snap hourly:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:6002
+msgid "Please specify the number of hourly snapshots that should be kept."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:6002
+msgid ""
+"Depending on the use case a reasonable default might be to keep hourly "
+"snapshots for 1 week, means: (24 * 7) + 1 = 169"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:6002
+msgid "If unsure, leave empty (no automatic hourly snapshot rotation)."
+msgstr ""
+
+#. Type: string
+#. Default
+#: ../open-infrastructure-storage-tools.templates:7001
+msgid "32"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:7002
+msgid "cephfs-snap daily:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:7002
+msgid "Please specify the number of daily snapshots that should be kept."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:7002
+msgid ""
+"Depending on the use case a reasonable default might be to keep daily "
+"snapshots for 1 month, means: (31 * 1) + 1 = 32"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:7002
+msgid "If unsure, leave empty (no automatic daily snapshot rotation)."
+msgstr ""
+
+#. Type: string
+#. Default
+#: ../open-infrastructure-storage-tools.templates:8001
+msgid "25"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:8002
+msgid "cephfs-snap weekly:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:8002
+msgid "Please specify the number of weekly snapshots that should be kept."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:8002
+msgid ""
+"Depending on the use case a reasonable default might be to keep weekly "
+"snapshots for 6 months, means: (6 * 4) + 1 = 25"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:8002
+msgid "If unsure, leave empty (no automatic weekly snapshot rotation)."
+msgstr ""
+
+#. Type: string
+#. Default
+#: ../open-infrastructure-storage-tools.templates:9001
+msgid "13"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:9002
+msgid "cephfs-snap monthly:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:9002
+msgid "Please specify the number of monthly snapshots that should be kept."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:9002
+msgid ""
+"Depending on the use case a reasonable default might be to keep monthly "
+"snapshots for 1 year, means: (12 * 1) + 1 = 13"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:9002
+msgid "If unsure, leave empty (no automatic monthly snapshot rotation)."
+msgstr ""
+
+#. Type: string
+#. Default
+#: ../open-infrastructure-storage-tools.templates:10001
+msgid "11"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:10002
+msgid "cephfs-snap yearly:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:10002
+msgid "Please specify the number of yearly snapshots that should be kept."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:10002
+msgid ""
+"Depending on the use case a reasonable default might be to keep yearly "
+"snapshots for 10 years, means: (10 * 1) + 1 = 11"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:10002
+msgid "If unsure, leave empty (no automatic yearly snapshot rotation)."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:11002
+msgid "IRC notifications:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:11002
+msgid ""
+"The cephfs-snap command can send IRC notifications via irker to one or more "
+"(whitespace separated) IRC channels."
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:11002
+msgid ""
+"The following example will send IRC notifications to the open-infrastructure "
+"channel on irc.oftc.net:"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:11002
+msgid " irc://irc.oftc.net:6668/open-infrastructure"
+msgstr ""
+
+#. Type: string
+#. Description
+#: ../open-infrastructure-storage-tools.templates:11002
+msgid "If unsure, leave empty (default)."
+msgstr ""