Merge "Provide a toggle to disable repository management by puppet"
This commit is contained in:
commit
2c940011e2
@ -15,7 +15,6 @@
|
||||
#
|
||||
|
||||
include ::openstack_integration
|
||||
include ::openstack_integration::repos
|
||||
include ::openstack_integration::rabbitmq
|
||||
include ::openstack_integration::mysql
|
||||
include ::openstack_integration::keystone
|
||||
|
@ -15,7 +15,6 @@
|
||||
#
|
||||
|
||||
include ::openstack_integration
|
||||
include ::openstack_integration::repos
|
||||
include ::openstack_integration::rabbitmq
|
||||
include ::openstack_integration::mysql
|
||||
include ::openstack_integration::keystone
|
||||
|
@ -15,7 +15,6 @@
|
||||
#
|
||||
|
||||
include ::openstack_integration
|
||||
include ::openstack_integration::repos
|
||||
include ::openstack_integration::rabbitmq
|
||||
include ::openstack_integration::mysql
|
||||
include ::openstack_integration::keystone
|
||||
|
@ -2,4 +2,9 @@ class openstack_integration {
|
||||
|
||||
Exec { logoutput => 'on_failure' }
|
||||
|
||||
if $::osfamily == 'RedHat' {
|
||||
package { 'openstack-selinux':
|
||||
ensure => 'latest'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -7,14 +7,11 @@ class openstack_integration::repos {
|
||||
release => 'liberty',
|
||||
package_require => true,
|
||||
}
|
||||
$package_provider = 'apt'
|
||||
}
|
||||
'RedHat': {
|
||||
class { '::openstack_extras::repo::redhat::redhat':
|
||||
release => 'liberty',
|
||||
}
|
||||
package { 'openstack-selinux': ensure => 'latest' }
|
||||
$package_provider = 'yum'
|
||||
}
|
||||
default: {
|
||||
fail("Unsupported osfamily (${::osfamily})")
|
||||
|
@ -14,6 +14,7 @@
|
||||
# under the License.
|
||||
|
||||
export SCENARIO=${SCENARIO:-scenario001}
|
||||
export MANAGE_REPOS=${MANAGE_REPOS:-true}
|
||||
export SCRIPT_DIR=$(cd `dirname $0` && pwd -P)
|
||||
source $SCRIPT_DIR/functions
|
||||
|
||||
@ -43,7 +44,6 @@ PUPPET_ARGS="--detailed-exitcodes --verbose --color=false --debug"
|
||||
|
||||
function run_puppet() {
|
||||
local manifest=$1
|
||||
|
||||
$SUDO puppet apply $PUPPET_ARGS fixtures/${manifest}.pp
|
||||
local res=$?
|
||||
|
||||
@ -70,6 +70,9 @@ fi
|
||||
|
||||
# Run puppet and assert something changes.
|
||||
set +e
|
||||
if [ "${MANAGE_REPOS}" = true ]; then
|
||||
$SUDO puppet apply $PUPPET_ARGS -e "include ::openstack_integration::repos"
|
||||
fi
|
||||
run_puppet $SCENARIO
|
||||
RESULT=$?
|
||||
set -e
|
||||
|
Loading…
Reference in New Issue
Block a user