Squid and Puppet

This describes how to install Puppet and Squid on a "server" running SL6.


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

  • puppet module search ntp
And the to install
  • puppet module install ntpxxxx
Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2014-06-03 - JoshuaWyattSmith
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback