]> gitweb.fluxo.info Git - puppet-bootstrap.git/commitdiff
New hiera scheme for secrets storage
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 26 Sep 2015 18:04:34 +0000 (15:04 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 26 Sep 2015 18:04:34 +0000 (15:04 -0300)
hiera/hiera.yaml
hiera/node/puppet-bootstrap.example.org.yaml [moved from hiera/domain/example.org/node/puppet-bootstrap.example.org.yaml with 100% similarity]

index 96cfb878882127b3d770a0fe85bc0dbfbda7ab47..7e541b1e293cdd6882a8c118903ca5d16d6775d1 100644 (file)
   # See http://docs.vagrantup.com/v2/provisioning/puppet_apply.html
   :datadir: hiera
 :hierarchy:
-  - 'domain/%{::domain}/node/%{::clientcert}'
-  - 'domain/%{::domain}/role/%{::role}'
-  - 'domain/%{::domain}/location/%{::location}'
-  - 'domain/%{::domain}/%{::domain}'
+  #
+  # Put in the secrets folder all sensitive information that
+  # wont be spread into every system if you're using the Hydra Suite.
+  #
+  # We also recommend to leave only encrypted data in your hiera config.
+  #
+  - 'secrets/node/%{::clientcert}'
+  - 'secrets/domain/%{::domain}'
+  - 'secrets/role/%{::role}'
+  - 'secrets/location/%{::location}'
+
+  #
+  # All other stuff goes in regular YAML files.
+  #
+  - 'node/%{::clientcert}'
+  - 'domain/%{::domain}'
+  - 'role/%{::role}'
   - 'location/%{::location}'
   - 'virtual/%{::virtual}'
-  - 'role/%{::role}'
   - bootstrap
   - common