Removing OpenSteak Project
[genesis.git] / common / puppet-opnfv / manifests / repo.pp
index 8d8a025..fe89305 100644 (file)
@@ -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',
     }
   }
 }