diff --git a/puppet/data/common.yaml b/puppet/data/common.yaml index 175176777..5e6729fc9 100644 --- a/puppet/data/common.yaml +++ b/puppet/data/common.yaml @@ -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=' diff --git a/puppet/modules/profiles/manifests/puppetserver.pp b/puppet/modules/profiles/manifests/puppetserver.pp index bfd453eeb..ac2f2a407 100644 --- a/puppet/modules/profiles/manifests/puppetserver.pp +++ b/puppet/modules/profiles/manifests/puppetserver.pp @@ -14,4 +14,9 @@ class { 'deploy': user => $puppet::server_environments_owner, } + + restic::repository { 'puppetserver': + backup_cap_dac_read_search => true, + backup_path => '/etc/puppetlabs', + } } diff --git a/puppet/spec/classes/profiles_puppetserver_spec.rb b/puppet/spec/classes/profiles_puppetserver_spec.rb index d860848c0..ee5054afc 100644 --- a/puppet/spec/classes/profiles_puppetserver_spec.rb +++ b/puppet/spec/classes/profiles_puppetserver_spec.rb @@ -6,6 +6,9 @@ let(:facts) { os_facts } let(:pre_condition) do <<~PUPPET + class { 'restic': + password => 'SuperSecret', + } class { 'puppet': server_environments_owner => 'deploypuppet', }