aboutsummaryrefslogtreecommitdiff
path: root/environments
diff options
context:
space:
mode:
Diffstat (limited to 'environments')
-rw-r--r--environments/global/common.yaml7
-rw-r--r--environments/global/roles/backup.yaml11
-rw-r--r--environments/hiera.yaml1
3 files changed, 19 insertions, 0 deletions
diff --git a/environments/global/common.yaml b/environments/global/common.yaml
index e7c70d4..4836f6e 100644
--- a/environments/global/common.yaml
+++ b/environments/global/common.yaml
@@ -8,6 +8,10 @@ lookup_options:
8 merge: unique 8 merge: unique
9 letsencrypt::hosts: 9 letsencrypt::hosts:
10 merge: unique 10 merge: unique
11 role::backup::backups:
12 merge: unique
13 profile::known_hosts::hosts:
14 merge: unique
11 15
12classes: 16classes:
13 stdlib: ~ 17 stdlib: ~
@@ -31,5 +35,8 @@ base_installation::system_users: [] # Fetched via ldap
31profile::xmr_stak::mining_pool: "" # Fetched via ldap 35profile::xmr_stak::mining_pool: "" # Fetched via ldap
32profile::xmr_stak::wallet: "" # Fetched via ldap 36profile::xmr_stak::wallet: "" # Fetched via ldap
33profile::mail::mailhub: "" # Fetched via ldap 37profile::mail::mailhub: "" # Fetched via ldap
38role::backup::mailto: "" # Fetched via ldap
39role::backup::backups: [] # Fetched via ldap
40profile::known_hosts::hosts: [] # Fetched via ldap
34letsencrypt::email: ~ # Fetched via ldap 41letsencrypt::email: ~ # Fetched via ldap
35letsencrypt::try_for_real_hostname: true 42letsencrypt::try_for_real_hostname: true
diff --git a/environments/global/roles/backup.yaml b/environments/global/roles/backup.yaml
new file mode 100644
index 0000000..52befe2
--- /dev/null
+++ b/environments/global/roles/backup.yaml
@@ -0,0 +1,11 @@
1---
2classes:
3 role::backup: ~
4role::backup::user: "backup"
5role::backup::group: "backup"
6base_installation::system_users:
7 - username: "%{lookup('role::backup::user')}"
8 userid: 976
9 system: true
10 password: "!!"
11
diff --git a/environments/hiera.yaml b/environments/hiera.yaml
index eda5eb3..61d40d8 100644
--- a/environments/hiera.yaml
+++ b/environments/hiera.yaml
@@ -8,6 +8,7 @@ defaults:
8hierarchy: 8hierarchy:
9 - name: "Initialization variables" 9 - name: "Initialization variables"
10 path: "/root/puppet_variables.json" 10 path: "/root/puppet_variables.json"
11 data_hash: json_data
11 12
12 - name: "Puppet ldap variables" 13 - name: "Puppet ldap variables"
13 data_hash: ldap_data 14 data_hash: ldap_data