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

Commit 3a0ec49

Browse files
committed
Merge pull request #345 from sdodson/bz1161486
Create /etc/openshift/development when development_mode = true
2 parents 5ca17c4 + dfdd563 commit 3a0ec49

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

files/development

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Created by puppet

manifests/broker.pp

+8
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,13 @@
226226
notify => Service['openshift-broker'],
227227
}
228228
}
229+
file { '/etc/openshift/development':
230+
source => 'puppet:///openshift_origin/development',
231+
ensure => $::openshift_origin::development_mode ? {
232+
true => present,
233+
default => absent,
234+
}
235+
}
229236

230237
# SCL and Puppet don't play well together; the 'default' here
231238
# circumvents the use of the `scl enable ruby193` mechanism
@@ -267,6 +274,7 @@
267274
hasstatus => true,
268275
hasrestart => true,
269276
require => Package['openshift-origin-broker'],
277+
subscribe => File['/etc/openshift/development'],
270278
}
271279
exec { 'Remove mod_ssl default vhost':
272280
command => '/bin/sed -i \'/VirtualHost/,/VirtualHost/ d\' /etc/httpd/conf.d/ssl.conf',

manifests/console.pp

+1
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,6 @@
162162
enable => true,
163163
hasstatus => true,
164164
hasrestart => true,
165+
subscribe => File['/etc/openshift/development'],
165166
}
166167
}

0 commit comments

Comments
 (0)