From 4c74c59aca7b575fa1b8bc8c53a26538db949896 Mon Sep 17 00:00:00 2001 From: Tom De Vylder Date: Fri, 20 Feb 2015 10:41:52 +0100 Subject: [PATCH] Add config templates --- templates/authentication.ini.erb | 7 +++++++ templates/config.ini.erb | 12 ++++++++++++ templates/resources.ini.erb | 22 ++++++++++++++++++++++ templates/roles.ini.erb | 7 +++++++ 4 files changed, 48 insertions(+) create mode 100644 templates/authentication.ini.erb create mode 100644 templates/config.ini.erb create mode 100644 templates/resources.ini.erb create mode 100644 templates/roles.ini.erb diff --git a/templates/authentication.ini.erb b/templates/authentication.ini.erb new file mode 100644 index 0000000..2ecf23c --- /dev/null +++ b/templates/authentication.ini.erb @@ -0,0 +1,7 @@ +# WARNING: This host definition is automatically generated by Puppet. +# ANY MANUAL CHANGES TO IT WILL GET OVERWRITTEN! + +[icingaweb2] +backend = "<%= @web_backend %>" +resource = "<%= @web_resource %>" + diff --git a/templates/config.ini.erb b/templates/config.ini.erb new file mode 100644 index 0000000..80c0164 --- /dev/null +++ b/templates/config.ini.erb @@ -0,0 +1,12 @@ +# WARNING: This host definition is automatically generated by Puppet. +# ANY MANUAL CHANGES TO IT WILL GET OVERWRITTEN! + +[logging] +log = "<%= @log %>" +level = "<%= @level %>" +application = "<%= @application %>" + +[preferences] +store = "<%= @store %>" +resource = "<%= @resource %>" + diff --git a/templates/resources.ini.erb b/templates/resources.ini.erb new file mode 100644 index 0000000..21ef6a5 --- /dev/null +++ b/templates/resources.ini.erb @@ -0,0 +1,22 @@ +# WARNING: This host definition is automatically generated by Puppet. +# ANY MANUAL CHANGES TO IT WILL GET OVERWRITTEN! + +[icingaweb_db] +type = "<%= @web_type %>" +db = "<%= @web_db %>" +host = "<%= @web_db_host %>" +port = "<%= @web_db_port %>" +dbname = "<%= @web_db_name %>" +username = "<%= @web_db_user %>" +password = "<%= @web_db_pass %>" +prefix = "<%= @web_db_prefix %>" + +[icinga_ido] +type = "<%= @ido_type %>" +db = "<%= @ido_db %>" +host = "<%= @ido_db_host %>" +port = "<%= @ido_db_port %>" +dbname = "<%= @ido_db_name %>" +username = "<%= @ido_db_user %>" +password = "<%= @ido_db_pass %>" + diff --git a/templates/roles.ini.erb b/templates/roles.ini.erb new file mode 100644 index 0000000..804cafa --- /dev/null +++ b/templates/roles.ini.erb @@ -0,0 +1,7 @@ +# WARNING: This host definition is automatically generated by Puppet. +# ANY MANUAL CHANGES TO IT WILL GET OVERWRITTEN! + +[admins] +users = "<%= @users %>" +permissions = "<%= @permissions %>" +