From d2852466f2961f9af46057f9410b5d96457337f8 Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 20 May 2013 21:56:53 +0200 Subject: add a simple dashboard setup --- templates/master/dashboard/database.yml.erb | 8 +++ templates/master/dashboard/settings.yml.erb | 90 +++++++++++++++++++++++++++++ 2 files changed, 98 insertions(+) create mode 100644 templates/master/dashboard/database.yml.erb create mode 100644 templates/master/dashboard/settings.yml.erb (limited to 'templates') diff --git a/templates/master/dashboard/database.yml.erb b/templates/master/dashboard/database.yml.erb new file mode 100644 index 0000000..df7a376 --- /dev/null +++ b/templates/master/dashboard/database.yml.erb @@ -0,0 +1,8 @@ +production: + adapter: mysql + database: 'dashboard', + host: 'localhost' + username: 'dashboard' + password: '<%= mysql_password %>' + encoding: utf8 + diff --git a/templates/master/dashboard/settings.yml.erb b/templates/master/dashboard/settings.yml.erb new file mode 100644 index 0000000..24f82a2 --- /dev/null +++ b/templates/master/dashboard/settings.yml.erb @@ -0,0 +1,90 @@ +#===[ Settings ]========================================================= +# +# This file is meant for storing setting information that is never +# published or committed to a revision control system. +# +# Do not modify this "config/settings.yml.example" file directly -- you +# should copy it to "config/settings.yml" and customize it there. +# +#---[ Values ]---------------------------------------------------------- + +# Node name to use when contacting the puppet master. This is the +# CN that is used in Dashboard's certificate. +cn_name: 'dashboard' + +ca_crl_path: 'certs/dashboard.ca_crl.pem' + +ca_certificate_path: 'certs/dashboard.ca_cert.pem' + +certificate_path: 'certs/dashboard.cert.pem' + +private_key_path: 'certs/dashboard.private_key.pem' + +public_key_path: 'certs/dashboard.public_key.pem' + +# Hostname of the certificate authority. +ca_server: 'puppet' + +# Port for the certificate authority. +ca_port: 8140 + +# Key length for SSL certificates +key_length: 1024 + +# The "inventory service" allows you to connect to a puppet master to retrieve and node facts +enable_inventory_service: false + +# Hostname of the inventory server. +inventory_server: 'puppet' + +# Port for the inventory server. +inventory_port: 8140 + +# Set this to true to allow Dashboard to display diffs on files that +# are archived in the file bucket. +use_file_bucket_diffs: false + +# Hostname of the file bucket server. +file_bucket_server: 'puppet' + +# Port for the file bucket server. +file_bucket_port: 8140 + +# Amount of time in seconds since last report before a node is considered no longer reporting +no_longer_reporting_cutoff: 3600 + +# How many days of history to display on the "Daily Run Status" graph +daily_run_history_length: 30 + +use_external_node_classification: true + +# Uncomment the following line to set a local time zone. Run +# "rake time:zones:local" for the name of your local time zone. +#time_zone: 'Pacific Time (US & Canada)' + +# Look at http://ruby-doc.org/core/classes/Time.html#M000298 for the strftime formatting +datetime_format: '%Y-%m-%d %H:%M %Z' +date_format: '%A, %B %e, %Y' + +# Set this to the URL of an image. The image will be scaled to the specified dimensions. +custom_logo_url: '/images/dashboard_logo.png' +custom_logo_width: 155px +custom_logo_height: 23px +custom_logo_alt_text: 'Puppet Dashboard' + +# We will be deprecating using "http://dashboard_servername/reports" as the puppet master's reporturl. +# Set this to 'true' once you have changed all your puppet masters to send reports to +# "http://dashboard_servername/reports/upload" +disable_legacy_report_upload_url: false + +# Disables the UI and controller actions for editing nodes, classes, groups and reports. Report submission is still allowed +enable_read_only_mode: <%= settings['enable_read_only_mode'] || false %> + +# Default number of items of each kind to display per page +nodes_per_page: 20 +classes_per_page: 50 +groups_per_page: 50 +reports_per_page: 20 + +#===[ fin ]============================================================= + -- cgit v1.2.3 From e7268a8b4dc50898bbcc0701231bb0ca64644b6f Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 20 May 2013 22:19:35 +0200 Subject: fix template --- templates/master/dashboard/database.yml.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/master/dashboard/database.yml.erb b/templates/master/dashboard/database.yml.erb index df7a376..f501c33 100644 --- a/templates/master/dashboard/database.yml.erb +++ b/templates/master/dashboard/database.yml.erb @@ -1,6 +1,6 @@ production: adapter: mysql - database: 'dashboard', + database: 'dashboard' host: 'localhost' username: 'dashboard' password: '<%= mysql_password %>' -- cgit v1.2.3 From c2ae508d3ee3719c98767cc8a09e0bab52ff0f58 Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 20 May 2013 22:31:38 +0200 Subject: use ip instead of hostname --- templates/master/dashboard/database.yml.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/master/dashboard/database.yml.erb b/templates/master/dashboard/database.yml.erb index f501c33..f871e72 100644 --- a/templates/master/dashboard/database.yml.erb +++ b/templates/master/dashboard/database.yml.erb @@ -1,7 +1,7 @@ production: adapter: mysql database: 'dashboard' - host: 'localhost' + host: '127.0.0.1' username: 'dashboard' password: '<%= mysql_password %>' encoding: utf8 -- cgit v1.2.3 From 21b0cc1f2633be37b11a78b255ae06983494a2a2 Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 20 May 2013 22:33:05 +0200 Subject: enable a different setting to be set --- templates/master/dashboard/settings.yml.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/master/dashboard/settings.yml.erb b/templates/master/dashboard/settings.yml.erb index 24f82a2..27d2bd5 100644 --- a/templates/master/dashboard/settings.yml.erb +++ b/templates/master/dashboard/settings.yml.erb @@ -51,7 +51,7 @@ file_bucket_server: 'puppet' file_bucket_port: 8140 # Amount of time in seconds since last report before a node is considered no longer reporting -no_longer_reporting_cutoff: 3600 +no_longer_reporting_cutoff: <%= settings['no_longer_reporting_cutoff'] || 3600 %> # How many days of history to display on the "Daily Run Status" graph daily_run_history_length: 30 @@ -78,7 +78,7 @@ custom_logo_alt_text: 'Puppet Dashboard' disable_legacy_report_upload_url: false # Disables the UI and controller actions for editing nodes, classes, groups and reports. Report submission is still allowed -enable_read_only_mode: <%= settings['enable_read_only_mode'] || false %> +enable_read_only_mode: <%= settings['enable_read_only_mode'] || 'false' %> # Default number of items of each kind to display per page nodes_per_page: 20 -- cgit v1.2.3 From f7a31af7c4c44ec11ff1fc61c466c4476e9f093c Mon Sep 17 00:00:00 2001 From: mh Date: Thu, 5 Dec 2013 09:53:51 +0100 Subject: make it possible to consume an external database --- templates/master/dashboard/database.yml.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/master/dashboard/database.yml.erb b/templates/master/dashboard/database.yml.erb index f871e72..5c39db5 100644 --- a/templates/master/dashboard/database.yml.erb +++ b/templates/master/dashboard/database.yml.erb @@ -1,8 +1,8 @@ production: adapter: mysql database: 'dashboard' - host: '127.0.0.1' + host: '<%= @mysql_host %>' username: 'dashboard' - password: '<%= mysql_password %>' + password: '<%= @mysql_password %>' encoding: utf8 -- cgit v1.2.3 From 166efbbc871637517f4da6c3db4f2e38a15012d3 Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 18 Apr 2014 11:08:48 +0200 Subject: address puppet 3.x deprecation warnings --- templates/master/dashboard/settings.yml.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/master/dashboard/settings.yml.erb b/templates/master/dashboard/settings.yml.erb index 27d2bd5..95b79c9 100644 --- a/templates/master/dashboard/settings.yml.erb +++ b/templates/master/dashboard/settings.yml.erb @@ -51,7 +51,7 @@ file_bucket_server: 'puppet' file_bucket_port: 8140 # Amount of time in seconds since last report before a node is considered no longer reporting -no_longer_reporting_cutoff: <%= settings['no_longer_reporting_cutoff'] || 3600 %> +no_longer_reporting_cutoff: <%= @settings['no_longer_reporting_cutoff'] || 3600 %> # How many days of history to display on the "Daily Run Status" graph daily_run_history_length: 30 @@ -78,7 +78,7 @@ custom_logo_alt_text: 'Puppet Dashboard' disable_legacy_report_upload_url: false # Disables the UI and controller actions for editing nodes, classes, groups and reports. Report submission is still allowed -enable_read_only_mode: <%= settings['enable_read_only_mode'] || 'false' %> +enable_read_only_mode: <%= @settings['enable_read_only_mode'] || 'false' %> # Default number of items of each kind to display per page nodes_per_page: 20 -- cgit v1.2.3