Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.

Commit dd4e7e4

Browse files
committed
Merge pull request #355 from sdodson/Issue350
Issue350 - Don't create quickstarts on OSE installs
2 parents 7dd9d6e + 0c4f786 commit dd4e7e4

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

README.asciidoc

+8
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,14 @@ This parameter is only used when _ose_version_ is set.
953953

954954
Default: false
955955

956+
=== quickstarts_json
957+
JSON content to be deployed into /etc/openshift/quickstarts.json
958+
959+
Default: undef, which on Origin will deploy the contents
960+
of templates/broker/quickstarts.json.erb
961+
962+
OSE Default: undef and will not deploy any quickstarts
963+
956964
== Manual Tasks
957965

958966
This script attempts to automate as many tasks as it reasonably can.

manifests/broker.pp

+9-1
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,18 @@
184184
}
185185
}
186186

187+
if $::openshift_origin::quickstarts_json {
188+
$quickstart_content = $::openshift_origin::quickstarts_json
189+
} elsif $::openshift_origin::ose_version == undef {
190+
$quickstart_content = template('openshift_origin/broker/quickstarts.json.erb')
191+
} else {
192+
$quickstart_content = ''
193+
}
194+
187195
file { 'quickstarts':
188196
ensure => present,
189197
path => '/etc/openshift/quickstarts.json',
190-
content => template('openshift_origin/broker/quickstarts.json.erb'),
198+
content => $quickstart_content,
191199
owner => 'root',
192200
group => 'root',
193201
mode => '0644',

manifests/init.pp

+8
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,14 @@
728728
#
729729
# Default: undef
730730
#
731+
# [*quickstarts_json*]
732+
# JSON content to be deployed into /etc/openshift/quickstarts.json
733+
#
734+
# Default: undef, which on Origin will deploy the contents
735+
# of templates/broker/quickstarts.json.erb
736+
#
737+
# OSE Default: undef and will not deploy any quickstarts
738+
#
731739
# == Manual Tasks
732740
#
733741
# This script attempts to automate as many tasks as it reasonably can.

0 commit comments

Comments
 (0)