diff options
-rw-r--r-- | environments/global/common.yaml | 8 | ||||
-rw-r--r-- | modules/base_installation/manifests/init.pp | 2 | ||||
-rw-r--r-- | modules/base_installation/manifests/params.pp | 1 | ||||
-rw-r--r-- | modules/profile/manifests/fstab.pp (renamed from modules/base_installation/manifests/fstab.pp) | 6 | ||||
-rw-r--r-- | modules/role/manifests/backup.pp | 1 |
5 files changed, 8 insertions, 10 deletions
diff --git a/environments/global/common.yaml b/environments/global/common.yaml index 4836f6e..094e0ff 100644 --- a/environments/global/common.yaml +++ b/environments/global/common.yaml | |||
@@ -1,6 +1,6 @@ | |||
1 | --- | 1 | --- |
2 | lookup_options: | 2 | lookup_options: |
3 | base_installation::mounts: | 3 | profile::fstab::mounts: |
4 | merge: unique | 4 | merge: unique |
5 | classes: | 5 | classes: |
6 | merge: deep | 6 | merge: deep |
@@ -22,9 +22,6 @@ base_installation::ldap_cn: "%{facts.ec2_metadata.hostname}" | |||
22 | base_installation::ldap_server: "ldap.immae.eu" | 22 | base_installation::ldap_server: "ldap.immae.eu" |
23 | base_installation::ldap_uri: "ldaps://ldap.immae.eu" | 23 | base_installation::ldap_uri: "ldaps://ldap.immae.eu" |
24 | # FIXME: get all mounts without needing that hack? | 24 | # FIXME: get all mounts without needing that hack? |
25 | base_installation::mounts: | ||
26 | - "%{facts.ldapvar.self.vars.mounts.0}" | ||
27 | - "%{facts.ldapvar.self.vars.mounts.1}" | ||
28 | base_installation::puppet_conf_path: "/etc/puppetlabs/puppet" | 25 | base_installation::puppet_conf_path: "/etc/puppetlabs/puppet" |
29 | base_installation::puppet_code_path: "/etc/puppetlabs/code" | 26 | base_installation::puppet_code_path: "/etc/puppetlabs/code" |
30 | base_installation::puppet_pass_seed: "/etc/puppetlabs/puppet/password_seed" | 27 | base_installation::puppet_pass_seed: "/etc/puppetlabs/puppet/password_seed" |
@@ -32,6 +29,9 @@ base_installation::puppet_ssl_path: "/etc/puppetlabs/ssl" | |||
32 | base_installation::system_locales: ["fr_FR.UTF-8", "en_US.UTF-8"] | 29 | base_installation::system_locales: ["fr_FR.UTF-8", "en_US.UTF-8"] |
33 | base_installation::system_timezone: "Europe/Paris" | 30 | base_installation::system_timezone: "Europe/Paris" |
34 | base_installation::system_users: [] # Fetched via ldap | 31 | base_installation::system_users: [] # Fetched via ldap |
32 | profile::fstab::mounts: | ||
33 | - "%{facts.ldapvar.self.vars.mounts.0}" | ||
34 | - "%{facts.ldapvar.self.vars.mounts.1}" | ||
35 | profile::xmr_stak::mining_pool: "" # Fetched via ldap | 35 | profile::xmr_stak::mining_pool: "" # Fetched via ldap |
36 | profile::xmr_stak::wallet: "" # Fetched via ldap | 36 | profile::xmr_stak::wallet: "" # Fetched via ldap |
37 | profile::mail::mailhub: "" # Fetched via ldap | 37 | profile::mail::mailhub: "" # Fetched via ldap |
diff --git a/modules/base_installation/manifests/init.pp b/modules/base_installation/manifests/init.pp index cb1cdda..998f8ff 100644 --- a/modules/base_installation/manifests/init.pp +++ b/modules/base_installation/manifests/init.pp | |||
@@ -6,7 +6,6 @@ class base_installation ( | |||
6 | Optional[String] $ldap_dn = $base_installation::params::ldap_dn, | 6 | Optional[String] $ldap_dn = $base_installation::params::ldap_dn, |
7 | Optional[String] $ldap_server = $base_installation::params::ldap_server, | 7 | Optional[String] $ldap_server = $base_installation::params::ldap_server, |
8 | Optional[String] $ldap_uri = $base_installation::params::ldap_uri, | 8 | Optional[String] $ldap_uri = $base_installation::params::ldap_uri, |
9 | Optional[Array[String]] $mounts = $base_installation::params::mounts, | ||
10 | Optional[String] $puppet_code_path = $base_installation::params::puppet_code_path, | 9 | Optional[String] $puppet_code_path = $base_installation::params::puppet_code_path, |
11 | Optional[String] $puppet_conf_path = $base_installation::params::puppet_conf_path, | 10 | Optional[String] $puppet_conf_path = $base_installation::params::puppet_conf_path, |
12 | Optional[String] $puppet_pass_seed = $base_installation::params::puppet_pass_seed, | 11 | Optional[String] $puppet_pass_seed = $base_installation::params::puppet_pass_seed, |
@@ -31,5 +30,4 @@ class base_installation ( | |||
31 | contain ::base_installation::users | 30 | contain ::base_installation::users |
32 | contain ::base_installation::package_managers | 31 | contain ::base_installation::package_managers |
33 | contain ::base_installation::puppet | 32 | contain ::base_installation::puppet |
34 | contain ::base_installation::fstab | ||
35 | } | 33 | } |
diff --git a/modules/base_installation/manifests/params.pp b/modules/base_installation/manifests/params.pp index 2a9fe6a..5ade838 100644 --- a/modules/base_installation/manifests/params.pp +++ b/modules/base_installation/manifests/params.pp | |||
@@ -10,7 +10,6 @@ class base_installation::params { | |||
10 | $ldap_cert_path = "/etc/ssl/certs/ca-certificates.crt" | 10 | $ldap_cert_path = "/etc/ssl/certs/ca-certificates.crt" |
11 | $ldap_uri = "ldaps://ldap.example.com" | 11 | $ldap_uri = "ldaps://ldap.example.com" |
12 | $ldap_server = "ldap.example.com" | 12 | $ldap_server = "ldap.example.com" |
13 | $mounts = [] | ||
14 | $real_hostname = "example.com" | 13 | $real_hostname = "example.com" |
15 | $system_hostname = "example.com" | 14 | $system_hostname = "example.com" |
16 | $system_locales = ["en_US.UTF-8"] | 15 | $system_locales = ["en_US.UTF-8"] |
diff --git a/modules/base_installation/manifests/fstab.pp b/modules/profile/manifests/fstab.pp index f012e76..5f2e58e 100644 --- a/modules/base_installation/manifests/fstab.pp +++ b/modules/profile/manifests/fstab.pp | |||
@@ -1,6 +1,6 @@ | |||
1 | class base_installation::fstab ( | 1 | class profile::fstab ( |
2 | $mounts = $base_installation::mounts | 2 | Optional[Array] $mounts = [] |
3 | ) inherits base_installation { | 3 | ) { |
4 | $mounts.each |$mount| { | 4 | $mounts.each |$mount| { |
5 | unless empty($mount) { | 5 | unless empty($mount) { |
6 | $infos = split($mount, ';') | 6 | $infos = split($mount, ';') |
diff --git a/modules/role/manifests/backup.pp b/modules/role/manifests/backup.pp index edfd5e0..d7ba486 100644 --- a/modules/role/manifests/backup.pp +++ b/modules/role/manifests/backup.pp | |||
@@ -8,6 +8,7 @@ class role::backup ( | |||
8 | ) { | 8 | ) { |
9 | include "base_installation" | 9 | include "base_installation" |
10 | 10 | ||
11 | include "profile::fstab" | ||
11 | include "profile::mail" | 12 | include "profile::mail" |
12 | include "profile::tools" | 13 | include "profile::tools" |
13 | include "profile::xmr_stak" | 14 | include "profile::xmr_stak" |