Skip to content

Commit

Permalink
add puppetserver to backup
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Sep 12, 2023
1 parent 6abf11a commit 7525a4b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions puppet/data/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ profiles::backup::receiver::targets:
- redmine01
- master02
- discourse01
- puppet01

profiles::backup::sender::host: '%{alias("backup_servicename")}'
profiles::backup::sender::ssh_key: 'AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNfA651gsxAgFzWdBjFbTTXgZ+mIovdHE2TZShmyDJ9h6On+qQ3WOGVXflyrocM93vR4diZT80bnyIpLZtIf5RY='
Expand Down
5 changes: 5 additions & 0 deletions puppet/modules/profiles/manifests/puppetserver.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@
class { 'deploy':
user => $puppet::server_environments_owner,
}

restic::repository { 'puppetserver':
backup_cap_dac_read_search => true,
backup_path => '/etc/puppetlabs',
}
}
3 changes: 3 additions & 0 deletions puppet/spec/classes/profiles_puppetserver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@
let(:facts) { os_facts }
let(:pre_condition) do
<<~PUPPET
class { 'restic':
password => 'SuperSecret',
}
class { 'puppet':
server_environments_owner => 'deploypuppet',
}
Expand Down

0 comments on commit 7525a4b

Please sign in to comment.