summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-04-12 15:52:41 -0300
committerSilvio Rhatto <rhatto@riseup.net>2018-04-12 15:52:41 -0300
commit2f18f55ec1ac6a8eed4d7f2ef6bae709a1158fb8 (patch)
treeb517aa0ec39be00a44b3f2034502548863036002
parent80439b64295de9cc57a748f162bf112c04536a8e (diff)
downloadpuppet-websites-2f18f55ec1ac6a8eed4d7f2ef6bae709a1158fb8.tar.gz
puppet-websites-2f18f55ec1ac6a8eed4d7f2ef6bae709a1158fb8.tar.bz2
Manage database::config resources
-rw-r--r--manifests/resources.pp14
1 files changed, 8 insertions, 6 deletions
diff --git a/manifests/resources.pp b/manifests/resources.pp
index 286d257..44ef67c 100644
--- a/manifests/resources.pp
+++ b/manifests/resources.pp
@@ -1,17 +1,19 @@
class websites::resources {
# Retrieve configured instances
- $sites = hiera('apache::sites', {})
- $modules = hiera('apache::modules', {})
- $configs = hiera('apache::configs', {})
- $databases = hiera('database::instances', {})
- $ikiwikis = hiera('ikiwiki::instances', {})
- $domains = hiera('domain_check::instances', {})
+ $sites = hiera('apache::sites', {})
+ $modules = hiera('apache::modules', {})
+ $configs = hiera('apache::configs', {})
+ $databases = hiera('database::instances', {})
+ $database_configs = hiera('database::configs', {})
+ $ikiwikis = hiera('ikiwiki::instances', {})
+ $domains = hiera('domain_check::instances', {})
# Apply instances
create_resources('apache::site', $sites)
create_resources('apache::module', $modules)
create_resources('apache::config', $configs)
create_resources('database::instance', $databases)
+ create_resources('database::config', $database_configs)
create_resources('ikiwiki::instance', $ikiwikis)
create_resources('domain_check::instance', $domains)