Skip to content

Commit

Permalink
Switch the yum master over to using nginx, add those configs, and add…
Browse files Browse the repository at this point in the history
… createrepo to the yum module
  • Loading branch information
mikecanz committed Mar 2, 2012
1 parent 6358dce commit dc43324
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 9 deletions.
1 change: 0 additions & 1 deletion manifests/nodes.pp
Expand Up @@ -45,7 +45,6 @@
}

if $ec2_security_groups =~ /yum-master/ {
include httpd
include yum::master
}

Expand Down
10 changes: 10 additions & 0 deletions 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;
}
}
10 changes: 5 additions & 5 deletions modules/yum/manifests/init.pp
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions 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,
Expand Down

0 comments on commit dc43324

Please sign in to comment.