aboutsummaryrefslogtreecommitdiff
path: root/examples/webserver.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/webserver.yaml')
-rw-r--r--examples/webserver.yaml38
1 files changed, 38 insertions, 0 deletions
diff --git a/examples/webserver.yaml b/examples/webserver.yaml
new file mode 100644
index 0000000..7dd937c
--- /dev/null
+++ b/examples/webserver.yaml
@@ -0,0 +1,38 @@
1# YAML
2template:
3 name: webserver
4 description: |
5 Basic webserver template
6 roles:
7 # Define my roles here
8 - webserver
9 services:
10 # This is where we define the
11 # services/dependencies needed
12 use:
13 - network
14 - ssh
15 - accounts:
16 users:
17 - bsmith
18 groups:
19 - bsmith
20 disable:
21 - selinux
22 software_packages:
23 apache:
24 - version: 2.2.14
25 python:
26 - version: 2.6.2
27 python_modules: python_modules.all
28 runtime_script: |
29 #!/usr/bin/env python
30 """ Make subset of runtime methods available
31 """
32 from mrbelvedere import module
33
34 module.do_stuff(arg)
35 # Nice thing about YAML/PyYAML is defining variables
36 # And calling code in-line. Can do tricks like below
37 dir: &DIR /tmp
38 adhoc: !!python/object/apply:os.listdir [*DIR]