# YAML template: name: webserver description: | Basic webserver template roles: # Define my roles here - webserver services: # This is where we define the # services/dependencies needed use: - network - ssh - accounts: users: - bsmith groups: - bsmith disable: - selinux software_packages: apache: - version: 2.2.14 python: - version: 2.6.2 python_modules: python_modules.all runtime_script: | #!/usr/bin/env python """ Make subset of runtime methods available """ from mrbelvedere import module module.do_stuff(arg) # Nice thing about YAML/PyYAML is defining variables # And calling code in-line. Can do tricks like below dir: &DIR /tmp adhoc: !!python/object/apply:os.listdir [*DIR]