forked from spacepants/puppet-ds_389
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add parameter $environment to defined type ds_389::backup
This should fix a "command not found" error in the default backup job that is caused by a missing PATH variable.
- Loading branch information
Showing
4 changed files
with
42 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ | |
it { | ||
is_expected.to contain_cron('Backup job for specdirectory: specbackup').with( | ||
command: "dsconf -D 'cn=Directory Manager' -y '/etc/dirsrv/slapd-specdirectory/backup_passwd.specbackup' ldaps://foo.example.com:636 backup create && touch /tmp/389ds_backup_success && find '/var/lib/dirsrv/slapd-specdirectory/bak/' -mindepth 1 -maxdepth 1 -mtime +30 -print0 | xargs -0 -r rm -rf", # rubocop:disable LineLength | ||
environment: ["PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"], | ||
user: 'dirsrv', | ||
minute: '15', | ||
hour: '23', | ||
|
@@ -90,6 +91,7 @@ | |
root_dn: 'cn=Directory Manager', | ||
root_dn_pass: 'supersecret', | ||
backup_dir: '/path/to/ds-backups', | ||
environment: ['[email protected]'], | ||
protocol: 'ldap', | ||
rotate: 10, | ||
server_host: 'ldap.test.org', | ||
|
@@ -116,6 +118,7 @@ | |
it { | ||
is_expected.to contain_cron('Backup job for specdirectory: specbackup').with( | ||
command: "dsconf -D 'cn=Directory Manager' -y '/etc/dirsrv/slapd-specdirectory/backup_passwd.specbackup' ldap://ldap.test.org:1389 backup create /path/to/ds-backups && touch /tmp/hourly_backup_success && find '/path/to/ds-backups/' -mindepth 1 -maxdepth 1 -mtime +10 -print0 | xargs -0 -r rm -rf", # rubocop:disable LineLength | ||
environment: ["[email protected]","PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin"], | ||
user: 'dirsrv', | ||
minute: '0', | ||
hour: '*', | ||
|