Dublin talk.
[libguestfs-talks.git] / 2012-dublin / 0300-modify.html
diff --git a/2012-dublin/0300-modify.html b/2012-dublin/0300-modify.html
new file mode 100644 (file)
index 0000000..c3aa1d0
--- /dev/null
@@ -0,0 +1,23 @@
+<meta charset="utf-8"/>
+<link rel="stylesheet" href="style.css" type="text/css"/>
+<script src="code.js" type="text/javascript"></script>
+
+<div>
+<h1>Using libguestfs from Python</h1>
+
+<p id="steps">
+Create handle &mdash;
+Inspect &mdash;
+<b>Modify</b> &mdash;
+Shutdown</p>
+
+<pre class="code">
+if type == "linux" and distro == "fedora":
+    <b>g.mkdir_p</b> ("/etc/profile.d")
+    <b>g.write</b> ("/etc/profile.d/proxy.sh",
+             "http_proxy=http://cache:3128/")
+else
+    # etc
+</pre>
+
+</div>