Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 30 additions & 4 deletions localrepo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -96,40 +96,43 @@
}

pkgsync { "base_pkgs":
pkglist => "httpd*\nperl-DBI*\nlibart_lgpl*\napr*\nruby-rdoc*\nntp*\nbluez-libs*\nbluez-utils*\nperl-DBD-MySQL*\nruby-ri*\nruby-irb*\nscreen*\nemacs*\nvim*\nemacs-nox*\n",
pkglist => "perl-URI*\nsubversion*\nneon*\ngmp*\nhttpd*\nperl-DBI*\nlibart_lgpl*\napr*\nruby-rdoc*\nntp*\nbluez-libs*\nbluez-utils*\nperl-DBD-MySQL*\nruby-ri*\nruby-irb*\nscreen*\nemacs*\nvim*\nemacs-nox*\njava-1.6.0-openjdk*\nalsa-lib*\ngiflib*\njpackage-utils*\nlibXtst*\n",
repopath => "${base}/mirror/centos/5/os/i386",
source => "::centos/5/os/i386/CentOS/",
notify => Repobuild["base_local"]
}

repobuild { "base_local":
repopath => "${base}/mirror/centos/5/os/i386",
notify => Exec["makecache"],
}

pkgsync { "updates_pkgs":
pkglist => "mysql*\npostgresql-libs*\n",
pkglist => "php*\nkernel-headers*\nlibgomp*\ncpp*\ngcc*\nglibc*\nmysql*\npostgresql-libs*\n",
repopath => "${base}/mirror/centos/5/updates/i386",
source => "::centos/5/updates/i386/RPMS/",
notify => Repobuild["updates_local"]
}

repobuild { "updates_local":
repopath => "${base}/mirror/centos/5/updates/i386",
notify => Exec["makecache"],
}

pkgsync { "epel_pkgs":
pkglist => "rubygems*\nrubygem-rake*\nruby-RRDtool*\nrrdtool-ruby*\nrubygem-sqlite3-ruby*\nrubygem-rails*\nrubygem-activesupport*\nrubygem-actionmailer*\nrubygem-activeresource*\nrubygem-actionpack*\nrubygem-activerecord*\nmysql*\nruby-mysql*\nrubygem-rspec*\n",
pkglist => "rubygems*\nrubygem-rake*\nruby-RRDtool*\nrrdtool-ruby*\nrubygem-sqlite3-ruby*\nrubygem-rails*\nrubygem-activesupport*\nrubygem-actionmailer*\nrubygem-activeresource*\nrubygem-actionpack*\nrubygem-activerecord*\nmysql*\nruby-mysql*\nrubygem-rspec*\nrubygem-stomp*\n",
repopath => "${base}/mirror/epel/5/local/i386",
source => "::fedora-epel/5/i386/",
notify => Repobuild["epel_local"]
}

repobuild { "epel_local":
repopath => "${base}/mirror/epel/5/local/i386",
notify => Exec["makecache"],
}

pkgsync { "puppetlabs_pkgs":
pkglist => "puppet-dashboard*\n",
pkglist => "mcollective-common*\nmcollective-client*\nmcollective*\n",
repopath => "${base}/mirror/puppetlabs/local/base/i386",
source => "::packages/yum/base/",
server => "yum.puppetlabs.com",
Expand All @@ -138,8 +141,31 @@

repobuild { "puppetlabs_local":
repopath => "${base}/mirror/puppetlabs/local/base/i386",
notify => Exec["makecache"],
}

exec { "makecache":
command => "yum makecache",
path => "/usr/bin",
refreshonly => true,
user => root,
group => root,
}
}

include localpm

class puppetbase {
# do some basic puppet setup
file {['/etc/puppetlabs/', '/etc/puppetlabs/puppet/',
'/etc/puppetlabs/puppet/modules', '/etc/puppetlabs/puppet/manifests'
]:
ensure => directory
}
file {'/etc/puppetlabs/puppet/manifests/site.pp':
content => ''
}
# TODO - install our maintenance version of Puppet using vcsrepo
}

include puppetbase
8 changes: 8 additions & 0 deletions runlocalrepo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash
# set up local Puppet environment to
# run localrepo.pp
#
PUPPET_HOME=/opt/puppetlabs/puppet
export RUBYLIB=$PUPPET_HOME/lib
export PATH=$PUPPET_HOME/bin/:$PUPET_HOME/sbin/:$PATH
puppet apply localrepo.pp