aboutsummaryrefslogtreecommitdiff
path: root/environments
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-19 16:21:53 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-19 16:21:53 +0100
commit98311fc2ea91cc2a5f00e9fa85a30f50fde77e79 (patch)
tree58ff0ffad8cbe0230eff1791360bc7cc45501c34 /environments
parentf4c9ed4c0a32082d8f7b60cee1eb33cb05c85a1c (diff)
parentd87a489f9585d10f0a185beb59ae16a10f27a7bd (diff)
downloadPuppet-98311fc2ea91cc2a5f00e9fa85a30f50fde77e79.tar.gz
Puppet-98311fc2ea91cc2a5f00e9fa85a30f50fde77e79.tar.zst
Puppet-98311fc2ea91cc2a5f00e9fa85a30f50fde77e79.zip
Merge branch 'backup' into dev
Diffstat (limited to 'environments')
-rw-r--r--environments/global/common.yaml8
-rw-r--r--environments/global/roles/backup.yaml11
-rw-r--r--environments/hiera.yaml1
3 files changed, 20 insertions, 0 deletions
diff --git a/environments/global/common.yaml b/environments/global/common.yaml
index 5911194..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: ~
@@ -30,5 +34,9 @@ base_installation::system_timezone: "Europe/Paris"
30base_installation::system_users: [] # Fetched via ldap 34base_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
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
33letsencrypt::email: ~ # Fetched via ldap 41letsencrypt::email: ~ # Fetched via ldap
34letsencrypt::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