From 4c92dc434438f86e4564a865952d85fc785e9e98 Mon Sep 17 00:00:00 2001 From: Nadja Heitmann Date: Thu, 10 Oct 2024 09:25:00 +0200 Subject: [PATCH] Fixes #37903 - Parse Ansible password in Windows default provisioning template correctly --- Gemfile | 2 ++ .../provision/windows_default_provisioning.erb | 2 +- config/application.rb | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 4e9736347a1..63f013e6799 100644 --- a/Gemfile +++ b/Gemfile @@ -48,6 +48,8 @@ gem 'jwt', '>= 2.2.2', '< 3.0' gem 'graphql', '~> 1.13.0' gem 'graphql-batch' +gem 'coffee-rails', '~> 5.0.0' + # A bundled gem since Ruby 3.0 gem 'rss' if RUBY_VERSION >= '3.0' diff --git a/app/views/unattended/provisioning_templates/provision/windows_default_provisioning.erb b/app/views/unattended/provisioning_templates/provision/windows_default_provisioning.erb index e84d6428854..e8fb9c13afe 100644 --- a/app/views/unattended/provisioning_templates/provision/windows_default_provisioning.erb +++ b/app/views/unattended/provisioning_templates/provision/windows_default_provisioning.erb @@ -81,7 +81,7 @@ description: | - ![CDATA[<%= host_param('ansible_ssh_pass') %>]] + ]]> true</PlainText> </Password> <Description>Ansible login service user</Description> diff --git a/config/application.rb b/config/application.rb index 11344ec4841..adebb794d3d 100644 --- a/config/application.rb +++ b/config/application.rb @@ -122,6 +122,7 @@ class Application < Rails::Application config.autoload_paths += %W(#{config.root}/app/models/parameters) config.autoload_paths += %W(#{config.root}/app/models/taxonomies) config.autoload_paths += %W(#{config.root}/app/models/mail_notifications) + config.eager_load_paths += ["#{config.root}/lib"] # Custom directories that will only be loaded once # Should only contain classes with class-level data set by initializers (registries etc.)