diff options
Diffstat (limited to 'environments')
-rw-r--r-- | environments/global/common.yaml | 33 | ||||
-rw-r--r-- | environments/global/roles/backup.yaml | 11 | ||||
-rw-r--r-- | environments/global/roles/cryptoportfolio.yaml | 17 | ||||
-rw-r--r-- | environments/global/types/s1-2.yaml | 3 | ||||
-rw-r--r-- | environments/global/types/vps-ovhssd-1.yaml | 3 | ||||
-rw-r--r-- | environments/hiera.yaml | 4 | ||||
-rw-r--r-- | environments/integration/roles/cryptoportfolio.yaml | 6 | ||||
-rw-r--r-- | environments/production/roles/cryptoportfolio.yaml | 8 |
8 files changed, 60 insertions, 25 deletions
diff --git a/environments/global/common.yaml b/environments/global/common.yaml index 5b21dca..094e0ff 100644 --- a/environments/global/common.yaml +++ b/environments/global/common.yaml | |||
@@ -1,11 +1,17 @@ | |||
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 |
7 | base_installation::system_users: | 7 | base_installation::system_users: |
8 | merge: unique | 8 | merge: unique |
9 | letsencrypt::hosts: | ||
10 | merge: unique | ||
11 | role::backup::backups: | ||
12 | merge: unique | ||
13 | profile::known_hosts::hosts: | ||
14 | merge: unique | ||
9 | 15 | ||
10 | classes: | 16 | classes: |
11 | stdlib: ~ | 17 | stdlib: ~ |
@@ -16,22 +22,21 @@ base_installation::ldap_cn: "%{facts.ec2_metadata.hostname}" | |||
16 | base_installation::ldap_server: "ldap.immae.eu" | 22 | base_installation::ldap_server: "ldap.immae.eu" |
17 | base_installation::ldap_uri: "ldaps://ldap.immae.eu" | 23 | base_installation::ldap_uri: "ldaps://ldap.immae.eu" |
18 | # FIXME: get all mounts without needing that hack? | 24 | # 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" | 25 | base_installation::puppet_conf_path: "/etc/puppetlabs/puppet" |
23 | base_installation::puppet_code_path: "/etc/puppetlabs/code" | 26 | base_installation::puppet_code_path: "/etc/puppetlabs/code" |
24 | base_installation::puppet_pass_seed: "/etc/puppetlabs/puppet/password_seed" | 27 | base_installation::puppet_pass_seed: "/etc/puppetlabs/puppet/password_seed" |
25 | base_installation::puppet_ssl_path: "/etc/puppetlabs/ssl" | 28 | base_installation::puppet_ssl_path: "/etc/puppetlabs/ssl" |
26 | 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"] |
27 | base_installation::system_timezone: "Europe/Paris" | 30 | base_installation::system_timezone: "Europe/Paris" |
28 | base_installation::system_users: | 31 | base_installation::system_users: [] # Fetched via ldap |
29 | - userid: 1000 | 32 | profile::fstab::mounts: |
30 | username: "immae" | 33 | - "%{facts.ldapvar.self.vars.mounts.0}" |
31 | groups: ["wheel"] | 34 | - "%{facts.ldapvar.self.vars.mounts.1}" |
32 | keys: | 35 | profile::xmr_stak::mining_pool: "" # Fetched via ldap |
33 | - host: "immae.eu" | 36 | profile::xmr_stak::wallet: "" # Fetched via ldap |
34 | key: "AAAAB3NzaC1yc2EAAAADAQABAAABAQDi5PgLBwMRyRwzJPnSgUyRAuB9AAxMijsw1pR/t/wmxQne1O5fIPOleHx+D8dyZbwm+XkzlcJpgT0Qy3qC9J8BPhshJvO/tA/8CI/oS/FE0uWsyACH1DMO2dk4gRRZGSE9IuzDMRPlnfZ3n0tdsPzzv3GH4It/oPIgsvkTowKztGLQ7Xmjr5BxzAhXcIQymqA0U3XWHSdWvnSRDaOFG0PDoVMS85IdwlviVKLnV5Sstb4NC/P28LFfgvW8DO/XrOqujgDomqTmR41dK/AyrGGOb2cQUMO4l8Oa+74aOyKaB61rr/rJkr+wCbEttkTvgFa6zZygSk3edfiWE2rgn4+v" | 37 | profile::mail::mailhub: "" # Fetched via ldap |
35 | key_type: "ssh-rsa" | 38 | role::backup::mailto: "" # Fetched via ldap |
36 | xmr_stak::mining_pool: "pool.minexmr.com:7777" | 39 | role::backup::backups: [] # Fetched via ldap |
37 | xmr_stak::wallet: "44CA8TxTFYbQqN2kLyk8AnB6Ghz4mcbGpYC2EyXW7A8H9QspvWnTjDn39XUZDPrFwPa5JNwt4TmAxcooPWv4SaJqL87Bcdo" | 40 | profile::known_hosts::hosts: [] # Fetched via ldap |
41 | letsencrypt::email: ~ # Fetched via ldap | ||
42 | letsencrypt::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..cdd5f09 --- /dev/null +++ b/environments/global/roles/backup.yaml | |||
@@ -0,0 +1,11 @@ | |||
1 | --- | ||
2 | classes: | ||
3 | role::backup: ~ | ||
4 | role::backup::user: "backup" | ||
5 | role::backup::group: "backup" | ||
6 | base_installation::system_users: | ||
7 | - username: "%{lookup('role::backup::user')}" | ||
8 | userid: 2000 | ||
9 | system: true | ||
10 | password: "!!" | ||
11 | |||
diff --git a/environments/global/roles/cryptoportfolio.yaml b/environments/global/roles/cryptoportfolio.yaml index 3d36e71..f875c1b 100644 --- a/environments/global/roles/cryptoportfolio.yaml +++ b/environments/global/roles/cryptoportfolio.yaml | |||
@@ -1,4 +1,19 @@ | |||
1 | --- | 1 | --- |
2 | classes: | 2 | classes: |
3 | role::cryptoportfolio: ~ | 3 | role::cryptoportfolio: ~ |
4 | cryptoportfolio::slack_webhook: "%{ldapvar.self.vars.cf_slack_webhook.0}" | 4 | letsencrypt::hosts: "%{lookup('base_installation::system_hostname')}" |
5 | role::cryptoportfolio::user: "cryptoportfolio" | ||
6 | role::cryptoportfolio::group: "cryptoportfolio" | ||
7 | role::cryptoportfolio::home: "/home/cryptoportfolio" | ||
8 | role::cryptoportfolio::env: "prod" | ||
9 | role::cryptoportfolio::webhook_url: "%{ldapvar.self.vars.cf_slack_webhook.0}" | ||
10 | role::cryptoportfolio::pg_db: "cryptoportfolio" | ||
11 | role::cryptoportfolio::pg_user: "cryptoportfolio" | ||
12 | role::cryptoportfolio::pg_user_replication: "cryptoportfolio_replication" | ||
13 | role::cryptoportfolio::web_host: "%{lookup('base_installation::system_hostname')}" | ||
14 | role::cryptoportfolio::web_port: "" | ||
15 | role::cryptoportfolio::web_ssl: true | ||
16 | base_installation::system_users: | ||
17 | - username: "%{lookup('role::cryptoportfolio::user')}" | ||
18 | system: true | ||
19 | password: "!!" | ||
diff --git a/environments/global/types/s1-2.yaml b/environments/global/types/s1-2.yaml index 496b741..5bfdf9a 100644 --- a/environments/global/types/s1-2.yaml +++ b/environments/global/types/s1-2.yaml | |||
@@ -6,4 +6,5 @@ classes: | |||
6 | base_installation::system_hostname: "%{ldapvar.self.vars.host.0}" | 6 | base_installation::system_hostname: "%{ldapvar.self.vars.host.0}" |
7 | base_installation::real_hostname: "%{facts.ec2_metadata.hostname}.v.immae.eu" | 7 | base_installation::real_hostname: "%{facts.ec2_metadata.hostname}.v.immae.eu" |
8 | base_installation::ldap_cert_path: "/etc/ssl/certs/ca-certificates.crt" | 8 | base_installation::ldap_cert_path: "/etc/ssl/certs/ca-certificates.crt" |
9 | ssl::try_letsencrypt_for_real_hostname: true | 9 | letsencrypt::try_for_real_hostname: true |
10 | profile::xmr_stak::cpulimit: "30" | ||
diff --git a/environments/global/types/vps-ovhssd-1.yaml b/environments/global/types/vps-ovhssd-1.yaml index 73f7a45..8dd512c 100644 --- a/environments/global/types/vps-ovhssd-1.yaml +++ b/environments/global/types/vps-ovhssd-1.yaml | |||
@@ -7,4 +7,5 @@ base_installation::system_hostname: "%{ldapvar.self.vars.host.0}" | |||
7 | base_installation::real_hostname: "%{facts.ec2_metadata.hostname}.ovh.net" | 7 | base_installation::real_hostname: "%{facts.ec2_metadata.hostname}.ovh.net" |
8 | base_installation::grub_device: "/dev/sdb" | 8 | base_installation::grub_device: "/dev/sdb" |
9 | base_installation::ldap_cert_path: "/etc/ssl/certs/ca-certificates.crt" | 9 | base_installation::ldap_cert_path: "/etc/ssl/certs/ca-certificates.crt" |
10 | ssl::try_letsencrypt_for_real_hostname: false | 10 | letsencrypt::try_for_real_hostname: false |
11 | profile::xmr_stak::cpulimit: "90" | ||
diff --git a/environments/hiera.yaml b/environments/hiera.yaml index 5a9a6d6..61d40d8 100644 --- a/environments/hiera.yaml +++ b/environments/hiera.yaml | |||
@@ -8,6 +8,10 @@ defaults: | |||
8 | hierarchy: | 8 | hierarchy: |
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 | ||
12 | |||
13 | - name: "Puppet ldap variables" | ||
14 | data_hash: ldap_data | ||
11 | 15 | ||
12 | - name: "Per-role environment data" | 16 | - name: "Per-role environment data" |
13 | mapped_paths: [ldapvar.self.vars.roles, role, "roles/%{role}.yaml"] | 17 | mapped_paths: [ldapvar.self.vars.roles, role, "roles/%{role}.yaml"] |
diff --git a/environments/integration/roles/cryptoportfolio.yaml b/environments/integration/roles/cryptoportfolio.yaml index 9825bce..6b8eb92 100644 --- a/environments/integration/roles/cryptoportfolio.yaml +++ b/environments/integration/roles/cryptoportfolio.yaml | |||
@@ -1,5 +1,3 @@ | |||
1 | --- | 1 | --- |
2 | cryptoportfolio::front_version: v0.0.2-3-g6200f9a | 2 | role::cryptoportfolio::front_version: v0.0.2-3-g6200f9a |
3 | cryptoportfolio::front_sha256: 69d31251ecd4fcea46d93dfee0184b1171019a765b6744b84f6eec6b10e5818f | 3 | role::cryptoportfolio::front_sha256: 69d31251ecd4fcea46d93dfee0184b1171019a765b6744b84f6eec6b10e5818f |
4 | cryptoportfolio::bot_version: v0.5-8-g34eb08f | ||
5 | cryptoportfolio::bot_sha256: f5b99c4a1cc4db0228f757705a5a909aa301e42787bc5842f8ba442fec0d3fd1 | ||
diff --git a/environments/production/roles/cryptoportfolio.yaml b/environments/production/roles/cryptoportfolio.yaml index c9328e1..566c7f2 100644 --- a/environments/production/roles/cryptoportfolio.yaml +++ b/environments/production/roles/cryptoportfolio.yaml | |||
@@ -1,5 +1,5 @@ | |||
1 | --- | 1 | --- |
2 | cryptoportfolio::front_version: v0.0.2-3-g6200f9a | 2 | role::cryptoportfolio::front_version: v0.0.2-3-g6200f9a |
3 | cryptoportfolio::front_sha256: 69d31251ecd4fcea46d93dfee0184b1171019a765b6744b84f6eec6b10e5818f | 3 | role::cryptoportfolio::front_sha256: 69d31251ecd4fcea46d93dfee0184b1171019a765b6744b84f6eec6b10e5818f |
4 | cryptoportfolio::bot_version: v0.5.1 | 4 | role::cryptoportfolio::bot_version: v0.5.1 |
5 | cryptoportfolio::bot_sha256: 733789711365b2397bd996689af616a6789207d26c71a31ad1af68620b267d54 | 5 | role::cryptoportfolio::bot_sha256: 733789711365b2397bd996689af616a6789207d26c71a31ad1af68620b267d54 |