diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-13 11:17:34 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-13 11:17:34 +0100 |
commit | 96d61e22a20255c2b437eb3a3b81f9b44a1814de (patch) | |
tree | 2fd1df3a6c0c34b87499b2606e0cd45faf5e6861 /environments/global | |
parent | 70c37c94e226a708fd0407a4b3742c83972967a7 (diff) | |
parent | a869ea173f9a1e45f63336ad9d640bf94e5039e3 (diff) | |
download | Puppet-96d61e22a20255c2b437eb3a3b81f9b44a1814de.tar.gz Puppet-96d61e22a20255c2b437eb3a3b81f9b44a1814de.tar.zst Puppet-96d61e22a20255c2b437eb3a3b81f9b44a1814de.zip |
Merge branch 'fstabs' into dev
Add fstab, and reorganize hiera environments to avoid duplicates
Diffstat (limited to 'environments/global')
-rw-r--r-- | environments/global/common.yaml | 37 | ||||
-rw-r--r-- | environments/global/roles/cryptoportfolio.yaml | 4 | ||||
-rw-r--r-- | environments/global/types/s1-2.yaml | 9 | ||||
-rw-r--r-- | environments/global/types/vps-ovhssd-1.yaml | 10 |
4 files changed, 60 insertions, 0 deletions
diff --git a/environments/global/common.yaml b/environments/global/common.yaml new file mode 100644 index 0000000..5b21dca --- /dev/null +++ b/environments/global/common.yaml | |||
@@ -0,0 +1,37 @@ | |||
1 | --- | ||
2 | lookup_options: | ||
3 | base_installation::mounts: | ||
4 | merge: unique | ||
5 | classes: | ||
6 | merge: deep | ||
7 | base_installation::system_users: | ||
8 | merge: unique | ||
9 | |||
10 | classes: | ||
11 | stdlib: ~ | ||
12 | |||
13 | base_installation::ldap_base: "dc=immae,dc=eu" | ||
14 | base_installation::ldap_dn: "cn=%{facts.ec2_metadata.hostname},ou=hosts,dc=immae,dc=eu" | ||
15 | base_installation::ldap_cn: "%{facts.ec2_metadata.hostname}" | ||
16 | base_installation::ldap_server: "ldap.immae.eu" | ||
17 | base_installation::ldap_uri: "ldaps://ldap.immae.eu" | ||
18 | # FIXME: get all mounts without needing that hack? | ||
19 | base_installation::mounts: | ||
20 | - "%{facts.ldapvar.self.vars.mounts.0}" | ||
21 | - "%{facts.ldapvar.self.vars.mounts.1}" | ||
22 | base_installation::puppet_conf_path: "/etc/puppetlabs/puppet" | ||
23 | base_installation::puppet_code_path: "/etc/puppetlabs/code" | ||
24 | base_installation::puppet_pass_seed: "/etc/puppetlabs/puppet/password_seed" | ||
25 | base_installation::puppet_ssl_path: "/etc/puppetlabs/ssl" | ||
26 | base_installation::system_locales: ["fr_FR.UTF-8", "en_US.UTF-8"] | ||
27 | base_installation::system_timezone: "Europe/Paris" | ||
28 | base_installation::system_users: | ||
29 | - userid: 1000 | ||
30 | username: "immae" | ||
31 | groups: ["wheel"] | ||
32 | keys: | ||
33 | - host: "immae.eu" | ||
34 | key: "AAAAB3NzaC1yc2EAAAADAQABAAABAQDi5PgLBwMRyRwzJPnSgUyRAuB9AAxMijsw1pR/t/wmxQne1O5fIPOleHx+D8dyZbwm+XkzlcJpgT0Qy3qC9J8BPhshJvO/tA/8CI/oS/FE0uWsyACH1DMO2dk4gRRZGSE9IuzDMRPlnfZ3n0tdsPzzv3GH4It/oPIgsvkTowKztGLQ7Xmjr5BxzAhXcIQymqA0U3XWHSdWvnSRDaOFG0PDoVMS85IdwlviVKLnV5Sstb4NC/P28LFfgvW8DO/XrOqujgDomqTmR41dK/AyrGGOb2cQUMO4l8Oa+74aOyKaB61rr/rJkr+wCbEttkTvgFa6zZygSk3edfiWE2rgn4+v" | ||
35 | key_type: "ssh-rsa" | ||
36 | xmr_stak::mining_pool: "pool.minexmr.com:7777" | ||
37 | xmr_stak::wallet: "44CA8TxTFYbQqN2kLyk8AnB6Ghz4mcbGpYC2EyXW7A8H9QspvWnTjDn39XUZDPrFwPa5JNwt4TmAxcooPWv4SaJqL87Bcdo" | ||
diff --git a/environments/global/roles/cryptoportfolio.yaml b/environments/global/roles/cryptoportfolio.yaml new file mode 100644 index 0000000..3d36e71 --- /dev/null +++ b/environments/global/roles/cryptoportfolio.yaml | |||
@@ -0,0 +1,4 @@ | |||
1 | --- | ||
2 | classes: | ||
3 | role::cryptoportfolio: ~ | ||
4 | cryptoportfolio::slack_webhook: "%{ldapvar.self.vars.cf_slack_webhook.0}" | ||
diff --git a/environments/global/types/s1-2.yaml b/environments/global/types/s1-2.yaml new file mode 100644 index 0000000..496b741 --- /dev/null +++ b/environments/global/types/s1-2.yaml | |||
@@ -0,0 +1,9 @@ | |||
1 | --- | ||
2 | classes: | ||
3 | base_installation: | ||
4 | stage: "setup" | ||
5 | |||
6 | base_installation::system_hostname: "%{ldapvar.self.vars.host.0}" | ||
7 | base_installation::real_hostname: "%{facts.ec2_metadata.hostname}.v.immae.eu" | ||
8 | base_installation::ldap_cert_path: "/etc/ssl/certs/ca-certificates.crt" | ||
9 | ssl::try_letsencrypt_for_real_hostname: true | ||
diff --git a/environments/global/types/vps-ovhssd-1.yaml b/environments/global/types/vps-ovhssd-1.yaml new file mode 100644 index 0000000..73f7a45 --- /dev/null +++ b/environments/global/types/vps-ovhssd-1.yaml | |||
@@ -0,0 +1,10 @@ | |||
1 | --- | ||
2 | classes: | ||
3 | base_installation: | ||
4 | stage: "setup" | ||
5 | |||
6 | base_installation::system_hostname: "%{ldapvar.self.vars.host.0}" | ||
7 | base_installation::real_hostname: "%{facts.ec2_metadata.hostname}.ovh.net" | ||
8 | base_installation::grub_device: "/dev/sdb" | ||
9 | base_installation::ldap_cert_path: "/etc/ssl/certs/ca-certificates.crt" | ||
10 | ssl::try_letsencrypt_for_real_hostname: false | ||