Logstash'i paigaldmine kliendi konfiguratsiooni paigladmine kliendi arvutisse puppeti abil

From ICO wiki
Revision as of 13:51, 27 December 2013 by Imitt (talk | contribs) (Created page with " Pupetmasteri konfiguratsioon: Puppet masteris tuleb lisada järgnev moodul: Tule loo eraldi node site.pp failis. Näide nano /etc/puppet/manifests/site.pp import "class…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Pupetmasteri konfiguratsioon:

Puppet masteris tuleb lisada järgnev moodul:

Tule

loo eraldi node site.pp failis.

Näide nano /etc/puppet/manifests/site.pp

import "classes/*" node 'basenode' { include rsyslog

				 include kirje
   

}


nano /etc/puppet/manifests/classes/rsyslog.pp

class tarkvara {

       package { 'rsyslog': ensure => latest }
     

}


SEE on nüüd kirje.pp


class kirje {

               file_line { 'kirje':
               ensure => present,
               line => "*.* @@192.168.56.210:10514 ",
               path => '/etc/rsyslog.conf',

}


}