NtpServer:
type: string
default: ''
+ EnablePackageInstall:
+ default: 'false'
+ description: Set to true to enable package installation via Puppet
+ type: boolean
resources:
BlockStorage:
template: '["server"]'
params:
server: {get_param: NtpServer}
+ enable_package_install: {get_param: EnablePackageInstall}
signal_transport: NO_SIGNAL
# Map heat metadata into hiera datafiles
cinder::rabbit_userid: {get_input: rabbit_username}
cinder::rabbit_password: {get_input: rabbit_password}
ntp::servers: {get_input: ntp_servers}
+ enable_package_install: {get_input: enable_package_install}
VolumePuppetConfig:
type: OS::Heat::SoftwareConfig
description: The user password for SNMPd with readonly rights running on all Overcloud nodes
type: string
hidden: true
-
+ EnablePackageInstall:
+ default: 'false'
+ description: Set to true to enable package installation via Puppet
+ type: boolean
resources:
neutron::rabbit_password: {get_input: rabbit_password}
ceilometer::rabbit_password: {get_input: rabbit_password}
ntp::servers: {get_input: ntp_servers}
+ enable_package_install: {get_input: enable_package_install}
NovaComputeDeployment:
type: OS::TripleO::SoftwareDeployment
template: '["server"]'
params:
server: {get_param: NtpServer}
+ enable_package_install: {get_param: EnablePackageInstall}
outputs:
ip_address:
VirtualIP:
type: string
default: '' # Has to be here because of the ignored empty value bug
-
+ EnablePackageInstall:
+ default: 'false'
+ description: Set to true to enable package installation via Puppet
+ type: boolean
resources:
swift_replicas: {get_param: SwiftReplicas}
swift_min_part_hours: {get_param: SwiftMinPartHours}
swift_mount_check: {get_param: SwiftMountCheck}
+ enable_package_install: {get_param: EnablePackageInstall}
# Map heat metadata into hiera datafiles
ControllerConfig:
controller_virtual_ip: {get_input: controller_virtual_ip}
public_virtual_interface: {get_input: public_virtual_interface}
public_virtual_ip: {get_input: public_virtual_ip}
+ enable_package_install: {get_input: enable_package_install}
# NOTE(dprince): this example uses a composition class
# on the puppet side (loadbalancer.pp). This seemed like the
OS::TripleO::Controller: controller-puppet.yaml
OS::TripleO::ObjectStorage: swift-storage-puppet.yaml
OS::TripleO::Net::SoftwareConfig: net-config-bridge.yaml
+
+# NOTE(dprince): requires a new release of python-heatclient
+#default_parameters:
+ #EnablePackageInstall: false
# License for the specific language governing permissions and limitations
# under the License.
+if !str2bool(hiera('enable_package_install', 'false')) {
+ case $::osfamily {
+ 'RedHat': {
+ Package { provider => 'norpm' } # provided by tripleo-puppet
+ }
+ default: {
+ warning('enable_package_install option not supported.')
+ }
+ }
+}
+
class tripleo::loadbalancer (
$keystone_admin = false,
$keystone_public = false,
# License for the specific language governing permissions and limitations
# under the License.
+if !str2bool(hiera('enable_package_install', 'false')) {
+ case $::osfamily {
+ 'RedHat': {
+ Package { provider => 'norpm' } # provided by tripleo-puppet
+ }
+ default: {
+ warning('enable_package_install option not supported.')
+ }
+ }
+}
+
include ::ntp
class { 'nova':
# License for the specific language governing permissions and limitations
# under the License.
+if !str2bool(hiera('enable_package_install', 'false')) {
+ case $::osfamily {
+ 'RedHat': {
+ Package { provider => 'norpm' } # provided by tripleo-puppet
+ }
+ default: {
+ warning('enable_package_install option not supported.')
+ }
+ }
+}
+
if hiera('step') >= 1 {
include ::ntp
# License for the specific language governing permissions and limitations
# under the License.
+if !str2bool(hiera('enable_package_install', 'false')) {
+ case $::osfamily {
+ 'RedHat': {
+ Package { provider => 'norpm' } # provided by tripleo-puppet
+ }
+ default: {
+ warning('enable_package_install option not supported.')
+ }
+ }
+}
include ::ntp
include ::swift
# License for the specific language governing permissions and limitations
# under the License.
+if str2bool(hiera('disable_package_install', 'false')) {
+ case $::osfamily {
+ 'RedHat': {
+ Package { provider => 'norpm' } # provided by tripleo-puppet
+ }
+ default: {
+ warning('disable_package_install option not supported.')
+ }
+ }
+}
+
include ::ntp
include ::cinder
# License for the specific language governing permissions and limitations
# under the License.
+if str2bool(hiera('disable_package_install', 'false')) {
+ case $::osfamily {
+ 'RedHat': {
+ Package { provider => 'norpm' } # provided by tripleo-puppet
+ }
+ default: {
+ warning('disable_package_install option not supported.')
+ }
+ }
+}
+
define add_devices(
$swift_zones = '1'
){
NtpServer:
type: string
default: ''
+ EnablePackageInstall:
+ default: 'false'
+ description: Set to true to enable package installation via Puppet
+ type: boolean
resources:
# NOTE(dprince): build_ring support is currently not wired in.
# See: https://review.openstack.org/#/c/109225/
tripleo::ringbuilder::build_ring: True
+ enable_package_install: {get_input: enable_package_install}
SwiftStorageHieraDeploy:
template: '["server"]'
params:
server: {get_param: NtpServer}
+ enable_package_install: {get_param: EnablePackageInstall}
outputs:
hosts_entry: