Browse files

Quick retouches on the basic repo module. Temporary stuff

  • Loading branch information...
1 parent 91d272e commit 8710ddd09ff49f0b725bef1db462f5e4aaf9903a root committed Dec 11, 2010
View
2 repo/files/RedHat-Base.repo
@@ -1,3 +1,5 @@
+# File Managed by Puppet
+
[Server]
name=RedHat 5 - Server
baseurl=http://repo.lab42.it/cobbler/ks_mirror/RedHat5/Server/
View
7 repo/files/mcollective.repo
@@ -0,0 +1,7 @@
+# File managed by Puppet
+# Create your custom repo with packages from http://puppetlabs.com/downloads/mcollective/ :
+[mcollective]
+name=MCollective and ActiveMQ packages
+baseurl=http://10.42.0.1/mcollective/
+enabled=1
+gpgcheck=0
View
6 repo/files/modpassenger.repo
@@ -0,0 +1,6 @@
+# File Managed by Puppet
+[passenger]
+name=The Phusion Passenger Packages
+baseurl=http://passenger.stealthymonkeys.com/rhel/5/$arch/
+enabled=1
+gpgcheck=0
View
8 repo/files/puppetlabs.repo
@@ -0,0 +1,8 @@
+# File Managed by Puppet
+# TEMP disabled gpgcheck since mcollective packages are not (yet) signed
+[puppetlabs]
+name=Puppet Labs Packages
+baseurl=http://yum.puppetlabs.com/base/
+enabled=1
+gpgcheck=0
+gpgkey=http://yum.puppetlabs.com/RPM-GPG-KEY-reductive
View
16 repo/files/tmz-puppet.repo
@@ -0,0 +1,16 @@
+# File Managed by Puppet
+
+[tmz-puppet]
+name=Puppet for EL $releasever - $basearch
+baseurl=http://tmz.fedorapeople.org/repo/puppet/epel/$releasever/$basearch
+enabled=1
+gpgcheck=1
+gpgkey=http://tmz.fedorapeople.org/repo/RPM-GPG-KEY-tmz
+
+[tmz-puppet-source]
+name=Puppet for EL $releasever - Source
+baseurl=http://tmz.fedorapeople.org/repo/puppet/epel/$releasever/SRPMS
+enabled=0
+gpgcheck=1
+gpgkey=http://tmz.fedorapeople.org/repo/RPM-GPG-KEY-tmz
+
View
12 repo/manifests/epel.pp
@@ -0,0 +1,12 @@
+## EPEL
+
+class repo::epel {
+ $extrarepo = epel # Preferred repository (used in nrpe module)
+ file {
+ "/etc/yum.repos.d/epel.repo":
+ mode => 644, owner => root, group => root,
+ ensure => present,
+ source => "puppet://$servername/repo/epel.repo",
+ }
+}
+
View
69 repo/manifests/init.pp
@@ -1,3 +1,5 @@
+# Simple class for yum.repos.d management for Centos/RedHat
+#
class repo {
package { yum-priorities:
@@ -40,71 +42,4 @@
}
}
-## EPEL
-
-class repo::epel inherits repo {
- $extrarepo = epel # Preferred repository (used in nrpe module)
- file {
- "/etc/yum.repos.d/epel.repo":
- mode => 644, owner => root, group => root,
- ensure => present,
- source => "puppet://$servername/repo/epel.repo",
- }
-}
-
-
-
-## RPMFORGE
-
-class repo::rpmforge inherits repo {
- $extrarepo = rpmforge # Preferred repository (used in nrpe module)
- file {
- "etc/yum.repos.d/rpmforge.repo":
- mode => 644, owner => root, group => root,
- ensure => present,
- source => "puppet://$servername/repo/rpmforge.repo",
- }
-}
-
-
-
-## LIVNA
-
-class repo::livna {
- file {
- "/etc/yum.repos.d/livna.repo":
- mode => 644, owner => root, group => root,
- ensure => present,
- source => "puppet://$servername/repo/livna.repo",
- }
-}
-
-
-## TESTING
-
-class repo::testing {
-
- case $operatingsystem {
-
- centos: {
- file {
- "/etc/yum.repos.d/CentOS-Testing.repo":
- mode => 644, owner => root, group => root,
- ensure => present,
- source => "puppet://$servername/repo/CentOS-Testing.repo",
- }
- }
-
- redhat: {
- }
-
- fedora: {
- }
-
- default: {
- }
-
- }
-
-} # End Class
View
9 repo/manifests/mcollective.pp
@@ -0,0 +1,9 @@
+class repo::mcollective {
+ file {
+ "/etc/yum.repos.d/mcollective.repo":
+ mode => 644, owner => root, group => root,
+ ensure => present,
+ source => "puppet://$servername/repo/mcollective.repo",
+ }
+}
+
View
9 repo/manifests/modpassenger.pp
@@ -0,0 +1,9 @@
+class repo::modpassenger {
+ file {
+ "/etc/yum.repos.d/modpassenger.repo":
+ mode => 644, owner => root, group => root,
+ ensure => present,
+ source => "puppet://$servername/repo/modpassenger.repo",
+ }
+}
+
View
9 repo/manifests/puppetlabs.pp
@@ -0,0 +1,9 @@
+class repo::puppetlabs {
+ file {
+ "/etc/yum.repos.d/puppetlabs.repo":
+ mode => 644, owner => root, group => root,
+ ensure => present,
+ source => "puppet://$servername/repo/puppetlabs.repo",
+ }
+}
+
View
11 repo/manifests/rpmforge.pp
@@ -0,0 +1,11 @@
+class repo::rpmforge {
+ $extrarepo = rpmforge # Preferred repository (used in nrpe module)
+ file {
+ "etc/yum.repos.d/rpmforge.repo":
+ mode => 644, owner => root, group => root,
+ ensure => present,
+ source => "puppet://$servername/repo/rpmforge.repo",
+ }
+}
+
+
View
10 repo/manifests/tmz-puppet.pp
@@ -0,0 +1,10 @@
+class repo::tmz-puppet {
+ $extrarepo = tmz-puppet # Preferred repository (used in nrpe module)
+ file {
+ "/etc/yum.repos.d/tmz-puppet.repo":
+ mode => 644, owner => root, group => root,
+ ensure => present,
+ source => "puppet://$servername/repo/tmz-puppet.repo",
+ }
+}
+

0 comments on commit 8710ddd

Please sign in to comment.