Puppet näited

From ICO wiki
Revision as of 11:25, 30 January 2014 by Mernits (talk | contribs) (Created page with "=Sissejuhatus= =rak.planet.zz= =puppet.planet.zz= =client.planet.zz= =Puppet manifestid ja konfiguratsioon= ==/etc/puppet/fileserver.conf= <source lang="bash"> [expor…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Sissejuhatus

rak.planet.zz

puppet.planet.zz

client.planet.zz

Puppet manifestid ja konfiguratsioon

=/etc/puppet/fileserver.conf

[export]
path /var/lib/puppet/export
 allow *

/etc/puppet/manifests/site.pp

import "classes/*"

	node basenode {
		include test_class
		include rootkeys
		include userkey
		include hostnames
		package {'cowsay': ensure => latest }
	}	

	node 'client.planet.zz' inherits basenode {
		include tarkvara
		package {'git-cola': ensure => latest }
		package {'vim-puppet': ensure => latest }
		package {'mc': ensure => latest }
		package {'openjdk-7-jre': ensure => latest }
	}
	node 'rak.planet.zz' inherits basenode {
		include tarkvara
		include userid
		include gitkey
		include issue
		class { '::ntp':
 			 servers => [ 'ntp.eenet.ee', 'ntp.ut.ee' ],
		}	
		include weebiserver
		include	mysqlserver
		include dvwa
	}