Skip to content
Browse files

Switch the yum master over to using nginx, add those configs, and add…

… createrepo to the yum module
  • Loading branch information...
1 parent 6358dce commit dc43324cf48f43e55df40a2599c020b8d9806718 @mikecanz committed Mar 2, 2012
View
1 manifests/nodes.pp
@@ -45,7 +45,6 @@
}
if $ec2_security_groups =~ /yum-master/ {
- include httpd
include yum::master
}
View
10 modules/yum/files/etc/nginx/conf.d/yum.conf
@@ -0,0 +1,10 @@
+# THIS FILE IS MAINTAINED BY PUPPET
+server {
+ listen 80;
+ server_name _;
+
+ location / {
+ root /yumvol/yum;
+ autoindex on;
+ }
+}
View
10 modules/yum/manifests/init.pp
@@ -2,14 +2,14 @@
Package { require => File["/etc/yum.repos.d/external.repo","/etc/yum.repos.d/epel.repo"], }
- package { "redhat-lsb":
+ package { [
+ "redhat-lsb",
+ "yum-plugin-downloadonly",
+ "createrepo",
+ ]:
ensure => latest,
}
- package { "yum-plugin-downloadonly":
- ensure => latest,
- }
-
#file { "/etc/yum.repos.d/internal.repo":
# owner => "root",
# group => "root",
View
6 modules/yum/manifests/master.pp
@@ -1,8 +1,8 @@
class yum::master inherits yum {
- include httpd
+ include nginx
- file { "/etc/httpd/vhosts.d/yum.conf":
- source => "puppet:///modules/yum/etc/httpd/vhosts.d/yum.conf",
+ file { "/etc/nginx/conf.d/yum.conf":
+ source => "puppet:///modules/yum/etc/nginx/conf.d/yum.conf",
owner => "root",
group => "root",
mode => 664,

0 comments on commit dc43324

Please sign in to comment.
Something went wrong with that request. Please try again.