summaryrefslogtreecommitdiffstats
path: root/common/puppet-opnfv/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'common/puppet-opnfv/manifests/init.pp')
-rw-r--r--common/puppet-opnfv/manifests/init.pp30
1 files changed, 20 insertions, 10 deletions
diff --git a/common/puppet-opnfv/manifests/init.pp b/common/puppet-opnfv/manifests/init.pp
index f1b4576..6e211da 100644
--- a/common/puppet-opnfv/manifests/init.pp
+++ b/common/puppet-opnfv/manifests/init.pp
@@ -14,17 +14,27 @@
class opnfv {
- exec {'disable selinux':
- command => '/usr/sbin/setenforce 0',
- unless => '/usr/sbin/getenforce | grep Permissive',
- }
- include stdlib
- stage { 'presetup':
- before => Stage['setup'],
+ if $::osfamily == 'Fuel' {
+ include opnfv::resolver
+ include opnfv::ntp
+ include opnfv::add_packages
+ include opnfv::odl_docker
+ include opnfv::opncheck
}
- class { "opnfv::repo":
- stage => presetup,
- }
+ if $::osfamily == 'RedHat' {
+
+ exec {'disable selinux':
+ command => '/usr/sbin/setenforce 0',
+ unless => '/usr/sbin/getenforce | grep Permissive',
+ }
+ include stdlib
+ stage { 'presetup':
+ before => Stage['setup'],
+ }
+ class { "opnfv::repo":
+ stage => presetup,
+ }
+ }
}