Add more sketches

This commit is contained in:
R Tyler Croy 2020-12-30 09:43:02 -08:00
parent 0bdd2ba9bc
commit 97ae0d52a6
1 changed files with 20 additions and 0 deletions

View File

@ -18,6 +18,9 @@ some of the Puppet-based legacy from Bolt behind.
* Support BSD and Linux with ease
* Make creating a plan very easy, including adding some simple logic
* Explore tags-based task assignment
* Pulll dependencies in through git-subtree or other, no inventing a new
package distribution mechanism
== Sketches
@ -51,6 +54,7 @@ task Install {
restrict {
// Regular expression to define what
match_fact("platform", "(.*)-freebsd")
match_fact("hostname", "www1")
}
parameters {
@ -79,6 +83,22 @@ task Install {
"""
}
}
/ Exploring module syntax for namespacing these */
module Install {
task Pkg {
restrict {}
parameters {}
script {}
}
task Zypper {
restrict {}
parameters {}
script {}
}
}
----
.Sketch of a zplan