Puppet näited

From ICO wiki
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
	}