X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=common%2Fpuppet-opnfv%2Fmanifests%2Frepo.pp;h=fe8930565fd3f1c420c8c1af1ea6b373dcbc81c2;hb=HEAD;hp=8d8a02564fc4d0bc97f66fca3084a4a4ae621f50;hpb=e6182183afbdc6984f7a8fdf75969b8c4c72d9f6;p=genesis.git diff --git a/common/puppet-opnfv/manifests/repo.pp b/common/puppet-opnfv/manifests/repo.pp index 8d8a025..fe89305 100644 --- a/common/puppet-opnfv/manifests/repo.pp +++ b/common/puppet-opnfv/manifests/repo.pp @@ -33,22 +33,35 @@ class opnfv::repo { gpgcheck => 0, } - yumrepo { - "ceph": - baseurl => "http://ceph.com/rpm-giant/el7/\$basearch", - descr => "Ceph packages for \$basearch", - enabled => 1, - gpgcheck => 0; - "Ceph-noarch": - baseurl => "http://ceph.com/rpm-giant/el7/noarch", - descr => "Ceph noarch packages", - enabled => 1, - gpgcheck => 0; - "ceph-source": - baseurl => "http://ceph.com/rpm-giant/el7/SRPMS", - descr => "Ceph source packages", - enabled => 1, - gpgcheck => 0; + exec {'disable selinux': + command => '/usr/sbin/setenforce 0', + unless => '/usr/sbin/getenforce | grep Permissive', + } + -> + service { "network": + ensure => "running", + enable => "true", + hasrestart => true, + restart => '/usr/bin/systemctl restart network', + } + -> + service { 'NetworkManager': + ensure => "stopped", + enable => "false", + } + ~> + exec { 'restart-network-presetup': + command => 'systemctl restart network', + path => ["/usr/sbin/", "/usr/bin/"], + refreshonly => 'true', + } + -> + package { 'openvswitch': + ensure => installed, + } + -> + service {'openvswitch': + ensure => 'running', } } }