aboutsummaryrefslogtreecommitdiffstats
path: root/roles/freeipa_server
diff options
context:
space:
mode:
Diffstat (limited to 'roles/freeipa_server')
-rw-r--r--roles/freeipa_server/README.md5
-rw-r--r--roles/freeipa_server/vars/main.yml7
2 files changed, 12 insertions, 0 deletions
diff --git a/roles/freeipa_server/README.md b/roles/freeipa_server/README.md
index e4bb42f..99a436c 100644
--- a/roles/freeipa_server/README.md
+++ b/roles/freeipa_server/README.md
@@ -41,6 +41,11 @@ Variable | Default | Descripti
`freeipa_admin_password_expiration` | 20310130235959 | Password expiration time for `admin` account (YYYYMMDDHHMMSS)
`freeipa_default_login_shell` | `/bin/bash` | Default user login shell
+This role **exports** the following variables:
+
+Variable | Description
+------------------------|------------
+`freeipa_archive_shell` | Shell command to generate IPA backup tarball
Usage
-----
diff --git a/roles/freeipa_server/vars/main.yml b/roles/freeipa_server/vars/main.yml
index 89657e7..392a7a0 100644
--- a/roles/freeipa_server/vars/main.yml
+++ b/roles/freeipa_server/vars/main.yml
@@ -63,3 +63,10 @@ freeipa_log_files:
severity: error
freeipa_custom_schema_dir: /usr/local/share/dirsrv/schema
+
+freeipa_archive_shell: >-
+ ipa-backup &&
+ find {{ freeipa_backup_dir | quote }} -mindepth 1 -maxdepth 1 -type d
+ -exec cp --preserve=timestamps -vr {} . \;
+ -exec rm -vrf {} \; &&
+ find . -mindepth 1 -type d -exec chmod -v 770 {} +