Allow enabling debug mode for config management (Puppet)
Also adds an environment file which can be passed to heat stack-create to enable debugging. Change-Id: I9758e2ca3de6a0bed6d20c37ea19e48f47220721 Depends-On: Ie92d1714a8d7e59d347474039be999bd3a2b542f
This commit is contained in:
5
environments/config-debug.yaml
Normal file
5
environments/config-debug.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
# A Heat environment file which can be used to enable config
|
||||
# management (e.g. Puppet) debugging.
|
||||
|
||||
parameter_defaults:
|
||||
ConfigDebug: true
|
||||
@@ -4,6 +4,10 @@ description: >
|
||||
OpenStack ceph storage node post deployment for Puppet
|
||||
|
||||
parameters:
|
||||
ConfigDebug:
|
||||
default: false
|
||||
description: Whether to run config management (e.g. Puppet) in debug mode.
|
||||
type: boolean
|
||||
servers:
|
||||
type: json
|
||||
NodeConfigIdentifiers:
|
||||
@@ -16,6 +20,8 @@ resources:
|
||||
type: OS::Heat::SoftwareConfig
|
||||
properties:
|
||||
group: puppet
|
||||
options:
|
||||
enable_debug: {get_param: ConfigDebug}
|
||||
outputs:
|
||||
- name: result
|
||||
config:
|
||||
|
||||
@@ -2,6 +2,10 @@ heat_template_version: 2015-04-30
|
||||
description: 'OpenStack cinder storage post deployment for Puppet'
|
||||
|
||||
parameters:
|
||||
ConfigDebug:
|
||||
default: false
|
||||
description: Whether to run config management (e.g. Puppet) in debug mode.
|
||||
type: boolean
|
||||
servers:
|
||||
type: json
|
||||
NodeConfigIdentifiers:
|
||||
@@ -14,6 +18,8 @@ resources:
|
||||
type: OS::Heat::SoftwareConfig
|
||||
properties:
|
||||
group: puppet
|
||||
options:
|
||||
enable_debug: {get_param: ConfigDebug}
|
||||
outputs:
|
||||
- name: result
|
||||
config:
|
||||
|
||||
@@ -4,6 +4,10 @@ description: >
|
||||
OpenStack compute node post deployment for Puppet.
|
||||
|
||||
parameters:
|
||||
ConfigDebug:
|
||||
default: false
|
||||
description: Whether to run config management (e.g. Puppet) in debug mode.
|
||||
type: boolean
|
||||
servers:
|
||||
type: json
|
||||
NodeConfigIdentifiers:
|
||||
@@ -17,6 +21,8 @@ resources:
|
||||
type: OS::Heat::SoftwareConfig
|
||||
properties:
|
||||
group: puppet
|
||||
options:
|
||||
enable_debug: {get_param: ConfigDebug}
|
||||
outputs:
|
||||
- name: result
|
||||
config:
|
||||
|
||||
@@ -3,6 +3,12 @@ heat_template_version: 2015-04-30
|
||||
description: >
|
||||
A software config which runs manifests/overcloud_controller_pacemaker.pp
|
||||
|
||||
parameters:
|
||||
ConfigDebug:
|
||||
default: false
|
||||
description: Whether to run config management (e.g. Puppet) in debug mode.
|
||||
type: boolean
|
||||
|
||||
resources:
|
||||
|
||||
ControllerPuppetConfigImpl:
|
||||
@@ -10,6 +16,7 @@ resources:
|
||||
properties:
|
||||
group: puppet
|
||||
options:
|
||||
enable_debug: {get_param: ConfigDebug}
|
||||
enable_hiera: True
|
||||
enable_facter: False
|
||||
outputs:
|
||||
|
||||
@@ -3,6 +3,12 @@ heat_template_version: 2015-04-30
|
||||
description: >
|
||||
A software config which runs manifests/overcloud_controller.pp
|
||||
|
||||
parameters:
|
||||
ConfigDebug:
|
||||
default: false
|
||||
description: Whether to run config management (e.g. Puppet) in debug mode.
|
||||
type: boolean
|
||||
|
||||
resources:
|
||||
|
||||
ControllerPuppetConfigImpl:
|
||||
@@ -10,6 +16,7 @@ resources:
|
||||
properties:
|
||||
group: puppet
|
||||
options:
|
||||
enable_debug: {get_param: ConfigDebug}
|
||||
enable_hiera: True
|
||||
enable_facter: False
|
||||
outputs:
|
||||
|
||||
@@ -4,6 +4,10 @@ description: >
|
||||
OpenStack controller node post deployment for Puppet.
|
||||
|
||||
parameters:
|
||||
ConfigDebug:
|
||||
default: false
|
||||
description: Whether to run config management (e.g. Puppet) in debug mode.
|
||||
type: boolean
|
||||
servers:
|
||||
type: json
|
||||
NodeConfigIdentifiers:
|
||||
@@ -46,6 +50,7 @@ resources:
|
||||
properties:
|
||||
group: puppet
|
||||
options:
|
||||
enable_debug: {get_param: ConfigDebug}
|
||||
enable_hiera: True
|
||||
enable_facter: False
|
||||
inputs:
|
||||
|
||||
@@ -2,6 +2,10 @@ heat_template_version: 2015-04-30
|
||||
description: 'OpenStack swift storage node post deployment for Puppet'
|
||||
|
||||
parameters:
|
||||
ConfigDebug:
|
||||
default: false
|
||||
description: Whether to run config management (e.g. Puppet) in debug mode.
|
||||
type: boolean
|
||||
servers:
|
||||
type: json
|
||||
NodeConfigIdentifiers:
|
||||
@@ -15,6 +19,8 @@ resources:
|
||||
type: OS::Heat::SoftwareConfig
|
||||
properties:
|
||||
group: puppet
|
||||
options:
|
||||
enable_debug: {get_param: ConfigDebug}
|
||||
outputs:
|
||||
- name: result
|
||||
config:
|
||||
@@ -32,6 +38,8 @@ resources:
|
||||
type: OS::Heat::SoftwareConfig
|
||||
properties:
|
||||
group: puppet
|
||||
options:
|
||||
enable_debug: {get_param: ConfigDebug}
|
||||
outputs:
|
||||
- name: result
|
||||
config:
|
||||
|
||||
Reference in New Issue
Block a user