<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Flib &#187; generate</title>
	<atom:link href="http://blog.flib.me/tag/generate/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flib.me</link>
	<description>flex&#039;s library</description>
	<lastBuildDate>Thu, 15 Dec 2011 11:05:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>puppet的generate函数</title>
		<link>http://blog.flib.me/2010/07/08/puppet%e7%9a%84generate%e5%87%bd%e6%95%b0/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=puppet%25e7%259a%2584generate%25e5%2587%25bd%25e6%2595%25b0</link>
		<comments>http://blog.flib.me/2010/07/08/puppet%e7%9a%84generate%e5%87%bd%e6%95%b0/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 11:30:10 +0000</pubDate>
		<dc:creator>flex</dc:creator>
				<category><![CDATA[puppet]]></category>
		<category><![CDATA[运维]]></category>
		<category><![CDATA[generate]]></category>

		<guid isPermaLink="false">http://blog.flib.me/?p=38235</guid>
		<description><![CDATA[这个函数不能直接执行shell脚本，需要/usr/bin/env等做为第一个参数，如： $hostalias = generate("/usr/bin/env", "/tmp/genhname.sh", "172.16.0.133") 其次，这个函数的执行的是master上的脚本，它仅仅是将client上的变量拿回来，在本地执行；也就是说/tmp/genhname.sh要位于master的相应路径上，且有执行权限，不需要将脚本文件分发到client。]]></description>
			<content:encoded><![CDATA[<p>这个函数不能直接执行shell脚本，需要/usr/bin/env等做为第一个参数，如：</p>
<pre>$hostalias = generate("/usr/bin/env", "/tmp/genhname.sh", "172.16.0.133")</pre>
<p>其次，这个函数的执行的是<strong>master上的脚本</strong>，它仅仅是将client上的变量拿回来，在本地执行；也就是说/tmp/genhname.sh要位于master的相应路径上，且有执行权限，不需要将脚本文件分发到client。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.flib.me/2010/07/08/puppet%e7%9a%84generate%e5%87%bd%e6%95%b0/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

