aboutsummaryrefslogtreecommitdiff
path: root/doc/introduction.rst
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-03-10 12:53:35 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-03-10 12:53:35 -0700
commit35a02f2293935becbc20224e48995a35dbbbeebf (patch)
tree5c1c832e2b174014aa3500eee063391d700c856a /doc/introduction.rst
parent6b2372ab471ec08d5abcb5404986397789d5c690 (diff)
downloadconsfigurator-35a02f2293935becbc20224e48995a35dbbbeebf.tar.gz
update introductory example to use some new properties
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'doc/introduction.rst')
-rw-r--r--doc/introduction.rst7
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/introduction.rst b/doc/introduction.rst
index 9652e98..f08b677 100644
--- a/doc/introduction.rst
+++ b/doc/introduction.rst
@@ -45,12 +45,15 @@ Try it out / quick start
(defhost athena.example.com
(:deploy (:ssh (:sudo :as "spwhitton@athena.example.com") :debian-sbcl))
"Web and file server."
+ (os:debian-stable "buster" :amd64)
+ (apt:standard-sources.list)
+ (apt:installed "apache2")
(file:has-content "/etc/foo"
#?{Here is my file content.
You can use ${my-substitution} thanks to CL-INTERPOL.
And it's multiline.})
- (file:has-content-lines "/etc/bar" '("these" "are" "my" "lines"))
- (file:contains-lines "/etc/some.conf" '("FOO=bar")))
+ (file:has-content "/etc/bar" '("or" "specify" "a" "list" "of" "lines""))
+ (file:contains-lines "/etc/some.conf" '("FOO=bar"))) ; preserve rest of file contents
Here, "spwhitton" is my username on athena; we have to tell Consfigurator
what user it will be when it tries to sudo, so it knows whose password it