Add librarian example

This commit is contained in:
Łukasz Oleś 2015-10-12 09:24:07 +02:00
parent 5a42e3b8d0
commit 5e0d2f9fa0
2 changed files with 35 additions and 0 deletions

15
examples/librarian/README Normal file
View File

@ -0,0 +1,15 @@
Usage
=====
Run it from /vagrant dir:
```
solar resource clear_all
solar resource create nodes templates/nodes.yaml '{"count": 1}'
solar resource create librarian_example examples/librarian/librarian.yaml '{"node": "node1"}'
solar changes stage
solar changes process
solar orch run-once
solar orch report -w 100
```

View File

@ -0,0 +1,20 @@
id: librarian_examples
resources:
- id: librarian
location: {{node}}
from: resources/librarian
values:
modules:
- name: puppetlabs-ntp
version: 4.1.0
- name: puppet-keystone
type: git
url: https://github.com/openstack/puppet-keystone
ref: 5.1.0
events:
- type: depends_on
parent_action: librarian.run
state: success
depend_action: rabbitmq_service1.run