Add possibility to manage nova enable_new_services param

Related-Prod: PROD-36787
Change-Id: I8d6a13d77c5248ef06aff46a2ee664dae0122af2
diff --git a/README.rst b/README.rst
index 59215b1..3333007 100644
--- a/README.rst
+++ b/README.rst
@@ -1421,6 +1421,16 @@
       compute:
         security_driver: apparmor
 
+Disable new services automatically
+========
+
+.. code-block:: yaml
+
+    nova:
+      compute:
+        enable_new_services: False
+      controller:
+        enable_new_services: False
 
 Change files/directories permissions for nova service:
 =======================================
diff --git a/nova/files/pike/nova-compute.conf.Debian b/nova/files/pike/nova-compute.conf.Debian
index 41d83f6..0e61bee 100644
--- a/nova/files/pike/nova-compute.conf.Debian
+++ b/nova/files/pike/nova-compute.conf.Debian
@@ -1213,6 +1213,9 @@
 #   ready to use.
 #  (boolean value)
 #enable_new_services=true
+{%- if compute.enable_new_services is defined %}
+enable_new_services = {{ compute.enable_new_services }}
+{%- endif %}
 
 #
 # Template string to be used to generate instance names.
diff --git a/nova/files/pike/nova-controller.conf.Debian b/nova/files/pike/nova-controller.conf.Debian
index e746ad5..d32607f 100644
--- a/nova/files/pike/nova-controller.conf.Debian
+++ b/nova/files/pike/nova-controller.conf.Debian
@@ -1195,6 +1195,9 @@
 #   ready to use.
 #  (boolean value)
 #enable_new_services=true
+{%- if controller.enable_new_services is defined %}
+enable_new_services = {{ controller.enable_new_services }}
+{%- endif %}
 
 #
 # Template string to be used to generate instance names.
diff --git a/nova/files/queens/nova-compute.conf.Debian b/nova/files/queens/nova-compute.conf.Debian
index 7bb5628..cffddcf 100644
--- a/nova/files/queens/nova-compute.conf.Debian
+++ b/nova/files/queens/nova-compute.conf.Debian
@@ -1300,6 +1300,9 @@
 #   they are not ready to use.
 #  (boolean value)
 #enable_new_services = true
+{%- if compute.enable_new_services is defined %}
+enable_new_services = {{ compute.enable_new_services }}
+{%- endif %}
 
 #
 # Template string to be used to generate instance names.
diff --git a/nova/files/queens/nova-controller.conf.Debian b/nova/files/queens/nova-controller.conf.Debian
index 134ceca..fc4419b 100644
--- a/nova/files/queens/nova-controller.conf.Debian
+++ b/nova/files/queens/nova-controller.conf.Debian
@@ -1294,6 +1294,9 @@
 #   they are not ready to use.
 #  (boolean value)
 #enable_new_services = true
+{%- if controller.enable_new_services is defined %}
+enable_new_services = {{ controller.enable_new_services }}
+{%- endif %}
 
 #
 # Template string to be used to generate instance names.