Skip to content

mylinuxsa/puppet_lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

利用puppet 管理kvm,创建销毁

puppet

puppet lib

virsh module

class virsh::config {
	virsh { "redhat" :
		ensure		=> present,
		force		=> true,
		memory		=> 2048,
		virttype	=> 'vhost',
		vncport		=> 5903,
		vcpus		=> 2,
		diskpath	=> '/data/xuniji/redhat.img',
		disksize	=> 60,
		diskformat	=> 'qcow2',
		cdrom		=> '/data/xuniji/CentOS-6.4-x86_64-bin-DVD1.iso',
		vname		=> 'br1',
		vnettype	=> 'bridge',

	}
}

vnet module

class vnet::config {
	vnet { "br1" :
		ensure		=> present,
		virttype	=> 'vnetwork',
		phycard		=> 'eth1',
	}
}

About

puppet lib

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published