Squid and Puppet
This describes how to install Puppet and Squid on a "server" running SL6.
Puppet
You first have to have the
epel.repo
repositories enabled in the
yum.repos.d
folder. Go into
epel.repo
and
epel-testing.repo
and set
enabled=1
.
Then do
-
yum install puppet squid git
Puppet is installed in the
/etc/puppet/
file where there is now a
puppet.conf
and
manifests/
folder among others. A manifest is a script in puppet language used to tell puppet what do do on the designated machines. The set-up I have is standalone meaning I would like hep405 (the name of the server) to be able to pull manifests from a git repository and then run them.
To test a basic manifest, in the
manifests
folder create
site.pp
and in there put
class test_class {
files { "/home/user/Desktop/tmpfile.txt":
ensure => present,
mode => 644,
owner => root,
group => root,
}
}
node hep405 {
include test_class
}
Then to run it, in the
/etc/puppet
folder do
-
sudo puppet apply ./manifests/site.pp
This should create
tmpfile.txt
on your desktop.
There are some other modules that can be installed from puppet-labs. To search for packages such as ntp d0
And the to install
-
puppet module install ntpxxxx