aboutsummaryrefslogtreecommitdiff
path: root/doc/introduction.rst
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-03-19 19:13:27 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-03-19 19:13:27 -0700
commitb98ef3dd4345e120712abc6e806f37656426cede (patch)
treea25846b8a54777a7e92a46bad270fc132482ab73 /doc/introduction.rst
parent04fa2803c85bb9f2309b83a11a1a9b20c8ea44f9 (diff)
downloadconsfigurator-b98ef3dd4345e120712abc6e806f37656426cede.tar.gz
add some of today's new features to introduction.rst
Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'doc/introduction.rst')
-rw-r--r--doc/introduction.rst19
1 files changed, 17 insertions, 2 deletions
diff --git a/doc/introduction.rst b/doc/introduction.rst
index 22fc271..b15f70b 100644
--- a/doc/introduction.rst
+++ b/doc/introduction.rst
@@ -46,14 +46,29 @@ Try it out / quick start
(:deploy (:ssh (:sudo :as "spwhitton@athena.example.com") :debian-sbcl))
"Web and file server."
(os:debian-stable "buster" :amd64)
+
+ (apt:mirror "http://my.local.mirror.example.com/")
+ (apt:uses-local-cacher) ; sets up apt-cacher-ng
(apt:standard-sources.list)
- (apt:installed "apache2")
+
+ (apt:service-installed-running "apache2")
+
(file:has-content "/etc/foo"
#?{Here is my file content.
You can use ${my-substitution} thanks to CL-INTERPOL.
And it's multiline. CL-HEREDOC is another option.})
(file:has-content "/etc/bar" '("or" "specify" "a" "list" "of" "lines""))
- (file:contains-lines "/etc/some.conf" '("FOO=bar"))) ; preserve rest of file contents
+ (file:contains-lines "/etc/some.conf" '("FOO=bar")) ; preserve rest of file contents
+
+ ;; This will call debootstrap(1) in a way which respects the apt
+ ;; cacher and mirror configured above, so setting up multiple
+ ;; chroots with the same OS will be fast.
+ (chroot:os-bootstrapped. nil "/srv/chroot/test"
+ (os:debian-unstable :amd64)
+ (apt:standard-sources.list)
+
+ (apt:uses-parent-proxy) ; use the apt-cacher-ng set up outside chroot
+ (apt:uses-parent-mirror))) ; use the apt mirror set up above
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